/* =====================================================================
   Website du học Hàn Quốc — giao diện công khai
   ===================================================================== */
:root {
  --ink: #0f1a3a;
  --ink-2: #43506b;
  --muted: #74809a;
  --bg: #fbfcff;
  --soft: #eef4ff;
  --line: #e3e9f5;
  --white: #fff;
  --violet: #1f4fd1;
  --violet-d: #163a9e;
  --pink: #e8335d;
  --orange: #ff8a3d;
  --teal: #12b5a6;
  --night: #0d1d4a;
  --ok: #0f9f6e;
  --grad: linear-gradient(120deg, #ff4f6e 0%, #e11d48 100%);
  --grad-blue: linear-gradient(135deg, #2b63e8 0%, #12307a 100%);
  --navy: #12307a;
  --red: #e11d48;
  --shadow: 0 1px 2px rgba(15, 26, 58, .04), 0 8px 28px rgba(15, 26, 58, .07);
  --shadow-lg: 0 20px 60px rgba(13, 29, 74, .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(225, 29, 72, .3); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(225, 29, 72, .38); }
.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(15, 26, 58, .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-blue);
  color: #fff; font-size: 19px; box-shadow: 0 6px 16px rgba(31, 79, 209, .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: banner tuyển sinh (nền trời xanh, ảnh tư vấn viên) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink); padding: 36px 0 118px;
  background: linear-gradient(180deg, #cde4ff 0%, #e4f0ff 40%, #f4f8ff 72%, var(--bg) 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 40% 26% at 12% 8%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(ellipse 34% 20% at 70% 4%, rgba(255, 255, 255, .8), transparent 70%);
}
.hero-campus {
  position: absolute; inset: auto 0 0 0; height: 78%; background: var(--photo) center bottom / cover; opacity: .2;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 72%, transparent 100%);
}
.petal { position: absolute; width: 14px; height: 10px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #ffd6e0, #ff97b0); opacity: .75; }
.p1 { left: 3%; top: 62%; transform: rotate(20deg); }
.p2 { left: 47%; top: 12%; transform: rotate(-30deg) scale(.8); }
.p3 { left: 53%; bottom: 22%; transform: rotate(60deg); }
.p4 { right: 4%; top: 20%; transform: rotate(-10deg) scale(1.2); }
.p5 { left: 28%; bottom: 14%; transform: rotate(110deg) scale(.7); }

.hero-in {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas: "head visual" "points visual" "actions visual"; gap: 22px 48px; align-items: center;
}
.hero-head { grid-area: head; }
.hero-script {
  display: flex; align-items: center; gap: 8px; font-family: 'Dancing Script', cursive; font-weight: 700;
  font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; color: var(--navy);
}
.hero-script .ic { width: .7em; height: .7em; color: var(--red); }
.hero-title {
  margin: 10px 0 16px; font-size: clamp(42px, 4.4vw, 64px); font-weight: 900; line-height: 1.02; letter-spacing: -.025em;
  text-transform: uppercase; color: var(--navy); transform: rotate(-2deg); transform-origin: left center;
  text-shadow: 0 3px 0 #fff, 0 12px 28px rgba(18, 48, 122, .18);
}
.hero-title em { display: inline-block; font-style: normal; font-size: 1.12em; color: var(--red); }
.hero-ribbon {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 34px 9px 22px; font-size: clamp(18px, 2vw, 26px); font-weight: 900;
  letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--grad-blue);
  clip-path: polygon(2% 4%, 100% 0, 97% 100%, 0 94%); transform: rotate(-2deg);
}
.hero-ribbon .ic { width: 1.1em; height: 1.1em; }

.hero-points { grid-area: points; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.hero-points li {
  display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); border: 1px solid #fff; box-shadow: 0 4px 16px rgba(18, 48, 122, .08);
}
.hp-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad-blue); color: #fff; }
.hp-ic .ic { width: 18px; height: 18px; }
.hero-points li:nth-child(even) .hp-ic { background: var(--grad); }
.hero-points strong { display: block; font-size: 14.5px; line-height: 1.25; color: var(--navy); }
.hero-points small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--muted); }

.hero-actions { grid-area: actions; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-phone {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 24px 7px 7px; border-radius: 999px; color: #fff;
  background: var(--grad-blue); box-shadow: 0 10px 26px rgba(18, 48, 122, .3); transition: transform .15s;
}
.hero-phone:hover { transform: translateY(-1px); }
.hph-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy); }
.hph-ic .ic { width: 20px; height: 20px; }
.hero-phone strong { font-size: 24px; font-weight: 800; letter-spacing: .01em; }
.hero-phone small { font-size: 13px; opacity: .8; font-style: italic; }
.hero-tagline { margin-top: 14px; font-family: 'Dancing Script', cursive; font-size: 24px; font-weight: 700; color: var(--navy); }

.hero-visual { grid-area: visual; position: relative; width: 100%; max-width: 470px; justify-self: center; }
.hero-visual::before {
  content: ''; position: absolute; inset: 10% -8% -4% 4%; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #a9cbff, #4b7bea);
  opacity: .45;
}
.hero-photo {
  position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #dbe8ff;
  border: 8px solid #fff; border-radius: 240px 240px 32px 32px; box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero-note {
  position: absolute; top: -6px; right: -44px; width: 190px; padding: 12px 14px; border-radius: 16px;
  font-family: 'Dancing Script', cursive; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--navy);
  background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); transform: rotate(5deg);
}
.hero-plane { position: absolute; top: 30%; right: -60px; width: 100px; color: var(--navy); }
.hero-flag { position: absolute; right: -28px; bottom: 36px; width: 96px; border-radius: 4px; transform: rotate(-10deg); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .18)); }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 64px; fill: var(--bg); }

