/* ==========================================================================
   JUPEB Entry — main stylesheet
   ========================================================================== */

:root {
    --blue-50:  #EEF4FF;
    --blue-100: #DCE8FF;
    --blue-200: #BCD3FF;
    --blue-500: #2F6BFF;
    --blue-600: #1459F0;
    --blue-700: #0E47C9;
    --navy-700: #123A7A;
    --navy-800: #0B2A5E;
    --navy-900: #071D44;
    --navy-950: #051535;

    --green-50:  #E9F8EF;
    --green-100: #CFF0DC;
    --green-500: #19B25C;
    --green-600: #12A150;
    --green-700: #0C7F3E;

    --ink:    #0B1631;
    --text:   #334155;
    --muted:  #64748B;
    --line:   #E3EAF5;
    --line-2: #EDF2FA;
    --bg:     #FFFFFF;
    --bg-soft:#F4F8FF;

    --rose:   #E0457B;  --rose-bg:   #FDEEF4;
    --amber:  #E08A00;  --amber-bg:  #FFF6E5;
    --violet: #7C4DDB;  --violet-bg: #F3EEFE;
    --orange: #EC5B24;  --orange-bg: #FFF0E8;
    --tblue:  #1459F0;  --tblue-bg:  #EAF1FF;
    --tgreen: #12A150;  --tgreen-bg: #E6F7EE;

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --shadow-xs: 0 1px 2px rgba(11, 22, 49, .05);
    --shadow-sm: 0 1px 2px rgba(11, 22, 49, .04), 0 4px 12px -2px rgba(11, 22, 49, .06);
    --shadow:    0 2px 4px rgba(11, 22, 49, .04), 0 12px 32px -8px rgba(11, 22, 49, .12);
    --shadow-lg: 0 4px 8px rgba(11, 22, 49, .04), 0 24px 56px -12px rgba(11, 22, 49, .22);
    --shadow-blue: 0 8px 24px -8px rgba(20, 89, 240, .55);

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-script: 'Caveat', 'Segoe Print', cursive;

    --container: 1220px;
    --gutter: 24px;
    --header-h: 76px;
    --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
    margin: 0;
    padding-top: var(--header-h); /* room for the fixed header */
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--blue-100); color: var(--navy-900); }

[hidden] { display: none !important; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
    --btn-h: 48px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: var(--btn-h); padding: 0 22px;
    border-radius: 12px; border: 1.5px solid transparent;
    font-weight: 700; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { --btn-h: 42px; padding: 0 18px; font-size: 14px; border-radius: 11px; }
.btn-lg { --btn-h: 56px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary { background: linear-gradient(180deg, #2167FF 0%, var(--blue-600) 100%); color: #fff; box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: linear-gradient(180deg, #1B5EF5 0%, var(--blue-700) 100%); box-shadow: 0 12px 28px -8px rgba(20, 89, 240, .65), inset 0 1px 0 rgba(255,255,255,.18); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--blue-700); border-color: var(--blue-200); }
.btn-outline:hover { border-color: var(--blue-600); background: var(--blue-50); transform: translateY(-1px); }
.btn-soft { background: var(--blue-50); color: var(--blue-700); }
.btn-soft:hover { background: var(--blue-100); }
.btn-navy { background: var(--navy-800); color: #fff; box-shadow: 0 8px 20px -8px rgba(11, 42, 94, .6); }
.btn-navy:hover { background: var(--navy-900); transform: translateY(-1px); }
.btn-whatsapp { background: var(--green-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(18, 161, 80, .6); }
.btn-whatsapp:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn-link-light { color: rgba(255,255,255,.85); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.35); padding: 0 6px; }
.btn-link-light:hover { color: #fff; text-decoration-color: #fff; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--blue-50); color: var(--blue-600); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-600); font-weight: 700; font-size: 14.5px; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.eyebrow-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    background: var(--blue-50); color: var(--blue-700);
    border: 1px solid var(--blue-100);
    font-size: 13px; font-weight: 700; letter-spacing: .01em;
}
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--green-500); opacity: .35; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }

.tag-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.2); }
.tag-pill-blue { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-100); }

.chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); transition: all .2s; }
.chip:hover { border-color: var(--blue-600); color: var(--blue-600); background: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Header ---------- */
/* Fixed (not sticky) so it stays pinned on every mobile browser, including iOS Safari.
   The frosted-glass effect lives on ::before: a backdrop-filter on the header itself would
   make it the containing block for the fixed mobile menu and squash the drawer. */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header::before { background: rgba(255, 255, 255, .97); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -12px rgba(11, 22, 49, .18); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark { width: 46px; height: 40px; color: var(--navy-800); }
.logo-mark .lm-top { fill: var(--navy-800); }
.logo-mark .lm-base { fill: var(--blue-600); }
.logo-mark .lm-tassel { stroke: var(--navy-800); }
.logo-mark .lm-dot { fill: var(--navy-800); }
.logo-mark .lm-swoosh { stroke: var(--green-500); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 24px; font-weight: 800; color: var(--navy-800); letter-spacing: -0.03em; }
.brand-name em { font-style: normal; color: var(--blue-600); }
.brand-tag { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 5px; letter-spacing: .01em; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; gap: 4px;
    padding: 10px 12px; border-radius: 10px;
    font-size: 14.5px; font-weight: 600; color: var(--ink);
    transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--blue-600); }
.nav-link.is-active { color: var(--blue-600); }
.nav-link.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2.5px; border-radius: 3px; background: var(--blue-600); }
.nav-link .icon-xs { transition: transform .25s var(--ease); }

