/* Trang khóa học — hướng "Bằng chứng và số liệu" (anh Kiên chốt 28/08/2026).
   Nền tối, đúng một màu nhấn vàng hổ phách, mọi thứ trình bày như bảng dữ liệu. */

:root {
  --bg: #0A1114;
  --surface: #121C20;
  --rule: rgba(255,255,255,.10);
  --rule-soft: rgba(255,255,255,.07);
  --ink: #EEF4F4;
  --lead: #C8D6D9;
  --muted: #93A8AD;
  --dim: #7E959B;
  --gold: #F5B93B;
  --gold-mo: rgba(245,185,59,.45);
  --r: 4px;
  --khung: 1120px;
  --le: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

/* Thuộc tính `hidden` phải thắng mọi khai báo display.
   Trình duyệt mặc định cho `[hidden] { display: none }`, nhưng bất kỳ lớp nào đặt
   `display: flex` hay `display: grid` cũng đè được nó vì cùng độ ưu tiên mà đứng
   sau. Trang chuyển khoản có năm màn hình chồng nhau, tất cả cùng lớp `.tt-o`
   display:flex — thiếu dòng này là cả năm hiện cùng lúc. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  /* Chữ thân bài 17px chứ không 16px, và line-height 1.75 chứ không 1.5: tiếng
     Việt có dấu chồng tầng (ổ, ề, ữ), dòng chật là dấu chạm dòng trên. */
  font: 400 17px/1.75 "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;          /* KHÔNG BAO GIỜ dưới 1.15 với chữ có dấu */
  letter-spacing: -0.012em;  /* không siết mạnh hơn -0.015em */
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 700; }
h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; }
h3 { font-size: clamp(19px, 2.4vw, 22px); font-weight: 600; }
p { margin: 0; }
img { max-width: 100%; height: auto; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: #FFD98A; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.nhan { font-size: 12px; letter-spacing: .16em; color: var(--dim); }
.phu { color: var(--muted); }
.dan { font-size: clamp(17px, 2.2vw, 20px); color: var(--lead); }
.dan-nho { color: var(--muted); margin-top: 12px; max-width: 62ch; }
b, strong { font-weight: 600; }
.vang { color: var(--gold); }

/* Chữ số thẳng hàng như bảng số liệu trong bài báo. */
.gia-lon, .gia-gach, .gia-so, .so, .stt, .lich-ngay, .buoi-so, .buoi-ngay, .dem {
  font-variant-numeric: tabular-nums;
}

/* ── Nút ─────────────────────────────────────────────────────────────────── */
.nut {
  display: inline-block;
  background: var(--gold);
  color: #0A1114;
  font-weight: 700;
  border: 0;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .15s;
}
.nut:hover { background: #FFD98A; color: #0A1114; transform: translateY(-1px); }
.nut:active { transform: none; }
.nut-nho { padding: 9px 20px; font-size: 14px; }
/* Vùng bấm không dưới 44px — 48% rơi rụng trên điện thoại là do bấm trượt. */
.nut-to { padding: 17px 40px; font-size: 18px; min-height: 52px; }

/* ── Thanh trên ──────────────────────────────────────────────────────────── */
.thanh-tren {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px var(--le);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,17,20,.92);
  backdrop-filter: blur(10px);
}
.hieu { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 15px; }
.hieu svg { width: 20px; height: 20px; color: var(--gold); }
.thanh-tren nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.thanh-tren nav a { color: var(--muted); }
.thanh-tren nav a:hover { color: var(--ink); }
.thanh-tren nav a.nut { color: #0A1114; }
@media (max-width: 860px) { .thanh-tren nav a:not(.nut) { display: none; } }

/* ── Dải báo đợt đã đóng ─────────────────────────────────────────────────── */
.bang-dong {
  padding: 14px var(--le);
  background: rgba(245,185,59,.10);
  border-bottom: 1px solid var(--gold-mo);
  color: var(--lead); font-size: 16px;
}

/* ── Bố cục chung ────────────────────────────────────────────────────────── */
main { max-width: var(--khung); margin: 0 auto; padding: 0 var(--le); }
.khoi { padding-top: clamp(48px, 7vw, 72px); }
.khoi > h2 + .luoi-2,
.khoi > h2 + .luoi-4,
.khoi > h2 + .ds-buoi,
.khoi > h2 + .ds-faq,
.khoi > h2 + .hp,
.khoi > h2 + .gv,
.khoi > h2 + .form { margin-top: 28px; }
.dan-nho + .ds-buoi, .dan-nho + .form { margin-top: 24px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1.45fr 1fr;
  align-items: start;
  padding-top: clamp(40px, 6vw, 60px);
}
.hero-chu { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero-chu .phu { max-width: 60ch; }
.gia-hero { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.gia-lon { font-size: clamp(34px, 5vw, 48px); font-weight: 700; color: var(--gold); line-height: 1.15; }
.gia-gach { font-size: 18px; color: var(--dim); text-decoration: line-through; }
.tran-an { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

/* ── Bảng lịch ───────────────────────────────────────────────────────────── */
.bang { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
.bang-dau {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--rule);
}
.bang-phu { font-size: 13px; color: var(--muted); }
.lich-hang {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 22px; border-bottom: 1px solid var(--rule-soft);
}
.lich-hang:last-child { border-bottom: 0; }
.lich-ngay { font-size: 17px; font-weight: 600; min-width: 105px; }
.lich-thu { font-size: 14px; color: var(--dim); }
.stt { font-size: 13px; font-weight: 600; color: var(--dim); min-width: 24px; }
.stt.nay, .buoi-so.nay { color: var(--gold); }

/* ── Dải số liệu ─────────────────────────────────────────────────────────── */
.dai-so {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: clamp(48px, 7vw, 64px);
  padding: 36px var(--le);
  background: var(--surface);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.so { font-size: clamp(30px, 4vw, 40px); font-weight: 700; color: var(--gold); line-height: 1.15; }
.so-nhan { font-size: 14px; color: var(--muted); }

/* ── Câu hỏi mở đầu ──────────────────────────────────────────────────────── */
.chao { font-size: 18px; font-weight: 600; color: var(--gold); }
.luoi-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 clamp(24px, 4vw, 56px); margin-top: 20px; }
@media (max-width: 760px) { .luoi-2 { grid-template-columns: 1fr; } }
.hoi-dau, .loi-hang {
  display: flex; gap: 14px; padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.luoi-2.co-vien > :last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 761px) {
  .luoi-2.co-vien > :nth-last-child(2) { border-bottom: 1px solid var(--rule); }
}
.gach { color: var(--gold); }
.ket { font-size: clamp(20px, 3vw, 24px); font-weight: 700; margin-top: 24px; }

/* ── Thẻ ─────────────────────────────────────────────────────────────────── */
.luoi-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.the {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
}
.the .stt { color: var(--gold); }
.the-dt { font-size: 18px; font-weight: 600; }
.the-phu { font-size: 14px; color: var(--muted); line-height: 1.6; }
.phan-de {
  margin-top: 22px; padding: 4px 0 4px 20px;
  border-left: 2px solid var(--dim); color: var(--muted); font-size: 16px;
}

/* ── Chương trình ────────────────────────────────────────────────────────── */
.ds-buoi { border-top: 1px solid var(--rule); }
.buoi {
  display: grid; grid-template-columns: 190px 1fr; gap: clamp(16px, 3vw, 32px);
  padding: 26px 0; border-bottom: 1px solid var(--rule-soft);
}
.buoi:last-child { border-bottom: 1px solid var(--rule); }
.buoi-so { font-size: 28px; font-weight: 700; color: var(--dim); line-height: 1.2; }
.buoi-ngay { font-size: 16px; font-weight: 600; margin-top: 2px; }
.buoi-gio { font-size: 14px; color: var(--dim); }
.buoi-muc { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.muc { display: flex; gap: 12px; font-size: 16px; color: var(--lead); }
.cham { color: var(--gold); }
.nhan-bt {
  display: inline-block; margin-top: 14px; padding: 5px 12px;
  font-size: 14px; font-weight: 600; color: var(--gold);
  border: 1px solid var(--gold-mo); border-radius: var(--r);
}
@media (max-width: 760px) {
  .buoi { grid-template-columns: 1fr; gap: 12px; }
  .buoi-trai { display: flex; align-items: baseline; gap: 12px; }
  .buoi-so { font-size: 20px; }
  .buoi-gio { margin-left: auto; }
}

/* ── Giảng viên ──────────────────────────────────────────────────────────── */
.gv { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 40px); align-items: start; }
.gv-anh { border-radius: var(--r); border: 1px solid var(--rule); object-fit: cover; width: 148px; height: 148px; }
.gv-chu { display: flex; flex-direction: column; gap: 12px; }
.gv-chu .phu { max-width: 78ch; }
.hv { border-top: 1px solid var(--rule); margin-top: 4px; }
.hv-hang { display: flex; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--rule-soft); font-size: 16px; }
.hv-hang:last-child { border-bottom: 0; }
.hv-nhan { min-width: 168px; color: var(--dim); flex-shrink: 0; }
@media (max-width: 620px) {
  .gv { grid-template-columns: 1fr; }
  .hv-hang { flex-direction: column; gap: 2px; }
  .hv-nhan { min-width: 0; font-size: 13px; }
}

/* ── Học phí ─────────────────────────────────────────────────────────────── */
.hp { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .hp { grid-template-columns: 1fr; } }
.hp-bang { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); }
.gia-ds { margin-top: 18px; }
.gia-hang {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 12px 0; border-bottom: 1px solid var(--rule-soft); font-size: 16px;
}
.gia-hang:last-child { border-bottom: 0; }
.gia-so { color: var(--dim); white-space: nowrap; }
.tang { color: var(--gold); }
.gia-ket {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rule);
  font-size: 18px; font-weight: 600;
}
.cam-ket {
  border: 1px solid var(--gold); border-radius: var(--r);
  padding: clamp(22px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 14px;
}
.cam-ket .ico { width: 30px; height: 30px; color: var(--gold); }
.cam-ket .ico svg { width: 100%; height: 100%; }
.cam-ket p { color: var(--muted); }
.cam-ket b { color: var(--gold); font-weight: 600; }

/* ── Form ────────────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.form input {
  font: inherit; font-size: 17px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 14px 16px; min-height: 52px;
}
.form input::placeholder { color: #5D7278; }
.form input:focus { border-color: var(--gold); }
.form .nut-to { width: 100%; }
.loi {
  color: #FF9F8A; font-size: 15px;
  border-left: 2px solid #FF9F8A; padding-left: 14px;
}

/* ── Hỏi đáp ─────────────────────────────────────────────────────────────── */
.ds-faq { border-top: 1px solid var(--rule); }
.faq { border-bottom: 1px solid var(--rule-soft); }
.faq:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; gap: 18px; align-items: baseline;
  padding: 18px 0; font-size: 18px; font-weight: 600;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .stt { color: var(--gold); }
.faq p { padding: 0 0 20px 42px; color: var(--muted); }
@media (max-width: 620px) { .faq p { padding-left: 0; } }

/* ── Khối chốt ───────────────────────────────────────────────────────────── */
.chot {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(24px, 4vw, 48px); flex-wrap: wrap;
  margin-top: clamp(48px, 7vw, 72px);
  padding: clamp(32px, 5vw, 52px) var(--le);
  background: var(--surface);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.chot > div { display: flex; flex-direction: column; gap: 10px; }
.chot .phu { max-width: 56ch; }
.chot-phai { align-items: flex-start; gap: 14px; }
.dem { display: flex; gap: 8px; }
.dem-o { text-align: center; }
.dem-so {
  font-size: 24px; font-weight: 700; line-height: 1.2;
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 8px 14px; min-width: 52px;
}
.dem-nhan { font-size: 11px; letter-spacing: .12em; color: var(--dim); margin-top: 5px; }

/* ── Chân trang ──────────────────────────────────────────────────────────── */
footer {
  max-width: var(--khung); margin: 0 auto;
  padding: clamp(32px, 5vw, 44px) var(--le) clamp(40px, 6vw, 56px);
}
footer .phu { font-size: 15px; margin-top: 8px; }
footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
footer a:hover { color: var(--gold); }

/* ── Thanh dính đáy màn hình (chỉ điện thoại) ────────────────────────────── */
.dinh { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: 84px; }
  .dinh {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(10,17,20,.94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule);
  }
  .dinh-gia { display: flex; flex-direction: column; flex-shrink: 0; line-height: 1.25; }
  .dinh-gia b { font-size: 19px; color: var(--gold); }
  .dinh-gia span { font-size: 11px; color: var(--dim); }
  .dinh-nut { flex-grow: 1; padding: 13px 0; font-size: 15px; min-height: 48px; }
  .o-vuong {
    width: 48px; height: 48px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.2); border-radius: 6px; color: var(--ink);
  }
  .o-vuong svg { width: 21px; height: 21px; }
}
