/* Self-hosted Readex Pro (OFL-1.1), variable weight 160 to 700. Files: public/fonts/ (npm run vendor:fonts). One file per script, picked by unicode-range. */
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/fonts/readex-pro-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/fonts/readex-pro-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/fonts/readex-pro-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
/* Metric-matched stand-in while the font loads (Arial scaled to Readex Pro's width and height), so the swap does not move the layout */
@font-face {
  font-family: "Readex Pro Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 109%;
  ascent-override: 91.4%;
  descent-override: 22.9%;
  line-gap-override: 0%;
}


/* Emonovo "Horizon" design system (2026-11-01). Tokens, base layer, components. Source of truth for every page type. Logical properties only, so EN (LTR) and AR (RTL) share one sheet. Loaded after the legacy theme CSS; never pruned. */
/* Emonovo "Horizon" design tokens (2026-11-01).
   Primitives first, then semantic tokens. Components only use the semantic layer. */

:root {
  /* ---------- Colour primitives ---------- */
  --midnight-950: #06182E;
  --midnight-900: #0B2545;
  --midnight-800: #12335C;
  --blue-700: #005A94;
  --blue-600: #006BAF;   /* Emonovo brand blue */
  --blue-400: #1E8BE0;   /* brand blue brightened for dark grounds */
  --blue-300: #5CB0F0;
  --blue-50:  #E8F2FB;
  --coral-400: #FF9485;  /* conversion accent, dark text only */
  --coral-500: #FF7F6E;
  --ink-900: #0A1A2F;
  --ink-700: #3D4D63;
  --ink-500: #5B6B80;
  --ink-300: #C9D2DE;
  --ink-200: #E3E8EF;
  --ink-100: #F5F7FA;
  --white: #FFFFFF;
  --red-600: #C2253A;
  --red-50: #FDEEF0;
  --green-600: #12805C;
  --green-50: #E7F5EF;

  /* ---------- Semantic colour ---------- */
  --color-bg: var(--white);
  --color-bg-subtle: var(--ink-100);
  --color-bg-inverse: var(--midnight-950);
  --color-bg-inverse-raised: var(--midnight-900);

  --color-text: var(--ink-900);
  --color-text-secondary: var(--ink-700);
  --color-text-muted: var(--ink-500);
  --color-text-inverse: var(--white);
  --color-text-inverse-muted: #B4C3D6;

  --color-brand: var(--blue-600);
  --color-brand-hover: var(--blue-700);
  --color-brand-on-dark: var(--blue-400);
  --color-brand-subtle: var(--blue-50);

  --color-accent: var(--coral-400);
  --color-accent-hover: var(--coral-500);
  --color-on-accent: var(--midnight-950);

  --color-border: var(--ink-200);
  --color-border-strong: var(--ink-300);
  --color-border-inverse: rgba(255, 255, 255, 0.16);

  --color-danger: var(--red-600);
  --color-danger-subtle: var(--red-50);
  --color-success: var(--green-600);
  --color-success-subtle: var(--green-50);
  --color-success-strong: #0E6B4C;
  --color-focus: var(--blue-400);

  --overlay-hero: linear-gradient(100deg, rgba(6, 24, 46, 0.94) 0%, rgba(6, 24, 46, 0.72) 42%, rgba(0, 107, 175, 0.18) 100%);
  --overlay-bottom: linear-gradient(180deg, rgba(6, 24, 46, 0.35) 0%, rgba(6, 24, 46, 0) 30%, rgba(6, 24, 46, 0.55) 62%, rgba(6, 24, 46, 0.96) 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-fallback: rgba(11, 37, 69, 0.96);

  /* ---------- Typography ---------- */
  --font-sans: "Readex Pro", "Readex Pro Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-body: var(--weight-light);

  --text-xs: 0.8125rem;   /* 13 */
  --text-sm: 0.875rem;    /* 14 */
  --text-base: 1.0625rem; /* 17 */
  --text-lg: 1.25rem;     /* 20 */
  --text-xl: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --text-2xl: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --text-3xl: clamp(2.125rem, 1.45rem + 2.8vw, 3.5rem);
  --text-display: clamp(2.5rem, 1.55rem + 4.1vw, 5rem);

  --leading-display: 1.04;
  --leading-heading: 1.15;
  --leading-body: 1.65;
  --tracking-display: -0.035em;
  --tracking-heading: -0.02em;
  --tracking-label: 0.08em;

  /* ---------- Space ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;

  /* ---------- Shape (documented rule) ----------
     media + cards 24px, controls (buttons, inputs) 14px, chips + badges full pill, logo tiles 12px */
  --radius-media: 24px;
  --radius-card: 24px;
  --radius-control: 14px;
  --radius-tile: 12px;
  --radius-pill: 999px;

  /* ---------- Elevation (tinted to midnight, never pure black) ---------- */
  --shadow-sm: 0 1px 2px rgba(6, 24, 46, 0.06), 0 2px 8px rgba(6, 24, 46, 0.05);
  --shadow-md: 0 12px 32px -12px rgba(6, 24, 46, 0.22);
  --shadow-lg: 0 32px 64px -24px rgba(6, 24, 46, 0.38);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur: 260ms;
  --dur-slow: 800ms;
}

/* Arabic: same family, no negative tracking, slightly heavier body for legibility */
:root[lang="ar"] {
  --tracking-display: 0;
  --tracking-heading: 0;
  --tracking-label: 0;
  --weight-body: var(--weight-regular);
  --leading-display: 1.25;
  --leading-heading: 1.35;
  --leading-body: 1.85;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur: 0ms;
    --dur-slow: 0ms;
  }
}

