/* Trường 360 — style.css
   Bộ nhận diện đã chốt: navy #12283f / #1c3a5c, vàng #e9b949, nền #f9fafb, viền #e5e7eb, bo góc 8px, chữ Be Vietnam Pro */

:root {
  --navy: #12283f;
  --navy-2: #1c3a5c;
  --gold: #e9b949;
  --gold-ink: #7a5a0f;
  --bg: #f9fafb;
  --line: #e5e7eb;
  --ink: #12283f;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --white: #ffffff;
  --tint: #eef2f6;
  --ok: #1f7a4d;
  --r: 8px;
  --w: 1120px;
  --prose: 68ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }
small, .nho { font-size: 14px; color: var(--ink-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--prose); }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 12px; border-radius: var(--r); z-index: 99; }
.skip:focus { left: 12px; }

/* ---------- Đầu trang ---------- */
.dau { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.dau .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 18px; }
.logo svg { width: 34px; height: 34px; flex: none; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 12px; border-radius: var(--r); text-decoration: none; color: var(--ink-2); font-size: 15px; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--navy); background: var(--tint); }
.menu .nut { background: var(--navy); color: var(--white); margin-left: 8px; }
.menu .nut:hover { background: var(--navy-2); color: var(--white); }
.mo-menu { display: none; }
.mo-menu-nhan { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; align-items: center; justify-content: center; }
.mo-menu-nhan span { width: 20px; height: 2px; background: var(--navy); position: relative; }
.mo-menu-nhan span::before, .mo-menu-nhan span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy); }
.mo-menu-nhan span::before { top: -6px; }
.mo-menu-nhan span::after { top: 6px; }

@media (max-width: 900px) {
  .mo-menu-nhan { display: inline-flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 12px 16px; }
  .menu a { padding: 12px; font-size: 16px; }
  .menu .nut { margin: 8px 0 0; text-align: center; }
  .mo-menu:checked ~ nav .menu { display: flex; }
}

/* ---------- Nút ---------- */
.nut-chinh, .nut-phu {
  display: inline-block; padding: 12px 22px; border-radius: var(--r); font-weight: 600; text-decoration: none; font-size: 16px; line-height: 1.3; border: 1px solid transparent;
}
.nut-chinh { background: var(--gold); color: var(--navy); }
.nut-chinh:hover { background: #dcab36; color: var(--navy); }
.nut-phu { background: transparent; color: var(--navy); border-color: var(--navy); }
.nut-phu:hover { background: var(--tint); }
.nut-toi { background: var(--navy); color: var(--white); }
.nut-toi:hover { background: var(--navy-2); color: var(--white); }
.hang-nut { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Trạng thái ---------- */
.tt { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.tt::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink-3); }
.tt.van-hanh::before { background: var(--gold); border-color: var(--gold); }
.tt.thi-diem::before { border-color: var(--navy-2); background: transparent; }
.tt.sap-ra-mat::before { border-color: var(--ink-3); background: var(--line); }

/* ---------- Khối hero ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero p.dan { font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.hero .so-do { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
}

/* Hero trang con (không gian / trang thông tin) */
.hero-con .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero-con .so-do { width: 100%; max-width: 420px; height: auto; justify-self: end; }
.hero-con .tt { margin-bottom: 12px; }
@media (max-width: 900px) {
  .hero-con .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-con .so-do { max-width: 360px; justify-self: start; }
}

/* ---------- Dải sự thật ---------- */
.dai { background: var(--navy); color: var(--white); }
.dai .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 20px; font-size: 15px; }
.dai div { padding-left: 14px; border-left: 2px solid var(--gold); line-height: 1.4; }
@media (max-width: 900px) { .dai .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dai .wrap { grid-template-columns: 1fr; } }

/* ---------- Khối nội dung ---------- */
.khoi { padding: 64px 0; border-bottom: 1px solid var(--line); }
.khoi.trang { background: var(--white); }
.khoi:last-of-type { border-bottom: 0; }
.khoi > .wrap > h2:first-child { margin-bottom: 8px; }
.khoi .dan { color: var(--ink-2); max-width: 62ch; margin-bottom: 32px; font-size: 17px; }
@media (max-width: 900px) { .khoi { padding: 44px 0; } }

/* Hai cột: tiêu đề trái, nội dung phải */
.hai-cot { display: grid; grid-template-columns: minmax(200px, 1fr) 2.2fr; gap: 40px; align-items: start; }
.hai-cot h2 { position: sticky; top: 88px; }
@media (max-width: 900px) { .hai-cot { grid-template-columns: 1fr; gap: 16px; } .hai-cot h2 { position: static; } }

