/* =====================================================================
   Delight Training Academy — Public website + login page
   Loaded after base.css. Sections: top bar · navigation · hero · facts ·
   sections · subjects · steps · portal preview · parents · study options ·
   fees · FAQ · subject page · footer · auth (login/register) · responsive
   ===================================================================== */

body.site { background: #fff; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg); }
.section-navy { background: var(--navy); color: rgba(255, 255, 255, .8); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }
.section-navy .section-head p { color: rgba(255, 255, 255, .72); }
.eyebrow.light { color: #9FE0FA; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue); color: #fff; font-size: .82rem; }
.topbar .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar .contacts { display: flex; gap: 20px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #DDF1FA; }
.topbar svg { width: 15px; height: 15px; }
.topbar .tag { display: inline-flex; align-items: center; gap: 7px; opacity: .92; }
.topbar svg, .footer .contact svg { --ic-a: currentColor; --ic-f: transparent; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 300; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow var(--base), border-color var(--base); }
.nav.scrolled { box-shadow: 0 8px 24px -16px rgba(11, 27, 58, .35); border-color: var(--line); }
.nav.dim-on { z-index: 720; }
.nav .inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav .logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > a, .nav-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px; font-weight: 500; font-size: .94rem; color: var(--ink-2); background: none; border: 0; }
.nav-links > a:hover, .nav-trigger:hover, .nav-item.open .nav-trigger { color: var(--blue); background: var(--blue-50); }
.nav-links > a.active { color: var(--blue); }
.nav-trigger svg { width: 16px; height: 16px; transition: transform var(--base); }
.nav-item.open .nav-trigger svg { transform: rotate(180deg); }
.nav-item.open .nav-trigger { position: relative; z-index: 2; }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn svg { width: 18px; height: 18px; }
.mega { position: absolute; z-index: 2; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(11, 27, 58, .35); padding: 26px 0 30px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s var(--ease); }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.mega-head b { display: block; color: var(--ink); font-size: 1.02rem; }
.mega-head span { font-size: .86rem; color: var(--muted); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mega-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin: 0 0 8px; }
.mega-col a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-size: .9rem; font-weight: 500; }
.mega-col a:hover { background: var(--sbg); color: var(--ink); }
.mega-col a .s-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--sbg); box-shadow: none; }
.mega-col a .s-icon svg { width: 16px; height: 16px; }
.mega-perk { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--sbg); color: var(--ink); }
.mega-perk:hover { border-color: var(--sc); color: var(--ink); }
.mega-perk .s-icon { width: 36px; height: 36px; border-radius: 10px; }
.mega-perk .s-icon svg { width: 18px; height: 18px; }
.mega-perk b { display: block; font-size: .92rem; }
.mega-perk small { display: block; font-size: .8rem; color: var(--muted); }
.mega-perk > svg { width: 18px; height: 18px; margin-left: auto; color: var(--sc); }
/* Mobile menu button: hamburger icon + "Menu" label inside one bordered button. */
.burger { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 13px; margin-left: auto; border: 1px solid var(--blue); border-radius: 12px; background: var(--blue); color: #fff; font: inherit; font-size: .92rem; font-weight: 600; line-height: 1; letter-spacing: .01em; cursor: pointer; transition: background var(--fast), border-color var(--fast); }
.burger:hover, .burger:focus-visible { background: var(--navy); border-color: var(--navy); color: #fff; }
.burger svg { width: 22px; height: 22px; flex: none; color: #fff; }
.burger span { color: #fff; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(11, 27, 58, .45); z-index: 600; opacity: 0; pointer-events: none; transition: opacity var(--base); }
.nav-backdrop.open { opacity: 1; pointer-events: auto; }
.nav-mobile { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100vw); background: #fff; z-index: 610; transform: translateX(100%); transition: transform var(--base) var(--ease); display: flex; flex-direction: column; visibility: hidden; }
.nav-mobile.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.drawer-head img { height: 38px; width: auto; }
.drawer-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: grid; place-items: center; }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-scroll { overflow-y: auto; padding: 14px 16px 24px; flex: 1; }
.drawer-scroll .link { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; border-radius: 12px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.drawer-scroll .link svg { width: 18px; height: 18px; color: var(--muted); }
.acc-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 12px; border: 0; border-bottom: 1px solid var(--line-2); background: none; font-weight: 500; color: var(--ink); text-align: left; }
.acc-head svg { width: 18px; height: 18px; color: var(--muted); transition: transform var(--base); }
.acc.open .acc-head svg { transform: rotate(180deg); }
.acc-body { display: none; padding: 6px 0 10px; }
.acc.open .acc-body { display: block; }
.acc-body a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: .9rem; color: var(--ink-2); border-radius: 10px; }
.acc-body a i { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--muted); min-width: 40px; }
.drawer-scroll .ctas { display: grid; gap: 10px; margin-top: 18px; }
.drawer-contact { display: grid; gap: 10px; margin-top: 18px; font-size: .9rem; }
.drawer-contact a { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.drawer-contact svg { width: 18px; height: 18px; color: var(--blue); }

/* ---------- Hero (rotating) ---------- */
.hero { position: relative; min-height: min(680px, 88vh); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; background: var(--navy); }
.slides, .slide-bg { position: absolute; inset: 0; }
.slides { z-index: -2; }
.slide-bg { opacity: 0; transition: opacity 1s ease; }
.slide-bg.active { opacity: 1; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 60% 40%); transform: scale(1.06); transition: transform var(--slide-ms, 7s) linear; }
.slide-bg.active img { transform: scale(1); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 27, 58, .94) 0%, rgba(11, 27, 58, .78) 38%, rgba(11, 27, 58, .2) 72%, rgba(11, 27, 58, .05) 100%), linear-gradient(0deg, rgba(11, 27, 58, .55), rgba(11, 27, 58, 0) 40%); }
.hero .container { position: relative; padding-top: 60px; padding-bottom: 110px; }
.hero-copy { position: relative; max-width: 620px; min-height: 360px; }
.slide-text { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; }
.slide-text.active { position: relative; opacity: 1; visibility: visible; animation: heroIn .8s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } }
.kicker { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9FE0FA; margin-bottom: 16px; }
/* Hero slides: every slide's text is a single white — heading (h1 on slide 1, h2.h1 on the others),
   highlighted words, kicker and supporting text. */