/* =====================================================================
   Base layer. Loaded after the legacy Bootstrap theme, so it wins.
   Global: only font, colour and heading rhythm (safe for imported WordPress content too).
   Resets (list, paragraph and heading margins, block images) apply ONLY inside Horizon markup:
   .site-header, .site-footer, .mobile-menu, .hz and .section. Imported content lives in .prose
   (or .entry-content) and keeps normal article spacing. Logical properties only (EN + AR).
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--weight-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 { font-family: inherit; font-weight: var(--weight-semibold); line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); text-wrap: balance; }
a { color: var(--color-brand); text-underline-offset: 3px; }
a:hover { color: var(--color-brand-hover); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; 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; inset-inline-start: 16px; inset-block-start: -80px; z-index: 100; background: var(--white); color: var(--color-text); padding: 10px 16px; border-radius: var(--radius-control); box-shadow: var(--shadow-md); }
.skip-link:focus { inset-block-start: 12px; }
.ph-icon { flex: none; display: inline-block; vertical-align: -0.125em; }

/* Horizon zone: resets that must not touch imported content */
:is(.site-header, .site-footer, .mobile-menu, .hz, .section) :is(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:is(.site-header, .site-footer, .mobile-menu, .hz, .section) :is(ul, ol) { padding: 0; list-style: none; }
:is(.site-header, .site-footer, .mobile-menu, .hz, .section) p { text-wrap: pretty; }
:is(.site-header, .site-footer, .mobile-menu, .hz, .section) img { max-width: 100%; display: block; }

/* Imported WordPress content (posts, pages): readable article rhythm, Horizon type */
.prose, .entry-content { font-size: var(--text-base); line-height: var(--leading-body); color: var(--color-text-secondary); }
.prose :is(h1, h2, h3, h4, h5, h6), .entry-content :is(h1, h2, h3, h4, h5, h6) { color: var(--color-text); margin-block: 1.6em 0.5em; }
.prose p, .entry-content p { margin-block: 0 1.1em; }
.prose :is(ul, ol), .entry-content :is(ul, ol) { margin-block: 0 1.1em; padding-inline-start: 1.5rem; list-style: revert; }
.prose img, .entry-content img { display: revert; max-width: 100%; height: auto; border-radius: var(--radius-control); }
.prose a, .entry-content a { color: var(--color-brand); }
.prose, .entry-content { overflow-wrap: anywhere; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--subtle { background: var(--color-bg-subtle); }
.section--inverse { background: var(--color-bg-inverse); color: var(--color-text-inverse); }
.section--inverse :is(.t-lead, .t-body) { color: var(--color-text-inverse-muted); }
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

/* ---------- Type ---------- */
.t-display { font-size: var(--text-display); font-weight: var(--weight-semibold); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
.t-h1 { font-size: var(--text-3xl); font-weight: var(--weight-semibold); line-height: 1.08; letter-spacing: var(--tracking-display); }
.t-h2 { font-size: var(--text-2xl); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-heading); }
.t-h3 { font-size: var(--text-xl); font-weight: var(--weight-medium); }
.t-lead { font-size: var(--text-lg); font-weight: var(--weight-light); line-height: 1.55; color: var(--color-text-secondary); max-width: 60ch; }
.t-body { font-size: var(--text-base); color: var(--color-text-secondary); max-width: 65ch; }
.t-small { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: var(--weight-regular); }
.t-label { font-size: var(--text-xs); font-weight: var(--weight-medium); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-brand); }
.on-dark .t-lead, .on-dark .t-body { color: var(--color-text-inverse-muted); }
.on-dark .t-label { color: var(--blue-300); }
.on-dark { color: var(--color-text-inverse); }
.on-dark a:not(.btn) { color: var(--color-text-inverse); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--color-brand); --btn-fg: var(--white); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-control); border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: var(--weight-medium); font-size: 1rem; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.btn .ph-icon { font-size: 1.15em; }
.btn:hover { --btn-bg: var(--color-brand-hover); }
/* The legacy theme CSS (Bootstrap) still loads on some pages and its .btn:hover paints a transparent border: repaint from our variables */
.btn:hover, .btn:focus-visible { background-color: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bd); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--accent { --btn-bg: var(--color-accent); --btn-fg: var(--color-on-accent); font-weight: var(--weight-semibold); }
.btn--accent:hover { --btn-bg: var(--color-accent-hover); box-shadow: 0 10px 24px -10px rgba(255, 127, 110, 0.7); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--color-brand); --btn-bd: var(--color-border-strong); }
.btn--secondary:hover { --btn-bg: var(--color-brand-subtle); --btn-bd: var(--color-brand); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--color-brand); padding-inline: 10px; }
.btn--ghost:hover { --btn-bg: var(--color-brand-subtle); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--midnight-950); }
.btn--light:hover { --btn-bg: var(--blue-50); }
.btn--outline-light { --btn-bg: rgba(255, 255, 255, 0.06); --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, 0.45); }
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, 0.14); --btn-bd: var(--white); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { --btn-bg: var(--ink-200); --btn-fg: var(--ink-500); --btn-bd: transparent; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.is-hover { --btn-bg: var(--color-brand-hover); }
.btn--accent.is-hover { --btn-bg: var(--color-accent-hover); }
.btn.is-focus { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-control); border: 1.5px solid var(--color-border-strong); background: var(--white); color: var(--color-text); cursor: pointer; transition: background-color var(--dur) var(--ease-out), border-color var(--dur); font-size: 1.25rem; }
.icon-btn:hover { border-color: var(--color-brand); color: var(--color-brand); }
.icon-btn[disabled] { opacity: 0.4; cursor: default; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--weight-medium); text-decoration: none; color: var(--color-brand); }
.link-arrow .ph-icon { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover .ph-icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .ph-icon { transform: translateX(-4px); }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }


/* ---------- Header (default: solid white; over a dark hero it starts transparent) ---------- */
/* A page with a full-bleed dark hero marks it with [data-header-sentinel] (and [data-hero]). Everything else gets a solid header and room under it. */
main { margin-block-start: var(--header-h); }
body:has([data-header-sentinel]) main { margin-block-start: 0; }
.site-header {
  position: fixed; inset-inline: 0; inset-block-start: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94); color: var(--color-text); box-shadow: 0 1px 0 var(--color-border);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: var(--space-6); }
