/* CrossNet Academy: one stylesheet for every page */
:root {
  --brand: #5b4bff; --brand-dark: #4635ff; --pink: #ff5fa2; --ink: #1d1a3a; --mid: #5d5a7a;
  --bg: #f7f6ff; --card: #ffffff; --line: #e6e3f5; --soft: #efecff; --green: #0a8a63; --amber-bg: #fff6df; --amber-line: #ffe3a3; --amber-ink: #6b4a00;
  --radius: 18px; --shadow: 0 10px 30px rgba(91, 75, 255, 0.12);
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 0.9rem; color: var(--mid); }
ul, ol { color: var(--mid); padding-left: 1.2rem; margin: 0 0 1rem; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.2rem; }
.muted { color: var(--mid); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; }
.brand-mark { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--pink)); font-weight: 800; }
.brand-light { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.site-nav a:not(.btn) { color: var(--mid); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.nav-toggle { display: none; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; width: 42px; height: 42px; font-size: 1.3rem; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; border: 2px solid transparent; border-radius: 999px; padding: 0.8rem 1.5rem; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 8px 22px rgba(91, 75, 255, 0.35); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }

/* Hero */
.hero { background: linear-gradient(135deg, #f0edff 0%, #ffe9f3 100%); padding: 3.2rem 0 3.4rem; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.2rem; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.85rem; margin-bottom: 1rem; }
.hero h1 span { display: block; background: linear-gradient(90deg, var(--brand), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.12rem; max-width: 36rem; }
.hero-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 1.6rem; text-align: center; }
.hero-price { font-size: clamp(2.6rem, 8vw, 4rem); font-weight: 800; color: var(--brand); line-height: 1; }
.hero-price small { font-size: 1.1rem; color: var(--mid); font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; text-align: left; }
.checks li { position: relative; padding: 0.3rem 0 0.3rem 1.7rem; color: var(--ink); font-size: 0.95rem; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 0.3rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--soft); color: var(--brand); font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.page-hero { background: linear-gradient(135deg, #f0edff 0%, #ffe9f3 100%); padding: 2.4rem 0 2.2rem; }
.page-hero p { max-width: 44rem; font-size: 1.05rem; }
.crumbs { font-size: 0.85rem; color: var(--mid); margin-bottom: 0.6rem; }
.crumbs a { color: var(--mid); display: inline-block; padding: 14px 6px; margin: -14px -6px; }

/* Sections */
.section { padding: 3rem 0; }
.section.alt { background: #fff; }
.section-head { max-width: 46rem; margin-bottom: 1.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.card h3 { margin-bottom: 0.35rem; }
.card p:last-child { margin-bottom: 0; }
.icon { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; background: var(--soft); font-size: 1.25rem; margin-bottom: 0.7rem; }

/* Pricing */
.price-card { background: linear-gradient(135deg, var(--brand), #8a3ffc 60%, var(--pink)); color: #fff; border-radius: 26px; padding: 2rem; display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.6rem; align-items: center; box-shadow: var(--shadow); }
.price-card h2, .price-card p, .price-card li { color: #fff; }
.price-big { font-size: clamp(3rem, 10vw, 5rem); font-weight: 800; line-height: 1; }
.price-big small { font-size: 1.2rem; font-weight: 600; opacity: 0.9; }
.price-card .checks li { color: #fff; }
.price-card .checks li::before { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* Steps and timeline */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.step::before { counter-increment: s; content: counter(s); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 0.6rem; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem; position: relative; }
.tl-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1rem; position: relative; }
.tl-dot { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--brand); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 0.5rem; }
.tl-step h4 { margin-bottom: 0.25rem; }
.tl-step p { font-size: 0.88rem; margin: 0; }
.tl-next { border: 2px solid var(--brand); background: #fbfaff; box-shadow: var(--shadow); }
.tl-next .tl-dot { background: var(--brand); color: #fff; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); color: var(--mid); white-space: nowrap; }
th { color: var(--ink); background: #faf9ff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }
.tz-bar { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin-bottom: 0.9rem; }
.tz-bar label { font-weight: 700; color: var(--ink); }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 1.6rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.3rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 0.7rem 0.85rem; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.field .hint { font-size: 0.8rem; color: var(--mid); margin-top: 0.3rem; }
.note { background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber-ink); border-radius: 12px; padding: 0.7rem 0.9rem; font-size: 0.86rem; margin: 0 0 1rem; }
.note.info { background: var(--soft); border-color: var(--line); color: var(--ink); }
.note strong { color: inherit; }
.banner24 { text-align: center; color: #fff; background: linear-gradient(120deg, var(--brand), #8a3ffc 55%, var(--pink)); border-radius: 20px; padding: 1.1rem 1rem; margin: 0.4rem 0 1.2rem; box-shadow: var(--shadow); }
.banner24 strong { display: block; font-size: clamp(1.4rem, 5vw, 2.1rem); line-height: 1.15; }
.banner24 span { font-size: 0.9rem; opacity: 0.95; }
.commit { display: flex; gap: 0.7rem; align-items: flex-start; background: var(--amber-bg); border: 1.5px solid var(--amber-line); border-radius: 14px; padding: 0.8rem 0.9rem; margin-bottom: 1rem; font-size: 0.88rem; color: var(--amber-ink); cursor: pointer; }
.commit input { width: 20px; height: 20px; margin-top: 0.15rem; flex: none; accent-color: var(--brand); }
.pay-box { background: linear-gradient(120deg, #f3f1ff, #eefcf7); border: 1.5px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.pay-box .amount { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; background: #fff; border-radius: 12px; padding: 0.6rem 0.9rem; color: var(--mid); }
.pay-box .amount b { font-size: 1.5rem; color: var(--brand); }
.msg { min-height: 1.3rem; margin: 0.3rem 0 0.8rem; font-size: 0.92rem; font-weight: 600; }
.msg.ok { color: var(--green); }
.msg.err { color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Subjects (per-subject pricing) */
fieldset.subjects { border: 1.5px solid var(--line); border-radius: 14px; padding: 0.8rem 1rem 1rem; margin: 0 0 1rem; min-width: 0; }
fieldset.subjects legend { font-weight: 700; font-size: 0.9rem; color: var(--ink); padding: 0 0.4rem; }
.subjects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1rem; }
.check { display: flex; align-items: center; gap: 0.55rem; font-size: 0.92rem; color: var(--ink); cursor: pointer; padding: 0.35rem 0.5rem; border-radius: 10px; }
.check:hover { background: var(--soft); }
.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
@media (max-width: 480px) { .subjects-grid { grid-template-columns: 1fr; } }

/* Teacher application wizard */
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.wizard { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 1.2rem; counter-reset: w; }
.wizard li { counter-increment: w; font-size: 0.8rem; font-weight: 700; color: var(--mid); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; }
.wizard li::before { content: counter(w) ". "; }
.wizard li.on { color: #fff; background: var(--brand); border-color: var(--brand); }
.wizard li.done { color: var(--green); border-color: var(--green); }
.pane { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.pane[hidden] { display: none; }
.pane > legend { font-family: inherit; font-weight: 800; font-size: 1.15rem; color: var(--ink); margin-bottom: 0.8rem; padding: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
fieldset.group { border: 1.5px solid var(--line); border-radius: 14px; padding: 0.7rem 1rem 0.9rem; margin: 0 0 1rem; min-width: 0; }
fieldset.group > legend { font-weight: 700; font-size: 0.9rem; color: var(--ink); padding: 0 0.4rem; }
.checks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.3rem 1rem; }
.checks-grid.cols4 { grid-template-columns: repeat(4, 1fr); }
.quick { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.commit.plain { background: #fff; border-color: var(--line); color: var(--ink); }
.pane h3 { margin: 1.1rem 0 0.4rem; font-size: 1.02rem; }
.matrix { min-width: 760px; }
.matrix th { text-align: center; vertical-align: bottom; white-space: nowrap; }
.matrix th:first-child { text-align: left; }
.matrix th small { display: block; font-weight: 500; font-size: 0.7rem; color: var(--mid); }
.matrix th small.loc { color: var(--brand); }
.matrix td { text-align: center; }
.matrix td.sub { text-align: left; font-weight: 700; color: var(--ink); white-space: normal; min-width: 130px; }
.matrix label.cell { display: inline-flex; padding: 0.3rem; cursor: pointer; }
.matrix input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); }
.review { background: var(--soft); border-radius: 14px; padding: 0.8rem 1rem; margin: 0 0 1rem; }
.review h3 { margin: 0 0 0.4rem; }
.rv { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; color: var(--mid); padding: 0.2rem 0; border-bottom: 1px solid rgba(91, 75, 255, 0.12); }
.rv b { color: var(--ink); text-align: right; font-weight: 600; }
.wiz-nav { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 0.6rem; }
.wiz-nav [hidden] { display: none; }
.field input[type=file] { padding: 0.55rem; background: #fff; }
@media (max-width: 980px) { .steps-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .steps-5 { grid-template-columns: 1fr; } .two { grid-template-columns: 1fr; } .checks-grid.cols4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .checks-grid { grid-template-columns: 1fr; } }

/* Countries */
.country-card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; transition: transform 0.15s, box-shadow 0.15s; color: var(--ink); }
.country-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.country-card h3 { margin-bottom: 0.15rem; }
.country-card span { font-size: 0.85rem; color: var(--mid); }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--soft); color: var(--brand); margin-top: 0.4rem; }
.badge.warn { background: var(--amber-bg); color: var(--amber-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.8rem; font-size: 0.85rem; color: var(--ink); }
.chips.accent li { background: var(--soft); }

/* Scholarships */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0.8rem; }
.chip-btn { font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--mid); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem; min-height: 44px; cursor: pointer; }
.chip-btn:hover { color: var(--brand); border-color: var(--brand); }
.chip-btn.active { color: #fff; background: var(--brand); border-color: var(--brand); }
.jump { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.88rem; margin-bottom: 0.4rem; }
.sch-country { margin-bottom: 2.2rem; scroll-margin-top: 80px; }
.sch-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.sch-head h2 { margin: 0; }
.sch-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.4rem; }
.badge.pg { background: #e8f7f1; color: var(--green); }
.sch-card[hidden], .sch-country[hidden] { display: none; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq details[open] summary { color: var(--brand); margin-bottom: 0.4rem; }
.faq details p { margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--brand), #8a3ffc 60%, var(--pink)); color: #fff; border-radius: 26px; padding: 2.2rem 1.6rem; text-align: center; }
.cta-band h2, .cta-band p { color: #fff; }

/* Footer */
.site-footer { background: #17142f; color: #cfcbe8; margin-top: 3rem; padding-top: 2.4rem; }
.site-footer a { color: #cfcbe8; text-decoration: none; display: block; padding: 0.15rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #aaa6c8; font-size: 0.92rem; }
.site-footer h4 { color: #fff; margin-bottom: 0.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 1.6rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 1.6rem; padding: 1rem 1.2rem; font-size: 0.85rem; color: #aaa6c8; }
.footer-bottom a { display: inline; }

/* Legal pages */
.legal h2 { font-size: 1.15rem; margin-top: 1.8rem; }
.draft { background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber-ink); border-radius: 12px; padding: 0.7rem 0.9rem; margin: 1rem 0; font-size: 0.88rem; }

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 0.6rem 1.2rem 1rem; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 0.7rem; }
}
@media (max-width: 760px) {
  .hero { padding: 2rem 0 2.2rem; }
  .hero-grid, .price-card { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .steps, .timeline, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 2.2rem 0; }
  .form-card { padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .country-card { transition: none; } }

/* Top Universities */
.uni-list, .uni-mini { margin: 0.6rem 0 0.8rem; padding-left: 1.3rem; }
.uni-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.uni-list li:last-child { border-bottom: 0; }
.uni-list li::marker { color: var(--brand); font-weight: 700; }
.uni-list li { display: list-item; }
.uni-list .uni-name { display: inline-block; max-width: calc(100% - 7rem); vertical-align: top; font-weight: 600; }
.uni-list .uni-name small { display: block; font-weight: 400; color: var(--mid, #5d5a7a); }
.uni-list .badge { float: right; margin-top: 0; }
.uni-mini li { padding: 0.15rem 0; }
.chips a { text-decoration: none; color: inherit; }

/* ===== Home page (index.php): hero slider, facts card, tabs + bento, carousels, ticker, apply bar ===== */
/* Larger tap targets everywhere (min 44px) */
.brand { min-height: 44px; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.site-nav a:not(.btn)::after { bottom: 4px; }
#winZone, .tz-bar select { min-height: 44px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.btn-block { display: flex; }
.nav-toggle { width: 44px; height: 44px; }
.btn-glass { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.28); }
.kicker { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink); margin-bottom: 0.3rem; }
.kicker.light { color: #ffd0e6; }

/* --- 1. Hero slider: the height is fixed, so nothing jumps when slides change --- */
.hero-slider { position: relative; background: #14103a; overflow: hidden; isolation: isolate; }
.hs-track { position: relative; height: clamp(600px, 88vh, 720px); }
@supports (height: 1svh) { .hs-track { height: clamp(600px, 88svh, 720px); } }
.hs-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 0; }
.hs-slide.is-prev { opacity: 1; visibility: visible; z-index: 1; }                           /* old slide stays underneath while the new one fades in */
.hs-slide.is-active { opacity: 1; visibility: visible; z-index: 2; animation: hsFade 1s ease both; }
@keyframes hsFade { from { opacity: 0; } to { opacity: 1; } }
.hs-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transform: scale(1.04); will-change: transform; }
.hs-slide.is-active img, .hs-slide.is-prev img { animation: hsZoom 9s linear both; }          /* slow zoom */
.hs-slide.is-prev img { animation-play-state: paused; }
.is-paused .hs-slide.is-active img { animation-play-state: paused; }
@keyframes hsZoom { from { transform: scale(1.04); } to { transform: scale(1.15); } }
.hs-overlay { position: absolute; inset: 0; display: flex; align-items: center; padding-bottom: 92px; background: linear-gradient(90deg, rgba(20, 16, 58, 0.92) 0%, rgba(44, 26, 120, 0.72) 42%, rgba(20, 16, 58, 0.12) 100%); }
.hs-copy { color: #fff; }
.hs-copy > * { max-width: 37rem; }
.hs-copy h1, .hs-copy h2 { color: #fff; font-size: clamp(1.85rem, 5.2vw, 3.6rem); line-height: 1.08; margin: 0.2rem 0 0.8rem; text-wrap: balance; }
.hs-copy .lead { color: #ecebff; font-size: clamp(1rem, 2.1vw, 1.2rem); margin-bottom: 0; }
.hs-copy .eyebrow { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.hs-slide.is-active .hs-copy > * { animation: hsUp 0.7s ease both; animation-delay: 0.45s; }   /* text arrives after the photo */
.hs-slide.is-active .hs-copy > *:nth-child(2) { animation-delay: 0.55s; }
.hs-slide.is-active .hs-copy > *:nth-child(3) { animation-delay: 0.65s; }
.hs-slide.is-active .hs-copy > *:nth-child(4) { animation-delay: 0.75s; }
.hs-slide:first-child.is-active .hs-copy > * { animation-delay: 0.15s; }
.hs-slide:first-child.is-active .hs-copy > *:nth-child(2) { animation-delay: 0.22s; }
.hs-slide:first-child.is-active .hs-copy > *:nth-child(3) { animation-delay: 0.3s; }
.hs-slide:first-child.is-active .hs-copy > *:nth-child(4) { animation-delay: 0.38s; }
.hs-copy .btn-row { margin-top: 1.3rem; }

.hs-progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 6; background: rgba(255, 255, 255, 0.16); }
.hs-progress i { display: block; width: 100%; height: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, var(--pink), #fff); }  /* drains as the slide's time runs out */
.is-paused .hs-progress i { opacity: 0.55; }
.no-motion .hs-progress { display: none; }

.hs-btn { position: absolute; top: calc(50% - 46px); z-index: 6; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 1.1rem; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.hs-btn:hover { background: rgba(255, 255, 255, 0.34); transform: scale(1.06); }
.hs-prev { left: 18px; } .hs-next { right: 18px; }

.hs-controls { position: absolute; z-index: 6; left: 0; right: 0; bottom: 70px; display: flex; align-items: center; justify-content: center; gap: 0.3rem; pointer-events: none; }
.hs-controls > * { pointer-events: auto; }
.hs-pause { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 0.7rem; letter-spacing: -1px; cursor: pointer; }
.hs-pause:hover { background: rgba(255, 255, 255, 0.3); }
.hs-dots { display: flex; }
.hs-dots button { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.hs-dots button::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-radius: 999px; transform: translate(-50%, -50%); background: rgba(255, 255, 255, 0.5); transition: width 0.3s, background 0.3s; }
.hs-dots button.on::after { width: 30px; background: #fff; }
.hs-count { min-width: 3.2rem; text-align: center; color: #fff; font-size: 0.82rem; font-weight: 700; opacity: 0.9; pointer-events: none; }
.hero-slider :focus-visible, .carousel :focus-visible, .aud-tab:focus-visible, .apply-bar :focus-visible { outline: 3px solid #ffd0e6; outline-offset: 2px; }

/* --- 2. Facts card: overlaps the hero and is always on screen, so key facts are never only inside a slide --- */
.facts { position: relative; z-index: 7; margin-top: -48px; }
.facts-card { display: grid; grid-template-columns: repeat(5, 1fr); padding: 1.1rem 0.5rem; border-radius: 24px; background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 24px 60px rgba(29, 26, 58, 0.22); }
.fact { position: relative; padding: 0.35rem 0.5rem; text-align: center; }
.fact + .fact::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line); }
.fact strong { display: block; font-size: clamp(1.45rem, 3.2vw, 2.2rem); font-weight: 800; line-height: 1.1; color: var(--brand); }
.fact > span { display: block; margin-top: 0.15rem; font-size: 0.82rem; line-height: 1.3; color: var(--mid); }
.facts + .section { padding-top: 3.4rem; }

/* --- 3. Student / Parent switch + bento cards --- */
#audience { overflow-x: hidden; overflow-x: clip; }
.aud-tabs { display: flex; gap: 0.3rem; width: fit-content; max-width: 100%; margin: 0 auto 1.6rem; padding: 0.35rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(91, 75, 255, 0.1); }
.aud-tab { flex: 1 1 auto; min-height: 48px; padding: 0.6rem 1.4rem; font: inherit; font-weight: 700; border-radius: 999px; border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.aud-tab:hover { background: var(--soft); }
.aud-tab.is-active { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 8px 22px rgba(91, 75, 255, 0.32); }
.aud-panel[hidden] { display: none; }
.aud-panel.enter-right { animation: audR 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.aud-panel.enter-left { animation: audL 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes audR { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes audL { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bento-card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.3rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(91, 75, 255, 0.07); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(91, 75, 255, 0.16); border-color: #cfc8ff; }
.bento-card .icon { width: 46px; height: 46px; margin-bottom: 0.7rem; font-size: 1.4rem; }
.bento-card h3 { margin-bottom: 0.35rem; }
.bento-card p { margin: 0; font-size: 0.95rem; }
.bento-card .btn { margin-top: 1.1rem; }
.b-hero { grid-column: span 2; grid-row: span 2; justify-content: flex-end; padding: 1.8rem; color: #fff; border: 0; background: linear-gradient(150deg, var(--brand) 0%, #8a3ffc 62%, var(--pink) 100%); }
.b-hero .icon { background: rgba(255, 255, 255, 0.2); width: 56px; height: 56px; font-size: 1.7rem; margin-top: auto; }
.b-hero h3 { font-size: clamp(1.35rem, 3vw, 1.85rem); color: #fff; }
.b-hero p { color: #f1eeff; font-size: 1.02rem; }
.b-wide { grid-column: span 4; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 1.2rem; background: linear-gradient(135deg, #fff, var(--soft)); }
.b-wide .icon { grid-row: 1 / span 2; margin: 0; }
.b-wide h3 { grid-column: 2; align-self: end; margin: 0; }
.b-wide p { grid-column: 2; align-self: start; }
.b-wide .btn { grid-column: 3; grid-row: 1 / span 2; margin: 0; }

/* --- 4 and 7. Carousels: scroll-snap track, next card peeks in, arrows, dots, mouse drag --- */
.strip-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.strip-head .section-head { margin-bottom: 0; }
.carousel { position: relative; }
.car-track { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 0.5rem 0.2rem 1.1rem; scroll-padding-inline: 0.2rem; scrollbar-width: none; cursor: grab; }
.car-track::-webkit-scrollbar { display: none; }
.car-track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.car-track.dragging * { pointer-events: none; }
.car-item { scroll-snap-align: start; }
.promise { flex: 0 0 min(340px, 82%); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: 0 6px 20px rgba(91, 75, 255, 0.08); }
.promise p:last-child { margin-bottom: 0; }
.pnum { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), var(--pink)); color: #fff; font-weight: 800; margin-bottom: 0.6rem; }
.cty { flex: 0 0 min(262px, 76%); display: flex; flex-direction: column; gap: 0.2rem; min-height: 172px; padding: 1.15rem 1.2rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(91, 75, 255, 0.07); color: var(--ink); text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.cty:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(91, 75, 255, 0.16); border-color: #cfc8ff; }
.cty h3 { margin: 0 0 0.15rem; }
.cty span { font-size: 0.86rem; color: var(--mid); }
.cty small { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.cty em { margin-top: auto; padding-top: 0.5rem; font-style: normal; font-weight: 700; color: var(--brand); }
.car-btn { position: absolute; top: calc(50% - 22px); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand-dark); font-size: 1rem; cursor: pointer; box-shadow: 0 8px 22px rgba(29, 26, 58, 0.18); transition: opacity 0.2s, transform 0.2s, background 0.2s; }
.car-btn:hover:not(:disabled) { background: var(--soft); transform: scale(1.06); }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.car-prev { left: -16px; } .car-next { right: -16px; }
.car-dots { display: flex; justify-content: center; flex-wrap: wrap; margin: 0.2rem 0 0.4rem; }
.car-dots[hidden] { display: none; }
.car-dots button { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.car-dots button::after { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-radius: 999px; transform: translate(-50%, -50%); background: #cfc9ee; transition: width 0.3s, background 0.3s; }
.car-dots button.on::after { width: 28px; background: var(--brand); }
.car-bar { position: relative; display: block; width: min(260px, 70%); height: 6px; margin: 1rem 0; border-radius: 99px; background: #e2def7; overflow: hidden; }
.car-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 20%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--pink)); }
#promises .btn-row { margin-top: 0.4rem; }

/* Soft fade at the edges of a carousel that still has more to show (tablet and desktop; phones bleed to the screen edge instead) */
@media (min-width: 701px) {
  .carousel .car-track { --fl: 0px; --fr: 0px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); }
  .carousel:not(.at-start) .car-track { --fl: 44px; }
  .carousel:not(.at-end) .car-track { --fr: 44px; }
}

/* --- 5. Photo story --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center; margin: 1rem 0 2.6rem; }
.split.rev .split-img { order: -1; }
.split-img img { width: 100%; height: auto; display: block; border-radius: 24px; box-shadow: var(--shadow); }

/* --- 6. University ticker: slow, pauses on hover and focus, fades at both edges --- */
.uni-band { background: linear-gradient(135deg, #1d1a3a, #3a2a9a); color: #fff; padding: 2.6rem 0 2.4rem; overflow: hidden; }
.uni-band h2 { color: #fff; margin-bottom: 0.3rem; }
.uni-band p { color: #dcd9ff; margin: 0; }
.uni-band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.ticker { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: tick 160s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.tick { display: block; flex: none; width: 280px; min-height: 76px; padding: 0.85rem 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; text-decoration: none; transition: background 0.2s; }
.tick strong { display: block; font-size: 0.98rem; line-height: 1.3; }
.tick span { font-size: 0.82rem; color: #cfcbff; }
.tick:hover { background: rgba(255, 255, 255, 0.2); }
@keyframes tick { to { transform: translateX(-50%); } }

/* --- Sticky Apply bar (phones only) --- */
.apply-bar { display: none; }

.tz-bar select, #winZone { max-width: 100%; }
.tz-bar { flex-wrap: wrap; }

/* --- Responsive --- */
@media (min-width: 861px) { .hs-overlay { padding-bottom: 100px; } }
@media (max-width: 1160px) { .car-prev { left: -4px; } .car-next { right: -4px; } }
@media (max-width: 860px) {
  .hs-btn { display: none; }
  .hs-overlay { align-items: flex-end; padding-bottom: 128px; background: linear-gradient(180deg, rgba(20, 16, 58, 0.35) 0%, rgba(20, 16, 58, 0.7) 45%, rgba(20, 16, 58, 0.94) 100%); }
  .facts-card { grid-template-columns: repeat(6, 1fr); }
  .fact { grid-column: span 2; }
  .fact:nth-child(4) { grid-column: 2 / span 2; }
  .fact:nth-child(5) { grid-column: 4 / span 2; }
  .fact:nth-child(4)::before { display: none; }
  .split { grid-template-columns: 1fr; gap: 1.2rem; }
  .split.rev .split-img { order: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-hero { grid-column: span 2; grid-row: auto; }
  .b-wide { grid-column: span 2; }
}
@media (max-width: 700px) {
  .car-btn { display: none; }                                   /* phones swipe; dots and the peeking next card show the position */
  .carousel { margin-inline: -1.2rem; }                         /* let the track run to the screen edge so the next card visibly peeks in */
  .car-track { padding-inline: 1.2rem; scroll-padding-inline: 1.2rem; }
  .promise { flex-basis: 80%; }
  .cty { flex-basis: 74%; }
  .car-bar { margin-inline: auto; }
  .apply-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(29, 26, 58, 0.14); transform: translateY(110%); visibility: hidden; transition: transform 0.35s ease, visibility 0s linear 0.35s; }
  .apply-bar.show { transform: none; visibility: visible; transition-delay: 0s; }
  .apply-bar span { display: block; min-width: 0; line-height: 1.25; }
  .apply-bar strong { display: block; font-size: 0.86rem; color: var(--ink); }
  .apply-bar small { font-size: 0.78rem; color: var(--mid); }
  .apply-bar .btn { flex: none; padding: 0.6rem 1.3rem; }
  .bar-on .to-top { bottom: 84px; }
}
@media (max-width: 560px) {
  .hs-track { height: clamp(610px, 90vh, 700px); }
  @supports (height: 1svh) { .hs-track { height: clamp(610px, 90svh, 700px); } }
  .hs-copy .btn-row { gap: 0.6rem; }
  .hs-copy .btn { padding-inline: 1.1rem; }
  .facts { margin-top: -40px; }
  .facts-card { padding: 0.8rem 0.2rem; }
  .fact > span { font-size: 0.76rem; }
  .aud-tabs { width: 100%; }
  .aud-tab { padding-inline: 0.6rem; }
  .bento { grid-template-columns: 1fr; }
  .b-hero, .b-wide { grid-column: auto; }
  .b-hero { padding: 1.4rem; }
  .bento-card:not(.b-hero):not(.b-wide) { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.9rem; padding: 1rem 1.1rem; }
  .bento-card:not(.b-hero):not(.b-wide) .icon { grid-row: 1 / span 2; margin: 0; }
  .bento-card:not(.b-hero):not(.b-wide) h3 { align-self: end; margin: 0 0 0.15rem; font-size: 1.05rem; }
  .bento-card:not(.b-hero):not(.b-wide) p { align-self: start; font-size: 0.92rem; }
  .b-wide { grid-template-columns: auto 1fr; row-gap: 0.4rem; }
  .b-wide .btn { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; margin-top: 0.7rem; }
  .strip-head .btn { display: flex; width: 100%; }
}
@media (max-width: 560px) { .price-big small { display: block; margin-top: 0.15rem; } }
@media (max-width: 380px) { .hs-count { display: none; } .hs-copy h1, .hs-copy h2 { font-size: 1.7rem; } }
@media (prefers-reduced-motion: reduce) {
  .hs-slide.is-active img, .hs-slide.is-prev img { animation: none; }
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .tick[aria-hidden="true"] { display: none; }
  .car-track { scroll-behavior: auto; }
}

/* Scroll reveal (the .reveal class is added by main.js) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.card.reveal:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ===== Modern layer: motion, glass header, hero art, micro-interactions (all pages) ===== */
section[id] { scroll-margin-top: 80px; }
body { animation: pageIn 0.5s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

.scroll-bar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 80; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--pink)); pointer-events: none; }
.site-header { transition: box-shadow 0.3s, background 0.3s, min-height 0.3s; }
.site-header.scrolled { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 8px 30px rgba(29, 26, 58, 0.1); }
.site-nav a:not(.btn) { position: relative; border-bottom: 0; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--pink)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.site-nav a:not(.btn):hover::after, .site-nav a.active::after { transform: scaleX(1); }

/* Buttons: lift + shine */
.btn { position: relative; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s; }
.btn::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: skewX(-20deg); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { animation: shine 0.8s ease; }
.btn:active { transform: translateY(0) scale(0.98); }
@keyframes shine { to { left: 130%; } }

/* Page heroes: drifting colour blobs */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before, .page-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: 0.55; }
.page-hero::before { width: 340px; height: 340px; background: #c9c1ff; top: -120px; right: 8%; animation: drift 14s ease-in-out infinite alternate; }
.page-hero::after { width: 280px; height: 280px; background: #ffc3dd; bottom: -120px; left: 4%; animation: drift 17s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 24px) scale(1.15); } }
.page-hero .container > * { animation: hsUp 0.7s ease both; }
.page-hero .container > *:nth-child(2) { animation-delay: 0.08s; }
.page-hero .container > *:nth-child(3) { animation-delay: 0.16s; }
.page-hero .container > *:nth-child(4) { animation-delay: 0.24s; }
@keyframes hsUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Cards and tiles */
.card, .step, .country-card, .tl-step, .promise { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card:hover, .step:hover, .country-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(91, 75, 255, 0.18); border-color: #cfc8ff; }
.card:hover .icon { animation: pop 0.5s ease; }
@keyframes pop { 40% { transform: scale(1.18) rotate(-6deg); } 100% { transform: none; } }
.country-card h3::after { content: "\2192"; display: inline-block; margin-left: 0.4rem; opacity: 0; transform: translateX(-6px); transition: all 0.25s; color: var(--brand); }
.country-card:hover h3::after { opacity: 1; transform: none; }

/* FAQ */
.faq summary { list-style: none; position: relative; padding-right: 1.8rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -0.05rem; font-size: 1.4rem; color: var(--brand); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] > *:not(summary) { animation: hsUp 0.35s ease both; }
.faq details { transition: box-shadow 0.25s, border-color 0.25s; }
.faq details:hover { box-shadow: var(--shadow); border-color: #cfc8ff; }

/* Animated gradient bands */
.cta-band, .price-card { background-size: 200% 200%; animation: gradMove 14s ease infinite; }
@keyframes gradMove { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Generic reveal on every page (JS adds .reveal) */
.js .reveal { transition-delay: var(--d, 0s); }

/* Back to top */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--pink)); box-shadow: 0 10px 24px rgba(91, 75, 255, 0.4); opacity: 0; transform: translateY(14px); pointer-events: none; transition: all 0.3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* Mobile menu: smooth slide */
@media (max-width: 860px) {
  .site-nav { display: flex; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.28s ease; }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a:not(.btn)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.js .card.reveal.in:hover, .js .step.reveal.in:hover, .js .country-card.reveal.in:hover { transform: translateY(-5px); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.js .reveal.in { transition-delay: 0s; }

/* ===== Header: one-line menu, Admissions Open button, footer hiring tag ===== */
.brand, .site-nav a, .site-nav .btn { white-space: nowrap; }
@media (min-width: 1041px) {
  .header-row { gap: 0.6rem; }
  .site-nav { gap: 0.9rem; }
  .site-nav a:not(.btn) { font-size: 0.9rem; min-width: 44px; }
  .site-nav .btn { padding-left: 1.1rem; padding-right: 1.1rem; }
}
.btn-open { display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-open .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
.tag-hiring { display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #d9ffe9; background: rgba(61, 220, 151, 0.16); border: 1px solid rgba(61, 220, 151, 0.35); vertical-align: middle; }

/* ===== About page (about.php) ===== */
.ap-hero { background: radial-gradient(900px 420px at 88% -10%, rgba(122, 63, 240, 0.4), transparent 60%), linear-gradient(135deg, #12102b 0%, #1d1a4a 60%, #2a1f6e 100%); color: #fff; padding: 3.6rem 0 6.2rem; }
.ap-eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #cfcaff; }
.ap-eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--pink)); }
.ap-hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.7rem); line-height: 1.08; letter-spacing: -0.025em; max-width: 17em; margin: 1rem 0 1.1rem; }
.ap-lead { color: #dcd9f7; font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 40rem; margin: 0 0 1.6rem; }
.facts-4 .facts-card { grid-template-columns: repeat(4, 1fr); }
.ap-split { display: grid; grid-template-columns: 5fr 7fr; gap: 2.6rem; align-items: start; }
.ap-split h2, .ap-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; margin-top: 0.3rem; }
.ap-prose p { color: var(--mid); font-size: 1.05rem; line-height: 1.7; margin: 0 0 1rem; }
.ap-prose-wide { max-width: 50rem; }
.ap-head { max-width: 46rem; margin-bottom: 2rem; }
.ap-intro { color: var(--mid); font-size: 1.08rem; line-height: 1.65; }
.ap-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; border-bottom: 1px solid var(--line); }
.ap-item { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.ap-num { font-weight: 800; font-size: 1.25rem; color: var(--brand-dark); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.ap-item h3 { margin: 0 0 0.35rem; font-size: 1.12rem; }
.ap-item p { margin: 0; color: var(--mid); }
.ap-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.ap-cards.ap-cards-3 { grid-template-columns: repeat(3, 1fr); }
.ap-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 14px; padding: 1.5rem 1.6rem; }
.ap-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 0.5rem; }
.ap-card h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.ap-card p { margin: 0; color: var(--mid); }
.ap-terms { margin: 1.4rem 0 0; padding-left: 0.9rem; border-left: 3px solid var(--pink); color: var(--ink); font-weight: 600; }
.ap-uses { margin: 0; }
.ap-uses > div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.ap-uses > div:last-child { border-bottom: 1px solid var(--line); }
.ap-uses dt { font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.2rem; }
.ap-uses dd { margin: 0; color: var(--mid); }
.ap-fine { margin: 1.4rem 0 0; font-size: 0.9rem; color: var(--mid); }
.ap-statement { max-width: 40rem; margin: 0 0 1.4rem; padding-left: 1.1rem; border-left: 4px solid var(--brand); font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); }
.ap-wins { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2rem; border-top: 1px solid var(--line); }
.ap-wins > div { padding: 1.3rem 1.3rem 0 0; }
.ap-wins > div + div { padding-left: 1.3rem; border-left: 1px solid var(--line); }
.ap-wins h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.ap-wins p { margin: 0; color: var(--mid); font-size: 0.96rem; }
.ap-access { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 2.4rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2.2rem; box-shadow: 0 10px 34px rgba(29, 26, 58, 0.06); }
.ap-access h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0.3rem 0 0.8rem; }
.ap-access p { color: var(--mid); }
.ap-access-side { display: grid; gap: 1rem; align-content: start; }
.ap-access-side > div { padding: 1.1rem 1.2rem; border-left: 3px solid var(--pink); background: var(--soft); border-radius: 0 12px 12px 0; }
.ap-access-side h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.ap-access-side p { margin: 0; font-size: 0.95rem; }
.ap-give { background: linear-gradient(135deg, #12102b 0%, #1d1a4a 100%); color: #dcd9f7; padding: 4rem 0; }
.ap-give .container { max-width: 880px; }
.ap-give h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.02em; margin: 0.8rem 0 1rem; }
.ap-give p { margin: 0 0 1rem; line-height: 1.7; color: #dcd9f7; }
.ap-give .ap-give-lead { font-size: 1.2rem; color: #fff; line-height: 1.55; }
.ap-give a { color: #ffd0e6; text-decoration: underline; text-underline-offset: 3px; }
.ap-time { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.ap-time li { position: relative; padding-top: 1.3rem; border-top: 2px solid var(--line); }
.ap-time li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.ap-time small { display: block; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand-dark); }
.ap-time h3 { margin: 0.3rem 0 0.2rem; font-size: 1.15rem; color: var(--ink); }
.ap-time p { margin: 0; color: var(--mid); }
.ap-note { max-width: 50rem; margin: 1.6rem 0 0; padding: 1rem 1.2rem; border-left: 4px solid var(--brand); background: var(--soft); border-radius: 0 12px 12px 0; color: var(--ink); }
.ap-sources { margin-top: 0.9rem; }
.ap-hiring { margin: 1.2rem 0 0; text-align: center; font-size: 0.92rem; color: var(--mid); }
@media (max-width: 860px) {
  .ap-hero { padding: 2.6rem 0 5.4rem; }
  .ap-split, .ap-access { grid-template-columns: 1fr; gap: 1.2rem; }
  .ap-list, .ap-cards, .ap-cards.ap-cards-3, .ap-time { grid-template-columns: 1fr; }
  .ap-time { gap: 1.4rem; }
  .ap-access { padding: 1.5rem; }
  .ap-wins { grid-template-columns: 1fr 1fr; border-top: 0; }
  .ap-wins > div, .ap-wins > div + div { padding: 1.1rem 1rem 1.1rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts-4 .facts-card { grid-template-columns: repeat(2, 1fr); }
  .facts-4 .fact, .facts-4 .fact:nth-child(4), .facts-4 .fact:nth-child(5) { grid-column: auto; }
  .facts-4 .fact:nth-child(3)::before { display: none; }
}
@media (max-width: 560px) { .ap-wins { grid-template-columns: 1fr; } .ap-give { padding: 3rem 0; } }

#englishBox { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.4rem 1.1rem 0.9rem; margin: 0.4rem 0 1rem; }
#englishBox summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--ink); }
#englishBox[open] summary { color: var(--brand-dark); }
.faq summary { min-height: 44px; display: flex; align-items: center; }

/* Quiet switch between the two applications (Cambridge / English & IELTS) */
.switch-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; }
.switch-note .btn { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.9rem; }