.hero .slide-text, .hero .slide-text .kicker, .hero .slide-text .lead { color: #fff; }
.hero .slide-text h1, .hero .slide-text .h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; margin: 0 0 18px; }
.hero .slide-text em { font-style: normal; color: inherit; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.14rem); max-width: 540px; margin-bottom: 28px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 28px; }
.hero-controls .inner { display: flex; align-items: center; justify-content: space-between; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 5px; border-radius: 3px; border: 0; background: rgba(255, 255, 255, .35); padding: 0; overflow: hidden; position: relative; }
.hero-dots button.active::after { content: ''; position: absolute; inset: 0; background: #fff; animation: dot var(--slide-ms, 7s) linear forwards; transform-origin: left; }
@keyframes dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; display: grid; place-items: center; }
.hero-arrows button:hover { background: #fff; color: var(--navy); }
.hero-arrows svg { width: 20px; height: 20px; }

/* ---------- Facts band (no invented numbers) ---------- */
.facts { position: relative; z-index: 2; margin-top: -54px; }
.facts .row { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.facts .item { display: flex; align-items: center; gap: 14px; padding: 24px; border-right: 1px solid var(--line-2); }
.facts .item:last-child { border-right: 0; }
.facts .fic, .feat-list .fic, .opt-card .fic, .need .fic { width: 50px; height: 50px; border-radius: 14px; background: #F3F7FC; border: 1px solid #E4ECF6; color: var(--navy); display: grid; place-items: center; flex: none; }
.facts .fic svg, .feat-list .fic svg, .opt-card .fic svg, .need .fic svg { width: 26px; height: 26px; }
.facts b { display: block; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.facts span { font-size: .82rem; color: var(--muted); }

/* ---------- Subjects ---------- */
.grade-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.grade-tabs button { border: 1px solid var(--line); background: #fff; padding: 11px 20px; border-radius: var(--r-pill); font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.grade-tabs button span { font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: 4px; }
.grade-tabs button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.grade-tabs button.active span { color: rgba(255, 255, 255, .7); }
/* Subject cards: a centred flex row. site.js sets --cols to a balanced column count for the number of
   subjects and the space available (3 → 3 across, 4 → 4, 5 → 3 + 2, 7 → 4 + 3 …), so a short last row
   is centred and there is never an empty slot that looks like a missing subject. */
.subj-grid { --cols: 3; --gap: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.subj-grid > .subj-card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); max-width: 400px; }
.subj-grid > .card, .subj-grid > .loader, .subj-grid > .error-state { flex: 1 1 100%; }
.subj-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; transition: transform var(--base) var(--ease), box-shadow var(--base); color: inherit; animation: fadeUp .5s var(--ease) both; }
.subj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }
.subj-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sbg); }
.subj-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.subj-card:hover .thumb img { transform: scale(1.05); }
.subj-card .thumb .badge { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .95); color: var(--navy); }
.subj-card .thumb .s-icon { position: absolute; left: 16px; bottom: -22px; width: 48px; height: 48px; }
.subj-card .body { padding: 32px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.subj-card h3 { margin: 0; font-size: 1.12rem; }
.subj-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.subj-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--ink-2); margin-top: auto; padding-top: 6px; }
.subj-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.subj-card .meta svg { width: 15px; height: 15px; color: var(--sc); }
.subj-card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--sc); }
.subj-card .more svg { width: 16px; height: 16px; transition: transform var(--fast); }
.subj-card:hover .more svg { transform: translateX(3px); }
/* Free Career Pathway sessions (homepage, under the subject cards) */
.career-promo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: 36px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-2xl); scroll-margin-top: 110px; }
.cp-media { position: relative; min-height: 280px; background: var(--sbg); }
.cp-media picture, .cp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.cp-body { display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.cp-tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: var(--r-pill); background: var(--sbg); color: var(--sc); font-size: .8rem; font-weight: 700; }
.cp-tag svg { width: 16px; height: 16px; }
.cp-body h3 { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.cp-body p { margin: 0; color: var(--ink-2); }
.cp-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.cp-topics li { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; color: var(--ink); }
.cp-topics svg { width: 18px; height: 18px; margin-top: 2px; color: var(--green); }
.cp-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); }
.cp-next { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.cp-next svg { width: 18px; height: 18px; color: var(--navy); }
.cp-next b { color: var(--ink); }
.glance { margin-top: 44px; }
.glance h3 { font-size: 1.05rem; }
.glance .table td { vertical-align: top; }
.glance .table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--navy-800); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-xl); padding: 26px 22px; }
.step .n { width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--navy); display: grid; place-items: center; margin-bottom: 18px; position: relative; }
.step .n svg { width: 28px; height: 28px; }
.step .n i { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 8px; background: var(--blue); color: #fff; font-style: normal; font-weight: 700; font-size: .78rem; display: grid; place-items: center; }
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: .9rem; margin: 0; color: rgba(255, 255, 255, .72); }