.site-header__logo { display: block; flex-shrink: 0; }
.site-header__logo img { height: 38px; width: auto; }
.site-header .logo-light { display: none; }
body:has([data-header-sentinel]) .site-header:not(.is-scrolled) { background: transparent; color: var(--white); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body:has([data-header-sentinel]) .site-header:not(.is-scrolled) .logo-light { display: block; }
body:has([data-header-sentinel]) .site-header:not(.is-scrolled) .logo-dark { display: none; }
.site-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--space-1); margin-inline-start: auto; }
.site-nav a { color: inherit; text-decoration: none; font-size: 0.9375rem; font-weight: var(--weight-regular); padding: 10px 14px; border-radius: 10px; white-space: nowrap; transition: background-color var(--dur); }
.site-nav a:hover { background: rgba(127, 150, 180, 0.16); color: inherit; }
.site-nav a[aria-current="page"] { font-weight: var(--weight-medium); }
.lang-link { display: inline-flex; align-items: center; gap: 6px; }
.lang-link[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.site-header__actions { display: flex; align-items: center; gap: var(--space-2); }
.site-header .btn--sm { white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius-control); border: 1.5px solid rgba(127, 150, 180, 0.45); background: transparent; color: inherit; font-size: 1.35rem; cursor: pointer; place-items: center; padding: 0; }

/* Header search: an icon that opens a field over the menu (keeps /js/tools.js working on #searchHeader) */
.hdr-search { position: relative; display: flex; align-items: center; }
.hdr-search__btn { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-control); background: transparent; color: inherit; font-size: 1.25rem; cursor: pointer; }
.hdr-search__btn:hover { background: rgba(127, 150, 180, 0.16); }
.hdr-search__input { position: absolute; inset-inline-end: 0; inset-block-start: 50%; transform: translateY(-50%); inline-size: 0; block-size: 44px; padding: 0; opacity: 0; border: 0; border-radius: var(--radius-control); background: var(--white); color: var(--color-text); font-size: 0.9375rem; box-shadow: var(--shadow-md); transition: inline-size var(--dur) var(--ease-out), opacity var(--dur); }
.hdr-search__input::placeholder { color: var(--ink-500); opacity: 1; }
.hdr-search:focus-within .hdr-search__input { inline-size: min(280px, 60vw); opacity: 1; padding-block: 0; padding-inline: 16px 48px; border: 1.5px solid var(--color-brand); }
.hdr-search:focus-within .hdr-search__btn { color: var(--color-brand); }

@media (max-width: 1080px) {
  .site-nav, .hdr-search { display: none; }
  .menu-toggle { display: inline-grid; }
  .site-header__actions { margin-inline-start: auto; }
  .site-header__logo img { height: 32px; }
}
@media (max-width: 380px) { .site-header .btn--accent { padding-inline: 14px; font-size: 0.875rem; } .site-header__logo img { height: 28px; } }

/* Mobile menu sheet */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--midnight-950); color: var(--white); display: flex; flex-direction: column; padding: var(--space-4) var(--gutter) var(--space-8); overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur); }
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: calc(var(--header-h) - 16px); }
.mobile-menu__top img { height: 30px; width: auto; }
.mobile-menu .menu-toggle { display: inline-grid; color: var(--white); }
.mobile-menu nav { display: flex; flex-direction: column; margin-block: var(--space-6) auto; }
.mobile-menu nav a { color: var(--white); text-decoration: none; font-size: 1.75rem; font-weight: var(--weight-medium); letter-spacing: var(--tracking-heading); padding-block: 14px; border-block-end: 1px solid var(--color-border-inverse); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav a .ph-icon { color: var(--blue-300); font-size: 1.25rem; }
.mobile-search { position: relative; margin-block: var(--space-6) var(--space-4); }
.mobile-search .ph-icon { position: absolute; inset-inline-start: 16px; inset-block-start: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--blue-300); pointer-events: none; }
.mobile-search input { width: 100%; min-height: 52px; padding-block: 12px; padding-inline: 46px 16px; border: 1.5px solid var(--color-border-inverse); border-radius: var(--radius-control); background: rgba(255, 255, 255, 0.08); color: var(--white); font-size: 1rem; }
.mobile-search input::placeholder { color: var(--color-text-inverse-muted); opacity: 1; }
.mobile-search input:focus { outline: none; border-color: var(--blue-300); }

/* 404 */
.not-found { display: grid; justify-items: center; gap: var(--space-5); text-align: center; padding-block: var(--space-24); min-height: 60vh; align-content: center; }
.not-found__code { font-size: clamp(5rem, 3rem + 12vw, 11rem); font-weight: var(--weight-bold); line-height: 0.9; letter-spacing: var(--tracking-display); color: var(--color-brand-subtle); -webkit-text-stroke: 2px var(--color-brand); }
/* ---------- Glass panel (solid fallback when blur is unsupported) ---------- */
.glass { background: var(--glass-fallback); border: 1px solid var(--glass-border); border-radius: var(--radius-card); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-bg); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); }
}

/* ---------- Search panel (hero) ---------- */
.search-panel { display: grid; grid-template-columns: 1.25fr 1fr 1fr auto; gap: 6px; padding: 8px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.search-panel__field { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 10px 18px; border-radius: 16px; transition: background-color var(--dur); min-width: 0; }
.search-panel__field:hover, .search-panel__field:focus-within { background: rgba(255, 255, 255, 0.1); }
.search-panel__field label { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--color-text-inverse-muted); letter-spacing: 0.01em; }
.search-panel__field select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--white); font-size: 1rem; font-weight: var(--weight-regular); padding: 2px 0; padding-inline-end: 22px; width: 100%; cursor: pointer; outline: none; text-overflow: ellipsis; }
.search-panel__field select option { color: var(--color-text); }
.search-panel__field svg.chev { position: absolute; inset-inline-end: 16px; inset-block-end: 14px; color: var(--color-text-inverse-muted); pointer-events: none; }
.search-panel__field + .search-panel__field::before { content: ""; position: absolute; inset-inline-start: -4px; inset-block: 18px; width: 1px; background: rgba(255, 255, 255, 0.16); }
.search-panel .btn { min-height: 60px; border-radius: 16px; padding-inline: 26px; }
.search-panel__field:focus-within { outline: 2px solid var(--blue-300); outline-offset: -2px; }
@media (max-width: 860px) {
  .search-panel { grid-template-columns: 1fr 1fr; padding: 6px; }
  .search-panel__field:first-child { grid-column: 1 / -1; }
  .search-panel__field + .search-panel__field::before { display: none; }
  .search-panel__field { background: rgba(255, 255, 255, 0.06); }
  .search-panel .btn { grid-column: 1 / -1; min-height: 54px; }
}

