/* Afaq Scholars Academy — "Emerald Scholar" restyle (preview copy only) */
*{box-sizing:border-box}
body{margin:0;font-family:"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;color:#1e2a24;background:#faf7ef;line-height:1.6}
h1,h2,h3,.brand-text strong{font-family:Georgia,"Times New Roman",serif;color:#0b2a4a}
a{color:#047857}

/* Demo banner — navy, white text, DESIGN CONCEPT pill */
.demo-bar{background:#0b2a4a;color:#fff;text-align:center;padding:10px 14px;font-size:14px}
.demo-pill{display:inline-block;background:#fff;color:#0b2a4a;font-weight:900;font-size:12px;letter-spacing:.08em;padding:3px 10px;border-radius:3px;margin-right:8px;vertical-align:middle}

/* Masthead — cream, serif wordmark, sticky bar */
.masthead{position:sticky;top:0;z-index:50;background:#fff;border-bottom:3px solid #047857}
.mast-in{max-width:1080px;margin:0 auto;padding:20px 18px 14px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.brand{display:flex;gap:14px;align-items:center}
.monogram{width:54px;height:54px;display:grid;place-items:center;background:#047857;color:#fff;font-family:Georgia,serif;font-size:30px;font-weight:700;border-radius:50% 50% 50% 4px}
.brand-text strong{display:block;font-size:24px;line-height:1.15}
.brand-text span{color:#047857;font-weight:700;font-size:14px;letter-spacing:.05em;text-transform:uppercase}
.mast-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.mast-line{font-size:13px;color:#5b6b62;font-weight:600}
.wa-btn{background:#047857;color:#fff;text-decoration:none;font-weight:800;padding:11px 18px;border-radius:4px}
.wa-btn:hover{background:#065f46}
.pillnav{max-width:1080px;margin:0 auto;padding:0 18px 14px;display:flex;gap:8px;flex-wrap:wrap}
.pillnav a{color:#0b2a4a;text-decoration:none;font-weight:700;padding:8px 14px;border:1px solid #d8d2c2;border-radius:999px;background:#faf7ef}
.pillnav a:hover{border-color:#047857;color:#047857}
.pillnav a.nav-cta{background:#0b2a4a;color:#fff;border-color:#0b2a4a}

/* Hero — split: copy left, dark stats panel right */
.hero{background:linear-gradient(160deg,#0b2a4a 0%,#0f3d33 100%);color:#fff}
.hero-in{max-width:1080px;margin:0 auto;padding:44px 18px 30px;display:grid;gap:28px}
.hero-copy .kicker{color:#7dd3a8;font-weight:800;letter-spacing:.12em;text-transform:uppercase;font-size:13px;margin:0 0 10px}
.hero h1{color:#fff;font-size:clamp(34px,6vw,54px);line-height:1.05;margin:0 0 14px}
.lede{font-size:18px;color:#dbe7df;max-width:560px}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.btn{display:inline-block;padding:13px 20px;border-radius:4px;text-decoration:none;font-weight:800;border:0;cursor:pointer;font-size:16px}
.btn.primary{background:#10b981;color:#06281c}
.btn.primary:hover{background:#34d399}
.btn.ghost{background:transparent;color:#fff;border:2px solid #7dd3a8}
.btn.wa{background:#047857;color:#fff}
.btn.wa:hover{background:#065f46}
.stats-panel{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.22);border-radius:6px;padding:22px}
.stats-panel h2{color:#fff;font-size:20px;margin:0 0 12px;border-bottom:1px solid rgba(255,255,255,.22);padding-bottom:10px}
.stats-panel dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.stats-panel dl div{border-left:3px solid #10b981;padding-left:12px}
.stats-panel dt{font-size:13px;color:#bcd8c6;text-transform:uppercase;letter-spacing:.06em}
.stats-panel dd{margin:2px 0 0;font-family:Georgia,serif;font-size:26px;font-weight:700;color:#fff}
.stats-note{font-size:14px;color:#cfe3d6;margin:16px 0 0}
.ticker-strip{max-width:1080px;margin:0 auto;padding:0 18px 22px;display:flex;gap:10px;flex-wrap:wrap}
.ticker-strip span{border:1px solid rgba(255,255,255,.3);border-radius:999px;padding:5px 12px;font-size:13px;color:#e6f2ea}

/* Sections */
.section{padding:36px 18px;max-width:1080px;margin:0 auto}
.section.band{background:#fff;border-top:1px solid #e5dfcf;border-bottom:1px solid #e5dfcf;max-width:none}
.section.band>*{max-width:1080px;margin-left:auto;margin-right:auto}
.section h2{margin:0 0 6px;font-size:30px}
.sub{color:#5b6b62;margin-top:0}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;flex-wrap:wrap}
.tabs{display:flex;gap:8px;flex-wrap:wrap}
.tab{border:2px solid #0b2a4a;background:#fff;color:#0b2a4a;border-radius:4px;padding:9px 16px;font-weight:800;cursor:pointer;font-size:15px}
.tab.active{background:#0b2a4a;color:#fff}
.tab:hover{border-color:#047857;color:#047857}
.tab.active:hover{color:#fff}

/* Programme cards — sharp corners, emerald left rule, serif headings */
.grid{display:grid;grid-template-columns:1fr;gap:14px;margin-top:18px}
.card{background:#fff;border:1px solid #e0d9c6;border-left:5px solid #047857;border-radius:4px;padding:18px}
.card-tag{display:inline-block;background:#e7f4ec;color:#065f46;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:2px 8px;border-radius:3px}
.card h3{margin:10px 0 6px;font-size:21px}
.card p{margin:0;color:#3d4a43}
.card:hover{border-left-color:#0b2a4a;box-shadow:0 8px 20px rgba(11,42,74,.12)}

/* Timeline batches */
.timeline{list-style:none;padding:0;margin:18px 0;display:grid;gap:14px;counter-reset:step}
.timeline li{counter-increment:step;display:grid;grid-template-columns:44px 1fr;gap:14px;background:#faf7ef;border:1px solid #e0d9c6;border-radius:4px;padding:16px}
.timeline li::before{content:counter(step);width:44px;height:44px;display:grid;place-items:center;background:#0b2a4a;color:#fff;font-family:Georgia,serif;font-size:20px;font-weight:700;border-radius:50%}
.timeline strong{display:block;font-family:Georgia,serif;font-size:19px;color:#0b2a4a}
.timeline span{color:#3d4a43}

/* Calculator + enquiry — two-column, navy panel */
.calc-wrap{display:grid;gap:24px;align-items:start}
.calc-copy h2{margin-top:0}
.calc{background:#0b2a4a;border-radius:6px;padding:22px;display:grid;gap:14px;color:#fff}
.calc label{font-weight:700;display:grid;gap:6px;color:#e6f2ea}
.calc input,.calc select{padding:12px;border:1px solid #94a3b8;border-radius:4px;font-size:16px;width:100%;background:#fff;color:#1e2a24}
.result{background:#e7f4ec;border:1px solid #10b981;color:#065f46;padding:14px;border-radius:4px;font-weight:700}
.note{color:#5b6b62;font-size:15px}
.calc .note{color:#bcd8c6}
.demo-tag{background:#e7f4ec;color:#065f46;font-size:12px;font-weight:800;padding:3px 9px;border-radius:3px;vertical-align:middle;font-family:"Segoe UI",system-ui,sans-serif}

/* Fees table — navy header, zebra rows (scrolls inside its wrapper on narrow screens) */
.table-wrap{overflow-x:auto}
table.fees{width:100%;min-width:560px;border-collapse:collapse;background:#fff}
table.fees th{background:#0b2a4a;color:#fff;padding:12px;text-align:left;font-size:15px}
table.fees td{border-bottom:1px solid #e0d9c6;padding:11px;font-size:15px}
table.fees tbody tr:nth-child(even){background:#faf7ef}

/* People rows — avatar disc + text, not cards */
.people{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:12px}
.people li{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid #e0d9c6;border-radius:4px;padding:14px 16px}
.people h3{margin:0;font-size:19px}
.people p{margin:2px 0 0;color:#3d4a43}
.avatar{flex:none;width:52px;height:52px;display:grid;place-items:center;background:#047857;color:#fff;font-weight:800;border-radius:50%;font-size:16px}
.avatar.gold{background:#0b2a4a}

/* Notices — two columns */
.notice-cols{display:grid;gap:28px}
.notice-cols h3{font-size:21px}
.notices li{margin-bottom:10px}
.notices li::marker{color:#047857}

/* Footer — navy, three columns */
.footer{background:#0b2a4a;color:#dbe7df;padding:30px 18px}
.foot-in{max-width:1080px;margin:0 auto;display:grid;gap:18px}
.footer strong{color:#fff}
.footer a{color:#7dd3a8}
.footer p{margin:4px 0}
.foot-nav{max-width:1080px;margin:20px auto 0;display:flex;gap:6px 18px;flex-wrap:wrap}
.foot-nav a{color:#7dd3a8;text-decoration:none;font-weight:700;font-size:15px}
.foot-nav a:hover{color:#fff;text-decoration:underline}
.foot-concept{max-width:1080px;margin:12px auto 0;color:#bcd8c6;font-size:14px}

/* Slide-from-left reveal (replaces old translateY/zoom reveal) */
.reveal{opacity:0;transform:translateX(-22px);transition:opacity .55s ease,transform .55s ease}
.reveal.visible{opacity:1;transform:none}
.grid .card:nth-child(2),.people li:nth-child(2),.timeline li:nth-child(2){transition-delay:.08s}
.grid .card:nth-child(3),.people li:nth-child(3),.timeline li:nth-child(3){transition-delay:.16s}
.grid .card:nth-child(4),.people li:nth-child(4){transition-delay:.24s}
.grid .card:nth-child(5){transition-delay:.32s}
.grid .card:nth-child(6){transition-delay:.4s}
.grid .card:nth-child(7){transition-delay:.48s}
/* Tap highlight: emerald outline ring only — no scale/zoom */
.card.zoomed,.pcard.zoomed{outline:3px solid #10b981;outline-offset:2px}
@media (prefers-reduced-motion: reduce){.reveal{opacity:1;transform:none;transition:none}}

@media(min-width:760px){
  .grid{grid-template-columns:1fr 1fr}
  .hero-in{grid-template-columns:1.5fr 1fr;padding:56px 18px 36px}
  .calc-wrap{grid-template-columns:1fr 1.1fr}
  .notice-cols{grid-template-columns:1fr 1fr}
  .foot-in{grid-template-columns:1.2fr 1.4fr .8fr}
  .people{grid-template-columns:1fr 1fr}
  .timeline{grid-template-columns:1fr 1fr 1fr}
  .timeline li{grid-template-columns:44px 1fr}
}
@media(min-width:1020px){.grid{grid-template-columns:1fr 1fr 1fr}}

/* Hamburger menu — Emerald Scholar: navy button, cream drawer, emerald accents, sharp corners */
.menu-btn{flex:none;width:48px;height:48px;background:#0b2a4a;color:#fff;border:0;border-radius:4px;font-size:24px;line-height:1;cursor:pointer}
.menu-btn:hover{background:#047857}
.menu-overlay{position:fixed;inset:0;background:rgba(11,42,74,.55);z-index:55;display:none}
.menu-overlay.open{display:block}
.menu-panel{position:fixed;top:0;right:0;height:100%;width:min(320px,85vw);background:#faf7ef;z-index:60;box-shadow:-4px 0 24px rgba(11,42,74,.3);transform:translateX(105%);transition:transform .3s ease;display:flex;flex-direction:column}
.menu-panel.open{transform:none}
.menu-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:3px solid #047857;background:#fff}
.menu-head span{font-family:Georgia,"Times New Roman",serif;font-size:22px;font-weight:700;color:#0b2a4a}
.menu-head button{border:0;background:#0b2a4a;color:#fff;border-radius:4px;width:38px;height:38px;font-size:16px;cursor:pointer}
.menu-head button:hover{background:#047857}
.menu-links{display:flex;flex-direction:column;padding:12px 0;flex:1;overflow:auto}
.menu-links a{color:#0b2a4a;text-decoration:none;font-weight:700;font-size:17px;padding:12px 22px;border-left:5px solid transparent}
.menu-links a:hover{background:#e7f4ec;color:#065f46;border-left-color:#047857}
.menu-wa{margin:16px 20px 22px;background:#047857;color:#fff;text-decoration:none;text-align:center;font-weight:800;padding:13px 18px;border-radius:4px}
.menu-wa:hover{background:#065f46}
@media (prefers-reduced-motion: reduce){.menu-panel{transition:none}}