/* Dải con số, đè lên mép dưới banner */
.stats-bar { position: relative; z-index: 2; margin-top: -72px; }
.stats-card { display: grid; grid-template-columns: repeat(4, 1fr); padding: 20px 8px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); }
.stats-card div { padding: 2px 14px; text-align: center; border-left: 1px solid var(--line); }
.stats-card div:first-child { border-left: 0; }
.stats-card strong { display: block; font-size: 30px; font-weight: 900; line-height: 1.15; color: var(--navy); letter-spacing: -.02em; }
.stats-card span { font-size: 13.5px; color: var(--muted); }
.stats-bar + .marquee { margin-top: 36px; }

/* ---------- 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: #1f4fd1; --tone-soft: #e8efff; }
.tone-pink { --tone: #e8335d; --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); }

/* 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(20, 48, 130, .94) 0%, rgba(31, 79, 209, .82) 55%, rgba(232, 51, 93, .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(31, 79, 209, .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: dòng thời gian gọn */
.steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.steps::before { content: ''; position: absolute; top: 28px; left: 8%; right: 8%; border-top: 2px dashed #c6d4f1; }
.steps li { position: relative; text-align: center; }
.st-ic {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--violet); color: var(--violet); box-shadow: 0 0 0 6px var(--bg);
}
.st-ic .ic { width: 22px; height: 22px; }
.st-ic b { position: absolute; top: -6px; right: -8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; }
.steps h3 { font-size: 16px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* Bài viết mới (cạnh hỏi đáp) */
.mini-posts { display: grid; margin-top: 8px; }
.mini-posts h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.mini-posts a { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.4; }
.mini-posts a:hover { color: var(--violet); }
.mini-posts a span { flex: none; font-weight: 400; font-size: 13px; color: var(--muted); }
.mini-posts .mp-all { justify-content: flex-start; align-items: center; gap: 6px; border: 0; color: var(--violet); }

/* 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(13, 29, 74, .93) 0%, rgba(25, 60, 160, .82) 48%, rgba(31, 79, 209, .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: #0a1638; 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(15, 26, 58, .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(15, 26, 58, .25), 0 0 0 0 rgba(232, 51, 93, .5); } 50% { box-shadow: 0 10px 26px rgba(15, 26, 58, .25), 0 0 0 12px rgba(232, 51, 93, 0); } }

/* ---------- Trang con ---------- */
.page-hero {
  color: #fff; padding: 72px 0 76px; position: relative; overflow: hidden;
  background: linear-gradient(95deg, rgba(13, 29, 74, .9) 0%, rgba(20, 48, 130, .72) 55%, rgba(31, 79, 209, .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(13, 29, 74, .88), rgba(13, 29, 74, .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, .fc-call { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .school-grid { grid-template-columns: repeat(3, 1fr); }
  .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(15, 26, 58, .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: 24px 0 104px; }
  .hero-in { grid-template-columns: 1fr; grid-template-areas: "head" "visual" "points" "actions"; gap: 22px; }
  .hero-visual { max-width: 360px; }
  .hero-note { right: -24px; width: 160px; font-size: 15px; }
  .hero-plane { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .steps::before { display: none; }
  .register-in, .check-banner, .faq-wrap, .school-detail, .check-page, .contact-grid, .two-col { grid-template-columns: 1fr; }
  .program-grid, .testi-grid, .post-grid { 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; }
  .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; }
  .page-hero { padding: 52px 0 56px; }
  .register { padding: 64px 0; }
  .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; }
  .testi-grid, .post-grid { grid-template-columns: 1fr; }
  /* Chương trình: vuốt ngang trên điện thoại cho trang gọn */
  .program-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .program-grid::-webkit-scrollbar { display: none; }
  .program-grid > * { flex: 0 0 84%; scroll-snap-align: start; }
  .program-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .pg-photo { aspect-ratio: 16 / 9; }
  .program-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-title { font-size: clamp(44px, 13vw, 60px); }
  .hero-ribbon { font-size: 18px; }
  .hero-visual { max-width: 270px; }
  .hero-note { display: none; }
  .hero-flag { width: 70px; right: -34px; bottom: 24px; }
  .hero-points { gap: 8px; }
  .hero-points li { padding: 8px 10px 8px 8px; border-radius: 16px; gap: 8px; align-items: flex-start; }
  .hp-ic { width: 30px; height: 30px; }
  .hp-ic .ic { width: 15px; height: 15px; }
  .hero-points strong { font-size: 13px; }
  .hero-points small { display: none; }
  .hero-phone, .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero-phone strong { font-size: 22px; }
  .hero-tagline { text-align: center; font-size: 21px; }
  .stats-bar { margin-top: -64px; }
  .stats-card { grid-template-columns: repeat(2, 1fr); row-gap: 14px; padding: 16px 4px; }
  .stats-card div:nth-child(3) { border-left: 0; }
  .stats-card strong { font-size: 24px; }
  .stats-card span { font-size: 12.5px; }
  .steps { gap: 22px 10px; }
  .st-ic { width: 48px; height: 48px; }
  .steps h3 { font-size: 14.5px; }
  .steps p { font-size: 12.5px; }
  .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; }
}
