/* ════════════════════════════════════════════════════════════════════
   EduX shell — the design system shared by every page.

   Deliberately NOT in here: section layouts that only the homepage uses
   (.stp, .track, .why2, .close2, .feedbar, .thumb) and the .rv reveal
   classes. .rv sets opacity:0 and needs an IntersectionObserver to undo
   it — shipping it here would blank the content of every page that links
   this file without that script.

   Load it BEFORE a page's own <style> so the page still wins on its own
   components; this supplies identity, type, buttons, nav and footer.
   ════════════════════════════════════════════════════════════════════ */
:root{
  --bg:#ffffff; --bg2:#f5f9f7; --bg3:#ecf4f0;
  --ink:#0a1a16; --ink2:#46605a; --ink3:#7b918b;
  --a1:#00a97f; --a2:#00875f; --a3:#00c48f; --a4:#7c5cff;
  --line:rgba(10,26,22,.1); --line2:rgba(10,26,22,.055);
  --sh-s:0 8px 22px -12px rgba(6,40,32,.24);
  --sh:0 26px 60px -26px rgba(6,40,32,.34);
  --sh-l:0 60px 120px -46px rgba(6,40,32,.46);
  --f:"Readex Pro","Noto Sans Arabic",system-ui,sans-serif;
  --maxw:1300px; --pad:clamp(20px,5vw,64px);
  --e:cubic-bezier(.19,1,.22,1); --e2:cubic-bezier(.65,0,.35,1);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;overflow-x:hidden}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f);font-size:16.5px;
  line-height:1.85;font-weight:300;letter-spacing:-.005em;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3{margin:0;font-weight:600;line-height:1.42;letter-spacing:-.02em}
p{margin:0}
::selection{background:var(--a1);color:#fff}
:focus-visible{outline:3px solid var(--a1);outline-offset:3px;border-radius:10px}
.wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--pad)}

/* ── page edges ──
   The RTL scrollbar sits on the left and its gutter shows the root background;
   the rubber-band bounce shows it too. Hide the scrollbar and stop the bounce.
   The root is NOT painted a colour here — doing that put a visible dark band
   across the top of the page. */
html{scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-y:none}
html::-webkit-scrollbar,body::-webkit-scrollbar{width:0;height:0;display:none}
body{overscroll-behavior-y:none}

/* ── type scale ── */
.d1{font-size:clamp(2.1rem,5vw,4.1rem);line-height:1.34;font-weight:600;letter-spacing:-.03em}
.d2{font-size:clamp(1.7rem,3.5vw,2.8rem);line-height:1.38;font-weight:600;letter-spacing:-.025em}
.d3{font-size:clamp(1.2rem,2vw,1.65rem);font-weight:600;line-height:1.45}
.lede{font-size:clamp(.98rem,1.1vw,1.08rem);line-height:1.95;color:var(--ink2);font-weight:300}
.kick{display:inline-flex;align-items:center;gap:10px;font-size:11.5px;font-weight:500;
  letter-spacing:.18em;color:var(--a2);text-transform:uppercase}