.has-dropdown { position: relative; }
.dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%;
    width: 320px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown.is-open .nav-link .icon-xs { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1101px) {
    .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .has-dropdown:hover .nav-link .icon-xs { transform: rotate(180deg); }
}
.dropdown-link { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 12px; transition: background .2s; }
.dropdown-link:hover { background: var(--bg-soft); }
.dropdown-link strong { display: block; font-size: 14.5px; color: var(--ink); font-weight: 700; }
.dropdown-link small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.dropdown-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-50); color: var(--blue-600); flex-shrink: 0; }
.dropdown-icon .icon { width: 18px; height: 18px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }
.nav-toggle-close { display: none; }
.nav-mobile-extra { display: none; }
.nav-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(5, 21, 53, .45); backdrop-filter: blur(2px); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: linear-gradient(180deg, var(--bg-soft) 0%, #F8FAFF 100%); }
.section-head { margin-bottom: 44px; }
.section-head h2, .study h2, .faq h2 { font-size: clamp(28px, 3.2vw, 38px); }
.section-head p, .section-sub { margin-top: 10px; color: var(--muted); font-size: 16.5px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head-center { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(800px 420px at 8% 0%, rgba(20, 89, 240, .09), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(25, 178, 92, .06), transparent 60%),
        linear-gradient(180deg, #F3F7FF 0%, #FFFFFF 100%);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(11, 42, 94, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 45%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 45%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.03; letter-spacing: -0.035em; }
.text-accent { color: var(--blue-600); background: linear-gradient(90deg, var(--blue-600), #2F7BFF 60%, var(--blue-700)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { margin-top: 22px; max-width: 520px; font-size: 18.5px; line-height: 1.65; color: #3E4C66; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hero-checks li { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.hero-checks .icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--green-100); color: var(--green-700); stroke-width: 3; }

.hero-media { position: relative; height: 540px; }
.hero-photo {
    position: absolute; inset: 0;
    border-radius: 32px 32px 32px 120px;
    background-color: var(--navy-800);
    background-size: cover; background-position: center 30%;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(5, 21, 53, .35) 0%, transparent 38%); pointer-events: none; }
.hero-photo.is-fallback { background: linear-gradient(145deg, #1D5CF5 0%, #0E3FA8 45%, var(--navy-900) 100%); }
.hf-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 60% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(circle at 60% 40%, #000, transparent 75%); }
.hf-orb { position: absolute; border-radius: 50%; filter: blur(40px); }
.hf-orb-1 { width: 300px; height: 300px; right: -60px; top: -40px; background: rgba(47, 123, 255, .75); }
.hf-orb-2 { width: 260px; height: 260px; left: -40px; bottom: -60px; background: rgba(25, 178, 92, .45); }
.hf-200 { position: absolute; right: 7%; bottom: 4%; font-size: clamp(120px, 15vw, 210px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.28); }
.hf-cap { position: absolute; left: 50%; top: 44%; width: 46%; transform: translate(-50%, -50%) rotate(-8deg); filter: drop-shadow(0 30px 40px rgba(0,0,0,.3)); }
.hf-cap .lm-top { fill: #fff; }
.hf-cap .lm-base { fill: rgba(255,255,255,.72); }
.hf-cap .lm-tassel { stroke: #fff; }
.hf-cap .lm-dot { fill: #FFD24A; }
.hf-cap .lm-swoosh { stroke: #4ADE80; }

.hero-script {
    position: absolute; top: 34px; right: 30px; z-index: 2;
    font-family: var(--font-script); font-weight: 700;
    font-size: clamp(30px, 3vw, 40px); line-height: .95; color: #fff;
    transform: rotate(-9deg); text-align: left;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}
.hero-script::after { content: ""; display: block; width: 72%; height: 6px; margin: 8px 0 0 22%; border-radius: 6px; background: #FFD24A; transform: rotate(-4deg); }

.float-card {
    position: absolute; z-index: 3;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px 12px 12px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .8); border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: floaty 6s ease-in-out infinite;
}
.float-card small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.float-card strong { display: block; font-size: 15px; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
.fc-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.fc-green { background: var(--green-50); color: var(--green-600); }
.fc-blue { background: var(--blue-50); color: var(--blue-600); }
.fc-1 { left: -34px; bottom: 90px; }
.fc-2 { right: 26px; bottom: -22px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Programme cards ---------- */
.programmes { padding-top: 8px; padding-bottom: 88px; }
.prog-grid { display: grid; grid-template-columns: 1fr 1fr 0.82fr; gap: 22px; }
.prog-card, .prog-help {
    position: relative; display: flex; flex-direction: column;
    padding: 30px; border-radius: var(--radius-lg);
    border: 1px solid var(--line); background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
    overflow: hidden;
}
.prog-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; }
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prog-jupeb { background: linear-gradient(180deg, #F5F8FF 0%, #fff 55%); }
.prog-jupeb::before { background: linear-gradient(90deg, var(--blue-600), #5B8CFF); }
.prog-jupeb:hover { border-color: var(--blue-200); }
.prog-ijmb { background: linear-gradient(180deg, #F2FBF6 0%, #fff 55%); }
.prog-ijmb::before { background: linear-gradient(90deg, var(--green-600), #4ADE80); }
.prog-ijmb:hover { border-color: var(--green-100); }

.prog-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.prog-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; }
.prog-icon .icon { width: 28px; height: 28px; }
.prog-jupeb .prog-icon { background: var(--blue-100); color: var(--blue-700); }
.prog-ijmb .prog-icon { background: var(--green-100); color: var(--green-700); }
.prog-card h2 { font-size: 28px; letter-spacing: -0.03em; }
.prog-jupeb h2 { color: var(--blue-600); }
.prog-ijmb h2 { color: var(--green-600); }
.prog-sub { margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.prog-ijmb .prog-sub { color: var(--green-700); }
.prog-card > p { font-size: 15px; color: var(--text); }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 20px 0 24px; }
.check-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.check-list .icon { width: 18px; height: 18px; }
.prog-jupeb .check-list .icon { color: var(--blue-600); }
.prog-ijmb .check-list .icon { color: var(--green-600); }
.prog-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px dashed var(--line); }
.prog-ijmb .link-arrow { color: var(--green-700); }
.prog-ijmb .btn-soft { background: var(--green-50); color: var(--green-700); }
.prog-ijmb .btn-soft:hover { background: var(--green-100); }

.prog-help { background: linear-gradient(160deg, #F2F6FF 0%, #E9F0FF 100%); border-color: var(--blue-100); justify-content: center; }
.prog-help::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(20, 89, 240, .14), transparent 70%); }
.prog-help-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue-600); color: #fff; box-shadow: var(--shadow-blue); margin-bottom: 18px; }
.prog-help-icon .icon { width: 26px; height: 26px; }
.prog-help h3 { font-size: 22px; line-height: 1.25; }
.prog-help > p { margin: 10px 0 22px; font-size: 15px; color: var(--text); }
.prog-help-meta { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; display: flex; gap: 18px; align-items: flex-start; }
.step:not(:last-child)::after {
    content: ""; position: absolute; top: 34px; right: -6px; width: 28px; height: 14px;
    background: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}
.step-icon {
    position: relative; display: grid; place-items: center;
    width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
    background: #fff; color: var(--blue-600);
    box-shadow: 0 0 0 8px rgba(20, 89, 240, .07), var(--shadow-sm);
    transition: transform .3s var(--ease), background .3s, color .3s;
}
.step-icon .icon { width: 28px; height: 28px; }
.step:hover .step-icon { transform: scale(1.06); background: var(--blue-600); color: #fff; }
.step-num { display: block; font-size: 15px; font-weight: 800; color: var(--blue-600); letter-spacing: .02em; }
.step h3 { margin: 4px 0 8px; font-size: 19px; }
.step p { font-size: 14.5px; color: var(--muted); max-width: 220px; }

/* ---------- Course finder ---------- */
.study-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.study-popular { padding-left: 56px; border-left: 1px solid var(--line); }
.study-popular h3 { font-size: 24px; }
.finder-form { display: flex; gap: 12px; margin-top: 28px; }
.select-wrap { position: relative; flex: 1; min-width: 0; }
.select-wrap select {
    width: 100%; height: 54px; padding: 0 44px 0 46px;
    appearance: none; -webkit-appearance: none;
    background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
    font-size: 15.5px; font-weight: 500; color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
    cursor: pointer;
}
.select-wrap select:hover { border-color: var(--blue-200); }
.select-wrap select:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(20, 89, 240, .12); }
.select-wrap select:disabled { background: var(--bg-soft); color: var(--muted); cursor: not-allowed; }
.select-wrap select:invalid { color: var(--muted); }
.select-lead { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.select-chev { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.finder-form .btn { height: 54px; }
.select-sm select { height: 46px; padding-left: 14px; font-size: 14.5px; border-radius: 10px; }

.finder-empty { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 18px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 14.5px; }
.finder-empty .icon { color: var(--blue-600); width: 24px; height: 24px; }
.finder-empty strong { color: var(--ink); }

.finder-result {
    margin-top: 22px; padding: 24px; border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #F6F9FF, #fff); border: 1px solid var(--blue-100);
    box-shadow: var(--shadow-sm);
    animation: rise .45s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.fr-head h3 { font-size: 20px; }
.fr-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.fr-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.fr-subjects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.fr-subject { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.3; }
.fr-subject span { display: block; font-size: 11.5px; font-weight: 700; color: var(--blue-600); margin-bottom: 3px; }
.fr-olevel { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fr-olevel li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); font-size: 13px; font-weight: 600; color: var(--text); }
.fr-olevel .icon { width: 14px; height: 14px; color: var(--green-600); stroke-width: 3; }
.fr-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--amber-bg); color: #7A4B00; font-size: 13.5px; margin-bottom: 18px; }
.fr-note .icon { width: 18px; height: 18px; margin-top: 1px; }
.fr-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.course-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 22px; }
.course-tile {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 18px 16px; border-radius: 14px; text-align: left;
    background: var(--tile-bg); border: 1.5px solid transparent;
    font-size: 14.5px; font-weight: 700; color: var(--ink);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.course-tile:hover, .course-tile.is-selected { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--tile-fg); }
.course-tile-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--tile-fg); flex-shrink: 0; box-shadow: var(--shadow-xs); }
.course-tile-icon .icon { width: 22px; height: 22px; }
.course-tile-name { line-height: 1.25; }
.course-tile-go { position: absolute; top: 10px; right: 10px; width: 14px; height: 14px; color: var(--tile-fg); opacity: 0; transform: translate(-4px, 4px); transition: all .25s var(--ease); }
.course-tile:hover .course-tile-go { opacity: 1; transform: none; }
.tone-rose   { --tile-bg: var(--rose-bg);   --tile-fg: var(--rose); }
.tone-blue   { --tile-bg: var(--tblue-bg);  --tile-fg: var(--tblue); }
.tone-amber  { --tile-bg: var(--amber-bg);  --tile-fg: var(--amber); }
.tone-green  { --tile-bg: var(--tgreen-bg); --tile-fg: var(--tgreen); }
.tone-violet { --tile-bg: var(--violet-bg); --tile-fg: var(--violet); }
.tone-orange { --tile-bg: var(--orange-bg); --tile-fg: var(--orange); }

/* ---------- Comparison ---------- */
.compare { padding-top: 24px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 24px; align-items: stretch; }
.compare-banner {
    position: relative; display: grid; grid-template-columns: 0.8fr 1fr; overflow: hidden;
    border-radius: var(--radius-lg); min-height: 380px;
    background: radial-gradient(500px 300px at 100% 0%, rgba(47, 123, 255, .45), transparent 60%), linear-gradient(140deg, var(--navy-800) 0%, var(--navy-950) 100%);
    box-shadow: var(--shadow);
    color: #fff;
}
.compare-banner::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(270deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(270deg, #000, transparent 60%); pointer-events: none; }
.cb-media { background-size: cover; background-position: center top; }
.cb-media.is-fallback { display: grid; place-items: center; background: linear-gradient(160deg, rgba(47,123,255,.3), rgba(25,178,92,.18)); }
.cb-fallback-icon { width: 96px; height: 96px; color: rgba(255,255,255,.55); stroke-width: 1.2; }
.cb-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 36px 34px 36px 28px; }
.cb-copy h2 { margin: 16px 0 14px; color: #fff; font-size: clamp(26px, 2.6vw, 32px); }
.cb-copy p { color: rgba(255,255,255,.8); font-size: 15.5px; }
.cb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }

.compare-card { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.compare-card h3 { font-size: 21px; margin-bottom: 18px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.compare-table th, .compare-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.compare-table thead th { background: var(--bg-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 800; }
.compare-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table tbody tr { transition: background .2s; }
.compare-table tbody tr:hover { background: #FAFCFF; }
.compare-table td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.th-badge { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 12px; letter-spacing: .04em; }
.th-jupeb { background: var(--blue-100); color: var(--blue-700); }
.th-ijmb { background: var(--green-100); color: var(--green-700); }
.yes { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--green-700); }
.yes .icon { width: 15px; height: 15px; stroke-width: 3; }
.note { display: flex; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.note .icon { width: 18px; height: 18px; color: var(--blue-600); }

/* ---------- Tools ---------- */
.tools-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 22px; }
.tool-card { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s var(--ease); }
.tool-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tool-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.tool-head h3 { font-size: 19px; }
.tool-head p { margin-top: 5px; font-size: 14px; color: var(--muted); }
.tool-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; }
.tool-icon .icon { width: 24px; height: 24px; }
.ti-green  { background: var(--green-50); color: var(--green-600); }
.ti-blue   { background: var(--blue-50); color: var(--blue-600); }
.ti-violet { background: var(--violet-bg); color: var(--violet); }
.centre-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.centre-form .select-wrap:first-child { grid-column: 1 / -1; }
.centre-form .btn { grid-column: 1 / -1; height: 46px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.tool-actions .btn { flex: 1; min-width: 140px; }
.tool-meta { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tool-meta .icon { color: var(--green-600); }

/* ---------- Articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.article-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.article-thumb { position: relative; display: grid; place-items: center; height: 150px; background: linear-gradient(135deg, var(--tile-bg), #fff); color: var(--tile-fg); overflow: hidden; }
.article-thumb::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 22px solid var(--tile-fg); opacity: .07; right: -50px; bottom: -70px; }
.article-thumb .icon { width: 52px; height: 52px; stroke-width: 1.5; transition: transform .4s var(--ease); }
.article-card:hover .article-thumb .icon { transform: scale(1.1) rotate(-4deg); }
.article-tag { position: absolute; top: 14px; left: 14px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--tile-fg); font-size: 11.5px; font-weight: 800; letter-spacing: .03em; box-shadow: var(--shadow-xs); }
.article-body { display: flex; flex-direction: column; flex: 1; gap: 14px; padding: 20px; }
.article-body strong { font-size: 16px; line-height: 1.4; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.article-card:hover strong { color: var(--blue-700); }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.why-item { padding: 26px 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(145deg, var(--blue-50), var(--blue-100)); color: var(--blue-700); margin-bottom: 16px; }
.why-icon .icon { width: 26px; height: 26px; }
.why-item h3 { font-size: 16px; line-height: 1.3; }
.why-item p { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro h2 { margin: 16px 0 12px; }
.faq-intro p { color: var(--muted); margin-bottom: 26px; font-size: 16.5px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.faq-item summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 16.5px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); flex-shrink: 0; transition: background .25s, transform .3s var(--ease); }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .3s var(--ease), background .25s; }
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle { background: var(--blue-600); transform: rotate(180deg); }
.faq-item[open] .faq-toggle::before, .faq-item[open] .faq-toggle::after { background: #fff; }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 22px 22px; color: var(--text); font-size: 15px; line-height: 1.7; }

/* ---------- Help banner ---------- */
.help-banner { position: relative; overflow: hidden; background: linear-gradient(100deg, var(--blue-700) 0%, var(--blue-600) 50%, #2F7BFF 100%); color: #fff; }
.help-banner::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.help-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 34px; padding-bottom: 34px; }
.help-lead { display: flex; align-items: center; gap: 18px; max-width: 520px; }
.help-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--green-500); flex-shrink: 0; box-shadow: 0 0 0 6px rgba(255,255,255,.14); }
.help-icon .icon { width: 30px; height: 30px; }
.help-lead h2 { color: #fff; font-size: 22px; }
.help-lead p { margin-top: 6px; color: rgba(255,255,255,.82); font-size: 14.5px; }
.help-channels { display: flex; gap: 8px; }
.help-channels a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 14px; transition: background .2s; }
.help-channels a:hover { background: rgba(255,255,255,.12); }
.help-channels a + a { position: relative; }
.help-channels span { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--blue-600); }
.help-channels a:nth-child(2) span { color: var(--green-600); }
.help-channels small { font-size: 12.5px; color: rgba(255,255,255,.75); font-weight: 600; }
.help-channels strong { font-size: 14.5px; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: radial-gradient(800px 300px at 0% 0%, rgba(47, 123, 255, .16), transparent 60%), var(--navy-900); color: rgba(255,255,255,.72); padding-top: 72px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.brand-light .logo-mark .lm-top, .brand-light .logo-mark .lm-dot { fill: #fff; }
.brand-light .logo-mark .lm-tassel { stroke: #fff; }
.brand-light .logo-mark .lm-base { fill: #5B8CFF; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name em { color: #6D9BFF; }
.brand-light .brand-tag { color: rgba(255,255,255,.6); }
.footer-brand p { margin: 20px 0 24px; max-width: 320px; line-height: 1.7; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.08); transition: background .2s, transform .2s var(--ease); }
.socials a:hover { background: var(--blue-600); transform: translateY(-2px); }
.socials .icon { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 12px; }
.footer-contact .icon { width: 18px; height: 18px; color: #6D9BFF; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.55); }
.footer-disclaimer { flex: 1; min-width: 260px; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom nav a:hover { color: #fff; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
    position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 95;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 20px 8px 8px; border-radius: 999px;
    background: var(--green-500); color: #fff; font-weight: 700; font-size: 14.5px;
    box-shadow: 0 12px 30px -8px rgba(18, 161, 80, .6), 0 0 0 4px rgba(255,255,255,.9);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); }
.wa-float-icon .icon { width: 24px; height: 24px; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(5, 21, 53, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s ease; }
.modal-panel { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: var(--radius-xl); box-shadow: 0 40px 80px -20px rgba(5, 21, 53, .5); animation: pop .35s var(--ease); }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.modal-search { place-items: start center; padding-top: 12vh; }
.search-panel { max-width: 640px; }
.search-form { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.search-form .icon { color: var(--blue-600); width: 22px; height: 22px; }
.search-form input { flex: 1; border: 0; outline: 0; font-size: 18px; font-weight: 500; color: var(--ink); background: transparent; }
.search-form input::placeholder { color: #94A3B8; }
.search-form kbd { font: 600 11px var(--font); color: var(--muted); padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-soft); }
.search-suggest { padding: 20px 22px 24px; }
.search-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

.quiz-head { padding: 32px 32px 0; }
.quiz-head h2 { margin-top: 14px; font-size: 25px; padding-right: 36px; }
.quiz-progress { height: 6px; margin-top: 20px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--blue-600), var(--green-500)); transition: width .45s var(--ease); }
.quiz-step-label { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.quiz-body { padding: 18px 32px 32px; }
.quiz-q { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
    display: flex; align-items: center; gap: 14px; width: 100%;
    padding: 15px 18px; border-radius: 14px; text-align: left;
    border: 1.5px solid var(--line); background: #fff;
    font-weight: 600; font-size: 15px; color: var(--ink);
    transition: border-color .2s, background .2s, transform .2s var(--ease);
    animation: rise .35s var(--ease) both;
}
.quiz-option:hover { border-color: var(--blue-600); background: var(--blue-50); transform: translateX(3px); }
.quiz-option .qo-key { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--bg-soft); font-size: 13px; font-weight: 800; color: var(--muted); flex-shrink: 0; transition: all .2s; }
.quiz-option:hover .qo-key { background: var(--blue-600); color: #fff; }
.quiz-back { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--muted); }
.quiz-back:hover { color: var(--blue-600); }
.quiz-result { text-align: center; animation: rise .45s var(--ease); }
.qr-badge { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; margin-bottom: 16px; }
.qr-badge .icon { width: 36px; height: 36px; }
.qr-jupeb .qr-badge { background: var(--blue-100); color: var(--blue-700); }
.qr-ijmb .qr-badge { background: var(--green-100); color: var(--green-700); }
.qr-either .qr-badge { background: var(--violet-bg); color: var(--violet); }
.quiz-result small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.quiz-result h3 { font-size: 30px; margin: 6px 0 12px; }
.qr-jupeb h3 { color: var(--blue-600); }
.qr-ijmb h3 { color: var(--green-600); }
.quiz-result > p { color: var(--text); font-size: 15px; max-width: 420px; margin: 0 auto; }
.qr-reasons { display: flex; flex-direction: column; gap: 8px; margin: 20px 0 24px; text-align: left; }
.qr-reasons li { display: flex; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; font-weight: 600; color: var(--ink); }
.qr-reasons .icon { width: 18px; height: 18px; color: var(--green-600); margin-top: 1px; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.qr-restart { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.qr-restart:hover { color: var(--blue-600); }
.qr-restart .icon { width: 15px; height: 15px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .nav-link { padding: 10px 9px; font-size: 14px; }
    .why-grid { grid-template-columns: repeat(3, 1fr); }
    .help-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1100px) {
    :root { --header-h: 68px; }
    .nav-toggle { display: inline-grid; }
    .header-cta { display: none; }
    .header-actions { margin-left: auto; }
    .main-nav {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 110;
        width: min(380px, 88vw); margin: 0; padding: calc(var(--header-h) + 8px) 20px 24px;
        background: #fff; box-shadow: var(--shadow-lg);
        display: flex; flex-direction: column; overflow-y: auto;
        /* Closed state is clipped in place rather than moved off-screen: an off-screen
           fixed element widens the page on phones (sideways scrolling, hidden WhatsApp button). */
        -webkit-clip-path: inset(0 0 0 100%); clip-path: inset(0 0 0 100%);
        visibility: hidden;
        transition: clip-path .38s var(--ease), -webkit-clip-path .38s var(--ease), visibility .38s;
    }
    .nav-open .main-nav { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); visibility: visible; }
    .main-nav .nav-list, .main-nav .nav-mobile-extra { transform: translateX(24px); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
    .nav-open .main-nav .nav-list, .nav-open .main-nav .nav-mobile-extra { transform: none; opacity: 1; transition-delay: .08s; }
    .nav-open .nav-toggle { position: relative; z-index: 120; }
    .nav-open .nav-toggle-open { display: none; }
    .nav-open .nav-toggle-close { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-link { width: 100%; justify-content: space-between; padding: 14px 14px; font-size: 16px; border-radius: 12px; }
    .nav-link:hover, .nav-link.is-active { background: var(--bg-soft); }
    .nav-link.is-active::after { display: none; }
    .dropdown { position: static; width: auto; padding: 4px 0 8px 8px; border: 0; box-shadow: none; transform: none; display: none; opacity: 1; visibility: visible; }
    .has-dropdown.is-open .dropdown { display: block; transform: none; }
    .nav-mobile-extra { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 24px; }

    .hero { padding: 48px 0 72px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
    .hero-media { height: 440px; }
    .fc-1 { left: 16px; }

    .prog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prog-help { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; column-gap: 20px; align-items: center; }
    .prog-help-icon { grid-row: 1 / 3; margin: 0; }
    .prog-help h3 br { display: none; }
    .prog-help > p { margin: 4px 0 0; grid-column: 2; }
    .prog-help .btn { grid-column: 3; grid-row: 1 / 3; width: auto; }
    .prog-help-meta { display: none; }

    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
    .step::after { display: none; }

    .study-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .study-popular { padding-left: 0; border-left: 0; padding-top: 48px; border-top: 1px solid var(--line); }

    .compare-grid { grid-template-columns: minmax(0, 1fr); }
    .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tool-centre { grid-column: 1 / -1; }
    .centre-form { grid-template-columns: 1fr 1fr 1fr auto; }
    .centre-form .select-wrap:first-child, .centre-form .btn { grid-column: auto; }

    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .faq-intro { position: static; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}

@media (max-width: 720px) {
    :root { --gutter: 16px; }
    body { font-size: 15.5px; }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 32px; }
    .brand-name { font-size: 21px; }
    .logo-mark { width: 40px; height: 35px; }
    .brand-tag { font-size: 11px; }

    .hero { padding: 32px 0 56px; }
    .hero .lead { font-size: 16.5px; }
    .hero-cta .btn { flex: 1 1 100%; }
    .hero-media { height: 360px; margin: 0 4px; }
    .hero-photo { border-radius: 24px 24px 24px 72px; }
    .hero-script { top: 22px; right: 18px; font-size: 28px; }
    .fc-1 { left: -4px; bottom: 70px; }
    .fc-2 { right: 12px; }
    .float-card { padding: 10px 14px 10px 10px; }
    .fc-icon { width: 36px; height: 36px; }

    .programmes { padding-bottom: 64px; }
    .prog-grid { grid-template-columns: minmax(0, 1fr); }
    .prog-card, .prog-help { padding: 24px; }
    .prog-help { display: flex; }
    .prog-help-icon { margin-bottom: 14px; }
    .prog-help > p { margin: 8px 0 18px; }
    .prog-help .btn { width: 100%; }
    .check-list { grid-template-columns: minmax(0, 1fr); }
    .prog-foot { flex-wrap: wrap; }

    .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .step p { max-width: none; }

    .finder-form { flex-direction: column; }
    .fr-subjects { grid-template-columns: minmax(0, 1fr); }
    .fr-head { flex-direction: column; align-items: flex-start; }
    .course-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .course-tile { padding: 14px 12px; font-size: 13.5px; }
    .course-tile-icon { width: 36px; height: 36px; }

    .compare-banner { grid-template-columns: minmax(0, 1fr); }
    .cb-media { height: 220px; background-position: center 20%; }
    .cb-copy { padding: 28px 24px; }
    .compare-card { padding: 20px; }

    .tools-grid { grid-template-columns: minmax(0, 1fr); }
    .centre-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .centre-form .select-wrap:first-child, .centre-form .btn { grid-column: 1 / -1; }

    .article-grid { grid-template-columns: minmax(0, 1fr); }
    .article-card { flex-direction: row; }
    .article-thumb { width: 116px; height: auto; min-height: 116px; flex-shrink: 0; }
    .article-thumb .icon { width: 36px; height: 36px; }
    .article-tag { display: none; }
    .article-body { padding: 16px; }
    .article-body strong { font-size: 15px; }

    .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .why-item { padding: 20px 16px; }
    .why-item:last-child { grid-column: 1 / -1; }

    .faq-item summary { padding: 18px; font-size: 15.5px; }
    .faq-answer { padding: 0 18px 18px; }

    .help-lead { align-items: flex-start; }
    .help-icon { width: 48px; height: 48px; }
    .help-channels { flex-direction: column; width: 100%; gap: 4px; }
    .help-channels a { padding-left: 0; }

    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
    .footer-brand, .footer-contact { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 96px; }

    .wa-float { padding: 8px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
    .nav-open .wa-float { opacity: 0; pointer-events: none; }
    .wa-float-label { display: none; }

    .modal { padding: 12px; }
    .quiz-head { padding: 26px 22px 0; }
    .quiz-head h2 { font-size: 21px; }
    .quiz-body { padding: 16px 22px 26px; }
}