/* ---------- Form controls ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.label { font-size: 0.9375rem; font-weight: var(--weight-medium); color: var(--color-text); display: flex; gap: 6px; align-items: baseline; }
.label .req { color: var(--color-danger); font-weight: var(--weight-medium); }
.label .opt { color: var(--color-text-muted); font-weight: var(--weight-regular); font-size: var(--text-sm); }
.help { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: var(--weight-regular); }
.error-text { display: none; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--color-danger); font-weight: var(--weight-regular); }
.input, .select {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-control);
  background: var(--white); color: var(--color-text); font-size: 1rem; font-weight: var(--weight-regular);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.input::placeholder { color: var(--ink-500); opacity: 1; font-weight: var(--weight-light); }
.input:hover, .select:hover { border-color: var(--ink-500); }
.input:focus, .select:focus, .input.is-focus { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 4px rgba(30, 139, 224, 0.22); }
.select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233D4D63' viewBox='0 0 256 256'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
[dir="rtl"] .select { background-position: left 16px center; }
.field.is-invalid .input, .field.is-invalid .select { border-color: var(--color-danger); background: var(--color-danger-subtle); }
.field.is-invalid .input:focus, .field.is-invalid .select:focus { box-shadow: 0 0 0 4px rgba(194, 37, 58, 0.18); }
.field.is-invalid .error-text { display: flex; }
.field.is-valid .input, .field.is-valid .select { border-color: var(--color-success); }
.input-wrap { position: relative; }
.input-wrap .state-icon { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); font-size: 1.15rem; display: none; pointer-events: none; }
.field.is-valid .input-wrap .state-icon.ok { display: block; color: var(--color-success); }
.field.is-valid .input-wrap .input { padding-inline-end: 42px; }
.input[disabled], .select[disabled] { background: var(--ink-100); color: var(--ink-500); border-color: var(--ink-200); cursor: not-allowed; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

/* Segmented radio (Student / Parent etc.) */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--ink-100); border: 1.5px solid var(--color-border); border-radius: calc(var(--radius-control) + 4px); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 12px; cursor: pointer; font-weight: var(--weight-regular); color: var(--color-text-secondary); transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast); text-align: center; font-size: 0.9375rem; }
.segmented label:hover { color: var(--color-text); }
.segmented input:checked + label { background: var(--white); color: var(--color-brand); font-weight: var(--weight-medium); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + label { outline: 3px solid var(--color-focus); outline-offset: 1px; }
.field.is-invalid .segmented { border-color: var(--color-danger); background: var(--color-danger-subtle); }

/* Option cards (budget) */
.opt-cards { display: grid; gap: 8px; }
.opt-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-control); cursor: pointer; font-weight: var(--weight-regular); transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.opt-card input { position: absolute; opacity: 0; }
.opt-card .dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-500); flex-shrink: 0; display: grid; place-items: center; transition: border-color var(--dur-fast); }
.opt-card .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--color-brand); transform: scale(0); transition: transform var(--dur-fast) var(--ease-out); }
.opt-card:hover { border-color: var(--ink-500); }
.opt-card:has(input:checked) { border-color: var(--color-brand); background: var(--color-brand-subtle); }
.opt-card input:checked ~ .dot { border-color: var(--color-brand); }
.opt-card input:checked ~ .dot::after { transform: scale(1); }
.opt-card:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.field.is-invalid .opt-card { border-color: var(--color-danger); }

/* Checkbox */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 0.9375rem; font-weight: var(--weight-regular); color: var(--color-text-secondary); }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex-shrink: 0; border: 1.5px solid var(--ink-500); border-radius: 7px; background: var(--white); display: grid; place-items: center; cursor: pointer; transition: background-color var(--dur-fast), border-color var(--dur-fast); }
.check input::after { content: ""; width: 10px; height: 6px; border-inline-start: 2px solid var(--white); border-block-end: 2px solid var(--white); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform var(--dur-fast) var(--ease-out); }
.check input:checked { background: var(--color-brand); border-color: var(--color-brand); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
[dir="rtl"] .check input::after { transform: rotate(45deg) translate(-1px, -1px) scale(0); border-inline-start: 0; border-inline-end: 2px solid var(--white); }
[dir="rtl"] .check input:checked::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }

/* Range */
.range { width: 100%; accent-color: var(--color-brand); height: 28px; cursor: pointer; }

/* ---------- Chips + badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--color-border-strong); background: var(--white); color: var(--color-text-secondary); font-size: 0.9375rem; font-weight: var(--weight-regular); cursor: pointer; text-decoration: none; transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast); }
.chip:hover { border-color: var(--color-brand); color: var(--color-brand); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--midnight-950); border-color: var(--midnight-950); color: var(--white); }
.chip--removable .ph-icon { font-size: 0.95em; opacity: 0.8; }
.chip--on-dark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); color: var(--white); }
.chip--on-dark:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, 0.16); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: var(--weight-medium); line-height: 1.5; white-space: nowrap; background: var(--ink-100); color: var(--color-text-secondary); }
.badge--brand { background: var(--color-brand-subtle); color: var(--color-brand); }
.badge--success { background: var(--color-success-subtle); color: var(--color-success-strong); }
.badge--danger { background: var(--color-danger-subtle); color: var(--color-danger); }
.badge--dark { background: var(--midnight-950); color: var(--white); }

/* ---------- Stat tile ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; padding-block: var(--space-5); padding-inline: var(--space-6); border-inline-start: 1px solid var(--color-border); }
.stat__value { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-display); line-height: 1.05; color: var(--color-text); }
.stat__label { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: var(--weight-regular); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); }
.stats .stat:first-child { border-inline-start: 0; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat { border-inline-start: 0; border-block-start: 1px solid var(--color-border); padding-inline: var(--space-4); }
  .stats .stat:nth-child(even) { border-inline-start: 1px solid var(--color-border); }
  .stats .stat:nth-child(-n+2) { border-block-start: 0; }
  .stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- University card (rail) ---------- */
