/* =====================================================================
   Website du học Hàn Quốc — giao diện công khai
   ===================================================================== */
:root {
  --ink: #14112b;
  --ink-2: #47435f;
  --muted: #77738f;
  --bg: #fcfbff;
  --soft: #f4f1ff;
  --line: #e9e5f6;
  --white: #fff;
  --violet: #6d4aff;
  --violet-d: #5233e6;
  --pink: #ff4d8d;
  --orange: #ff8a3d;
  --teal: #12b5a6;
  --night: #1b1446;
  --ok: #0f9f6e;
  --grad: linear-gradient(120deg, #6d4aff 0%, #b13dff 42%, #ff4d8d 72%, #ff8a3d 100%);
  --shadow: 0 1px 2px rgba(20, 17, 43, .04), 0 8px 28px rgba(20, 17, 43, .07);
  --shadow-lg: 0 20px 60px rgba(27, 20, 70, .18);
  --r: 20px;
  --r-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(109, 74, 255, .32); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(177, 61, 255, .4); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-outline { background: var(--white); border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--violet); color: var(--violet); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px;
}
.eyebrow.light { background: none; color: #ffb4d0; -webkit-text-fill-color: #ffb4d0; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  background: var(--soft); color: var(--violet-d); font-size: 12.5px; font-weight: 600;
}
.chip-ok { background: #e3f8ef; color: var(--ok); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: 13.5px; font-weight: 600; color: #fff;
}

/* ---------- Thanh điều hướng ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(252, 251, 255, .82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(20, 17, 43, .05); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad);
  color: #fff; font-size: 19px; box-shadow: 0 6px 16px rgba(109, 74, 255, .35);
}
.logo-light { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--soft); }
.nav-links a.on { color: var(--violet-d); background: var(--soft); font-weight: 600; }
.nav-cta { margin-left: 8px; padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; font-size: 22px; color: var(--ink); cursor: pointer; }

/* ---------- Hero (nền sáng, ảnh thật) ---------- */
.hero { position: relative; background: linear-gradient(180deg, #fff6ef 0%, #fbf8ff 100%); color: var(--ink); overflow: hidden; padding: 64px 0 88px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); }
.b1 { width: 460px; height: 460px; background: #e6dcff; top: -160px; left: -120px; opacity: .9; }
.b2 { width: 420px; height: 420px; background: #ffd9e6; bottom: -200px; right: 22%; opacity: .8; }
.b3 { width: 340px; height: 340px; background: #ffe2c7; top: 0; right: -100px; opacity: .8; }
.hero-kr {
  position: absolute; left: -1%; bottom: -70px; font-size: 280px; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(109, 74, 255, .08); letter-spacing: -.04em;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero .pill { background: #fff; border-color: var(--line); color: var(--violet-d); box-shadow: var(--shadow); }
.hero .pill .ic { color: var(--pink); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; margin: 20px 0 18px; letter-spacing: -.035em; }
.hero-sub { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-cta.center { justify-content: center; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; max-width: 600px; }
.hero-stats div { padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.hero-stats strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.hero-visual { position: relative; }
.hero-collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 560px; }
.hero-collage figure { position: relative; margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--soft); }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .hc-main { grid-row: 1 / 3; border-radius: 32px; }
.hero-collage figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(255, 255, 255, .92); color: var(--ink); backdrop-filter: blur(6px);
}
.float-card {
  position: absolute; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .97); color: var(--ink); box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite;
}
.float-card .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--soft); color: var(--violet); }
.float-card strong { display: block; font-size: 14.5px; }
.float-card span { font-size: 12.5px; color: var(--muted); }
.fc1 { left: -38px; top: 14%; }
.fc2 { left: -30px; bottom: 9%; animation-delay: -2.5s; }
.fc2 .ic { background: #ffe9f1; color: var(--pink); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Dải trường chạy ---------- */
.marquee { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: slide 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 700; color: var(--ink-2); white-space: nowrap; font-size: 17px; }
.marquee em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 13px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Khối nội dung ---------- */
.sec { padding: 88px 0; }
.sec-tight { padding: 40px 0 80px; }
.sec-tight-top { padding-top: 0; }
.sec-soft { background: var(--soft); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; max-width: 760px; }
.sec-head p { color: var(--ink-2); margin-top: 12px; max-width: 620px; font-size: 17px; }

.tone-violet { --tone: #6d4aff; --tone-soft: #efeaff; }
.tone-pink { --tone: #ff4d8d; --tone-soft: #ffe9f1; }
.tone-orange { --tone: #ff7a29; --tone-soft: #fff0e5; }
.tone-teal { --tone: #12b5a6; --tone-soft: #e0f7f4; }

/* Chương trình: thẻ có ảnh */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card {
  position: relative; display: flex; flex-direction: column; border-radius: 24px; background: var(--white);
  border: 1px solid var(--line); color: var(--ink); transition: transform .2s, box-shadow .2s; overflow: hidden;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pg-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tone-soft); }
.pg-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.program-card:hover .pg-photo img { transform: scale(1.05); }
.pg-code {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: #fff; color: var(--tone); font-size: 13px; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.pg-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.program-card h3 { font-size: 23px; margin-bottom: 8px; }
.program-card p { color: var(--ink-2); font-size: 15px; }
.program-card ul { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 8px; }
.program-card li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; background: var(--bg); border-radius: 12px; font-size: 14px; }
.program-card li span { color: var(--muted); }
.program-card li strong { text-align: right; font-weight: 600; }
.pg-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--tone); }

/* Lý do: ảnh tư vấn + 4 thẻ */
.why-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.why-photo { position: relative; }
.why-photo img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.why-badge {
  position: absolute; right: -20px; bottom: 32px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow-lg);
}
.why-badge .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--grad); color: #fff; }
.why-badge strong { display: block; }
.why-badge span { font-size: 13px; color: var(--muted); }
.why-wrap .sec-head { margin-bottom: 28px; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why-card { padding: 22px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.why-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; margin-bottom: 14px; }
.why-ic .ic { width: 22px; height: 22px; }
.why-card h3 { font-size: 17px; margin-bottom: 6px; }
.why-card p { color: var(--ink-2); font-size: 14.5px; }

/* Cuộc sống du học */
.life-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 16px; }
.life-card { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: var(--soft); }
.life-card.big { grid-row: 1 / 3; }
.life-card:nth-child(4) { grid-column: 2 / 4; }
.life-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.life-card:hover img { transform: scale(1.05); }
.life-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 18px; color: #fff;
  background: linear-gradient(180deg, rgba(15, 11, 43, 0), rgba(15, 11, 43, .88) 60%); text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.life-card strong { display: block; font-size: 18px; }
.life-card span { font-size: 14px; opacity: .85; }

/* Thẻ trường */
.school-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.school-card {
  display: flex; flex-direction: column; border-radius: var(--r); background: var(--white); border: 1px solid var(--line);
  overflow: hidden; color: var(--ink); transition: transform .2s, box-shadow .2s;
}
.school-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sc-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--tone-soft), #fff); display: grid; place-items: center; overflow: hidden; }
.sc-media img { width: 100%; height: 100%; object-fit: cover; }
.sc-mono { font-size: 40px; font-weight: 800; color: var(--tone); opacity: .9; letter-spacing: -.02em; }
.sc-media .chip { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.sc-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 16px; }
.sc-body h3 { font-size: 17px; }
.sc-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.sc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 16px; font-size: 13px; color: var(--ink-2); }
.sc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.sc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); margin-top: auto; }
.sc-foot small { display: block; font-size: 12px; color: var(--muted); }
.sc-foot strong { display: block; font-size: 15.5px; }
.sc-go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); color: var(--violet); flex: none; transition: background .2s, color .2s; }
.school-card:hover .sc-go { background: var(--violet); color: #fff; }

/* Banner kiểm tra điều kiện: ảnh giảng đường + lớp phủ */
.check-banner {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; padding: 48px; border-radius: 32px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(110deg, rgba(43, 26, 120, .94) 0%, rgba(109, 74, 255, .82) 55%, rgba(255, 77, 141, .55) 100%), var(--photo) center / cover, var(--night);
}
.cb-copy, .cb-form { position: relative; z-index: 1; }
.cb-copy h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.cb-copy p { color: rgba(255, 255, 255, .85); margin: 14px 0 20px; }
.cb-form { background: var(--white); color: var(--ink); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-lg); }

