:root {
  --primary: #C8481A;
  --primary-d: #A93B12;
  --accent: #D9531E;
  --ink: #1F3B5C;
  --muted: #5F6F85;
  --line: #EADFD3;
  --bg: #FFF9F2;
  --card: #fff;
  --ok: #16a34a;
  --err: #dc2626;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Nunito', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; font-weight: 800; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grow { flex: 1; }
.inline { display: inline; }

.btn { display: inline-block; background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; }
.btn:hover { background: var(--primary-d); text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 14px; }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn-block { display: block; width: 100%; margin: 8px 0; }
.btn-ghost { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: #FFF4E6; }
.link-btn { background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; padding: 0; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { font-weight: 800; font-size: 18px; color: var(--ink); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-img { display: block; height: 44px; width: auto; }
.footer-logo { display: block; height: 52px; width: auto; margin-bottom: 8px; }
.main-nav { display: flex; align-items: center; gap: 18px; font-size: 15px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a { color: var(--ink); }
.main-nav .btn { color: #fff; }

.hero { background: linear-gradient(135deg, #1F3B5C, #2B5080 70%, #3A689E); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 56px 16px; align-items: center; }
.hero h1 { font-size: 40px; margin: 0 0 16px; }
.lead { font-size: 18px; opacity: .95; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .btn { background: var(--accent); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero-points li { background: rgba(255,255,255,.12); border-radius: var(--radius); padding: 14px 18px; font-size: 17px; }
.hero-points b { font-size: 28px; margin-right: 8px; color: #F6B73C; }

.exam-pills { display: flex; gap: 12px; flex-wrap: wrap; }
.exam-pill { padding: 14px 28px; border-radius: 999px; font-weight: 700; color: #fff; font-size: 17px; }
.exam-timo { background: #2563eb; } .exam-sasmo { background: #7c3aed; } .exam-kangaroo { background: #059669; } .exam-asmo { background: #ea580c; }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.course-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.course-card:hover { text-decoration: none; box-shadow: 0 8px 24px rgba(15,23,42,.08); transform: translateY(-2px); }
.course-thumb { aspect-ratio: 16/9; color: #fff; display: grid; place-items: center; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-text { text-align: center; }
.thumb-text span { display: block; font-size: 34px; font-weight: 800; letter-spacing: 1px; }
.thumb-text small { font-size: 16px; opacity: .9; }
.course-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.course-body h3 { margin: 4px 0 0; font-size: 18px; }
.course-body p { margin: 0; font-size: 14px; flex: 1; }
.tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tag { background: #FFE9DC; color: var(--primary-d); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.tag-soft { background: #f1f5f9; color: #334155; }
.tag-free { background: #dcfce7; color: #166534; }
.price strong { font-size: 20px; color: var(--accent); }
.price s { color: var(--muted); margin-left: 8px; font-size: 14px; }

.filters { display: grid; gap: 10px; margin-bottom: 24px; }
.filter-label { font-weight: 600; margin-right: 6px; }
.chip { display: inline-block; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); margin: 2px; font-size: 14px; }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.course-hero { background: #1F3B5C; color: #fff; }
.course-hero-inner { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 40px 16px; align-items: start; }
.course-hero h1 { font-size: 32px; margin: 12px 0; }
.course-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; list-style: none; color: #cbd5e1; }
.course-facts li::before { content: '✓ '; color: #4ade80; }
.buy-box { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.video-box { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #1e293b; margin-bottom: 12px; }
.video-box iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder { height: 100%; display: grid; place-items: center; color: #94a3b8; font-size: 18px; }
.course-main { max-width: 800px; margin-left: max(16px, calc((100% - 1140px) / 2)); }
.prose { font-size: 16px; }
.prose li { margin: 4px 0; }
.curriculum details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.curriculum summary { padding: 14px 16px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.curriculum ul { list-style: none; margin: 0; padding: 0 16px 10px; }
.curriculum li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #f1f5f9; font-size: 15px; }
.lesson-icon { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 6px; background: #FFF4E6; color: var(--primary); font-size: 12px; flex: none; }
.li-exam { background: #fff7ed; color: var(--accent); }

.auth-box { max-width: 440px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.auth-box h1 { margin-top: 0; font-size: 24px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.form input:focus, .form select:focus { outline: 2px solid #F6B73C; border-color: var(--primary); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

.flash { padding: 12px 14px; border-radius: 8px; margin: 12px 0; font-size: 15px; }
.flash-error { background: #fef2f2; color: var(--err); border: 1px solid #fecaca; }
.flash-success { background: #f0fdf4; color: var(--ok); border: 1px solid #bbf7d0; }
.flash-info { background: #FFF4E6; color: var(--primary-d); }
.notice { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 14px 16px; margin: 16px 0; }

.kv { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; }
.kv th, .kv td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.kv th { width: 40%; color: var(--muted); font-weight: 500; }
.big-code { font-size: 20px; font-weight: 700; background: #f1f5f9; padding: 4px 10px; border-radius: 6px; letter-spacing: 1px; }

.page-head { display: flex; justify-content: space-between; align-items: baseline; }
.empty { text-align: center; padding: 40px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.my-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.my-course { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.my-course h3 { margin: 8px 0; font-size: 17px; }
.my-course.expired { opacity: .7; }
.progress { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--ok); }

.learn { display: grid; grid-template-columns: 320px 1fr; min-height: calc(100vh - 64px); }
.learn-side { background: #fff; border-right: 1px solid var(--line); padding: 16px 0; overflow-y: auto; max-height: calc(100vh - 64px); position: sticky; top: 64px; }
.learn-course { display: block; padding: 0 16px 12px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.learn-chapter-title { padding: 12px 16px 4px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.learn-side ul { list-style: none; margin: 0; padding: 0; }
.learn-side li a { display: flex; gap: 8px; align-items: center; padding: 8px 16px; color: var(--ink); font-size: 14px; }
.learn-side li a span:nth-child(2) { flex: 1; }
.learn-side li.current a { background: #FFF4E6; font-weight: 600; border-left: 3px solid var(--primary); }
.learn-side li.locked a { color: var(--muted); }
.learn-main { padding: 28px 32px; max-width: 900px; }
.lesson-box { aspect-ratio: 16/9; background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--radius); display: grid; place-items: center; text-align: center; padding: 24px; }
.locked-box { background: #f8fafc; }
.lesson-nav { display: flex; justify-content: space-between; margin-top: 20px; }

.site-footer { background: #1F3B5C; color: #cbd5e1; margin-top: 48px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding: 32px 16px; flex-wrap: wrap; }
.site-footer strong { color: #fff; }
.site-footer nav { display: grid; gap: 6px; }
.site-footer a { color: #cbd5e1; }
.messenger-btn { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #0084ff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.messenger-btn:hover { text-decoration: none; }

@media (max-width: 860px) {
  .hero-inner, .course-hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .learn { grid-template-columns: 1fr; }
  .learn-side { position: static; max-height: none; border-right: 0; border-top: 1px solid var(--line); order: 2; }
  .learn-main { padding: 20px 16px; }
  .main-nav { gap: 10px; font-size: 14px; }
  .logo { font-size: 15px; }
}

/* ---------- Bước 2: lớp học ---------- */
.btn-disabled { background: #e2e8f0; color: var(--muted); cursor: not-allowed; }
.btn-disabled:hover { background: #e2e8f0; }
.learn-progress { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.learn-side li.done .tick { color: var(--ok); font-weight: 800; }
.learn-side li.done a span:nth-child(2) { color: var(--muted); }

.player { position: relative; background: #0f1b2b; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; user-select: none; }
.player video { width: 100%; height: 100%; display: block; background: #0f1b2b; }
.player .wm { position: absolute; top: 12%; left: 8%; color: rgba(255,255,255,.42); font-size: 15px; font-weight: 700; pointer-events: none; text-shadow: 0 0 3px rgba(0,0,0,.6); transition: top 1.2s ease, left 1.2s ease; white-space: nowrap; z-index: 2; }
.player .fs-btn { position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(31,59,92,.75); color: #fff; border: 0; border-radius: 8px; width: 38px; height: 38px; font-size: 20px; cursor: pointer; opacity: .8; }
.player .fs-btn:hover { opacity: 1; }
.player:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.player:fullscreen .wm { font-size: 22px; }

.lesson-text, .lesson-note { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-top: 16px; }
.done-form { margin-top: 16px; }
.done-note { color: var(--ok); font-weight: 700; margin-top: 16px; }
.pdf-box { display: inline-flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin-top: 16px; color: var(--ink); }
.pdf-box:hover { border-color: var(--primary); text-decoration: none; }
.pdf-box span:last-child { display: grid; }
.pdf-ic { background: #D9531E; color: #fff; font-weight: 800; font-size: 12px; border-radius: 6px; padding: 8px 7px; }

/* Câu hỏi */
.quiz { display: grid; gap: 16px; margin-top: 12px; }
.q { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; scroll-margin-top: 140px; }
.q-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.q-no { font-weight: 800; color: var(--primary); }
.q-hint { font-size: 13px; background: #FFF4E6; color: var(--primary-d); padding: 1px 8px; border-radius: 6px; }
.q-pts { margin-left: auto; font-size: 13px; color: var(--muted); }
.q-body { white-space: pre-line; font-size: 17px; }
.q-img { display: block; max-width: 100%; max-height: 360px; margin: 10px 0; border-radius: 8px; }
.q-opts { display: grid; gap: 8px; margin-top: 12px; }
.q-opts.tf { grid-template-columns: 1fr 1fr; }
.q-opt { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; font-size: 16px; }
.q-opt:hover { border-color: #F6B73C; }
.q-opt:has(input:checked) { border-color: var(--primary); background: #FFF4E6; }
.q-opt input { accent-color: var(--primary); width: 18px; height: 18px; margin: 0; }
.q-opt b { color: var(--primary); }
.q-fill input { font: inherit; font-size: 17px; padding: 10px 14px; border: 1.5px solid #cbd5e1; border-radius: 10px; width: 100%; max-width: 320px; margin-top: 10px; }
.q-fill input:focus { outline: 2px solid #F6B73C; border-color: var(--primary); }
.review .q-opt { cursor: default; }
.review .q-opt.right { border-color: var(--ok); background: #f0fdf4; }
.review .q-opt.wrong { border-color: var(--err); background: #fef2f2; }
.review .q-opt em { margin-left: auto; font-size: 12px; font-style: normal; color: var(--muted); }
.review.is-right { border-left: 4px solid var(--ok); }
.review.is-wrong { border-left: 4px solid var(--err); }
.review.is-blank { border-left: 4px solid #F6B73C; }
.q-mark { font-weight: 700; font-size: 14px; }
.q-mark.ok, .okc { color: var(--ok); }
.q-mark.bad, .badc { color: var(--err); }
.q-mark.blank { color: #b45309; }
.q-answer { margin-top: 10px; display: grid; gap: 4px; }
.q-explain { margin-top: 12px; background: #FFF9F2; border: 1px dashed #F6B73C; border-radius: 10px; padding: 12px 14px; }
.q-explain .q-body { font-size: 15px; }

.history { margin: 12px 0; padding: 12px 16px; }
.history h3 { margin: 0 0 6px; font-size: 16px; }
.history .kv { margin: 0; }
.history .kv td { padding: 6px 8px 6px 0; font-size: 14px; }
.exam-intro { margin-top: 12px; }
.exam-facts { list-style: none; padding: 0; margin: 0 0 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.exam-facts li { background: #FFF4E6; border-radius: 10px; padding: 10px 18px; font-size: 15px; }
.exam-facts b { font-size: 22px; color: var(--primary); margin-right: 4px; }

/* Đang thi */
.exam-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }
.exam-bar { position: sticky; top: 64px; z-index: 8; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); display: flex; align-items: center; gap: 16px; padding: 10px 16px; box-shadow: 0 4px 16px rgba(31,59,92,.08); }
.exam-title { display: grid; flex: 1; min-width: 0; }
.exam-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); background: #FFF4E6; border-radius: 10px; padding: 4px 14px; }
.timer.warn { color: #fff; background: var(--accent); }
.exam-body { display: grid; grid-template-columns: 200px 1fr; gap: 20px; margin-top: 16px; align-items: start; }
.qnav { position: sticky; top: 150px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.qnav a { display: grid; place-items: center; height: 32px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 700; }
.qnav a:hover { border-color: var(--primary); text-decoration: none; }
.qnav a.answered { background: #1F3B5C; border-color: #1F3B5C; color: #fff; }

/* Kết quả */
.result-card { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; background: #1F3B5C; color: #fff; border-radius: var(--radius); padding: 22px 26px; margin: 12px 0; }
.score b { font-size: 46px; font-weight: 800; color: #FF7A3D; }
.score span { font-size: 18px; margin-left: 6px; }
.result-facts { display: grid; gap: 4px; flex: 1; min-width: 200px; }
.result-facts .muted { color: #cbd5e1; }
.medal { display: grid; text-align: center; border-radius: 12px; padding: 10px 18px; background: rgba(255,255,255,.12); }
.medal span { font-size: 12px; opacity: .85; }
.medal b { font-size: 18px; }
.medal-gold b { color: #F6B73C; }
.medal-silver b { color: #E2E8F0; }
.medal-bronze b { color: #F0A070; }
.medal-hm b { color: #9FE3D9; }
.bars { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.bars td { padding: 6px 8px 6px 0; font-size: 14px; }
.bname { width: 32%; font-weight: 600; }
.bnum { width: 26%; text-align: right; color: var(--muted); white-space: nowrap; }
.progress-bar.good { background: var(--ok); }
.progress-bar.mid { background: #F6B73C; }
.progress-bar.low { background: var(--accent); }
.card h3 { margin: 4px 0 10px; font-size: 16px; }
.tip { background: #FFF4E6; border-radius: 8px; padding: 10px 12px; margin: 8px 0 0; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.congrats { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 20px; }
.congrats .big { font-size: 56px; }
.congrats ul { text-align: left; display: inline-block; }
.cert-btn { margin-right: 6px; }

@media (max-width: 860px) {
  .exam-body { grid-template-columns: 1fr; }
  .qnav { position: static; grid-template-columns: repeat(10, 1fr); }
  .exam-bar { top: 0; gap: 10px; }
  .timer { font-size: 20px; padding: 4px 10px; }
  .q-opts.tf { grid-template-columns: 1fr; }
  .score b { font-size: 36px; }
  .bname { width: 40%; }
}

/* ---------- Bước 3: thanh toán ---------- */
.coupon-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 16px; }
.coupon-form input { font: inherit; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; min-width: 220px; text-transform: uppercase; }
.coupon-form input::placeholder { text-transform: none; }
.pay-box { display: grid; grid-template-columns: 280px 1fr; gap: 24px; background: #fff; border: 2px solid #F6B73C; border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.pay-qr { text-align: center; }
.pay-qr img { width: 100%; max-width: 260px; height: auto; border-radius: 8px; background: #FFF4E6; }
.pay-info h3 { margin: 0 0 4px; font-size: 16px; }
.pay-info .kv { margin: 8px 0; }
.pay-info .kv th { width: 34%; }
.copy { font: inherit; font-size: 12px; font-weight: 600; color: var(--primary); background: #FFF4E6; border: 1px solid #F6B73C; border-radius: 6px; padding: 2px 8px; cursor: pointer; margin-left: 6px; }
.pay-wait { font-weight: 700; color: #2A9D8F; margin: 8px 0 0; }
@media (max-width: 640px) {
  .pay-box { grid-template-columns: 1fr; padding: 14px; }
}

/* ---------- Bước 4: trợ giúp, blog ---------- */
.h-sm { font-size: 18px; margin: 24px 0 10px; }
.pre { white-space: pre-line; }
.help-context { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; background: #FFF4E6; border: 1px solid #F6D3B5; border-radius: 10px; padding: 10px 14px; margin: 8px 0 16px; }
.help-search { display: flex; gap: 8px; margin: 12px 0 8px; }
.help-search input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 1.5px solid #cbd5e1; border-radius: 10px; background: #fff; font-size: 16px; }
.help-search input:focus { outline: 2px solid #F6B73C; border-color: var(--primary); }
.faq-list { margin-bottom: 8px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; }
.faq summary { cursor: pointer; padding: 12px 16px; font-weight: 700; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 10px; font-size: 20px; color: var(--primary); }
.faq[open] summary::after { content: '−'; }
.faq-answer { padding: 0 16px 12px; font-size: 15px; }
.faq-answer p:first-child { margin-top: 0; }
.ask { margin-top: 32px; }
.ask-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; align-items: start; }
.ask-grid .card:only-child { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask-lesson { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 8px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }
.ticket { margin: 12px 0; }
.ticket-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ticket-img { display: block; max-width: 280px; max-height: 280px; border-radius: 8px; border: 1px solid var(--line); margin: 8px 0; }
.ticket-reply { background: #FFF4E6; border-radius: 8px; padding: 10px 14px; margin-top: 10px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); display: flex; flex-direction: column; }
.post-card:hover { text-decoration: none; box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.post-thumb { aspect-ratio: 1200/630; background: linear-gradient(135deg, #1F3B5C, #2B5080); display: grid; place-items: center; color: #FF7A3D; font-weight: 800; font-size: 22px; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 14px 16px 16px; }
.post-body h3 { margin: 4px 0 6px; font-size: 18px; }
.post-body p { margin: 0; font-size: 14px; }
.post { max-width: 780px; }
.post h1 { font-size: 34px; margin: 8px 0; }
.crumbs a { color: var(--muted); }
.post-cover { width: 100%; border-radius: var(--radius); margin: 8px 0 16px; }
.post-content { font-size: 17px; line-height: 1.7; }
.post-content h2 { margin-top: 32px; }
.post-content img { border-radius: 8px; }
.post-content table { border-collapse: collapse; width: 100%; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 6px 10px; }
.post-content blockquote { margin: 16px 0; padding: 4px 16px; border-left: 4px solid #F6B73C; background: #FFF9F2; }
.post-cta { margin: 32px 0; }
.post-cta-plain { background: #1F3B5C; color: #fff; border-radius: var(--radius); padding: 24px; text-align: center; }
.post-cta-plain h2 { margin-top: 0; }
.post-cta-plain .btn { background: #FF7A3D; }
@media (max-width: 860px) {
  .ask-grid { grid-template-columns: 1fr; }
  .post h1 { font-size: 26px; }
}

/* Trang thông tin (Giới thiệu, Điều khoản, Bảo mật…) */
.info-page { line-height: 1.7; }
.info-page h2 { margin-top: 28px; font-size: 21px; }
.info-page table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.info-page th, .info-page td { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; text-align: left; }
.info-page th { background: #FFF4E6; }
mark.todo { background: #F6B73C; color: #1F3B5C; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.footer-biz { font-size: 13px; line-height: 1.6; margin-top: 8px; max-width: 460px; }
.footer-biz div { margin: 0; }
.consent { display: flex !important; grid-template-columns: none; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.consent input { margin-top: 4px; flex: none; width: auto; }
