/* BRICK Lab 2026 – giao diện chung */
:root {
  --brick: #00fa9a;
  --brick-600: #00dd88;
  --brick-soft: #dcfff0;
  --brick-ink: #03321e;
  --ink: #0b1a14;
  --ink-2: #13281f;
  --ink-3: #1d3a2e;
  --gray: #4d4d4d;
  --muted: #5b6863;
  --line: #e1e9e5;
  --mist: #f2f7f4;
  --paper: #ffffff;
  --sun: #ffc83d;
  --sun-soft: #fff5d9;
  --coral: #ff6b4a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 26, 20, 0.06), 0 8px 24px rgba(11, 26, 20, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 26, 20, 0.16);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html, body { overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brick-600); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; vertical-align: -4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); font-size: 0.95rem; }
.hide-sm { }

/* ---------- Brick stud (họa tiết núm gạch) ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.kicker.light { color: var(--brick); }
/* Tiêu đề phụ nổi bật: chữ to hơn một chút, vạch xanh nửa dưới chữ */
.kicker.kicker-hl { font-size: clamp(0.95rem, 1.6vw, 1.12rem); letter-spacing: 0.06em; color: var(--ink); }
.kicker-hl .hl { line-height: 1.1; padding: 0 2px; }
.kicker-hl .hl::after { left: -3px; right: -3px; bottom: 0.1em; height: 0.48em; border-radius: 3px; }
.stud {
  position: relative; width: 26px; height: 12px; border-radius: 3px; background: var(--brick); margin-top: 5px; flex: none;
}
.stud::before, .stud::after {
  content: ""; position: absolute; top: -5px; width: 8px; height: 5px; border-radius: 2px 2px 0 0; background: var(--brick);
}
.stud::before { left: 3px; }
.stud::after { right: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; line-height: 1.2;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brick); color: var(--brick-ink); box-shadow: 0 6px 18px rgba(0, 250, 154, 0.35); }
.btn-primary:hover { background: var(--brick-600); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-msg { background: #0866ff; color: #fff; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.actions.center, .center-actions { justify-content: center; }
.center-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--ink); }
.link-arrow .ic { width: 16px; height: 16px; transition: transform 0.15s; }
.link-arrow:hover .ic { transform: translateX(3px); }
.msg-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: #0866ff; color: #fff; border-radius: 50%; line-height: 1; vertical-align: middle; }
.msg-badge svg { display: block; }
.chip { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brick-soft); color: var(--brick-ink); }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 40px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--brick); }
.topbar .ic { width: 15px; height: 15px; }
.topbar-social { display: inline-flex; gap: 12px; margin-left: auto; }
.teacher-link { padding: 4px 12px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand img { width: 128px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--ink); background: none; border: 0; }
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--mist); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brick); }
.chev { width: 16px; height: 16px; transition: transform 0.2s; }
.has-sub { position: relative; }
.sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.18s; }
.has-sub:hover .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .chev, .has-sub.open .chev { transform: rotate(180deg); }
.sub a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.sub a:hover { background: var(--mist); }
.sub b { display: block; font-size: 0.95rem; }
.sub small { color: var(--muted); font-size: 0.8rem; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.nav-toggle .i-close { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-mist { background: var(--mist); }
.section-sun { background: var(--sun-soft); }
.section-ink { background: var(--ink); color: #fff; }
.sec-head { max-width: 760px; margin-bottom: 36px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.sec-head .lead { color: var(--muted); font-size: 1.08rem; margin: 0; }
.sec-head.light h2 { color: #fff; }
.sec-head.light .kicker, .section-ink .kicker, .student-hero .kicker { color: var(--brick); }
.sec-head.light .lead { color: rgba(255, 255, 255, 0.75); }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head-row .sec-head { margin-bottom: 0; }
.lead { font-size: 1.1rem; }
.note-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.95rem; margin-top: 28px; }
.note-line a { color: var(--ink); font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(11, 26, 20, 0.07) 1.5px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, #f6fffb 0%, #fff 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.02; margin-bottom: 18px; }
.hl { position: relative; display: inline-block; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 0.08em; height: 0.36em; background: var(--brick); z-index: -1; border-radius: 4px; }
.hero-message { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; color: var(--ink-3); margin-bottom: 10px; }
.hero-lines { font-size: 1.08rem; color: var(--gray); margin-bottom: 24px; }
.hero-lines b { color: var(--ink); }
.hero-facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-facts li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.hero-facts b { display: block; color: var(--ink); font-size: 0.95rem; }
.hero-facts .ic { color: var(--brick-ink); background: var(--brick-soft); border-radius: 8px; padding: 6px; width: 32px; height: 32px; }
.hero-collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.hc { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hc img { width: 100%; height: 100%; object-fit: cover; }
.hc-main { grid-column: 1 / -1; aspect-ratio: 16 / 10; border: 6px solid #fff; }
.hc-a, .hc-b { aspect-ratio: 4 / 3; border: 6px solid #fff; }
.hc-a { transform: rotate(-2deg); }
.hc-b { transform: rotate(2deg); }
.hc-badge { position: absolute; left: -14px; top: 42%; display: flex; align-items: center; gap: 10px; max-width: 250px; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 14px; font-size: 0.82rem; line-height: 1.35; box-shadow: var(--shadow-lg); }
.hc-badge-num { font-size: 2rem; font-weight: 800; color: var(--brick); line-height: 1; }

/* ---------- Program cards ---------- */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.program-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.program-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.program-photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.program-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.program-card:hover .program-photo img { transform: scale(1.04); }
.program-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.program-body h3 { font-size: 1.2rem; margin: 10px 0 6px; }
.program-body h3 a { text-decoration: none; }
.program-body > p { color: var(--gray); font-size: 0.95rem; margin-bottom: 10px; }
.program-age, .program-where { display: flex; gap: 8px; align-items: center; font-size: 0.88rem; color: var(--muted); margin-bottom: 8px !important; }
.program-age { color: var(--ink-3) !important; font-weight: 600; }
.program-age .ic, .program-where .ic { width: 16px; height: 16px; }
.program-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-open { background: var(--brick-soft); color: #007a4a; }
.st-hot { background: #ffe8e2; color: #c83a1a; }
.st-hot::before { animation: pulse 1.6s infinite; }
.st-wait { background: var(--sun-soft); color: #8a5a00; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* ---------- Pathway ---------- */
.pathway { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.step { position: relative; padding: 22px 20px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before, .step::after { content: ""; position: absolute; top: -9px; width: 30px; height: 9px; border-radius: 5px 5px 0 0; background: inherit; border: 1px solid var(--line); border-bottom: 0; }
.step::before { left: 24px; }
.step::after { left: 66px; }
.step-1 { background: var(--sun-soft); }
.step-2 { background: var(--brick-soft); min-height: 230px; }
.step-3 { background: #e3f0ff; min-height: 260px; }
.step-4 { background: var(--ink); color: #fff; min-height: 290px; border-color: var(--ink); }
.step-4::before, .step-4::after { border-color: var(--ink); }
.step-age { display: inline-block; font-size: 0.8rem; font-weight: 800; padding: 3px 10px; background: rgba(255, 255, 255, 0.75); border-radius: 999px; color: var(--ink); }
.step-4 .step-age { background: var(--brick); color: var(--brick-ink); }
.step h3 { font-size: 1.5rem; margin: 12px 0 4px; letter-spacing: 0.01em; }
.step-tools { font-weight: 600; font-size: 0.88rem; color: var(--ink-3); margin-bottom: 8px; }
.step-4 .step-tools { color: var(--brick); }
.step p:last-child { font-size: 0.92rem; margin: 0; }

/* ---------- Cycle & mosaic ---------- */
.cycle { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cycle li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--mist); border-radius: 12px; font-weight: 700; }
.cycle span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--brick); color: var(--brick-ink); font-size: 0.9rem; flex: none; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 190px 190px 220px; gap: 12px; }
.mosaic figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.m1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.m2 { grid-column: 2; grid-row: 1; }
.m3 { grid-column: 2; grid-row: 2; }
.m4 { grid-column: 1 / -1; grid-row: 3; }

/* ---------- Clips ---------- */
.clip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.clip { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.clip-frame { aspect-ratio: 16 / 9; background: #000; }
.clip-frame video { width: 100%; height: 100%; object-fit: cover; }
.clip figcaption { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.clip figcaption span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Awards ---------- */
.award-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.award { padding: 22px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.08); }
.award-medal { font-size: 1.9rem; display: block; margin-bottom: 8px; }
.award-event { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.award h3 { font-size: 1.05rem; color: #fff; }
.award-team { color: var(--brick); font-weight: 700; margin: 0; font-size: 0.92rem; }
.destinations { margin-top: 40px; padding: 22px; border-radius: var(--radius); border: 1px dashed rgba(255, 255, 255, 0.25); }
.dest-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: rgba(255, 255, 255, 0.65); }
.destinations ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.destinations li { padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; line-height: 1.3; }
.destinations li b { color: #fff; }
.destinations li span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }
.destinations.on-light { border-color: var(--line); margin: 0 0 40px; background: var(--mist); }
.destinations.on-light .dest-title { color: var(--muted); }
.destinations.on-light li { background: #fff; border: 1px solid var(--line); }
.destinations.on-light li b { color: var(--ink); }
.destinations.on-light li span { color: var(--muted); }

/* ---------- Reasons ---------- */
.reason-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reason { padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.reason .ic { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--brick); color: var(--brick-ink); margin-bottom: 14px; }
.reason p { color: var(--gray); font-size: 0.95rem; margin: 0; }

/* ---------- YouTube ---------- */
.yt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.yt-grid:last-child { margin-bottom: 0; }
.yt-grid.four { grid-template-columns: repeat(4, 1fr); }
.yt-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.section-ink .yt-card { background: var(--ink-2); border-color: rgba(255, 255, 255, 0.08); }
.section-ink .yt-card h3 { color: #fff; }
.yt-lite { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; overflow: hidden; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 0.4s, opacity 0.2s; }
.yt-lite:hover img { transform: scale(1.04); opacity: 1; }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 46px; border-radius: 14px; background: #ff0000; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.yt-play .ic { width: 24px; height: 24px; }
.yt-meta { padding: 14px 16px 16px; }
.yt-meta h3 { font-size: 0.98rem; margin: 8px 0 0; line-height: 1.35; }

/* ---------- Partners ---------- */
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partners.compact { grid-template-columns: repeat(6, 1fr); gap: 12px; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 22px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-height: 150px; }
.partners.compact .partner { min-height: 120px; padding: 16px 10px; }
.partner img { max-height: 54px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: 0.2s; }
.partner:hover img { filter: none; opacity: 1; }
.partner-mono { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--mist); color: var(--ink-3); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em; border: 1px solid var(--line); }
.partner-name { font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.partners.compact .partner-name { font-size: 0.85rem; }
.partner-type { font-size: 0.78rem; color: var(--muted); }

/* ---------- Student teaser ---------- */
.student-teaser { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: linear-gradient(120deg, var(--brick-soft), #e8f1ff); border: 1px solid var(--line); flex-wrap: wrap; }
.student-teaser h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.student-teaser p { margin: 0; color: var(--gray); max-width: 560px; }

/* ---------- Campus ---------- */
.campus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.campus { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.campus figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.campus figure img { width: 100%; height: 100%; object-fit: cover; }
.campus-ph { aspect-ratio: 16 / 9; display: grid; place-items: center; background: radial-gradient(circle at 1px 1px, rgba(3, 50, 30, 0.18) 2px, transparent 0) 0 0 / 26px 26px, var(--brick); }
.campus-ph span { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--brick-ink); background: rgba(255, 255, 255, 0.7); padding: 8px 18px; border-radius: 12px; }
.campus-body { padding: 20px 22px 22px; }
.campus-body p { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 88px) 0; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(0, 250, 154, 0.12) 1.5px, transparent 0) 0 0 / 24px 24px; pointer-events: none; }
.cta-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, 0.78); }
.cta-list { list-style: none; margin: 0; padding: 24px; background: var(--ink-2); border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.08); display: grid; gap: 14px; }
.cta-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.cta-list .ic { color: var(--brick); margin-top: 3px; }
.cta-list a { color: #fff; font-weight: 700; }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0; background: radial-gradient(circle at 1px 1px, rgba(11, 26, 20, 0.06) 1.5px, transparent 0) 0 0 / 22px 22px, var(--mist); }
.page-hero.dark { background: radial-gradient(circle at 1px 1px, rgba(0, 250, 154, 0.1) 1.5px, transparent 0) 0 0 / 22px 22px, var(--ink); color: #fff; }
.page-hero.dark .kicker { color: var(--brick); }
.page-hero.dark .lead { color: rgba(255, 255, 255, 0.78); }
.page-hero.dark .btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.page-hero.dark .btn-ghost:hover { background: #fff; color: var(--ink); }
.page-hero.compact { padding: clamp(36px, 5vw, 56px) 0; }
.page-hero.center { text-align: center; }
.page-hero.center .kicker { justify-content: center; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.page-hero .lead { color: var(--gray); max-width: 640px; }
.page-hero-photo { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; border: 6px solid #fff; }
.page-hero.dark .page-hero-photo { border-color: var(--ink-3); }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Jump nav ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.jump a { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-decoration: none; line-height: 1.3; transition: 0.15s; }
.jump a:hover { border-color: var(--ink); }
.jump span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Course ---------- */
.course { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.course.rev .course-photos { order: 2; }
.course-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.course-photos figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; }
.course-photos .cp-main { grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: var(--radius); }
.course-photos img { width: 100%; height: 100%; object-fit: cover; }
.age-tag { display: inline-block; font-weight: 800; font-size: 0.85rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.tag-sun { background: var(--sun); color: #4a3200; }
.tag-brick { background: var(--brick); color: var(--brick-ink); }
.tag-ink { background: var(--ink); color: #fff; }
.tag-coral { background: var(--coral); color: #fff; }
.course-body h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.course-body .lead { color: var(--gray); }
.facts { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { display: inline-flex; gap: 6px; align-items: center; font-size: 0.88rem; font-weight: 600; background: var(--mist); padding: 6px 12px; border-radius: 10px; }
.facts .ic { width: 16px; height: 16px; color: #00a565; }
.detail { padding-left: 20px; margin: 0 0 22px; color: var(--gray); }
.detail li { margin-bottom: 6px; }
.detail b { color: var(--ink); }
.workshop { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; margin-top: 40px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--sun-soft); scroll-margin-top: 100px; }
.workshop figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.workshop figure img { width: 100%; height: 100%; object-fit: cover; }
.workshop .facts li { background: #fff; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 28px; border-radius: var(--radius-sm); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95rem; min-width: 560px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--ink); color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.compare tbody th { background: var(--mist); font-weight: 700; white-space: nowrap; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }

/* ---------- Teams ---------- */
.team { scroll-margin-top: 100px; }
.team-head { max-width: 820px; margin-bottom: 24px; }
.team-head h2 { margin-top: 12px; }
.team-head .lead { color: var(--gray); }
.team-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 24px; }
.team-top .team-head { margin-bottom: 0; }
.team-photo { margin: 0; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.season { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; color: var(--ink-3); font-size: 0.95rem; }
.team-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px; }
.team-block { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.team-block ul { margin: 0; padding-left: 18px; color: var(--gray); }
.team-block li { margin-bottom: 6px; }
.promise { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--brick-soft); color: var(--brick-ink); font-weight: 600; font-size: 0.95rem; }
.promise .ic { margin-top: 3px; }

/* ---------- Achievements page ---------- */
.season-block { margin-bottom: 40px; }
.season-title { font-size: 1.4rem; display: inline-block; padding: 6px 16px; border-radius: 12px; background: var(--ink); color: #fff; }
.award-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.award-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.award-list li.is-hl { border-color: var(--brick); box-shadow: 0 0 0 3px var(--brick-soft); }
.award-list .award-event { color: var(--muted); }
.award-list h3 { margin-bottom: 4px; }
.award-list .award-team { color: #008a52; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; position: sticky; top: 80px; z-index: 5; padding: 8px 0; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px); }
.filter { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 0.92rem; }
.filter.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.album { margin-bottom: 44px; }
.album[hidden] { display: none; }
.award-list li[hidden], .season-block[hidden] { display: none; }
/* Trang Thành tích ngắn: thanh lọc không dính khi cuộn (trên điện thoại nó chiếm 3 hàng) */
.filters.filters-static { position: static; padding: 0; background: none; backdrop-filter: none; }
.filter-count { display: inline-block; min-width: 1.6em; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--mist); color: var(--ink-3); font-size: 0.8rem; text-align: center; }
.filter.is-on .filter-count { background: rgba(255, 255, 255, 0.18); color: #fff; }
.album-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.album-head h3 { font-size: 1.3rem; margin: 0; }
.album-head p { margin: 0; color: var(--muted); font-size: 0.9rem; display: flex; gap: 6px; align-items: center; }
.masonry { columns: 4 220px; column-gap: 12px; }
.ph { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--mist); break-inside: avoid; cursor: zoom-in; }
.ph img { width: 100%; transition: transform 0.35s; }
.ph:hover img { transform: scale(1.04); }
.social-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.social-card { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius); color: #fff; text-decoration: none; font-size: 0.9rem; line-height: 1.4; transition: transform 0.15s; }
.social-card:hover { transform: translateY(-2px); }
.social-card b { display: block; font-size: 1.05rem; }
.social-card .ic { width: 34px; height: 34px; }
.social-card.fb { background: #1877f2; }
.social-card.yt { background: #e00000; }
.social-card.tt { background: #111; }

/* ---------- Partner page ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.offer { position: relative; padding: 24px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.offer .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brick); color: var(--brick-ink); margin-bottom: 12px; }
.offer-num { position: absolute; top: 16px; right: 18px; font-weight: 800; color: var(--line); font-size: 1.5rem; }
.offer p { color: var(--gray); font-size: 0.92rem; margin: 0; }
.model-list { display: grid; gap: 12px; }
.model { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); }
.model h3 { display: flex; gap: 8px; align-items: center; font-size: 1.05rem; margin-bottom: 4px; }
.model h3 .ic { color: #00a565; }
.model p { margin: 0; color: var(--gray); font-size: 0.93rem; }
.report-card { padding: 26px; border-radius: 24px; background: var(--ink); color: #fff; }
.report-card h3 { display: flex; gap: 10px; align-items: center; color: var(--brick); }
.report-card ul { padding-left: 18px; margin: 0 0 18px; color: rgba(255, 255, 255, 0.85); }
.report-card li { margin-bottom: 6px; }
.report-card b { color: #fff; }
.report-card figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 10; }
.report-card img { width: 100%; height: 100%; object-fit: cover; }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.process li { position: relative; padding: 22px 18px; border-radius: var(--radius); background: var(--mist); }
.process li span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--brick); font-weight: 800; margin-bottom: 12px; }
.process p { margin: 0; color: var(--gray); font-size: 0.92rem; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: start; scroll-margin-top: 90px; }
.form-layout:has(.form-card:first-child) { grid-template-columns: 1.3fr 0.7fr; }
.form-card { background: #fff; border-radius: 24px; padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.section-mist .form-card { border-color: transparent; }
.form-title { font-size: 1.5rem; }
.aside-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.aside-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--gray); }
.aside-list .ic { color: #00a565; margin-top: 3px; }
.aside-list a { color: var(--ink); font-weight: 700; }
.aside-card { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); margin-bottom: 18px; }
.aside-card .btn { margin-bottom: 18px; }
.aside-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.aside-photo img { width: 100%; height: 100%; object-fit: cover; }
.bl-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: 0.9rem; color: var(--ink-3); padding: 0; margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfdfc; color: var(--ink); transition: border 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--brick-soft); background: #fff; }
.field .invalid, .field input.invalid, .field select.invalid, .field textarea.invalid { border-color: var(--coral); }
fieldset.invalid > legend { color: var(--coral); }
fieldset.invalid .pill span { border-color: #ffb3a3; }
.consent.invalid span, .check input.invalid + span { color: var(--coral); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: 0.15s; user-select: none; background: #fff; }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--brick-600); outline-offset: 2px; }
.pill span small { font-weight: 400; opacity: 0.7; margin-left: 2px; }
.field > legend small { display: block; font-weight: 400; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--gray); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 12px; margin-top: 4px; }
.form-foot .btn { justify-self: start; }
.form-note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); margin: 0; }
.form-note .ic { width: 16px; height: 16px; margin-top: 3px; }
.form-status { padding: 18px 20px; border-radius: 14px; font-size: 0.98rem; }
.form-status.ok { background: var(--brick-soft); color: var(--brick-ink); }
.form-status.warn { background: var(--sun-soft); color: #5a3d00; }
.form-status.err { background: #ffe8e2; color: #8a2410; }
.form-status h3 { margin-bottom: 6px; }
.form-status p { margin: 0 0 10px; }
.bl-form.sent > :not(.form-status) { display: none; }

/* ---------- About ---------- */
.fourc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
.fourc div { padding: 14px 12px; border-radius: 14px; background: var(--brick-soft); text-align: center; }
.fourc b { display: block; color: var(--brick-ink); }
.fourc span { font-size: 0.8rem; color: var(--ink-3); }
.rules-card { padding: 28px; border-radius: 24px; background: var(--ink); color: #fff; }
.rules-card h3 { color: var(--brick); }
.rules-card ul { padding-left: 18px; color: rgba(255, 255, 255, 0.88); }
.rules-card li { margin-bottom: 8px; }
.rules-card .muted { color: rgba(255, 255, 255, 0.6); }
.founder { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: clamp(22px, 4vw, 36px); border-radius: 24px; background: #fff; border: 1px solid var(--line); margin-bottom: 20px; }
.founder-avatar { width: 180px; height: 180px; border-radius: 24px; display: grid; place-items: center; background: radial-gradient(circle at 1px 1px, rgba(3, 50, 30, 0.2) 2px, transparent 0) 0 0 / 20px 20px, var(--brick); }
.founder-avatar span { font-weight: 800; font-size: 2.4rem; color: var(--brick-ink); }
.founder-role { font-weight: 600; color: var(--ink-3); }
.timeline { list-style: none; padding: 0; margin: 0 0 14px; border-left: 3px solid var(--brick); }
.timeline li { padding: 4px 0 10px 16px; color: var(--gray); }
.timeline b { display: block; color: var(--ink); }
.founder blockquote { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--mist); font-style: italic; color: var(--ink-3); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.member { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.member-avatar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--brick); font-weight: 800; font-size: 1.3rem; margin-bottom: 12px; }
.member p { color: var(--gray); font-size: 0.93rem; margin: 0; }
.member a { color: var(--ink); font-weight: 700; }
.league-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.league-list li { display: flex; gap: 10px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--mist); font-weight: 700; }
.league-list .ic { color: #00a565; }
.company { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.company div { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.company div:nth-child(odd) { border-right: 1px solid var(--line); }
.company dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.company dd { margin: 0; font-weight: 600; }

/* ---------- Contact ---------- */
.steps4 { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps4 li { padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.steps4 span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brick); color: var(--brick-ink); font-weight: 800; margin-bottom: 8px; }
.steps4 b { display: block; color: var(--ink); font-size: 1rem; }
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.map-card iframe { display: block; width: 100%; height: 300px; border: 0; background: var(--mist); }
.map-card > div { padding: 16px 20px; }
.map-card p { display: flex; gap: 8px; margin: 0; color: var(--gray); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform 0.2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--gray); }

/* ---------- Teacher portal ---------- */
.teacher { min-height: 70vh; padding: clamp(48px, 8vw, 96px) 0; background: radial-gradient(circle at 1px 1px, rgba(0, 250, 154, 0.1) 1.5px, transparent 0) 0 0 / 22px 22px, var(--ink); color: #fff; }
.teacher-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.teacher .lead { color: rgba(255, 255, 255, 0.78); }
.teacher-features { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.teacher-features li { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); line-height: 1.4; }
.teacher-features b { display: block; color: #fff; font-size: 0.98rem; }
.teacher-features .ic { color: var(--brick); }
.login-card { padding: 30px; border-radius: 24px; background: #fff; color: var(--ink); display: grid; gap: 14px; box-shadow: var(--shadow-lg); }
.login-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; margin: 0; }
.login-card p { margin: 0; color: var(--gray); font-size: 0.93rem; }
.login-card input[disabled] { background: var(--mist); }

/* ---------- Student hub ---------- */
.student-hero { padding: clamp(48px, 7vw, 88px) 0; color: #fff; background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1.5px, transparent 0) 0 0 / 22px 22px, linear-gradient(135deg, #0b1a14 0%, #10304a 100%); }
.student-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.student-hero .lead { color: rgba(255, 255, 255, 0.8); }
.student-quick { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.student-quick a { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); text-decoration: none; color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; line-height: 1.35; transition: 0.15s; }
.student-quick a:hover { background: rgba(255, 255, 255, 0.14); }
.student-quick b { display: block; color: #fff; font-size: 1rem; }
.student-quick .ic { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--brick); color: var(--brick-ink); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 18px 20px 20px; }
.post-body h3 { font-size: 1.08rem; line-height: 1.35; }
.post-body h3 a { text-decoration: none; }
.post-body p { color: var(--gray); font-size: 0.92rem; margin: 0; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--muted); margin-bottom: 10px !important; flex-wrap: wrap; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.resource { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 44px 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: 0.15s; }
.resource:hover { border-color: var(--ink); }
.resource span { font-size: 0.88rem; color: var(--muted); }
.resource .ic { position: absolute; top: 18px; right: 16px; width: 18px; height: 18px; color: var(--muted); }
/* Công cụ tập luyện (Góc học sinh) */
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tool-card { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 3vw, 28px); border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.tool-card h3 { margin: 0; }
.tool-card p { margin: 0; }
.tool-card > p:not([class]) { color: var(--muted); }
.tool-access { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; font-weight: 600; color: var(--brick-ink); }
.tool-access .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--brick-600); }
.tool-access.locked { color: var(--ink-3); }
.tool-access.locked .ic { color: var(--muted); }
.tool-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Article ---------- */
.article-head { padding: clamp(32px, 5vw, 56px) 0 0; background: linear-gradient(180deg, var(--mist) 0%, var(--mist) 70%, #fff 70%); }
.crumbs { font-size: 0.88rem; color: var(--muted); }
.crumbs a { color: var(--ink); }
.article-head h1 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.article-cover { margin: 28px auto 0; max-width: 1100px; }
.article-cover img { border-radius: 22px; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; box-shadow: var(--shadow-lg); }
.article-body { padding-top: 40px; padding-bottom: 64px; font-size: 1.05rem; }
.article-body h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-top: 1.8em; }
.article-body h3 { margin-top: 1.4em; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: #007a4a; font-weight: 600; }
.article-body blockquote { margin: 1.4em 0; padding: 18px 22px; border-radius: 14px; background: var(--brick-soft); color: var(--brick-ink); font-weight: 700; border-left: 5px solid var(--brick); }
.article-lead { font-size: 1.2rem; color: var(--ink-3); }
.sources { font-size: 0.85rem; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); margin-top: 32px; }
.article-cta { margin-top: 40px; padding: 26px; border-radius: 20px; background: var(--ink); color: #fff; }
.article-cta h2 { color: #fff; margin-top: 0 !important; }
.article-cta p { color: rgba(255, 255, 255, 0.78); }
.article-cta .btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.article-cta .btn-primary { color: var(--brick-ink) !important; }

/* ---------- Footer ---------- */
.site-footer { background: #07120e; color: rgba(255, 255, 255, 0.72); padding: 64px 0 24px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-brand img { width: 130px; margin-bottom: 14px; }
.footer-slogan { color: var(--brick); font-weight: 700; }
.site-footer h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--brick); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { width: 16px; height: 16px; color: var(--brick); margin-top: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.07); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, 0.78); text-decoration: underline; text-underline-offset: 2px; }
.float-msg { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 10px; border-radius: 999px; background: #0866ff; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.92rem; box-shadow: 0 10px 28px rgba(8, 102, 255, 0.4); }
.float-msg .msg-badge { background: #fff; color: #0866ff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 12, 9, 0.94); display: grid; place-items: center; padding: 24px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1200px; width: 100%; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: rgba(255, 255, 255, 0.85); margin-top: 12px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .yt-grid.four { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .award-grid, .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .partners.compact { grid-template-columns: repeat(3, 1fr); }
  .offer-grid { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 64px); flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 32px; background: #fff; overflow-y: auto; margin: 0; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--brick); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 8px; display: none; min-width: 0; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .sub { opacity: 1; }
  .nav-cta { margin: 20px 0 0; }
}
@media (max-width: 960px) {
  .hero-grid, .page-hero-grid, .split, .cta-grid, .form-layout, .form-layout:has(.form-card:first-child), .course, .workshop, .teacher-grid, .student-hero-grid { grid-template-columns: 1fr; }
  .course.rev .course-photos { order: 0; }
  .team-top { grid-template-columns: 1fr; gap: 20px; }
  .hero-collage { max-width: 620px; }
  .hc-badge { left: 8px; top: auto; bottom: -18px; }
  .pathway { grid-template-columns: repeat(2, 1fr); }
  .step-2, .step-3, .step-4 { min-height: 0; }
  .clip-grid, .yt-grid { grid-template-columns: repeat(2, 1fr); }
  .campus-grid, .map-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .social-row { grid-template-columns: 1fr; }
  .steps4 { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 1fr; }
  .founder-avatar { width: 120px; height: 120px; }
  .founder-avatar span { font-size: 1.8rem; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hide-sm { display: none !important; }
  .topbar-in { gap: 12px; font-size: 0.8rem; }
  .teacher-link { padding: 3px 9px; }
  .header-in { min-height: 64px; }
  .brand img { width: 112px; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
  .hero-facts li { flex-direction: column; gap: 2px; padding: 10px; font-size: 0.72rem; }
  .hero-facts b { font-size: 0.82rem; }
  .hero-facts .ic { display: none; }
  .program-grid, .award-grid, .reason-grid, .clip-grid, .yt-grid, .resource-grid, .tool-grid, .team-grid, .league-list, .offer-grid, .process, .teacher-features { grid-template-columns: 1fr; }
  .partners, .partners.compact { grid-template-columns: repeat(2, 1fr); }
  .pathway { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-rows: 150px 150px 170px; }
  .field-row { grid-template-columns: 1fr; }
  .fourc { grid-template-columns: repeat(2, 1fr); }
  .company { grid-template-columns: 1fr; }
  .company div:nth-child(odd) { border-right: 0; }
  .steps4 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .steps4 li { padding: 12px; font-size: 0.8rem; }
  .steps4 b { font-size: 0.92rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .masonry { columns: 2 140px; column-gap: 8px; }
  .ph { margin-bottom: 8px; }
  .filters { top: 64px; }
  .lightbox { padding: 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .float-msg span:last-child { display: none; }
  .float-msg { padding: 12px; }
  .btn-lg { padding: 14px 20px; font-size: 1rem; }
  .hero .actions .btn { flex: 1 1 100%; }
  .form-foot .btn { justify-self: stretch; }
  .article-cover img { aspect-ratio: 16 / 10; }
  .sec-head-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Đăng nhập & tư vấn nhanh ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nav-login { margin-left: 8px; padding: 10px 16px; font-size: 0.92rem; }
.nav-login .ic { width: 16px; height: 16px; }
.nav-login[aria-current="page"] { background: var(--ink); color: #fff; }
.quick-form { gap: 8px; }
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-row input { flex: 1 1 200px; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.quick-row input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--brick-soft); }
.quick-row input.invalid { border-color: var(--coral); }
.quick-row .btn { flex: 0 0 auto; }
.quick-note { margin: 0; font-size: 0.8rem; color: var(--muted); }
.quick-title { margin: 0 0 8px; font-weight: 700; font-size: 0.95rem; color: var(--ink-3); }
.hero-quick { margin-top: 22px; padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 620px; }
.cta-band .quick-title { color: rgba(255, 255, 255, 0.85); margin-top: 22px; }
.quick-form.on-dark .quick-row input { background: var(--ink-2); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.quick-form.on-dark .quick-row input::placeholder { color: rgba(255, 255, 255, 0.55); }
.quick-form.on-dark .quick-note { color: rgba(255, 255, 255, 0.6); }
.login-single { max-width: 640px; margin-inline: auto; }
.login-option { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 3vw, 30px); border-radius: 24px; border: 1px solid var(--line); background: #fff; scroll-margin-top: 100px; }
.login-option h2 { font-size: 1.5rem; margin: 0; }
.login-option p { margin: 0; color: var(--gray); }
.login-icon .ic { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--brick); color: var(--brick-ink); }
.login-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.login-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.login-steps .ic { color: #00a565; margin-top: 3px; }
.btn.is-disabled { opacity: 0.55; cursor: not-allowed; border-style: dashed; }
.btn.is-disabled:hover { background: transparent; color: var(--ink); transform: none; }
@media (max-width: 1180px) { .nav-login { margin: 16px 0 0; } }
@media (max-width: 760px) { .quick-row .btn { flex: 1 1 100%; } }

/* ---------- Trang pháp lý (chính sách quyền riêng tư) ---------- */
.legal .article-body h2 { scroll-margin-top: 96px; }
.legal-toc { margin: 0 0 8px; padding: 18px 22px; border-radius: 16px; background: var(--mist); border: 1px solid var(--line); }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
.legal .compare { min-width: 0; font-size: 0.95rem; }
.legal .compare td:first-child { width: 34%; font-weight: 700; }
@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
  .legal .compare, .legal .compare tbody, .legal .compare tr, .legal .compare td { display: block; width: 100%; }
  .legal .compare thead { display: none; }
  .legal .compare td:first-child { width: 100%; border-bottom: 0; padding-bottom: 4px; }
  .legal .compare td + td { padding-top: 0; }
}

/* Ảnh minh họa trong bài viết (bài cũ thời WordPress đăng lại, 03/12/2026) */
.article-body figure.fig { margin: 24px 0; }
.article-body figure.fig img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); }
.article-body figure.fig figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }

/* Trang /tai-phan-mem/ */
.chip-muted { background: var(--mist, #eef1f4); color: var(--muted); }
.tool-card .aside-list { margin: 0; }
.sec-head .lead a { color: var(--ink); font-weight: 700; }
.page-software .tool-card > .btn { margin-top: auto; align-self: flex-start; }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-logo { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: contain; }

/* Thanh đồng ý cookie (track.js bỏ/đặt thuộc tính hidden). Nằm sát đáy, thấp; nút Messenger nổi được đẩy lên trên. */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; max-height: 30vh; overflow-y: auto; background: #fff; color: var(--ink, #0b1a14); border-top: 1px solid rgba(11, 26, 20, 0.15); box-shadow: 0 -6px 24px rgba(11, 26, 20, 0.12); font-size: 0.88rem; line-height: 1.4; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { flex: 1 1 320px; margin: 0; }
.cookie-bar a { color: inherit; font-weight: 700; text-decoration: underline; }
.cookie-bar .btn { padding: 8px 16px; font-size: 0.88rem; }
.cookie-bar:not([hidden]) ~ .float-msg { bottom: 96px; }
@media (max-width: 760px) {
  .cookie-bar { padding: 8px 12px; gap: 6px 8px; font-size: 0.8rem; }
  .cookie-bar p { flex-basis: 100%; }
  .cookie-bar .btn { flex: 1 1 0; padding: 8px 10px; text-align: center; }
  .cookie-bar:not([hidden]) ~ .float-msg { bottom: 140px; }
}