/* Form */
label > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(109, 74, 255, .12); }
input.invalid { border-color: #e5484d; }
textarea { resize: vertical; }
.lead-form, .check-form { display: grid; gap: 14px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check-form.compact .f-grid { grid-template-columns: repeat(2, 1fr); }
.check-form.compact .f-grid label:first-child { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12.5px; color: var(--muted); }
.form-msg { padding: 12px 14px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; }
.form-msg.ok { background: #e3f8ef; color: #0b7a55; }
.form-msg.err { background: #ffeceb; color: #c4282d; }
.lead-form.done > *:not(.form-msg) { display: none; }
.lead-form.done .form-msg { padding: 28px 20px; text-align: center; font-size: 16px; }

/* Kết quả kiểm tra */
.check-result { margin-top: 16px; border-radius: 16px; background: var(--soft); padding: 20px; }
.cr-head { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cr-stat { flex: 1; min-width: 120px; background: #fff; border-radius: 12px; padding: 12px 14px; }
.cr-stat strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.cr-stat span { font-size: 12.5px; color: var(--muted); }
.cr-stat.ok strong { color: var(--ok); }
.cr-list { display: grid; gap: 8px; margin-bottom: 16px; }
.cr-list a { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: #fff; padding: 10px 14px; border-radius: 12px; color: var(--ink); font-size: 14.5px; }
.cr-list a:hover { box-shadow: var(--shadow); }
.cr-list small { color: var(--muted); }
.cr-list strong { display: block; }
.cr-list .cr-price { white-space: nowrap; flex: none; }
.cr-cta { border-top: 1px solid var(--line); padding-top: 16px; }
.cr-cta h4 { font-size: 16px; margin-bottom: 4px; }
.cr-cta p { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.cr-cta .f-row { margin-bottom: 12px; }

/* Quy trình */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 28px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.st-num { position: absolute; right: 18px; top: 8px; font-size: 64px; font-weight: 800; color: var(--soft); line-height: 1; letter-spacing: -.04em; }
.st-ic { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--soft); color: var(--violet); margin-bottom: 16px; }
.steps h3 { position: relative; font-size: 18px; margin-bottom: 6px; }
.steps p { position: relative; color: var(--ink-2); font-size: 15px; }

/* Cảm nhận */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi { margin: 0; padding: 28px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.testi-stars { color: #ffb020; display: flex; gap: 2px; }
.testi-stars .ic { fill: currentColor; stroke: none; }
.testi blockquote { margin: 14px 0 20px; font-size: 16px; color: var(--ink-2); flex: 1; }
.testi figcaption { display: flex; align-items: center; gap: 12px; }
.testi figcaption img, .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; }
.testi figcaption strong { display: block; }
.testi figcaption span { font-size: 13px; color: var(--muted); }

/* Tin bài */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); overflow: hidden; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pc-media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--tone-soft), #fff); display: grid; place-items: center; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .pc-media img { transform: scale(1.04); }
.pc-mono { color: var(--tone); opacity: .6; }
.pc-mono .ic { width: 48px; height: 48px; }
.pc-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.pc-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.post-card h3 { font-size: 18px; line-height: 1.35; }
.post-card p { color: var(--ink-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card.big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
.post-card.big .pc-media { aspect-ratio: auto; min-height: 300px; }
.post-card.big .pc-body { padding: 36px; justify-content: center; }
.post-card.big h3 { font-size: 28px; }

/* Hỏi đáp */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--violet); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }

/* Đăng ký cuối trang */
.register {
  color: #fff; padding: 96px 0; position: relative; overflow: hidden;
  background: linear-gradient(100deg, rgba(27, 20, 70, .93) 0%, rgba(60, 36, 150, .82) 48%, rgba(109, 74, 255, .45) 100%), var(--photo) center / cover, var(--night);
}
.register-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.register-copy h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.register-copy > p { color: rgba(255, 255, 255, .75); margin: 16px 0 22px; font-size: 17px; }
.register-card { background: var(--white); color: var(--ink); border-radius: 28px; padding: 32px; box-shadow: var(--shadow-lg); }
.register-hotline { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: #fff; padding: 12px 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { color: var(--ok); margin-top: 3px; }
.ticks.light .ic { color: #7ef0c1; }

/* Chân trang */
.foot { background: #0f0b2b; color: rgba(255, 255, 255, .7); padding: 64px 0 28px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.foot-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; }
.foot a, .foot span { color: rgba(255, 255, 255, .7); display: inline-flex; gap: 8px; align-items: flex-start; }
.foot a:hover { color: #fff; }
.foot .logo, .foot .logo span { color: #fff; }
.foot-slogan { margin-top: 14px; max-width: 300px; }
.foot-social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.foot-social a { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* Nút nổi */
.float-cta { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.fc { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 10px 26px rgba(20, 17, 43, .25); }
.fc-zalo { background: #0068ff; }
.fc-call { background: var(--grad); animation: ring 2.4s infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 10px 26px rgba(20, 17, 43, .25), 0 0 0 0 rgba(255, 77, 141, .5); } 50% { box-shadow: 0 10px 26px rgba(20, 17, 43, .25), 0 0 0 12px rgba(255, 77, 141, 0); } }

/* ---------- Trang con ---------- */
.page-hero {
  color: #fff; padding: 72px 0 76px; position: relative; overflow: hidden;
  background: linear-gradient(95deg, rgba(27, 20, 70, .9) 0%, rgba(43, 26, 120, .72) 55%, rgba(109, 74, 255, .3) 100%), var(--photo) center / cover, var(--night);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; margin-top: 14px; max-width: 860px; }
.page-hero p { color: rgba(255, 255, 255, .75); margin-top: 14px; max-width: 720px; font-size: 17px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.crumbs a { color: rgba(255, 255, 255, .8); }
.crumbs a:hover { color: #fff; }

.fact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 32px; }
.fact { padding: 18px 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.fact span { display: block; font-size: 13px; color: var(--muted); }
.fact strong { display: block; font-size: 17px; margin-top: 4px; }
.fact small { color: var(--muted); font-size: 12.5px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 30px; }
.panel h2 { font-size: 20px; display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.panel h2 .ic { color: var(--violet); }
.note-box { display: flex; gap: 12px; margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: #fff7ec; color: #7a4a12; font-size: 15px; }
.note-box .ic { color: var(--orange); margin-top: 3px; }

.filter-bar { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px; background: var(--white); padding: 12px; border-radius: 20px; box-shadow: var(--shadow); }
.fb-search { position: relative; display: block; }
.fb-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.fb-search input { padding-left: 40px; }
.fb-search.small input { padding-top: 9px; padding-bottom: 9px; }
.result-count { margin: 22px 0 18px; color: var(--ink-2); font-size: 15px; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pager .on { background: var(--violet); border-color: var(--violet); color: #fff; }
.pager .gap { border: 0; background: none; }

.school-detail { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.sd-photo { border-radius: 24px; overflow: hidden; margin-bottom: 24px; aspect-ratio: 16 / 8; }
.sd-photo img { width: 100%; height: 100%; object-fit: cover; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.lead-text { font-size: 17px; color: var(--ink-2); }
.sd-h { font-size: 22px; display: flex; align-items: center; gap: 10px; margin: 36px 0 16px; }
.sd-h .ic { color: var(--violet); }
.cond-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); margin-bottom: 14px; }
.cond-table div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.cond-table div:last-child { border-bottom: 0; }
.cond-table span { color: var(--ink-2); }
.ext { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; margin-top: 12px; }
.sd-side { position: sticky; top: 90px; }
.side-card { background: var(--white); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.side-card h3 { font-size: 20px; }
.side-card > p { color: var(--ink-2); font-size: 14.5px; margin: 6px 0 18px; }
.side-card .f-row { grid-template-columns: 1fr; }

.check-page { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.check-tips { background: var(--soft); border-radius: 24px; padding: 26px; }
.check-tips h3 { display: flex; gap: 8px; align-items: center; font-size: 18px; margin-bottom: 14px; }
.check-tips h3 .ic { color: var(--violet); }
.check-tips li { font-size: 14.5px; color: var(--ink-2); }

.news-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.news-bar .fb-search { width: 280px; }
.empty-state { text-align: center; padding: 72px 20px; color: var(--muted); }
.empty-state .ic { width: 48px; height: 48px; color: var(--line); margin-bottom: 10px; }

/* Bài viết */
.article-head {
  color: #fff; padding: 52px 0 120px;
  background: linear-gradient(180deg, rgba(27, 20, 70, .88), rgba(27, 20, 70, .94)), var(--photo) center / cover, var(--night);
}
.article-head h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; margin-top: 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.article-meta span { display: inline-flex; gap: 6px; align-items: center; }
.article-cover { width: 100%; border-radius: 24px; margin-top: -84px; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.article-head + .wrap.narrow .article-lead, .article > .wrap.narrow:last-of-type { padding-top: 0; }
.article { padding-bottom: 72px; }
.article:not(:has(.article-cover)) .article-head { padding-bottom: 56px; }
.article-lead { font-size: 19px; color: var(--ink-2); font-weight: 500; margin: 36px 0 8px; line-height: 1.6; }
.prose { font-size: 17px; line-height: 1.8; color: #2a2640; margin-top: 24px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose h3 { font-size: 21px; margin-top: 32px; }
.prose h4 { font-size: 18px; margin-top: 26px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose img { border-radius: 16px; margin: 26px auto; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 16px 22px; border-left: 4px solid var(--violet); background: var(--soft); border-radius: 0 14px 14px 0; color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink-2); }
.share a, .share button { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.inline-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding: 24px 28px; border-radius: 20px; background: var(--soft); }
.inline-cta strong { display: block; font-size: 17px; }
.inline-cta span { color: var(--ink-2); font-size: 14.5px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-list { display: grid; gap: 12px; }
.ci { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.ci-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--soft); color: var(--violet); flex: none; }
.ci span { display: block; font-size: 13px; color: var(--muted); }
.ci strong { font-size: 16px; font-weight: 600; }
.ci strong a { color: var(--ink); }
.map { margin-top: 16px; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }

.notfound { text-align: center; }
.nf-code { font-size: 120px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: 32px; margin-top: 10px; }
.notfound p { color: var(--ink-2); margin-top: 10px; }

/* Hiệu ứng xuất hiện */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .float-card, .fc-call { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .school-grid { grid-template-columns: repeat(3, 1fr); }
  .why-wrap { gap: 36px; }
  .nav-links a:not(.btn) { padding: 8px 9px; font-size: 14.5px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 24px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(20, 17, 43, .12);
    transform: translateY(-120%); transition: transform .25s; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links a:not(.btn) { padding: 12px 14px; font-size: 16px; }
  .nav-cta { margin: 8px 0 0; }
  .hero { padding: 48px 0 64px; }
  .hero-in, .register-in, .check-banner, .faq-wrap, .why-wrap, .school-detail, .check-page, .contact-grid, .two-col { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-collage { height: 440px; }
  .fc1 { left: -8px; }
  .why-photo { max-width: 520px; margin: 0 auto; }
  .why-photo img { aspect-ratio: 16 / 11; }
  .why-badge { right: 12px; }
  .life-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 200px 200px; }
  .life-card.big { grid-row: auto; grid-column: 1 / -1; }
  .life-card:nth-child(4) { grid-column: 1 / -1; }
  .program-grid, .testi-grid, .post-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .program-grid > :last-child:nth-child(odd), .testi-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .fb-search { grid-column: 1 / -1; }
  .sd-side { position: static; }
  .post-card.big { grid-template-columns: 1fr; }
  .post-card.big .pc-media { min-height: 0; aspect-ratio: 16 / 9; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .check-banner { padding: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .sec { padding: 60px 0; }
  .sec-head { margin-bottom: 28px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-kr { font-size: 160px; }
  .float-card { padding: 10px 12px; }
  .float-card .ic { width: 32px; height: 32px; padding: 7px; }
  .school-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sc-media { padding-top: 24px; }
  .sc-mono { font-size: 30px; }
  .sc-media .chip { top: 8px; left: 8px; font-size: 11px; padding: 2px 8px; }
  .hero-collage { height: 360px; gap: 10px; grid-template-columns: 1.4fr 1fr; }
  .hero-collage figure { border-radius: 18px; }
  .hero-collage .hc-main { border-radius: 22px; }
  .hero-collage figcaption { font-size: 11px; padding: 3px 9px; left: 6px; bottom: 6px; }
  .fc1 { top: 6%; left: -4px; }
  .fc2 { left: -4px; bottom: 6%; }
  .why-badge { right: 8px; bottom: 12px; padding: 10px 12px; }
  .life-grid { grid-template-rows: 220px 170px 170px; gap: 10px; }
  .life-card { border-radius: 18px; }
  .life-card figcaption { padding: 30px 14px 12px; }
  .life-card strong { font-size: 15px; }
  .life-card span { font-size: 12.5px; }
  .page-hero { padding: 52px 0 56px; }
  .register { padding: 64px 0; }
  .why-card { display: grid; grid-template-columns: 46px 1fr; gap: 2px 14px; padding: 20px; }
  .why-ic { grid-row: span 2; width: 46px; height: 46px; margin: 0; }
  .why-card h3 { font-size: 16.5px; margin: 0; }
  .why-card p { font-size: 14.5px; }
  .steps li { padding: 22px; }
  .sc-body { padding: 14px; }
  .sc-body h3 { font-size: 15px; }
  .sc-meta span:nth-child(2) { display: none; }
  .sc-foot strong { font-size: 14px; }
  .sc-go { display: none; }
  .program-grid, .testi-grid, .post-grid, .steps, .why-grid { grid-template-columns: 1fr; }
  .f-row, .f-grid, .check-form.compact .f-grid { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-grid label:first-child { grid-column: 1 / -1; }
  .filter-bar { grid-template-columns: 1fr; }
  .check-banner { padding: 24px 18px; border-radius: 24px; }
  .cb-form, .register-card, .panel, .side-card { padding: 20px; }
  .news-bar .fb-search { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .fc span { display: none; }
  .fc { padding: 14px; }
  .float-cta { right: 14px; bottom: 14px; }
  .article-head { padding-bottom: 96px; }
  .article-cover { margin-top: -64px; border-radius: 16px; }
  .prose { font-size: 16px; }
}