.uni-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--color-text); }
.uni-card__media { position: relative; aspect-ratio: 4 / 3.1; border-radius: var(--radius-media); overflow: hidden; background: var(--ink-200); }
.uni-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.uni-card:hover .uni-card__media img { transform: scale(1.045); }
/* The logo tab sits under the photo (not inside it), so the photo's rounded clip never cuts it */
.uni-card__logo { position: relative; z-index: 1; align-self: flex-start; margin-block-start: -36px; margin-inline-start: 16px; height: 64px; min-width: 64px; max-width: 168px; padding: 8px 10px; background: var(--white); border-radius: var(--radius-tile); box-shadow: var(--shadow-md); display: grid; place-items: center; }
.uni-card__logo img { height: 48px; max-width: 148px; width: auto; object-fit: contain; }
.uni-card__body { padding: 14px 4px 0; display: flex; flex-direction: column; gap: 8px; }
.uni-card__name { font-size: 1.1875rem; font-weight: var(--weight-medium); letter-spacing: -0.01em; line-height: 1.25; }
.uni-card__meta { display: flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--color-text-muted); font-weight: var(--weight-regular); }
.uni-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-start: 6px; }
.uni-card:focus-visible { outline-offset: 6px; border-radius: var(--radius-media); }

/* Rail (horizontal scroll-snap) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--space-6)) / 4); gap: var(--space-6); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-block-end: var(--space-4); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-wrap { position: relative; }
.rail-bleed { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.rail-controls { display: flex; gap: 8px; }
@media (max-width: 1100px) { .rail { grid-auto-columns: calc((100% - 2 * var(--space-6)) / 3); } }
@media (max-width: 760px) { .rail { grid-auto-columns: 78%; gap: var(--space-4); } .rail-controls { display: none; } }

/* ---------- Program (result) row ---------- */
.program { display: grid; grid-template-columns: 220px 1fr auto; gap: var(--space-6); align-items: stretch; padding: 14px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--white); transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur), transform var(--dur) var(--ease-out); }
.program:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.program__media { position: relative; border-radius: 16px; overflow: hidden; min-height: 168px; background: var(--ink-200); }
.program__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.program__body { display: flex; flex-direction: column; gap: 10px; padding-block: 6px; min-width: 0; }
.program__uni { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); color: var(--color-text-muted); font-weight: var(--weight-regular); }
.program__uni img { height: 28px; width: auto; max-width: 84px; object-fit: contain; }
.program__title { font-size: 1.25rem; font-weight: var(--weight-medium); letter-spacing: -0.01em; line-height: 1.3; }
.program__title a { color: inherit; text-decoration: none; }
.program__title a::after { content: ""; position: absolute; inset: 0; }
.program { position: relative; }
.program__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--text-sm); color: var(--color-text-secondary); font-weight: var(--weight-regular); margin-block-start: auto; }
.program__facts span { display: inline-flex; align-items: center; gap: 6px; }
.program__facts .ph-icon { color: var(--color-brand); font-size: 1.05rem; }
.program__price { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 6px 8px; text-align: end; min-width: 170px; }
.program__fee { font-size: 1.625rem; font-weight: var(--weight-semibold); letter-spacing: -0.02em; line-height: 1; }
.program__fee small { display: block; font-size: var(--text-xs); color: var(--color-text-muted); font-weight: var(--weight-regular); letter-spacing: 0; margin-block-start: 6px; }
.program__was { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: line-through; font-weight: var(--weight-regular); }
@media (max-width: 860px) {
  .program { grid-template-columns: 1fr; gap: var(--space-4); padding: 10px; }
  .program__media { min-height: 0; aspect-ratio: 16 / 8; }
  .program__body { padding-inline: 8px; }
  .program__price { flex-direction: row; align-items: flex-end; text-align: start; padding: 12px 8px 6px; border-block-start: 1px solid var(--color-border); }
}

/* Skeleton */
.skeleton { position: relative; overflow: hidden; background: var(--ink-100); border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.program--skeleton { pointer-events: none; }
.program--skeleton .program__media { background: var(--ink-100); }

/* ---------- Faculty row + accordion ---------- */
.acc { border-block-start: 1px solid var(--color-border); }
.acc:last-of-type { border-block-end: 1px solid var(--color-border); }
.acc > summary { list-style: none; display: flex; align-items: center; gap: var(--space-4); padding-block: var(--space-6); cursor: pointer; }
.acc > summary::-webkit-details-marker { display: none; }
.acc__title { font-size: var(--text-xl); font-weight: var(--weight-medium); letter-spacing: var(--tracking-heading); }
.acc__count { color: var(--color-text-muted); font-weight: var(--weight-light); }
.acc__icon { margin-inline-start: auto; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--color-border-strong); display: grid; place-items: center; transition: transform var(--dur) var(--ease-out), background-color var(--dur), border-color var(--dur); flex-shrink: 0; }
.acc[open] .acc__icon { transform: rotate(45deg); background: var(--midnight-950); border-color: var(--midnight-950); color: var(--white); }
.acc > summary:hover .acc__icon { border-color: var(--color-brand); }
.acc__panel { padding-block-end: var(--space-6); display: grid; gap: 4px; }
.faculty-row { display: grid; grid-template-columns: 1fr auto auto 24px; gap: var(--space-6); align-items: center; padding: 16px 18px; border-radius: 16px; text-decoration: none; color: var(--color-text); transition: background-color var(--dur-fast); }
.faculty-row:hover { background: var(--color-bg-subtle); }
.faculty-row__name { font-weight: var(--weight-regular); font-size: 1.0625rem; }
.faculty-row__meta { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: var(--weight-regular); white-space: nowrap; }
.faculty-row__fee { font-weight: var(--weight-medium); white-space: nowrap; font-size: 0.9375rem; }
.faculty-row .ph-icon { color: var(--color-brand); transition: transform var(--dur) var(--ease-out); }
.faculty-row:hover .ph-icon { transform: translateX(3px); }
@media (max-width: 640px) {
  .faculty-row { grid-template-columns: 1fr 24px; gap: 4px 12px; padding: 14px 10px; }
  .faculty-row__name { grid-column: 1; }
  .faculty-row__meta, .faculty-row__fee { grid-column: 1; grid-row: auto; display: inline; }
  .faculty-row .ph-icon { grid-row: 1 / span 3; grid-column: 2; }
}