.kick::before{content:"";width:28px;height:2px;background:var(--a1);border-radius:2px}
.gr{background:linear-gradient(100deg,var(--a2),var(--a1) 55%,#12c3a0);-webkit-background-clip:text;
  background-clip:text;color:transparent}
.num{font-variant-numeric:tabular-nums}
a.go{display:inline-block;margin-top:22px;font-size:14.5px;font-weight:600;color:var(--a2)}

/* ── sections ── */
.sec{position:relative;padding-block:clamp(70px,9vw,124px)}
.sec.tint{background:linear-gradient(180deg,var(--bg2),#fff)}
.sec-hd{max-width:48ch;margin-bottom:clamp(36px,4.6vw,60px)}
.sec-hd.mid{max-width:none;text-align:center;margin-inline:auto}
.sec-hd.mid .lede{max-width:58ch;margin-inline:auto}
.sec-hd .lede{margin-top:16px}

/* ── buttons ── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;
  padding:0 30px;border-radius:100px;font-family:inherit;font-size:14.5px;font-weight:500;
  cursor:pointer;border:1px solid transparent;
  transition:transform .4s var(--e),background .4s var(--e),box-shadow .4s var(--e),color .3s var(--e)}
.btn-p{background:linear-gradient(150deg,var(--a3),var(--a2));color:#fff;
  box-shadow:0 14px 34px -14px rgba(0,169,127,.85)}
.btn-p:hover{transform:translateY(-3px);box-shadow:0 24px 50px -16px rgba(0,169,127,.95)}
.btn-g{border-color:var(--line);color:var(--ink);background:#fff;box-shadow:var(--sh-s)}
.btn-g:hover{transform:translateY(-3px);box-shadow:var(--sh);border-color:var(--a1);color:var(--a2)}
.btn-sm{min-height:46px;padding:0 22px;font-size:14.5px}

/* ── shared chrome — ONE header for every page ──
   The homepage had its own transparent-over-hero nav while interior pages
   had a solid white bar: different height, colours and behaviour, which is
   what made the site feel like two sites. This is the single component.
   Namespaced .ex* because ~40 pages define their own .nav / .btn and their
   stylesheet loads after this one. */
.exhdr{position:fixed;inset-block-start:0;inset-inline:0;z-index:80;font-family:var(--f);
  background:transparent;box-shadow:none;transition:background .45s var(--e),box-shadow .45s var(--e)}
.exhdr-in{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--pad);height:82px;
  display:flex;align-items:center;gap:14px;transition:height .45s var(--e)}
.exhdr-in>a:first-child{display:flex;align-items:center}
.exhdr-in>a:first-child img{height:27px;width:auto;display:block;
  filter:brightness(0) invert(1);transition:filter .45s var(--e)}
.exhdr-l{display:flex;align-items:center;gap:26px;flex:1;margin-inline-start:14px;
  margin-block:0;padding:0;list-style:none}
.exhdr-l li{list-style:none}
.exhdr-l a{font-size:14.5px;font-weight:500;color:rgba(255,255,255,.88);text-decoration:none;
  transition:color .3s var(--e)}
.exhdr-l a:hover{color:#fff}

/* past the hero it becomes the solid bar */
.exhdr.stuck{background:rgba(255,255,255,.97);box-shadow:0 1px 0 var(--line2)}
.exhdr.stuck .exhdr-in{height:72px}
.exhdr.stuck .exhdr-in>a:first-child img{filter:none}
.exhdr.stuck .exhdr-l a{color:var(--ink2)}
.exhdr.stuck .exhdr-l a:hover{color:var(--a2)}

.exbtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;
  padding:0 22px;border-radius:100px;font-family:var(--f);font-size:14.5px;font-weight:500;
  border:1px solid transparent;text-decoration:none;white-space:nowrap;cursor:pointer;
  transition:transform .35s var(--e),box-shadow .35s var(--e),background .35s var(--e),
             color .35s var(--e),border-color .35s var(--e)}
.exbtn-p{background:linear-gradient(150deg,var(--a3),var(--a2));color:#fff;
  box-shadow:0 12px 28px -12px rgba(0,169,127,.85)}
.exbtn-p:hover{transform:translateY(-2px);box-shadow:0 20px 42px -14px rgba(0,169,127,.95)}
/* the secondary button is glass over the hero, white once stuck */
.exbtn-g{background:rgba(255,255,255,.16);color:#fff;border-color:rgba(255,255,255,.42);}
.exbtn-g:hover{background:rgba(255,255,255,.28);transform:translateY(-2px)}
.exhdr.stuck .exbtn-g{background:#fff;color:var(--ink);border-color:var(--line);
  box-shadow:var(--sh-s);}
.exhdr.stuck .exbtn-g:hover{border-color:var(--a1);color:var(--a2)}

.exburger{display:none;width:46px;height:46px;border:1px solid rgba(255,255,255,.4);
  border-radius:100px;background:rgba(255,255,255,.16);cursor:pointer;
  align-items:center;justify-content:center;margin-inline-start:auto;flex:none}
.exhdr.stuck .exburger{border-color:var(--line);background:#fff}
.exburger span{display:block;width:16px;height:2px;background:#fff;position:relative;border-radius:2px}
.exburger span::before,.exburger span::after{content:"";position:absolute;inset-inline:0;height:2px;
  background:#fff;border-radius:2px}
.exburger span::before{top:-5px}.exburger span::after{top:5px}
.exhdr.stuck .exburger span,.exhdr.stuck .exburger span::before,
.exhdr.stuck .exburger span::after{background:var(--ink)}
@media(max-width:1040px){.exhdr-l,.exhdr .exbtn-g{display:none}.exburger{display:flex}}
.exsheet{display:none;background:#fff;box-shadow:var(--sh)}
.exsheet.open{display:block}
.exsheet a{display:block;padding:15px var(--pad);font-size:16px;font-weight:500;
  color:var(--ink);border-bottom:1px solid var(--line2);text-decoration:none}

/* the header floats over the hero, so the hero owns the clearance */
.exhero{padding-block-start:clamp(120px,15vh,160px)!important}

/* ── floating WhatsApp ── */
.wa{position:fixed;inset-block-end:24px;inset-inline-start:24px;z-index:70;width:56px;height:56px;
  border-radius:50%;background:linear-gradient(150deg,var(--a3),var(--a2));color:#fff;display:flex;
  align-items:center;justify-content:center;box-shadow:0 16px 36px -12px rgba(0,169,127,.9);
  transition:transform .4s var(--e)}
.wa:hover{transform:scale(1.1)}
.wa svg{width:25px;height:25px}

/* ── footer: one line, with the full map collapsed beneath it ── */
.xfoot{position:relative;background:#06291f;color:#fff;padding:16px var(--pad) 18px;
  border-radius:22px 22px 0 0}
.xfoot::before{content:"";position:absolute;inset-block-start:0;inset-inline:0;height:2px;
  background:linear-gradient(90deg,transparent,var(--a1),#8ff0cf,var(--a1),transparent)}
.xfoot-in{max-width:var(--maxw);margin:0 auto;display:flex;align-items:center;gap:10px 22px;flex-wrap:wrap}
.xfoot-logo img{display:block;width:92px;height:auto}
.xfoot-min{display:flex;flex-wrap:wrap;align-items:center;flex:1;min-width:0;margin:0;padding:0;list-style:none}
.xfoot-min li{display:inline-flex;align-items:center}
.xfoot-min li:not(:last-child)::after{content:"·";margin:0 10px;color:rgba(255,255,255,.3)}
.xfoot-min a{color:rgba(255,255,255,.72);font-size:13px;transition:color .25s var(--e)}
.xfoot-min a:hover{color:#8ff0cf}
.xfoot-c{color:rgba(255,255,255,.42);font-size:12px;white-space:nowrap}
.xfoot-map{max-width:var(--maxw);margin:0 auto}
.xfoot-map>summary{list-style:none;cursor:pointer;margin-top:12px;font-size:11.5px;
  color:rgba(255,255,255,.34);transition:color .25s var(--e)}
.xfoot-map>summary::-webkit-details-marker{display:none}
.xfoot-map>summary::after{content:"+";margin-inline-start:6px}
.xfoot-map[open]>summary::after{content:"−"}
.xfoot-map>summary:hover{color:#8ff0cf}
.xfoot-map .xmap-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:16px 18px;margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.12)}
.xmap-col h4{margin:0 0 7px;font-size:11px;font-weight:700;color:#8ff0cf;letter-spacing:.05em}
.xmap-col ul{display:flex;flex-direction:column;gap:4px;margin:0;padding:0;list-style:none}
.xmap-col a{color:rgba(255,255,255,.58);font-size:12.2px;line-height:1.5}
.xmap-col a:hover{color:#8ff0cf}
@media(max-width:640px){
  .xfoot-in{gap:8px 14px}
  .xfoot-min{flex:1 1 100%}
  .xfoot-map .xmap-cols{grid-template-columns:1fr 1fr}
}

/* ── shared photo hero ──
   The homepage opens on a full-bleed photograph; interior pages opened on a
   grey box, which is why they read as a different site however well the
   colours matched. This turns whatever container holds a page's <h1> into
   the same cinematic frame. !important because ~40 pages style that same
   container themselves and their CSS loads after this file. */
.exhero{position:relative;isolation:isolate;overflow:hidden;
  min-height:clamp(340px,46svh,500px);display:flex;flex-direction:column;justify-content:flex-end;
  margin:0!important;max-width:none!important;width:auto!important;
  padding:clamp(90px,12vh,130px) var(--pad) clamp(30px,5vw,56px)!important;
  background:#06291f!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;color:#fff!important;text-align:center}
.exhero>*:not(.exhero-ph){position:relative;z-index:1;max-width:var(--maxw);margin-inline:auto;width:100%}
.exhero-ph{position:absolute;inset:0;z-index:-1;margin:0!important;padding:0!important;max-width:none!important;width:auto!important}
.exhero-ph img{width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;display:block;
  filter:brightness(1.06) saturate(1.04);animation:exken 26s linear infinite alternate;
  will-change:transform}
@keyframes exken{from{transform:scale(1.05)}to{transform:scale(1.16) translate3d(-2%,-1%,0)}}
.exhero-ph::after{content:"";position:absolute;inset:0;
  background:linear-gradient(to top,rgba(4,22,17,.86) 0%,rgba(4,22,17,.52) 46%,rgba(4,22,17,.34) 100%),
             radial-gradient(80% 55% at 50% 42%,rgba(10,26,22,.3),transparent 72%)}
.exhero h1{color:#fff!important;max-width:20ch;margin:0 auto!important;
  font-size:clamp(2rem,4.2vw,3.4rem);line-height:1.32;letter-spacing:-.03em;
  text-shadow:0 2px 40px rgba(0,20,14,.6)}
.exhero p{color:#e8f2ee!important;max-width:60ch;margin:18px auto 0!important;
  font-size:clamp(.98rem,1.1vw,1.06rem);line-height:1.9;font-weight:300;
  text-shadow:0 1px 22px rgba(0,20,14,.7)}
.exhero a:not(.exbtn){color:#8ff0cf}
.exhero .kick,.exhero .eyebrow{color:#8ff0cf!important;background:none!important}
.exhero span[class*="badge"],.exhero span[class*="chip"],.exhero span[class*="pill"],
.exhero span[class*="trust"],.exhero li[class*="badge"],.exhero li[class*="trust"]{
  color:#eafff6!important;background:rgba(255,255,255,.14)!important;
  border-color:rgba(255,255,255,.24)!important}
.exhero div[class*="trust"],.exhero div[class*="badge"],.exhero ul[class*="trust"]{
  background:none!important;border:0!important;box-shadow:none!important}
/* Page CSS still reserves body padding for the old in-flow navbar. Where a photo
   hero opens the page, that padding is a white strip above the photo. */
body:has(>.exhdr+.exhero),body:has(>.exhdr+.breadcrumb+.exhero),
body:has(>.exhdr+*+.exhero){padding-block-start:0!important;margin-block-start:0!important}

/* A breadcrumb sitting between the fixed header and a photo hero: page CSS
   reserves a 100px top margin for chrome that is no longer there, which renders
   as an empty white band above the photo. Where a photo hero follows, lift the
   breadcrumb onto the photo so the hero runs to the top edge — the treatment the
   homepage already has. Elsewhere, just clear the header and no more. */
.breadcrumb:has(+.exhero){
  position:absolute;inset-block-start:calc(var(--exhdr-h,82px) + 10px);
  inset-inline:0;z-index:3;margin:0!important;
  padding:0 var(--pad)!important;text-align:center;
  font-size:12.5px;color:rgba(255,255,255,.66)!important;pointer-events:none}
.breadcrumb:has(+.exhero) a{color:rgba(255,255,255,.88)!important;pointer-events:auto}
.breadcrumb:has(+.exhero) span{color:rgba(255,255,255,.66)!important}
.breadcrumb:has(+.exhero)+.exhero{margin-block-start:0!important}

.exhdr+.breadcrumb:not(:has(+.exhero)),.exhdr+*+.breadcrumb:not(:has(+.exhero)){
  margin-block:0!important;
  padding-block-start:calc(var(--exhdr-h,82px) + 8px)!important;
  padding-block-end:9px!important;font-size:12.5px}
@media(max-width:760px){
  .breadcrumb:has(+.exhero){inset-block-start:calc(var(--exhdr-h,70px) + 8px)}
  .exhdr+.breadcrumb:not(:has(+.exhero)),.exhdr+*+.breadcrumb:not(:has(+.exhero)){
    padding-block-start:calc(var(--exhdr-h,70px) + 6px)!important}}
@media(prefers-reduced-motion:reduce){.exhero-ph img{animation:none}}

/* ── article index: a card grid, not a bare list ──
   The blog listings were headings separated by hairlines — the one place on
   the site with no imagery at all. Same card language as the homepage
   modules: photo band, scrim-free light body, lift on hover. */
/* the listing container is sized for prose; a card grid needs the page */
.content:has(>.posts-list),section:has(>.posts-list),main:has(>.posts-list){
  max-width:none!important;width:auto!important;padding-inline:var(--pad)!important}
.posts-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));
  gap:clamp(14px,1.6vw,22px)!important;list-style:none!important;margin:clamp(30px,4vw,52px) 0 0!important;
  padding:0!important;max-width:var(--maxw);margin-inline:auto!important}
.posts-list li{margin:0!important;padding:0!important;border:0!important;list-style:none!important}
.posts-list li::before,.posts-list li::marker{content:none!important}
.posts-list>li>a{display:flex!important;flex-direction:column;height:100%;overflow:hidden;
  background:#fff;border:1px solid var(--line2);border-radius:22px;box-shadow:var(--sh-s);
  text-decoration:none;color:inherit;padding:0!important;
  transition:transform .45s var(--e),box-shadow .45s var(--e),border-color .45s var(--e)}
.posts-list>li>a:hover{transform:translateY(-6px);box-shadow:var(--sh);border-color:rgba(0,169,127,.3)}
.expost-ph{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--bg3);flex:none}
.expost-ph img{width:100%;height:100%;object-fit:cover;display:block;
  transition:transform 1.1s var(--e)}
.posts-list>li>a:hover .expost-ph img{transform:scale(1.06)}
.expost-ph::after{content:"";position:absolute;inset:0;
  background:linear-gradient(to top,rgba(4,22,17,.28),transparent 55%)}
.posts-list h2,.posts-list h3{font-size:16.5px!important;line-height:1.6!important;
  font-weight:600!important;margin:0!important;padding:18px 18px 0!important;color:var(--ink)!important}
.posts-list p{font-size:13.6px!important;line-height:1.8!important;color:var(--ink2)!important;
  font-weight:300!important;margin:9px 0 0!important;padding:0 18px 18px!important}
.posts-list .read-time,.posts-list small{display:block;padding:0 18px 16px!important;
  font-size:12px!important;color:var(--ink3)!important}
@media(max-width:520px){.posts-list{grid-template-columns:1fr!important}}