/* Danh sách dòng có viền (thay cho thẻ) */
.dong { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dong li { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.dong li h3 { font-size: 18px; margin: 0 0 4px; }
.dong li h3 a { color: var(--navy); text-decoration: none; }
.dong li h3 a:hover { text-decoration: underline; }
.dong li p { color: var(--ink-2); margin: 0; max-width: 60ch; }
.dong li .phu { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 640px) { .dong li { grid-template-columns: 1fr; } .dong li .phu { align-items: flex-start; flex-direction: row; flex-wrap: wrap; } }

/* Bảng thuật ngữ: tên module | mô tả */
.mo-dun { display: grid; grid-template-columns: 220px 1fr; gap: 0; border-top: 1px solid var(--line); }
.mo-dun > dt, .mo-dun > dd { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.mo-dun > dt { font-weight: 600; padding-right: 24px; }
.mo-dun > dd { color: var(--ink-2); max-width: 64ch; }
@media (max-width: 640px) { .mo-dun { grid-template-columns: 1fr; } .mo-dun > dt { padding-bottom: 2px; border-bottom: 0; } .mo-dun > dd { padding-top: 0; } }

/* Ba cột nguyên tắc / lợi ích: chữ thuần, không thẻ */
.ba-cot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ba-cot h3 { font-size: 18px; padding-top: 14px; border-top: 2px solid var(--navy); }
.ba-cot p { color: var(--ink-2); }
@media (max-width: 900px) { .ba-cot { grid-template-columns: 1fr; gap: 20px; } }

/* Bảng */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--tint); font-weight: 600; color: var(--navy); }
td { color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 600; }
.bang-cuon { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }

/* Bảng giá */
.gia { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); overflow: hidden; }
.gia > div { padding: 32px; }
.gia > div + div { border-left: 1px solid var(--line); }
.gia .so { font-size: 34px; font-weight: 600; color: var(--navy); line-height: 1.1; margin: 8px 0 4px; }
.gia .so small { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.gia ul { list-style: none; padding: 0; margin: 20px 0; }
.gia li { padding-left: 24px; position: relative; color: var(--ink-2); }
.gia li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-ink); font-weight: 700; }
.gia .noi-bat { background: var(--navy); color: var(--white); }
.gia .noi-bat .so, .gia .noi-bat .so small, .gia .noi-bat li, .gia .noi-bat p, .gia .noi-bat h3 { color: var(--white); }
.gia .noi-bat li::before { color: var(--gold); }
@media (max-width: 800px) { .gia { grid-template-columns: 1fr; } .gia > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Hộp ghi chú / cảnh báo nhẹ */
.ghi-chu { border-left: 3px solid var(--gold); background: var(--white); padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; color: var(--ink-2); margin: 24px 0; max-width: var(--prose); }
.ghi-chu strong { color: var(--ink); }

/* Ảnh chụp màn hình */
.anh { margin: 32px 0 0; }
.anh img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); display: block; }
.anh figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }

/* Các bước (chỉ dùng cho nội dung có thứ tự thật) */
.buoc { counter-reset: b; list-style: none; padding: 0; margin: 0; max-width: var(--prose); }
.buoc li { counter-increment: b; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.buoc li::before { content: counter(b); width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.buoc li strong { display: block; margin-bottom: 2px; }
.buoc li span { color: var(--ink-2); }

/* Kêu gọi cuối trang */
.goi { background: var(--navy); color: var(--white); padding: 56px 0; }
.goi h2 { color: var(--white); }
.goi p { color: #d5dde8; max-width: 56ch; }
.goi .nut-phu { color: var(--white); border-color: rgba(255,255,255,.6); }
.goi .nut-phu:hover { background: rgba(255,255,255,.08); }

/* Nhật ký cập nhật */
.nhat-ky { list-style: none; padding: 0; margin: 0; max-width: var(--prose); }
.nhat-ky li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nhat-ky time { color: var(--ink-3); font-size: 14px; padding-top: 3px; }
@media (max-width: 520px) { .nhat-ky li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Chân trang ---------- */
.chan { background: var(--white); border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 14px; color: var(--ink-2); }
.chan .cot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.chan h4 { font-size: 14px; margin-bottom: 10px; color: var(--navy); }
.chan ul { list-style: none; padding: 0; margin: 0; }
.chan li { margin-bottom: 6px; }
.chan a { color: var(--ink-2); text-decoration: none; }
.chan a:hover { color: var(--navy); text-decoration: underline; }
.chan .duoi { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--ink-3); }
@media (max-width: 900px) { .chan .cot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .chan .cot { grid-template-columns: 1fr; } }

/* ---------- Trang 404 ---------- */
.trang-404 { text-align: left; padding: 96px 0; }

/* ---------- In ---------- */
@media print { .dau, .goi, .chan, .hang-nut { display: none; } body { background: #fff; } }