/* ---------- Side card (sticky) ---------- */
.side-card { position: sticky; top: calc(var(--header-h) + 24px); padding: var(--space-8); border-radius: var(--radius-card); background: var(--white); border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: var(--space-5); }
.side-card dl { margin: 0; display: grid; gap: 0; }
.side-card dl div { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-block-end: 1px solid var(--color-border); font-size: 0.9375rem; }
.side-card dt { color: var(--color-text-muted); font-weight: var(--weight-regular); display: inline-flex; gap: 8px; align-items: center; }
.side-card dt .ph-icon { color: var(--color-brand); font-size: 1.1rem; }
.side-card dd { margin: 0; font-weight: var(--weight-medium); text-align: end; }

/* ---------- Floating call button ---------- */
.fab-call { position: fixed; inset-inline-end: 20px; inset-block-end: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 16px; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-on-accent); font-weight: var(--weight-semibold); text-decoration: none; box-shadow: 0 18px 40px -14px rgba(6, 24, 46, 0.55); transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out), background-color var(--dur); }
[dir="rtl"] .fab-call { padding: 14px 16px 14px 22px; }
.fab-call.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.fab-call:hover { background: var(--color-accent-hover); }
.fab-call:active { transform: scale(0.97); }
.fab-call__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--midnight-950); color: var(--coral-400); display: grid; place-items: center; font-size: 1.05rem; }
@media (max-width: 560px) { .fab-call { inset-inline: 16px; inset-block-end: 14px; justify-content: center; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight-950); color: var(--color-text-inverse); padding-block: var(--space-20) var(--space-8); }
.footer-cta { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-8); padding-block-end: var(--space-16); border-block-end: 1px solid var(--color-border-inverse); flex-wrap: wrap; }
.footer-cta h2 { font-size: var(--text-3xl); letter-spacing: var(--tracking-display); line-height: 1.08; max-width: 16ch; font-weight: var(--weight-semibold); }
.footer-cta p { color: var(--color-text-inverse-muted); margin-block-start: var(--space-4); max-width: 52ch; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-10); padding-block: var(--space-12); }
.footer-grid h3 { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text-inverse-muted); margin-block-end: var(--space-4); letter-spacing: 0; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid a { color: var(--white); text-decoration: none; font-weight: var(--weight-light); }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { color: var(--color-text-inverse-muted); margin-block: var(--space-4) var(--space-5); font-size: var(--text-sm); max-width: 34ch; }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-border-inverse); display: grid; place-items: center; color: var(--white); font-size: 1.2rem; text-decoration: none; transition: background-color var(--dur), border-color var(--dur); }
.social a:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.footer-legal { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-block-start: var(--space-6); border-block-start: 1px solid var(--color-border-inverse); font-size: var(--text-sm); color: var(--color-text-inverse-muted); font-weight: var(--weight-regular); }
.footer-legal nav { display: flex; gap: var(--space-6); }
.footer-legal a { color: var(--color-text-inverse-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--white); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .site-footer { padding-block-end: 96px; } }

/* ---------- Motion: reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.hero-enter > * { animation: rise 900ms var(--ease-out) both; }
.hero-enter > *:nth-child(2) { animation-delay: 90ms; }
.hero-enter > *:nth-child(3) { animation-delay: 180ms; }
.hero-enter > *:nth-child(4) { animation-delay: 270ms; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.ken-burns { animation: kb 18s var(--ease-out) both; }
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-enter > *, .ken-burns { animation: none; }
  .skeleton::after { animation: none; }
}

/* ---------- Logo marquee (one per page) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--space-4); width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__logo { width: 112px; height: 80px; border-radius: var(--radius-tile); background: var(--white); border: 1px solid var(--color-border); display: grid; place-items: center; flex-shrink: 0; }
.marquee__logo img { max-width: 76px; max-height: 60px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--space-4) / 2)); } }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(calc(50% + var(--space-4) / 2)); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .marquee__track [aria-hidden="true"] { display: none; } }

/* =====================================================================
   Round 2 (2026-11-01): dropdown, choice cards, field boxes, voices
   ===================================================================== */

