/* ============================================================
   THPT THỐNG NHẤT — Bộ giao diện dùng chung
   Sửa màu thương hiệu ở khối :root bên dưới là đổi cả site.
   ============================================================ */

:root {
  /* --- Màu thương hiệu (đổi ở đây) --- */
  --brand-900: #0b2e4f;
  --brand-700: #14487a;
  --brand-500: #1f6fb2;
  --brand-300: #7db4e0;
  --brand-50:  #eef5fb;
  --gold:      #d99a2b;
  --gold-soft: #fdf3e0;
  --red:       #c0392b;

  /* --- Màu nền / chữ --- */
  --ink:       #10161d;
  --ink-2:     #33404d;
  --muted:     #5f6b78;
  --line:      #e3e8ee;
  --line-2:    #f0f3f7;
  --bg:        #ffffff;
  --bg-soft:   #f6f8fb;

  /* --- Hình khối --- */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --sh:   0 1px 2px rgba(16,22,29,.06), 0 8px 24px rgba(16,22,29,.06);
  --sh-lg:0 2px 6px rgba(16,22,29,.08), 0 18px 44px rgba(16,22,29,.10);

  --wrap: 1180px;
  --nav-h: 68px;

  --font: "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif;
  /* Font chữ có chân cho trang kỷ yếu.
     KHÔNG dùng Georgia: font này thiếu ký tự tiếng Việt, chữ "kỷ yếu", "thầy cô"
     sẽ bị vỡ dấu thành "kỷ yê´u", "thâ`y cô". Các font dưới đây đã kiểm tra đủ dấu. */
  --font-display: Cambria, "Noto Serif", "Times New Roman", "Liberation Serif", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(23px, 2.6vw, 31px); }
h3 { font-size: 19px; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }

/* ================= NÚT ================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-700); color: #fff; box-shadow: 0 6px 18px rgba(20,72,122,.25); }
.btn-primary:hover { background: var(--brand-900); }
.btn-gold { background: var(--gold); color: #24180a; }
.btn-ghost { background: transparent; color: var(--brand-700); border-color: var(--brand-300); }
.btn-ghost:hover { background: var(--brand-50); }
.btn-white { background: #fff; color: var(--brand-900); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* ================= HEADER ================= */
.topbar {
  background: var(--brand-900); color: #cfe0ef;
  font-size: 13.5px; padding: 7px 0;
}
.topbar .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.topbar a { color: #cfe0ef; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand-mark {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-700), var(--brand-500));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(20,72,122,.3);
}
.brand-text b { display: block; font-size: 16px; color: var(--brand-900); line-height: 1.2; }
.brand-text small { display: block; font-size: 12px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 600;
  color: var(--ink-2); text-decoration: none;
}
.nav a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav a.active { background: var(--brand-700); color: #fff; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; box-shadow: var(--sh-lg);
    transform: translateY(-140%); transition: transform .25s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 12px; border-radius: var(--r-sm); }
  .topbar .wrap { justify-content: center; text-align: center; }
}

/* ================= HERO ================= */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(115deg, rgba(11,46,79,.92), rgba(31,111,178,.80)),
    linear-gradient(160deg, #17517f, #0b2e4f);
  padding: 78px 0 88px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -160px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,154,43,.35), transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; max-width: 860px; }
.hero .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero p { font-size: 18px; color: #dceaf6; max-width: 660px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  margin: -44px auto 0; position: relative; z-index: 2; max-width: var(--wrap);
  box-shadow: var(--sh-lg);
}
.hero-stats > div { background: #fff; padding: 22px 18px; text-align: center; }
.hero-stats b { display: block; font-size: 30px; color: var(--brand-700); line-height: 1.1; }
.hero-stats span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ================= SECTION ================= */
.section { padding: 66px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0; }

/* ================= LƯỚI & THẺ ================= */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--brand-300); }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card h3 a { color: var(--ink); }
.card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.card .meta { margin-top: auto; font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }

