/* AIMERS refine: calmer, lighter, more professional home page (loaded last) */
:root{--navy:#0b1f4d;--navy2:#1b3a8a;--gold:#c99400;--soft:#f5f8ff;--hair:#e3e9f5;--body:#46506f}

/* 1. The "What is AIMERS?" box: from dark glossy to a clean, light card */
html body .heroX .what{background:#fff;color:var(--navy);border:1px solid var(--hair);border-radius:20px;box-shadow:0 18px 40px rgba(11,31,77,.08),0 2px 6px rgba(11,31,77,.04);overflow:hidden}
html body .heroX .what::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#e8b923,#f5d77a 45%,#9db8f0);pointer-events:none}
html body .heroX .what b{background:#fff7e0;color:#8a6200;border:1px solid #f1dfa6;font:700 .74rem "Plus Jakarta Sans",sans-serif;letter-spacing:.18em}
html body .heroX .what .wq{color:var(--navy);font-weight:600;letter-spacing:-.01em}
html body .heroX .what .wq em{color:var(--navy2);font-style:italic}
html body .heroX .what p{color:var(--body)}
html body .heroX .what .wi span{background:var(--soft);border:1px solid var(--hair);color:#26356b;font-weight:600}


/* 2. Hero: softer background, quieter glow */
html body .heroX{background:linear-gradient(180deg,#fdfdff 0%,#f4f7ff 100%)}
html body .heroX::after{opacity:.35}
html body .heroX .bar{height:4px;width:84px;background:linear-gradient(90deg,#e8b923,#9db8f0)}

/* 3. Buttons: refined, less loud */
html body .btn{box-shadow:0 6px 16px rgba(36,87,214,.16);letter-spacing:.01em}
html body .btn:hover{box-shadow:0 10px 22px rgba(36,87,214,.22)}

/* 4. Gold ribbon: from bright yellow bar to a soft ivory strip */
html body .ribbon{background:#fff8e6;color:#6b4b00;border-top:1px solid #f1e3b8;border-bottom:1px solid #f1e3b8;font:600 .9rem "Plus Jakarta Sans",sans-serif;letter-spacing:.06em;padding:11px 0}

/* 5. Big call-out panels: calm navy instead of blue-to-magenta */
html body .poster{background:linear-gradient(135deg,#0b1f4d,#1d3f94);box-shadow:0 20px 44px rgba(11,31,77,.2)}
html body .poster h2{font-family:Fraunces,Georgia,serif;font-weight:700;text-transform:none;letter-spacing:-.01em}
html body .poster h2 em{color:#ffd980;font-style:italic}
html body .cta2 .poster{background:linear-gradient(135deg,#fff6dc,#ffe7a8);box-shadow:0 16px 36px rgba(201,148,0,.16)}
html body .cta2 .poster h2 em{color:#9c1f55}

/* 6. Cards: lighter borders, softer shadows */
html body .wc{border-top-width:3px;box-shadow:0 6px 18px rgba(11,31,77,.05)}
html body .wc:hover{box-shadow:0 12px 28px rgba(11,31,77,.1)}
html body .dark{background:linear-gradient(160deg,#0a1a40,#13306f)}
html body .classroom-sec{background:linear-gradient(135deg,#0a1a40,#16336f)}
html body .globe{background:linear-gradient(135deg,#f4f8ff,#fffaf0)}

/* ===== v2: bigger, more readable "What is AIMERS?" box on PC ===== */
@media(min-width:901px){
html body .heroX .what{max-width:900px!important;padding:42px 56px 38px}
html body .heroX .what b{font-size:.98rem;padding:8px 22px;margin-bottom:18px}
html body .heroX .what .wq{font-size:clamp(2.1rem,2.7vw,2.7rem);line-height:1.22;margin-bottom:16px}
html body .heroX .what p{font-size:1.22rem;line-height:1.8;max-width:42em}
html body .heroX .what .wi{gap:12px;margin-top:24px}
html body .heroX .what .wi span{font-size:1.02rem;padding:8px 20px}
}
@media(min-width:701px) and (max-width:900px){html body .heroX .what{padding:34px 40px 30px}}

/* ===== v2: quiet "chat-wallpaper" doodles (maths, English, learning) behind the page ===== */
html body{background-color:#fff}
html body::after{content:"";position:fixed;inset:0;z-index:1;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'380'%20height%3D'380'%20viewBox%3D'0%200%20380%20380'%3E%3Cg%20opacity%3D'.085'%3E%3Cg%20stroke%3D'%232457d6'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%3E%3Cpath%20d%3D'M30%2050h22M41%2039v22'%2F%3E%3Cpath%20d%3D'M262%2040l24%2024-8%2020-20-8z%20M262%2040l-6-6%208-6%206%206'%2F%3E%3Cpath%20d%3D'M30%20176q16-10%2032%200q16-10%2032%200v38q-16-10-32%200q-16-10-32%200z%20M62%20176v38'%2F%3E%3Ccircle%20cx%3D'318'%20cy%3D'168'%20r%3D'15'%2F%3E%3Cpath%20d%3D'M310%20188h16M312%20195h12'%2F%3E%3Cpath%20d%3D'M140%20268l32-15l32%2015l-32%2015z%20M154%20276v14q18%209%2036%200v-14'%2F%3E%3Cpath%20d%3D'M300%20296l30-8M303%20304l30-8M306%20312l30-8'%20%2F%3E%3C%2Fg%3E%3Cg%20fill%3D'%232457d6'%20font-family%3D'Georgia%2Cserif'%20font-weight%3D'700'%3E%3Ctext%20x%3D'140'%20y%3D'72'%20font-size%3D'36'%3E%CF%80%3C%2Ftext%3E%3Ctext%20x%3D'196'%20y%3D'204'%20font-size%3D'26'%20font-family%3D'Arial%2Csans-serif'%3EABC%3C%2Ftext%3E%3Ctext%20x%3D'28'%20y%3D'330'%20font-size%3D'40'%3E%E2%88%91%3C%2Ftext%3E%3Ctext%20x%3D'88'%20y%3D'64'%20font-size%3D'26'%20font-family%3D'Arial%2Csans-serif'%3E%C3%B7%3C%2Ftext%3E%3Ctext%20x%3D'214'%20y%3D'332'%20font-size%3D'26'%20font-family%3D'Georgia%2Cserif'%20font-style%3D'italic'%3Ex%C2%B2%3C%2Ftext%3E%3Ctext%20x%3D'330'%20y%3D'84'%20font-size%3D'22'%20font-family%3D'Arial%2Csans-serif'%3EAa%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-size:380px 380px;background-repeat:repeat}
@media(max-width:700px){html body::after{background-size:300px 300px}}

/* ===== v2: a little more breathing room and polish on PC ===== */
@media(min-width:901px) and (hover:hover){
html body section{padding-top:88px;padding-bottom:88px}
html body .ctr>.mut{font-size:1.1rem}
html body .wc{padding:28px}
html body .wc h3{font-size:1.15rem}
html body .wc p{font-size:1.02rem}
html body .heroX .row .btn{min-width:250px;padding:15px 28px;font-size:1.05rem}
html body .zones span{font-size:.95rem}
}

/* ===== v3: watermark only on the sides; reading area stays clear ===== */
html body::after{-webkit-mask-image:linear-gradient(90deg,#000 0,#000 9%,rgba(0,0,0,.08) 24%,rgba(0,0,0,.08) 76%,#000 91%,#000 100%);mask-image:linear-gradient(90deg,#000 0,#000 9%,rgba(0,0,0,.08) 24%,rgba(0,0,0,.08) 76%,#000 91%,#000 100%)}
@media(max-width:900px){html body::after{-webkit-mask-image:none;mask-image:none;opacity:.35}}

/* ===== v3: type mix: classic serif headings, clean sans body, handwritten accents ===== */
html body{color:#222c52}
html body .mut{color:#4a5578}
html body .script,html body .pstr .script,html body .cta2 .script{font-family:Caveat,cursive!important;font-style:normal!important;font-weight:700!important;font-size:1.65rem;letter-spacing:.01em;line-height:1.2}
html body h2 em,html body h3 em{font-style:italic;color:#2457d6}
html body .wc h3,html body .cc b,html body .hubs h3{font-family:"Plus Jakarta Sans",system-ui,sans-serif!important;font-weight:800;letter-spacing:-.005em;color:#0b1f4d}
html body .ctr>h2{margin-bottom:.45em}
@media(min-width:701px){
html body section p{line-height:1.78}
html body .ctr>.mut{line-height:1.75}
html body .wc p{line-height:1.7;color:#454f72}
}
html body .ribbon{font-family:"Plus Jakarta Sans",sans-serif}

/* ===== v3: speed: skip rendering far-below-the-fold sections until needed; respect reduced motion ===== */
html body .globe,html body .hubs,html body .whysec,html body .cream,html body .classroom-sec{content-visibility:auto;contain-intrinsic-size:auto 720px}
@media(prefers-reduced-motion:reduce){html body *,html body *::before,html body *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* ===== v4: tagline centred under AIMERS, mixed fonts, animated underline; morning-sun light from one side ===== */
@keyframes tgIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes tgUnder{0%{clip-path:inset(0 100% 0 0)}38%,82%{clip-path:inset(0 0 0 0)}100%{clip-path:inset(0 0 0 100%)}}
@keyframes sunGlow{from{opacity:.8}to{opacity:1}}

html body #top-hero .tagl{display:block!important;text-align:center!important;margin:0 auto!important;max-width:none!important;width:100%;font:500 clamp(1.7rem,3.2vw,3rem)/1.4 Fraunces,Georgia,serif!important;color:#0b1f4d!important;text-wrap:balance;padding:.1em 0 .25em!important}
html body #top-hero .tagl .fw,html body #top-hero .tagl .w.fw,html body #top-hero .tagl .ch.fw,html body #top-hero .tagl .be.fw{animation:tgIn .8s cubic-bezier(.2,.8,.2,1) both!important;animation-delay:calc(var(--w)*.16s + .15s)!important;transform:none}
html body #top-hero .tagl .bec{display:block!important;margin:0 0 .15em!important;padding:0!important;text-align:center;transform:none!important;font:italic 500 .5em/1.3 Fraunces,Georgia,serif!important;letter-spacing:.14em!important;color:#6f7ba3!important;-webkit-text-fill-color:#6f7ba3!important}
html body #top-hero .tagl .bec .bl{animation:none!important}
html body #top-hero .tagl .bec .bu{display:none!important}
html body #top-hero .tagl .w{font:500 1em Fraunces,Georgia,serif!important;color:#0b1f4d!important;-webkit-text-fill-color:#0b1f4d!important}
html body #top-hero .tagl .ch{display:inline-block;font:700 1.32em/1 Caveat,cursive!important;color:#1d63d8!important;-webkit-text-fill-color:#1d63d8!important;margin:0 .1em!important;padding:0!important;letter-spacing:.01em}
html body #top-hero .tagl .de{position:relative;display:inline-block;font:800 1.02em Fraunces,Georgia,serif!important;color:#0b1f4d!important;-webkit-text-fill-color:#0b1f4d!important}
html body #top-hero .tagl .de::after{content:""!important;position:absolute;left:-2%;right:-2%;bottom:-.1em;height:.13em;border-radius:9px;background-image:linear-gradient(90deg,#f5b301,#ffd25e 55%,#f5b301)!important;transform:none!important;animation:tgUnder 4.4s ease-in-out infinite!important;box-shadow:0 0 14px rgba(245,179,1,.55)}
html body #top-hero .tagl .be{display:inline-block;font:800 1.08em Sora,system-ui,sans-serif!important;letter-spacing:-.01em;color:#c2185b!important;-webkit-text-fill-color:#c2185b!important;background:none!important;box-shadow:none!important;padding:0 .05em!important;margin:0 0 0 .08em!important}

/* sunlight falling on AIMERS from the top-left */
html body .heroX .wrap{position:relative}
html body .heroX .wrap::before{content:"";position:absolute;z-index:-1;left:-14%;top:-22%;width:78%;height:150%;pointer-events:none;
background:radial-gradient(ellipse 62% 58% at 0% 0%,rgba(255,200,60,.62),rgba(255,214,102,.26) 40%,rgba(255,226,150,0) 72%),
conic-gradient(from 95deg at 0% 0%,rgba(255,214,102,0) 0deg,rgba(255,214,102,.26) 4deg,rgba(255,214,102,0) 9deg,rgba(255,214,102,.2) 14deg,rgba(255,214,102,0) 19deg,rgba(255,214,102,.16) 25deg,rgba(255,214,102,0) 31deg,rgba(255,214,102,.12) 38deg,rgba(255,214,102,0) 46deg);
-webkit-mask-image:radial-gradient(ellipse 100% 100% at 0% 0%,#000 25%,transparent 78%);mask-image:radial-gradient(ellipse 100% 100% at 0% 0%,#000 25%,transparent 78%);
animation:sunGlow 6s ease-in-out infinite alternate}
html body .heroX h1.wm{text-shadow:-8px 6px 34px rgba(245,179,1,.38)}

/* ===== v5: one calm palette (navy + gold + soft blue), fewer colours, kid-friendly but professional ===== */
:root{--navy:#0b1f4d;--royal:#1f46a8;--gold:#e8b923;--goldink:#a8730a;--ivory:#fbf9f3;--sky:#f2f6ff}
html body .heroX .kick{color:var(--goldink);font-size:1.5rem}
html body #top-hero .tagl .ch{color:var(--royal)!important;-webkit-text-fill-color:var(--royal)!important}
html body #top-hero .tagl .be{color:var(--goldink)!important;-webkit-text-fill-color:var(--goldink)!important}
html body .ctr>h2::after{background:linear-gradient(90deg,#e8b923,#9db8f0)}

/* cards: one accent (gold), pale icon tiles instead of rainbow colours */
html body .wc,html body .wc:nth-child(n){--a:var(--gold);border-top:3px solid var(--gold);border-color:var(--line);border-top-color:var(--gold)}
html body .wc i,html body .wc:nth-child(n) i{background:#f2f6ff;border:1px solid #e1e9fa}
html body .step b{background:var(--navy)}
html body .step[aria-selected=true]{background:var(--navy)}
html body .step[aria-selected=true] b{background:var(--gold);color:#1d1500}
html body .chips span{border-color:#d7e0f3}
html body .circ .cc::before{opacity:.3}
html body .circ .cc:hover::before{opacity:.5}

/* hub cards: still, with a soft icon tile (no bobbing) */
html body .hc{animation:none!important;border:1px solid var(--line);box-shadow:0 6px 20px rgba(11,31,77,.06)}
html body .hc:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(11,31,77,.12)}
html body .hc span{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:var(--sky);border:1px solid #e1e9fa;font-size:26px;margin-bottom:8px}
html body .hc b{font-family:"Plus Jakarta Sans",sans-serif!important;font-weight:800;color:var(--navy)}

/* panels: glass circles instead of bright candy circles */
html body .bub{background:rgba(255,255,255,.1)!important;color:#fff!important;border:1px solid rgba(255,255,255,.32)!important;box-shadow:none!important}
html body .bub b{color:#ffd980!important}
html body .cta2 .bub{background:rgba(11,31,77,.06)!important;color:var(--navy)!important;border-color:rgba(11,31,77,.18)!important}
html body .cta2 .bub b{color:#8a5d00!important}

/* quiz buttons: one blue instead of a different colour each */
html body #quizpromo .btn:not(.ghost){background:var(--royal);border-color:var(--royal);color:#fff}
html body #quizpromo .btn small{font-weight:600;opacity:.85}

/* achievements bar: slimmer gold edges */
html body .ach{border-top-width:2px;border-bottom-width:2px}

/* mobile: more air, calmer scale */
@media(max-width:700px){
html body section{padding-top:54px;padding-bottom:54px}
html body .ctr>h2,html body h2{font-size:1.7rem}
html body .wc{padding:20px}
html body .hc span{width:46px;height:46px;font-size:23px}
html body .poster{padding:30px 22px;border-radius:22px}
}

/* ===== v6: no sun rays; slow colour waves drifting across the hero; refined CLASSES label ===== */
html body .heroX .wrap::before{content:none!important;display:none!important}
html body .heroX h1.wm{text-shadow:none}

@keyframes waveSwayA{from{transform:translateX(-7%)}to{transform:translateX(7%)}}
@keyframes waveSwayB{from{transform:translateX(6%)}to{transform:translateX(-6%)}}
@keyframes toneCool{0%,100%{opacity:.25}50%{opacity:1}}
@keyframes toneWarm{0%,100%{opacity:1}50%{opacity:.25}}

/* cool (blue) waves rise from the bottom, drifting left to right and back */
html body .heroX::before{content:""!important;position:absolute;left:-15%;right:-15%;bottom:0;height:64%;top:auto;z-index:0;pointer-events:none;
background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1200'%20height%3D'260'%20viewBox%3D'0%200%201200%20260'%20preserveAspectRatio%3D'none'%3E%3Cpath%20fill%3D'%231f46a8'%20d%3D'M0%20140%20C100%2090%20200%2090%20300%20140%20S500%20190%20600%20140%20S800%2090%20900%20140%20S1100%20190%201200%20140%20V260%20H0%20Z'%2F%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1200'%20height%3D'260'%20viewBox%3D'0%200%201200%20260'%20preserveAspectRatio%3D'none'%3E%3Cpath%20fill%3D'%239db8f0'%20d%3D'M0%20120%20C150%20175%20300%20175%20450%20120%20S750%2065%20900%20120%20S1200%20175%201200%20120%20V260%20H0%20Z'%2F%3E%3C%2Fsvg%3E")!important;background-repeat:repeat-x,repeat-x!important;background-position:0 100%,0 82%!important;background-size:1200px 70%,1600px 62%!important;
opacity:.12;will-change:transform,opacity;animation:waveSwayA 19s ease-in-out infinite alternate,toneCool 17s ease-in-out infinite}
/* warm (gold) waves hang from the top, drifting the other way */
html body .heroX::after{content:""!important;position:absolute;left:-15%;right:-15%;top:0;bottom:auto;height:58%;z-index:0;pointer-events:none;
background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1200'%20height%3D'260'%20viewBox%3D'0%200%201200%20260'%20preserveAspectRatio%3D'none'%3E%3Cpath%20fill%3D'%23e8b923'%20d%3D'M0%20120%20C100%20170%20200%20170%20300%20120%20S500%2070%20600%20120%20S800%20170%20900%20120%20S1100%2070%201200%20120%20V0%20H0%20Z'%2F%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1200'%20height%3D'260'%20viewBox%3D'0%200%201200%20260'%20preserveAspectRatio%3D'none'%3E%3Cpath%20fill%3D'%23ffd980'%20d%3D'M0%20140%20C150%2085%20300%2085%20450%20140%20S750%20195%20900%20140%20S1200%2085%201200%20140%20V0%20H0%20Z'%2F%3E%3C%2Fsvg%3E")!important;background-repeat:repeat-x,repeat-x!important;background-position:0 0,0 14%!important;background-size:1300px 60%,1700px 52%!important;
opacity:.12;will-change:transform,opacity;animation:waveSwayB 23s ease-in-out infinite alternate,toneWarm 17s ease-in-out infinite}

/* "CLASSES": quieter, more refined than the round blue lettering */
html body .heroX .wm small{font:700 clamp(.95rem,1.35vw,1.25rem)/1.2 "Plus Jakarta Sans",system-ui,sans-serif!important;letter-spacing:.62em!important;color:var(--goldink)!important;-webkit-text-fill-color:var(--goldink)!important;margin-top:14px}