/* ---------- Dropdown (combobox + listbox). Enhances every native select ---------- */
.dd { position: relative; min-width: 0; }
.dd.is-open { z-index: 46; }
.dd .dd-native { position: absolute; inset-inline-start: 0; inset-block-end: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.dd__trigger {
  width: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px;
  padding-block: 12px; padding-inline: 16px 14px;
  border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-control);
  background: var(--white); color: var(--color-text); font-size: 1rem; font-weight: var(--weight-regular); line-height: 1.3; text-align: start; cursor: pointer;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.dd__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd.is-empty .dd__value { color: var(--ink-500); font-weight: var(--weight-light); }
.dd__chev { flex-shrink: 0; color: var(--ink-700); font-size: 1rem; transition: transform var(--dur) var(--ease-out); }
.dd.is-open .dd__chev { transform: rotate(180deg); }
.dd__trigger:hover { border-color: var(--ink-500); }
.dd__trigger:focus-visible, .dd.is-open .dd__trigger { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 4px rgba(30, 139, 224, 0.22); }
.dd__trigger:disabled { background: var(--ink-100); color: var(--ink-500); border-color: var(--ink-200); cursor: not-allowed; }
.field.is-invalid .dd__trigger { border-color: var(--color-danger); background: var(--color-danger-subtle); }
.field.is-invalid .dd__trigger:focus-visible { box-shadow: 0 0 0 4px rgba(194, 37, 58, 0.18); }
.field.is-valid .dd__trigger { border-color: var(--color-success); }

.dd__panel {
  position: absolute; inset-inline-start: 0; inset-block-start: calc(100% + 8px); z-index: 47;
  min-width: 100%; width: max-content; max-width: min(420px, calc(100vw - 32px));
  padding: 6px; background: var(--white); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: 18px; box-shadow: var(--shadow-lg);
  animation: dd-in 160ms var(--ease-out);
}
.dd--up .dd__panel { inset-block-start: auto; inset-block-end: calc(100% + 8px); animation-name: dd-in-up; }
.dd--end .dd__panel { inset-inline-start: auto; inset-inline-end: 0; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes dd-in-up { from { opacity: 0; transform: translateY(6px); } }
.dd__search { position: relative; padding: 2px 2px 8px; margin-block-end: 6px; border-block-end: 1px solid var(--color-border); }
.dd__search .ph-icon { position: absolute; inset-inline-start: 16px; inset-block-start: 15px; color: var(--ink-500); font-size: 1.05rem; pointer-events: none; }
.dd__search-input { width: 100%; min-height: 44px; padding-block: 10px; padding-inline: 42px 12px; border: 1.5px solid var(--color-border-strong); border-radius: 12px; background: var(--ink-100); color: var(--color-text); font-size: 0.9375rem; font-weight: var(--weight-regular); }
.dd__search-input::placeholder { color: var(--ink-500); opacity: 1; }
.dd__search-input:focus { outline: none; border-color: var(--color-brand); background: var(--white); box-shadow: 0 0 0 4px rgba(30, 139, 224, 0.18); }
.dd__list { list-style: none; margin: 0; padding: 0; max-height: 272px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.dd__option { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 42px; padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: 0.9375rem; font-weight: var(--weight-regular); color: var(--ink-700); }
.dd__option[hidden] { display: none; }
.dd__option.is-active { background: var(--ink-100); color: var(--color-text); }
.dd__option[aria-selected="true"] { background: var(--color-brand-subtle); color: var(--color-brand); font-weight: var(--weight-medium); }
.dd__option[aria-selected="true"].is-active { background: #D8E9F8; }
.dd__check { visibility: hidden; flex-shrink: 0; font-size: 1.1rem; }
.dd__option[aria-selected="true"] .dd__check { visibility: visible; }
.dd__empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px 12px; color: var(--color-text-muted); font-size: var(--text-sm); font-weight: var(--weight-regular); }
.dd__empty[hidden] { display: none; }
/* Small variant (toolbar sort) */
.dd--sm .dd__trigger { min-height: 44px; padding-block: 8px; font-size: 0.9375rem; }
/* Bare variant: sits inside a glass field box, the box is the visual control */
.dd--bare .dd__trigger { min-height: 0; padding: 2px 0; border: 0; border-radius: 6px; background: transparent; color: var(--white); box-shadow: none; }
.dd--bare.is-empty .dd__value { color: var(--white); font-weight: var(--weight-regular); }
.dd--bare .dd__chev { color: var(--color-text-inverse-muted); }
.dd--bare .dd__trigger:focus-visible, .dd--bare.is-open .dd__trigger { box-shadow: none; }
.dd--bare .dd__panel { inset-inline-start: -18px; inset-block-start: calc(100% + 20px); min-width: calc(100% + 36px); }
.dd--bare.dd--up .dd__panel { inset-block-start: auto; inset-block-end: calc(100% + 42px); }
@media (prefers-reduced-motion: reduce) { .dd__panel { animation: none; } }

/* ---------- Field boxes: the whole box is the click target ---------- */
[data-field-box], .search-panel__field { cursor: pointer; }
[data-field-box] input, [data-field-box] .btn { cursor: auto; }
[data-field-box] .btn { cursor: pointer; }

/* ---------- Choice cards (Student / Parent, Father / Mother) ---------- */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 16px; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-control); background: var(--white); cursor: pointer; transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__dot { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--ink-500); background: var(--white); display: grid; place-items: center; transition: border-color var(--dur-fast); }
.choice__dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--color-brand); transform: scale(0); transition: transform var(--dur-fast) var(--ease-out); }
.choice__icon { font-size: 1.6rem; color: var(--ink-700); flex-shrink: 0; }
.choice__text { display: grid; gap: 2px; min-width: 0; }
.choice__text strong { font-weight: var(--weight-medium); font-size: 1rem; color: var(--color-text); }
.choice__text small { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: var(--weight-regular); }
.choice__badge { position: absolute; inset-block-start: -9px; inset-inline-end: -9px; width: 26px; height: 26px; border-radius: 50%; background: var(--color-brand); color: var(--white); display: grid; place-items: center; font-size: 0.95rem; box-shadow: 0 0 0 3px var(--white); transform: scale(0); transition: transform var(--dur) var(--ease-out); }
.choice:hover { border-color: var(--ink-500); background: var(--ink-100); }
.choice:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.choice:has(input:checked) { border: 2px solid var(--color-brand); background: var(--color-brand-subtle); padding: 13.5px 15.5px; }
.choice:has(input:checked) .choice__dot { border-color: var(--color-brand); }
.choice:has(input:checked) .choice__dot::after { transform: scale(1); }
.choice:has(input:checked) .choice__icon, .choice:has(input:checked) .choice__text strong { color: var(--color-brand); }
.choice:has(input:checked) .choice__badge { transform: scale(1); }
.choices--compact .choice { min-height: 56px; }
.field.is-invalid .choice { border-color: var(--color-danger); background: var(--color-danger-subtle); }
@media (max-width: 520px) { .choices:not(.choices--compact) { grid-template-columns: minmax(0, 1fr); } }

/* Option cards (budget) get the same unmistakable selected state */
.opt-card:has(input:checked) { border: 2px solid var(--color-brand); background: var(--color-brand-subtle); padding: 13.5px 15.5px; font-weight: var(--weight-medium); color: var(--color-brand); }

/* Phone with country code */
.phone-group { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px; }
.phone-group .dd__panel { min-width: 260px; }

