/* Dark theme: the toggle, the logo swap and hand fixes the generated dark.css can't infer. */

/* ☀️ toggle in the top bar (both themes) */
.theme-btn{width:36px;height:36px;border-radius:50%;display:inline-grid;place-items:center;padding:0;cursor:pointer;flex:0 0 auto;
  background:transparent;border:1.5px solid var(--line);color:var(--teal);transition:background-color .2s,border-color .2s,color .2s}
.theme-btn svg{width:18px;height:18px;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.theme-btn:hover{border-color:var(--teal);background:rgba(24,174,151,.08)}
.theme-btn:hover svg{transform:rotate(45deg)}
.theme-btn:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
html[data-theme="dark"] .theme-btn{border-color:rgba(230,246,242,.5);color:#7fdcc9;background:rgba(255,255,255,.04)}
html[data-theme="dark"] .theme-btn:hover{background:rgba(24,174,151,.2);border-color:#7fdcc9}

/* smooth switch (only while toggling, so normal page loads stay instant) */
html.theme-anim body,html.theme-anim body *{transition:background-color .35s ease,border-color .35s ease,color .35s ease!important}

/* logos: the light versions on dark */
.logo .logo-dk{display:none}
html[data-theme="dark"] .logo .logo-full:not(.logo-dk){display:none}
html[data-theme="dark"] .logo .logo-full.logo-dk{display:block}

/* /visa keeps its own tokens */
html[data-theme="dark"] .vz{--bg:#061722;--raised:#0c2b3f;--ink:#ffffff;--muted:#a9bccb;--accent-text:#16ae97;--hairline:rgba(22,174,151,.35);--shadow:0 24px 60px rgba(0,0,0,.4);color-scheme:dark}

/* page ground: a touch deeper than the cards */
html[data-theme="dark"] body{background:#061722}
html[data-theme="dark"] .vz .vz-inc-item .vz-ib{background:rgba(22,174,151,.14)}
html[data-theme="dark"] .vz .vz-inc-item .vz-ib svg{color:#8fe0d1}

/* «اسأل سارة» launcher label: lift it off the dark page */
html[data-theme="dark"] .fab.ai .ai-ask{background:#123a53;border:1px solid rgba(127,220,201,.35);box-shadow:0 12px 26px -12px rgba(0,0,0,.8)}
html[data-theme="dark"] .fab.ai{box-shadow:0 14px 30px -12px rgba(0,0,0,.8),0 0 0 3px rgba(127,220,201,.55)}

/* «الدراسة بالخارج» institute page: the institute's logo stays on a white plate (logos are made for light) */
html[data-theme="dark"] .si-partner,html[data-theme="dark"] .si-sum__lg{background:#fff}
html[data-theme="dark"] .si-partner b{color:#0c2b3f}
html[data-theme="dark"] .si-partner span{color:#5d6f7c;border-inline-start:1px solid #e4ebef}
html[data-theme="dark"] .si-chips span{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06)}
html[data-theme="dark"] .si-chips span.is-y{border-color:rgba(143,224,209,.5);background:rgba(143,224,209,.1)}
html[data-theme="dark"] .si-city__meta i{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);color:#d8ecf1}
html[data-theme="dark"] .si-city__ck{border:1.5px solid rgba(255,255,255,.45);background:rgba(7,28,42,.25)}
html[data-theme="dark"] .si-city.on .si-city__ck{background:#18ae97;border-color:#18ae97}
html[data-theme="dark"] .si-city{border:1px solid rgba(143,224,209,.14)}
html[data-theme="dark"] .si-city.on{border-color:#18ae97}
/* home «الدراسة بالخارج» cards: the institute logo stays on a white plate */
html[data-theme="dark"] .hst-logo{background:rgba(255,255,255,.97);box-shadow:0 12px 26px -12px rgba(0,0,0,.7)}
/* institute «الشروط والأحكام» */
html[data-theme="dark"] .si-term{background:rgba(255,255,255,.03);border-color:rgba(143,224,209,.14)}
html[data-theme="dark"] .si-term summary{color:#e8f3f6}
html[data-theme="dark"] .si-term summary i{background:rgba(24,174,151,.16)}
html[data-theme="dark"] .si-term li{color:#c6d8df}
html[data-theme="dark"] .si-term li::before{box-shadow:0 0 0 3px rgba(24,174,151,.18)}
html[data-theme="dark"] .si-agree{background:rgba(255,255,255,.04);border-color:rgba(143,224,209,.16);color:#e8f3f6}
html[data-theme="dark"] .si-agree:has(input:checked){background:rgba(24,174,151,.14);border-color:#18ae97}
html[data-theme="dark"] .si-agree__bx{background:transparent;border-color:rgba(255,255,255,.4)}

/* study offers slider (home + /courses): the chosen destination chip stands out on the dark background */
html[data-theme="dark"] .hst-filter button.on{background:#16ae97;border-color:#16ae97;color:#fff}
html[data-theme="dark"] .hst-filter button.on i{background:#0c2b3f;color:#fff}
/* «الأسعار قابلة للتغيير» inside the navy price summary stays light on navy */
html[data-theme="dark"] .si-pnote--sum{background:rgba(143,224,209,.1);border-color:rgba(143,224,209,.28);color:#cfe9e3}
/* «ابحث عن معهد» (/courses/search): the chosen study type and the chosen view (Grid / List) stay turquoise in dark */
html[data-theme="dark"] .cs-chip[aria-pressed=true]{background:linear-gradient(135deg,#16ae97 0%,#0e8a77 100%);border-color:#16ae97;color:#fff}
html[data-theme="dark"] .cs-vtog button[aria-pressed=true]{background:#16ae97;color:#fff}
/* «ابحث عن معهد» calendar in dark: only the Mondays you can start on stand out */
html[data-theme="dark"] .cs-cal__d{color:#4f6676}
html[data-theme="dark"] .cs-cal__d.is-past{color:#2f4555}
html[data-theme="dark"] .cs-cal__d.is-ok{color:#eaf3f7}
html[data-theme="dark"] .cs-cal__d.in-range{color:#9fe6d6}
html[data-theme="dark"] .cs-cal__d.is-start,html[data-theme="dark"] .cs-cal__d.is-end{color:#fff}
html[data-theme="dark"] .cs-cal__d.is-end::before{background:#e6f6f2}
html[data-theme="dark"] .cs-cal__d.is-end{color:#0c2b3f}
/* package page «الرحلة بنظرة» panel: already navy, keeps its light glass lines in the dark theme */
html[data-theme="dark"] .hp-solo__panel::before{background:repeating-linear-gradient(135deg,rgba(255,255,255,.018) 0 2px,transparent 2px 9px)}
html[data-theme="dark"] .hp-solo__facts span{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.11)}
html[data-theme="dark"] .hp-solo__facts .is-ends{background:rgba(242,201,76,.12);border-color:rgba(242,201,76,.3)}
html[data-theme="dark"] .hp-solo__inc{border-top:1px solid rgba(255,255,255,.1)}
html[data-theme="dark"] .hp-solo__foot{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1)}
html[data-theme="dark"] .hp-solo__wa{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16)}
html[data-theme="dark"] .hp-solo__panel{box-shadow:0 30px 60px -32px rgba(0,0,0,.8),inset 0 0 0 1px rgba(127,220,201,.14)}
/* institute page «المعهد بنظرة» panel: already navy, keeps its light glass lines in the dark theme */
html[data-theme="dark"] .si-glance::before{background:repeating-linear-gradient(135deg,rgba(255,255,255,.018) 0 2px,transparent 2px 9px)}
html[data-theme="dark"] .si-glance__facts span{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.11)}
html[data-theme="dark"] .si-glance__facts .is-ends{background:rgba(242,201,76,.12);border-color:rgba(242,201,76,.3)}
html[data-theme="dark"] .si-glance__inc{border-top:1px solid rgba(255,255,255,.1)}
html[data-theme="dark"] .si-glance__foot{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1)}
html[data-theme="dark"] .si-glance__wa{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16)}
/* study institute «اعرف مستواك»: the navy button sits on a dark card — a turquoise edge keeps it a button */
html[data-theme="dark"] .si-test__go{background:linear-gradient(135deg,#0f8f7b,#18ae97);box-shadow:0 16px 30px -18px rgba(0,0,0,.9)}
html[data-theme="dark"] .si-test__go small{color:#e6f6f2}
html[data-theme="dark"] .si-test__go svg{stroke:#fff}