/* ---------- Split feature rows (portal, parents) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media .img { border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; }
.split-media .img img { width: 100%; height: 100%; object-fit: cover; }
.split-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.split-copy > p { color: var(--muted); font-size: 1.02rem; }
.feat-list { display: grid; gap: 16px; margin: 24px 0 30px; }
.feat-list li { display: flex; gap: 14px; }
.feat-list b { display: block; color: var(--ink); }
.feat-list span { font-size: .9rem; color: var(--muted); }

/* ---------- Study options + fees + needs ---------- */
.options { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.opt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.opt-card.feature { background: var(--navy); color: rgba(255, 255, 255, .82); border-color: var(--navy); }
.opt-card.feature h3, .opt-card.feature .price b { color: #fff; }
.opt-card.feature .fic { background: var(--navy-800); border-color: rgba(255, 255, 255, .1); color: #fff; --ic-a: #7FD3F7; --ic-f: rgba(255, 255, 255, .1); }
.opt-card h3 { margin: 0; font-size: 1.2rem; }
.opt-card p { margin: 0; font-size: .92rem; }
.opt-card ul { display: grid; gap: 10px; font-size: .9rem; }
.opt-card li { display: flex; gap: 10px; }
.opt-card li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }
.opt-card.feature li svg { color: #6EE7B7; }
.price b { font-size: 2.3rem; font-weight: 800; color: var(--ink); line-height: 1; }
.price span { font-size: .9rem; }
/* Subscription prices in the fees card */
.needs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.need { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.need b { display: block; color: var(--ink); font-size: .95rem; }
.need span { font-size: .84rem; color: var(--muted); }

/* ---------- Subject page ---------- */
.sp-hero { position: relative; color: #fff; padding: 70px 0 60px; overflow: hidden; isolation: isolate; background: var(--navy); }
.sp-hero picture, .sp-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.sp-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 27, 58, .95), rgba(11, 27, 58, .75) 50%, rgba(11, 27, 58, .35)); }
.sp-hero .crumbs { font-size: .84rem; color: rgba(255, 255, 255, .7); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sp-hero .crumbs a { color: rgba(255, 255, 255, .85); }
.sp-hero .crumbs svg { width: 14px; height: 14px; }
.sp-hero .kicker { margin-bottom: 4px; }
.sp-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin: 12px 0; }
.sp-hero p { max-width: 580px; color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.sp-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.sp-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.sp-topics { display: grid; gap: 10px; counter-reset: t; }
.sp-topics li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; font-weight: 500; color: var(--ink); }
.sp-topics li::before { counter-increment: t; content: counter(t); width: 30px; height: 30px; border-radius: 9px; background: var(--sbg); color: var(--sc); display: grid; place-items: center; font-weight: 700; font-size: .84rem; flex: none; }
.sp-side { position: sticky; top: 100px; }
.sp-side .card { padding: 24px; }
/* Meet your teacher (subject page) */
.tprofiles { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-2); }
.tprofiles h3 { margin: 0 0 16px; }
.tprofile { display: flex; gap: 22px; align-items: flex-start; padding: 22px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-xl); }
.tp-photo { flex: none; width: 112px; height: 112px; border-radius: 22px; overflow: hidden; background: var(--sbg); }
.tp-photo img { width: 100%; height: 100%; object-fit: cover; }
.tp-photo .avatar { width: 100%; height: 100%; border-radius: 0; font-size: 2rem; }
.tp-body { min-width: 0; }
.tp-body h4 { margin: 0; font-size: 1.15rem; }
.tp-title { font-size: .9rem; font-weight: 600; color: var(--sc); }
.tp-qual { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: .88rem; color: var(--ink-2); }
.tp-qual svg { width: 18px; height: 18px; margin-top: 2px; color: var(--navy); }
.tp-body p { margin: 10px 0 0; color: var(--ink-2); }
.tp-subjects { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.tp-subjects .tiny { margin-right: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding: 64px 0 28px; font-size: .92rem; }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer img { height: 46px; width: auto; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: #fff; }
.footer .contact li { display: flex; gap: 10px; align-items: center; }
.footer .contact svg { width: 17px; height: 17px; color: #7FD3F7; flex: none; }
.footer .bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; font-size: .84rem; }
.footer .social { display: flex; gap: 10px; }
.footer .social a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.footer .social svg { width: 18px; height: 18px; }

/* =====================================================================
   AUTH (login + registration)
   ===================================================================== */
body.auth-page { background: var(--navy); }
.auth { position: relative; min-height: 100vh; display: flex; flex-direction: column; isolation: isolate; }
.auth-bg { position: fixed; inset: 0; z-index: -1; background: var(--navy); }
/* The website footer under the login card: positioned so it paints over the fixed background */
.auth-page .footer { position: relative; }
.auth-bg picture { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.auth-bg picture.on { opacity: 1; }
.auth-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.auth-bg::after { content: ''; position: absolute; inset: 0; background: var(--auth-tint, linear-gradient(180deg, rgba(11, 27, 58, .72), rgba(11, 27, 58, .86))); transition: background .7s var(--ease); }
body[data-role="teacher"] { --auth-tint: linear-gradient(180deg, rgba(14, 30, 70, .72), rgba(11, 22, 52, .88)); }
body[data-role="admin"] { --auth-tint: linear-gradient(180deg, rgba(9, 18, 40, .8), rgba(6, 12, 30, .92)); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 32px; }
.auth-logo img { height: 42px; width: auto; }
.auth-home { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .85); font-size: .9rem; font-weight: 500; }
.auth-home:hover { color: #fff; }
.auth-home svg { width: 17px; height: 17px; }
.auth-wrap { flex: 1; width: 100%; padding: 12px 24px 28px; display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 480px; background: #fff; border-radius: var(--r-2xl); box-shadow: var(--shadow-lg); padding: 34px; }
.auth-card.wide { max-width: 960px; padding: 48px 56px 40px; }
.auth-card h1 { font-size: 1.7rem; font-weight: 700; margin: 0 0 6px; letter-spacing: -.02em; }
.auth-card .sub { color: var(--muted); margin: 0 0 22px; font-size: .95rem; }
.role-switch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 22px; }
.role-switch button { display: grid; justify-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; padding: 12px 4px 10px; border-radius: 14px; font-weight: 600; font-size: .82rem; color: var(--ink-2); transition: border-color var(--fast), box-shadow var(--fast), background var(--fast); }
.role-switch button svg { width: 24px; height: 24px; color: var(--navy); --ic-a: var(--muted-2); --ic-f: transparent; }
.role-switch button:hover { border-color: #C9DCF0; }
.role-switch button.active { border-color: var(--blue); background: var(--blue-50); color: var(--blue-700); box-shadow: 0 0 0 3px rgba(16, 120, 192, .12); }
.role-switch button.active svg { --ic-a: var(--blue); --ic-f: var(--blue-100); }
.auth-alt { text-align: center; font-size: .9rem; color: var(--muted); margin: 18px 0 0; }
.auth-alt .linkbtn { font-size: .9rem; }
.auth-foot { text-align: center; font-size: .84rem; color: rgba(255, 255, 255, .78); padding: 0 16px 32px; }
.auth-foot p { margin: 0; }
.auth-foot a { color: #fff; text-decoration: underline; }
/* Administrator Access: a quiet staff link under the help line, not one of the login choices */
.auth-staff { width: min(100%, 300px); margin: 16px auto 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.auth-foot .auth-staff a { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .66); font-size: .8rem; font-weight: 500; text-decoration: none; }
.auth-foot .auth-staff a:hover, .auth-foot .auth-staff a[aria-current] { color: #fff; }
.auth-staff svg { width: 15px; height: 15px; --ic-a: currentColor; --ic-f: transparent; }
.auth-success { text-align: center; }
#doneBox h1, #doneBox .done-ic { text-align: center; }
#doneBox .sub { text-align: center; }
.done-ic { width: 66px; height: 66px; border-radius: 20px; background: var(--green-50); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; --ic-a: var(--green); --ic-f: #CDEEDD; }
.done-ic svg { width: 32px; height: 32px; }
#verifyBox h1, #verifyBox > .sub { text-align: center; }
.done-ic.verify-ic { background: var(--blue-50); color: var(--blue); --ic-a: var(--blue); --ic-f: var(--blue-100); }
.otp-input { font-size: 1.5rem; font-weight: 600; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; padding-left: calc(14px + .5em); }
.otp-input::placeholder { letter-spacing: .5em; color: var(--line); }
/* Registration (single page) */
.reg-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.reg-head h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; }
.reg-head .sub { font-size: 1rem; margin: 0; }
.reg-sec { border: 0; border-top: 1px solid var(--line-2); padding: 30px 0 12px; margin: 0; min-width: 0; }
.reg-sec .form-row, .reg-sec .form-row-3 { column-gap: 24px; row-gap: 4px; }
.reg-sec .field { margin-bottom: 20px; }
.reg-sec .field > label, .reg-sec .field > .label { display: block; margin-bottom: 8px; }
.reg-sec .input, .reg-sec .select { min-height: 48px; }
.reg-sec .choice-grid { gap: 12px; }
.reg-sec .choice { padding: 14px 16px; }
.reg-sec .field-hint { margin-top: 8px; }
.reg-sec legend { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); font-size: 1.08rem; padding: 0; margin-bottom: 22px; float: left; width: 100%; flex-wrap: wrap; }
.reg-sec legend + * { clear: both; }
.reg-sec legend small { flex-basis: 100%; font-weight: 400; color: var(--muted); font-size: .86rem; line-height: 1.55; padding-left: 46px; margin-top: -8px; }
.reg-agree { display: grid; gap: 14px; padding: 26px 22px; border: 1px solid var(--line-2); border-radius: 14px; background: #F8FAFD; margin: 16px 0 22px; }
.reg-agree .check { font-size: .93rem; line-height: 1.55; align-items: flex-start; }
.reg-agree .check input { width: 20px; height: 20px; margin-top: 2px; }
.reg-agree a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.intent-field { max-width: 420px; }
.reg-agree .field-error { margin: 0; }
.grade-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#rMode { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#rSubjects { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.choice-grid > p { grid-column: 1 / -1; }
.reg-perk { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding: 12px 14px; background: #FEF3F7; border: 1px solid #F8DCE6; border-radius: 14px; font-size: .86rem; color: var(--ink-2); --ic-a: var(--pink); --ic-f: #F9D6E3; }
.reg-perk svg { width: 22px; height: 22px; color: #431226; }
.reg-perk b { display: block; color: var(--ink); }
.intent-field .select { max-width: 420px; }

/* =====================================================================
   HELP CENTRE (help.html) + homepage knowledge base
   ===================================================================== */
.help-hero { background: var(--navy); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; isolation: isolate; }
.help-hero picture, .help-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 45%; z-index: -2; }
.help-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 27, 58, .95), rgba(11, 27, 58, .82) 55%, rgba(11, 27, 58, .55)); }
.help-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin: 0 0 10px; letter-spacing: -.02em; }
.help-hero p { color: rgba(255, 255, 255, .85); font-size: 1.05rem; max-width: 560px; margin: 0 0 24px; }
.help-hero .kb-search .input { border-color: transparent; }
.help-pop { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: .88rem; color: rgba(255, 255, 255, .75); }
.help-pop button { background: none; border: 0; padding: 0; color: #fff; text-decoration: underline; text-underline-offset: 3px; font-size: .88rem; }
.help-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; }
.help-side { position: sticky; top: 100px; display: grid; gap: 4px; }
.help-side > button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 12px; font-weight: 500; font-size: .92rem; color: var(--ink-2); }
.help-side > button svg { width: 20px; height: 20px; color: var(--navy); }
.help-side > button:hover { background: var(--surface-2); }
.help-side > button.active { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.help-side > button em { font-style: normal; margin-left: auto; font-size: .76rem; color: var(--muted); }
.help-contact { margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .86rem; }
.help-contact b { display: block; color: var(--ink); margin-bottom: 4px; }
.help-contact .linkbtn { font-size: inherit; }
.kb-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: inline-flex; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .help-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
  .facts .row { grid-template-columns: 1fr 1fr; }
  .facts .item:nth-child(2) { border-right: 0; }
  .facts .item:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .split-media { order: 0; }
  .options { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .needs { grid-template-columns: 1fr 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .sp-body { grid-template-columns: 1fr; }
  .sp-side { position: static; }
  .career-promo { grid-template-columns: 1fr; }
  .cp-media { min-height: 220px; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .topbar .tag { display: none; }
  .topbar .contacts { gap: 14px; width: 100%; justify-content: space-between; }
  .nav .inner { height: 66px; }
  .nav .logo img { height: 38px; }
  .hero { min-height: 600px; align-items: flex-end; }
  .hero::before { background: linear-gradient(0deg, rgba(11, 27, 58, .96) 0%, rgba(11, 27, 58, .8) 50%, rgba(11, 27, 58, .3) 100%); }
  .hero .container { padding-top: 120px; padding-bottom: 96px; }
  .hero-copy { min-height: 330px; }
  .hero .ctas .btn { flex: 1 1 auto; }
  .hero-arrows { display: none; }
  .facts { margin-top: 0; padding-top: 20px; }
  .facts .row { grid-template-columns: 1fr; box-shadow: var(--shadow-md); }
  .facts .item { border-right: 0; border-bottom: 1px solid var(--line-2); padding: 16px 18px; }
  .facts .item:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .needs { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .grade-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px 4px; scrollbar-width: none; }
  .grade-tabs::-webkit-scrollbar { display: none; }
  .grade-tabs button { flex: none; }
  .cp-body { padding: 22px 18px; }
  .cp-topics { grid-template-columns: 1fr; }
  .cp-foot .btn { width: 100%; }
  .tprofile { flex-direction: column; gap: 14px; padding: 18px; }
  .tp-photo { width: 88px; height: 88px; border-radius: 18px; }
  .auth-top { padding: 14px 16px; }
  .auth-logo img { height: 34px; }
  .auth-home { font-size: .84rem; }
  .auth-wrap { padding: 4px 12px 20px; }
  .auth-card, .auth-card.wide { padding: 26px 20px; border-radius: 22px; }
  .reg-sec { padding-top: 24px; }
  .reg-sec .field { margin-bottom: 16px; }
  .reg-agree { padding: 18px 16px; }
  .intent-field { max-width: none; }
  #rMode { grid-template-columns: 1fr; }
  .auth-card h1 { font-size: 1.45rem; }
  .grade-pick { grid-template-columns: 1fr 1fr; }
  .reg-sec legend small { padding-left: 0; margin-top: 0; }
  .help-hero { padding: 40px 0 36px; }
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .help-side { position: static; display: flex; overflow-x: auto; gap: 6px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .help-side::-webkit-scrollbar { display: none; }
  .help-side > button { flex: none; width: auto; border: 1px solid var(--line); background: #fff; white-space: nowrap; }
  .help-side .help-contact { display: none; }
  .kb-home { grid-template-columns: minmax(0, 1fr); }
  .sp-hero { padding: 48px 0 44px; }
}