/* ---------- Voices (testimonials): picker + big quote, auto-rotating on desktop ---------- */
.voices { display: grid; gap: var(--space-4); }
.voices__nav { display: none; }
/* Phones: all stories are stacked, so they need room between them (the desktop grid overlays one at a time) */
.voices__panels { display: grid; gap: var(--space-4); }
.voice { margin: 0; display: grid; gap: var(--space-5); align-content: start; padding: var(--space-6); border-radius: var(--radius-card); background: var(--color-bg-subtle); }
.voice > .ph-icon { font-size: 2rem; color: var(--color-brand); }
.voice blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.6; font-weight: var(--weight-light); color: var(--color-text); }
.voice figcaption { display: flex; align-items: center; gap: 12px; }
.voice figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.voice figcaption b { display: block; font-weight: var(--weight-medium); color: var(--color-text); }
.voice figcaption span { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: var(--weight-regular); }
@media (min-width: 1024px) {
  .voices { grid-template-columns: 380px minmax(0, 1fr); gap: var(--space-12); align-items: stretch; }
  .voices__nav { display: flex; flex-direction: column; gap: var(--space-4); }
  .voices__list { display: grid; gap: 6px; }
  .voice-tab { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px 16px; border-radius: 16px; border: 1px solid transparent; background: transparent; text-align: start; cursor: pointer; overflow: hidden; transition: background-color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast); }
  .voice-tab:hover { background: var(--color-bg-subtle); }
  .voice-tab[aria-selected="true"] { background: var(--white); border-color: var(--color-border); box-shadow: var(--shadow-md); }
  .voice-tab img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; filter: saturate(0.85); }
  .voice-tab b { display: block; font-weight: var(--weight-medium); font-size: 0.9875rem; color: var(--color-text); }
  .voice-tab span span { display: block; font-size: var(--text-xs); color: var(--color-text-muted); font-weight: var(--weight-regular); line-height: 1.4; }
  .voice-tab__bar { position: absolute; inset-inline: 14px; inset-block-end: 7px; height: 3px; border-radius: 3px; background: var(--color-border); opacity: 0; }
  .voice-tab[aria-selected="true"] .voice-tab__bar { opacity: 1; }
  .voice-tab__bar::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: 3px; background: var(--color-brand); }
  .voices.is-auto .voice-tab[aria-selected="true"] .voice-tab__bar::after { animation: voice-progress 6s linear forwards; }
  .voices.is-paused .voice-tab[aria-selected="true"] .voice-tab__bar::after { animation-play-state: paused; }
  .voices:not(.is-auto) .voice-tab__bar { display: none; }
  .voices__toggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--color-border-strong); background: var(--white); color: var(--color-text-secondary); font-size: var(--text-sm); font-weight: var(--weight-medium); cursor: pointer; }
  .voices__toggle:hover { border-color: var(--color-brand); color: var(--color-brand); }
  .voices__panels { display: grid; }
  .voice { grid-area: 1 / 1; padding: clamp(2rem, 3vw, 3.25rem); border-radius: 28px; gap: var(--space-8); visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), visibility 0s linear 500ms; }
  .voice.is-active { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .voice > .ph-icon { font-size: 3rem; }
  .voice blockquote { font-size: clamp(1.25rem, 0.95rem + 0.75vw, 1.75rem); line-height: 1.5; letter-spacing: -0.012em; }
  .voice figcaption img { width: 56px; height: 56px; }
}
@keyframes voice-progress { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .voice { transition: none !important; transform: none !important; } }
:root[lang="ar"] .voice blockquote { letter-spacing: 0; }

/* =====================================================================
   Round 3 (2026-11-01): article cards (articles listing + related posts)
   ===================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-10) var(--space-6); }
.post-card { position: relative; display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.post-card__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-media); overflow: hidden; background: var(--ink-200); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.045); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.post-card__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.post-card__title { font-size: 1.1875rem; font-weight: var(--weight-medium); line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-media); }
.post-card__title a:focus-visible { outline: none; }
.post-card:has(a:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 6px; border-radius: var(--radius-media); }
.post-card__ex { font-size: 0.9375rem; color: var(--color-text-secondary); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: var(--text-sm); color: var(--color-text-muted); font-weight: var(--weight-regular); }
.post-meta img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--white); border: 1px solid var(--color-border); }
.post-meta__author { display: inline-flex; align-items: center; gap: 8px; color: var(--color-text); font-weight: var(--weight-medium); }
.post-meta__sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.post-meta .ph-icon { color: var(--color-brand); }
@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } }

/* ---------- Dropdown: multi-select (checklist that stays open) ---------- */
.dd--multi .dd__option { justify-content: flex-start; }
.dd--multi .dd__option[aria-selected="true"] { background: transparent; color: var(--color-text); font-weight: var(--weight-medium); }
.dd--multi .dd__option[aria-selected="true"].is-active, .dd--multi .dd__option.is-active { background: var(--ink-100); }
.dd__box { flex: none; display: grid; place-items: center; inline-size: 20px; block-size: 20px; border-radius: 6px; border: 1.5px solid var(--color-border-strong); background: var(--white); color: transparent; font-size: 12px; transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.dd__option[aria-selected="true"] .dd__box { background: var(--color-brand); border-color: var(--color-brand); color: var(--white); }
.dd__option.is-last-picked { margin-block-end: 6px; position: relative; }
.dd__option.is-last-picked::after { content: ""; position: absolute; inset-inline: 12px; inset-block-end: -4px; block-size: 1px; background: var(--color-border); }
.dd__foot { display: flex; align-items: center; gap: 8px; padding: 10px 6px 4px; margin-block-start: 6px; border-block-start: 1px solid var(--color-border); }
.dd__count { flex: 1; font-size: 0.8125rem; color: var(--color-text-secondary); }
.dd__clear, .dd__done { appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 0.875rem; font-weight: var(--weight-medium); border-radius: 10px; padding: 8px 14px; min-height: 36px; }
.dd__clear { background: transparent; color: var(--color-brand); }
.dd__clear:disabled { color: var(--color-text-secondary); opacity: 0.5; cursor: default; }
.dd__done { background: var(--color-brand); color: var(--white); }
.dd__clear:focus-visible, .dd__done:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.dd__box::after { content: ""; inline-size: 10px; block-size: 5px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.dd__option[aria-selected="true"] .dd__box::after { opacity: 1; }

/* Footer additions (the footer CTA, brand tagline and social row use the classes above) */
.footer-cta .btn { flex-shrink: 0; }
.footer-grid ul a { display: inline-block; }
