:root {
  --navy: #22398a;
  --navy-d: #172867;
  --gold: #f3b04c;
  --gold-d: #d9932a;
  --ink: #1d2433;
  --muted: #5d6677;
  --line: #e2e6ef;
  --bg: #ffffff;
  --band: #f5f7fc;
  --ok: #1e7d4f;
  --err: #b42318;
  --r: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: 1.6rem; color: var(--navy-d); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.req { color: var(--err); }

/* Thanh tren */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-d); margin-right: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 1rem; }
.brand small { color: var(--gold-d); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; }
.menu { display: none; gap: 22px; }
.menu a { text-decoration: none; color: var(--ink); font-weight: 500; }
.menu a:hover { color: var(--navy); }

/* Nut */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-gold { background: var(--gold); color: var(--navy-d); }
.btn-gold:hover { background: var(--gold-d); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-d); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-line { border-color: var(--line); background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Anh dau trang */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 78%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,40,103,.15) 0%, rgba(23,40,103,.55) 50%, rgba(23,40,103,.92) 100%); }
.hero-in { position: relative; padding: 48px 0 64px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .85rem; margin: 0 0 10px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); max-width: 760px; font-weight: 800; }
.lead { font-size: 1.08rem; max-width: 620px; opacity: .95; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 639px) {
  .hero { min-height: 0; display: block; padding-top: 290px; background: var(--navy-d); }
  .hero-img { height: 330px; bottom: auto; object-position: 62% 50%; }
  .hero-shade { height: 330px; bottom: auto; background: linear-gradient(180deg, rgba(23,40,103,0) 45%, rgba(23,40,103,.75) 82%, var(--navy-d) 100%); }
  .hero-in { padding: 0 0 56px; }
}