.tag {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
  font-size: 12.5px; font-weight: 600; margin-bottom: 10px;
}
.tag.gold { background: var(--gold-soft); color: #8a5f10; }

/* Thẻ tính năng đơn giản */
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.feature .ico {
  width: 46px; height: 46px; border-radius: var(--r); background: var(--brand-50);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
}
.feature h3 { font-size: 17px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ================= ẢNH & CHỖ TRỐNG ================= */
.ph {
  position: relative; width: 100%; background:
    repeating-linear-gradient(135deg, #eef2f7 0 12px, #e6ecf4 12px 24px);
  display: grid; place-items: center; text-align: center;
  color: #7c8ea2; font-size: 13px; font-weight: 600; padding: 14px;
  border-bottom: 1px solid var(--line);
}
.ph-16-9 { aspect-ratio: 16/9; }
.ph-4-3  { aspect-ratio: 4/3; }
.ph-1-1  { aspect-ratio: 1/1; }
.ph-3-4  { aspect-ratio: 3/4; }
.ph small { display: block; font-weight: 400; font-size: 11.5px; opacity: .8; }

.img-cover { width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }

/* ================= FOOTER ================= */
.site-footer { background: var(--brand-900); color: #b9cddf; padding: 54px 0 0; margin-top: 20px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #b9cddf; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: 14.5px; }
.footer-bottom {
  margin-top: 40px; border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0 22px; font-size: 13.5px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ================= BẢNG / KHỐI THÔNG TIN ================= */
.table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.table th, .table td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
.table th { background: var(--brand-50); color: var(--brand-900); font-weight: 700; }
.table tbody tr:nth-child(even) td { background: #fafcfe; }
.table-wrap { overflow-x: auto; border-radius: var(--r); }

.note {
  border-left: 4px solid var(--gold); background: var(--gold-soft);
  padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; margin: 0 0 20px;
  font-size: 14.5px; color: #6b4c10;
}
.note b { color: #4d370a; }

/* Dòng thời gian */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item::before {
  content: ""; position: absolute; left: -30px; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--brand-500);
}
.timeline-item .yr { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .06em; }
.timeline-item h3 { font-size: 17px; margin: 2px 0 6px; }
.timeline-item p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Form */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(31,111,178,.15);
}
.field textarea { min-height: 130px; resize: vertical; }

/* Bỏ qua tới nội dung — hỗ trợ đọc màn hình */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand-900); color: #fff;
  padding: 10px 16px; z-index: 999; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ============================================================
   TRANG KỶ YẾU — tông ấm, tách biệt với phần còn lại của site
   ============================================================ */
.ky-yeu {
  --paper: #fdfaf4;
  --paper-2: #f6efe2;
  --sepia: #6b563a;
  --sepia-line: #e5d9c4;
  background: var(--paper);
}
.ky-yeu .kv {
  position: relative; color: #fff; text-align: center;
  padding: 84px 0 96px;
  background: linear-gradient(150deg, #123c63 0%, #1f6fb2 55%, #b9822a 140%);
}
.ky-yeu .kv h1 { font-family: var(--font-display); font-size: clamp(34px, 5.4vw, 58px); color: #fff; margin-bottom: 8px; }
.ky-yeu .kv .sub { font-size: 18px; color: #e5eef6; }
.ky-yeu .kv .year {
  display: inline-block; margin-bottom: 20px; padding: 7px 20px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  font-weight: 700; letter-spacing: .16em; font-size: 13px;
}

.ky-yeu .section { padding: 58px 0; }
.ky-yeu .section-head h2 { font-family: var(--font-display); }
.ky-yeu .card, .ky-yeu .feature { background: #fff; border-color: var(--sepia-line); }
.ky-yeu .tag { background: var(--paper-2); color: #7a5c22; }

/* Thanh chọn khóa */
.khoa-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 14px 18px; background: #fff; border: 1px solid var(--sepia-line);
  border-radius: var(--r-lg); box-shadow: var(--sh); margin-bottom: 30px;
}
.khoa-bar label { font-weight: 700; font-size: 14px; color: var(--sepia); }
.khoa-bar select { padding: 9px 12px; border: 1px solid var(--sepia-line); border-radius: var(--r-sm); font: inherit; background: #fff; }
.khoa-bar .spacer { flex: 1; }

/* Lời ngỏ */
.loi-ngo {
  display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start;
  background: #fff; border: 1px solid var(--sepia-line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--sh);
}
@media (max-width: 760px) { .loi-ngo { grid-template-columns: 1fr; } }
.loi-ngo .who { text-align: center; }
.loi-ngo .who .ph, .loi-ngo .who img { border-radius: var(--r); overflow: hidden; margin-bottom: 12px; }
.loi-ngo .who b { display: block; font-size: 16px; }
.loi-ngo .who span { font-size: 13.5px; color: var(--muted); }
.loi-ngo blockquote {
  margin: 0; font-family: var(--font-display); font-size: 17px; line-height: 1.75; color: #3d3122;
}
.loi-ngo blockquote::before { content: "“"; font-size: 54px; line-height: 0; color: var(--gold); vertical-align: -18px; margin-right: 6px; }

/* Tabs lớp */
.lop-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.lop-tab {
  padding: 9px 17px; border-radius: 999px; border: 1px solid var(--sepia-line);
  background: #fff; font-weight: 700; font-size: 14.5px; color: var(--sepia); cursor: pointer;
  transition: all .15s ease;
}
.lop-tab:hover { border-color: var(--gold); }
.lop-tab.active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

.lop-head {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px;
  background: #fff; border: 1px solid var(--sepia-line); border-radius: var(--r-lg);
  padding: 24px; margin-bottom: 26px;
}
@media (max-width: 860px) { .lop-head { grid-template-columns: 1fr; } }
.lop-head .anh-tap-the .ph, .lop-head .anh-tap-the img { border-radius: var(--r); overflow: hidden; }
.lop-head h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 4px; }
.gvcn { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--paper); border-radius: var(--r); margin: 14px 0; }
.gvcn .av { width: 62px; height: 62px; border-radius: 50%; flex: none; overflow: hidden; }
.gvcn b { display: block; font-size: 15.5px; }
.gvcn span { font-size: 13.5px; color: var(--muted); }
.loi-nhan-lop { font-family: var(--font-display); font-style: italic; color: #4a3c28; border-left: 3px solid var(--gold); padding-left: 14px; }

/* Lưới học sinh */
.hs-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.hs-toolbar input { flex: 1; min-width: 220px; padding: 10px 14px; border: 1px solid var(--sepia-line); border-radius: 999px; font: inherit; }
.hs-count { font-size: 14px; color: var(--muted); }

.hs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1000px) { .hs-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 780px)  { .hs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px)  { .hs-grid { grid-template-columns: repeat(2, 1fr); } }

.hs {
  background: #fff; border: 1px solid var(--sepia-line); border-radius: var(--r);
  overflow: hidden; text-align: center; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.hs:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.hs .av { aspect-ratio: 3/4; overflow: hidden; background: var(--paper-2); position: relative; }
.hs .av img { width: 100%; height: 100%; object-fit: cover; }
/* Ảnh đại diện thay thế khi chưa có ảnh: chữ cái đầu tên trên nền màu.
   Dùng chung cho lưới học sinh, ô giáo viên chủ nhiệm và cửa sổ chi tiết. */
.initials {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: 34px; line-height: 1; letter-spacing: .02em;
}
.gvcn .av .initials { font-size: 20px; }
.loi-ngo .who .initials { font-size: 46px; }
.hs .info { padding: 11px 10px 14px; }
.hs .info b { display: block; font-size: 14.5px; line-height: 1.35; }
.hs .info .nick { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.hs .info .role { display: inline-block; margin-top: 6px; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-weight: 700; }

/* Modal chi tiết học sinh */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-bg { position: absolute; inset: 0; background: rgba(11,22,33,.62); backdrop-filter: blur(2px); }
.modal-box {
  position: relative; z-index: 1; max-width: 620px; margin: 6vh auto; background: #fff;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg);
  max-height: 88vh; overflow-y: auto;
}
.modal-box .top { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 24px; }
@media (max-width: 560px) { .modal-box .top { grid-template-columns: 1fr; } .modal-box { margin: 0; min-height: 100vh; border-radius: 0; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.9); font-size: 20px; line-height: 1; color: var(--ink);
  box-shadow: var(--sh);
}
.kv-row { display: flex; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--sepia-line); font-size: 14.5px; }
.kv-row b { min-width: 96px; color: var(--muted); font-weight: 600; }

/* Album ảnh */
.album { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .album { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .album { grid-template-columns: repeat(2, 1fr); } }
.album > figure { cursor: pointer; border-radius: var(--r); overflow: hidden; border: 1px solid var(--sepia-line); background: #fff; }
.album figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 10px; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,14,20,.92); display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 80vh; object-fit: contain; border-radius: var(--r); }
.lightbox .cap { color: #dbe6f0; text-align: center; margin-top: 14px; font-size: 14.5px; }
.lightbox .nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 22px;
}
.lightbox .prev { left: 20px; } .lightbox .next { right: 20px; }
.lightbox .close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; cursor: pointer; }

/* Sổ lưu bút */
.luu-but { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .luu-but { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .luu-but { grid-template-columns: 1fr; } }
.loi {
  background: #fff; border: 1px solid var(--sepia-line); border-radius: var(--r);
  padding: 20px; position: relative;
}
.loi::before { content: "❞"; position: absolute; top: 10px; right: 16px; font-size: 30px; color: var(--paper-2); }
.loi p { font-family: var(--font-display); font-style: italic; color: #4a3c28; font-size: 15px; }
.loi .by { font-size: 13.5px; color: var(--muted); font-style: normal; }

/* ================= IN ẤN ================= */
@media print {
  .site-header, .topbar, .site-footer, .nav-toggle, .hs-toolbar,
  .khoa-bar, .lop-tabs, .modal, .lightbox, .hero-actions { display: none !important; }
  body { font-size: 11pt; }
  .section { padding: 12px 0; }
  .hs-grid { grid-template-columns: repeat(4, 1fr); }
  .card, .hs, .loi { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