/* So lieu */
.stats { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; margin-top: -32px; position: relative; z-index: 2; }
.stat { background: #fff; border-radius: var(--r); box-shadow: 0 10px 30px rgba(23,40,103,.12); padding: 12px; border-top: 4px solid var(--gold); }
.stat b { display: block; font-size: 1.35rem; color: var(--navy); line-height: 1.2; }
.stat span { color: var(--muted); font-size: .8rem; line-height: 1.3; display: block; }
@media (min-width: 640px) { .stat { padding: 18px 20px; } .stat b { font-size: 1.7rem; } .stat span { font-size: .95rem; } }

/* Khoi */
.section { padding: 64px 0; }
.band { background: var(--band); }
.sec-head { margin-bottom: 24px; }
.two-col { display: grid; gap: 32px; align-items: center; }
.rounded { border-radius: var(--r); }
.shadow { box-shadow: 0 12px 32px rgba(23,40,103,.14); }

/* Loc nhom */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .92rem; cursor: pointer; color: var(--ink); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* The khoa */
.grid-khoa { display: grid; grid-template-columns: 1fr; gap: 10px; }
.khoa { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .2s; }
.khoa:hover { box-shadow: 0 8px 24px rgba(23,40,103,.08); }
.khoa-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.khoa h3 { font-size: 1rem; color: var(--navy-d); margin: 0; }
.badge { flex: none; background: #fff4e0; color: var(--navy-d); border-radius: 999px; padding: 2px 10px; font-size: .85rem; white-space: nowrap; }
.badge b { color: var(--gold-d); font-size: 1.05rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--band); border-radius: 8px; padding: 4px 10px; font-size: .85rem; color: var(--muted); }
.tag b { color: var(--navy); }
.khoa .mota { font-size: .88rem; color: var(--muted); margin: 0; }
.khoa .han { font-size: .85rem; color: var(--err); margin: 0; }
.link-ung { align-self: flex-start; background: none; border: 0; padding: 2px 0; font: inherit; font-weight: 600; font-size: .92rem; color: var(--navy); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-ung:hover { color: var(--gold-d); }

/* Gioi thieu */
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.facts li { background: #fff; border-radius: 10px; padding: 12px 14px; border-left: 4px solid var(--gold); }
.facts b { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; }

/* Thu vien anh */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: .82rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }

/* Bieu mau */
.card { background: #fff; border-radius: var(--r); box-shadow: 0 10px 30px rgba(23,40,103,.08); padding: 22px; }
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 18px; counter-reset: s; }
.steps li { flex: 1; font-size: .85rem; font-weight: 600; color: var(--muted); border-bottom: 3px solid var(--line); padding-bottom: 6px; counter-increment: s; }
.steps li::before { content: counter(s) ". "; }
.steps li.on { color: var(--navy); border-color: var(--gold); }
fieldset { border: 0; padding: 0; margin: 0; }
.row { margin-bottom: 14px; }
.row.two { display: grid; gap: 14px; }
label, .lbl { display: block; font-weight: 500; font-size: .95rem; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #cdd4e2; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
input[type=file] { padding: 9px; background: var(--band); }
.radios { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.radios.col { flex-direction: column; }
.radios label { display: flex; align-items: center; gap: 8px; font-weight: 400; border: 1px solid #cdd4e2; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.radios input { width: auto; margin: 0; }
.radios label:has(input:checked) { border-color: var(--navy); background: #eef1fb; }
.invalid { border-color: var(--err) !important; }
.lbl.invalid-box .radios label { border-color: var(--err); }
.hint { background: #fff8eb; border-left: 4px solid var(--gold); padding: 10px 12px; border-radius: 8px; font-size: .92rem; margin: 0 0 14px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.notice.ok { background: #e7f6ee; color: var(--ok); }
.notice.err { background: #fdecea; color: var(--err); }

/* Lien he */
.contacts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.contacts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contacts span { color: var(--muted); }
.contacts a { font-weight: 600; text-decoration: none; word-break: break-all; }
.warn { background: #fff8eb; border: 1px solid #f6d9a6; border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.map iframe { width: 100%; border: 0; border-radius: var(--r); }
.map iframe { height: 360px; }
.fb { display: flex; justify-content: center; }
.fb-card { display: block; width: 100%; max-width: 500px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 6px 18px rgba(23,40,103,.08); transition: transform .15s, box-shadow .15s; }
.fb-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,40,103,.14); }
.fb-cover { width: 100%; height: 220px; object-fit: cover; }
.fb-body { padding: 18px 20px 22px; }
.fb-page { display: flex; gap: 12px; align-items: center; margin-top: -48px; }
.fb-page img { width: 64px; height: 62px; background: #fff; border-radius: 50%; padding: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.15); flex: none; }
.fb-page div { padding-top: 34px; }
.fb-page b { display: block; color: var(--navy-d); line-height: 1.3; }
.fb-page span { font-size: .88rem; color: var(--muted); }
.fb-body p { margin: 14px 0 16px; color: var(--muted); font-size: .95rem; }
.btn-fb { background: #1877f2; color: #fff; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.socials a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; text-decoration: none; font-size: .92rem; font-weight: 500; }

/* Chan trang */
.foot { background: var(--navy-d); color: #dfe5f5; padding: 28px 0 90px; }
.foot-in { display: flex; gap: 14px; align-items: center; }
.foot img { background: #fff; border-radius: 50%; padding: 2px; }
.foot p { margin: 0; font-size: .9rem; }

/* Nut noi tren dien thoai */
.float-cta { position: fixed; right: 16px; bottom: 16px; z-index: 30; background: var(--gold); color: var(--navy-d); font-weight: 700; text-decoration: none; padding: 13px 20px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }

@media (min-width: 640px) {
  .grid-khoa { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .row.two { grid-template-columns: 1fr 1fr; }
  .card { padding: 30px; }
}
@media (min-width: 960px) {
  .menu { display: flex; }
  .grid-khoa { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .float-cta { display: none; }
  .foot { padding-bottom: 28px; }
}
