/* ==========================================================================
   INSIDE: Inclusion Standards in Diverse Education
   Design system & components. Mobile-first, bilingual (LTR/RTL), WCAG 2.2 AA.
   Uses logical properties throughout so Arabic (dir="rtl") mirrors correctly.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand: derived from the INSIDE logo */
  --navy: #252B6F;
  --navy-900: #171B4A;
  --navy-800: #1E235C;
  --navy-600: #343B8A;
  --navy-100: #E7E8F3;
  --navy-050: #F1F1F8;

  --teal: #2F8D98;          /* decorative / large elements only */
  --teal-700: #1E6C75;      /* text-safe teal (5.3:1 on stone) */
  --teal-100: #DFEFF0;

  --gold: #D8AC3D;          /* accents; navy text on gold = 6:1 */
  --gold-600: #B48A1E;
  --gold-100: #F7EDD2;

  --stone: #F7F5F0;         /* Amman limestone */
  --stone-200: #EFEBE2;
  --stone-300: #E2DCCE;
  --white: #FFFFFF;

  --ink: #1B1F3F;
  --muted: #4B5070;
  --line: #DCD6C8;

  /* Partner accent: sampled from the Purple Circle logo */
  --purple: #47299F;
  --purple-100: #EEEAF8;

  --success: #1D6B45;
  --success-100: #E3F2EA;
  --error: #B42318;
  --error-100: #FDECEA;

  /* Type */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;

  --fs-300: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --fs-400: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --fs-500: clamp(1.125rem, 1.07rem + 0.3vw, 1.3rem);
  --fs-600: clamp(1.3rem, 1.18rem + 0.6vw, 1.65rem);
  --fs-700: clamp(1.65rem, 1.35rem + 1.4vw, 2.5rem);
  --fs-800: clamp(2.1rem, 1.55rem + 2.6vw, 3.6rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --container: 75rem;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(23, 27, 74, 0.06), 0 1px 3px rgba(23, 27, 74, 0.05);
  --shadow: 0 2px 4px rgba(23, 27, 74, 0.04), 0 10px 30px -12px rgba(23, 27, 74, 0.18);
  --shadow-lg: 0 4px 8px rgba(23, 27, 74, 0.04), 0 30px 60px -24px rgba(23, 27, 74, 0.32);

  --focus: var(--teal-700);
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:lang(ar) body, body:lang(ar) {
  font-family: var(--font-ar);
  line-height: 1.85;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 650;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 {
  font-family: var(--font-ar);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

h1 { font-size: var(--fs-800); }
h2 { font-size: var(--fs-700); }
h3 { font-size: var(--fs-600); }
h4 { font-size: var(--fs-500); }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--teal-700); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }

strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold-100); color: var(--navy-900); }

/* ---------- 3. Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  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: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); outline-color: var(--gold); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Grid children must be allowed to shrink below their content width */
.hero-grid > *, .split > *, .card-grid > *, .track-grid > *, .contact-layout > *,
.service-detail > *, .track-detail > *, .footer-grid > *, .section-head--split > *,
.partner-banner > *, .cta-band > *, .lockup > * { min-width: 0; }
.flip-rtl { }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-block-end: var(--space-4);
  color: var(--teal-700);
  font-family: var(--font-sans);
  font-size: var(--fs-300);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}
:lang(ar) .eyebrow { font-family: var(--font-ar); letter-spacing: 0; font-size: 0.95rem; }

.lead {
  font-size: var(--fs-500);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

.section-head { max-width: 46rem; margin-block-end: var(--space-7); }
.section-head > * + * { margin-block-start: var(--space-4); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split {
  max-width: none;
  display: grid;
  gap: var(--space-5);
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; gap: var(--space-8); }
}

.prose > * + * { margin-block-start: var(--space-4); }
.prose p { max-width: 68ch; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  --btn-border: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.2s var(--ease); }
.btn:hover { color: var(--btn-fg); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:hover .icon { transform: translateX(3px); }
[dir="rtl"] .btn:hover .icon.flip-rtl { transform: scaleX(-1) translateX(3px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline-offset: 3px; border-radius: 999px; }

.btn--primary:hover { --btn-bg: var(--navy-800); --btn-border: var(--navy-800); }

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  --btn-border: var(--navy);
}
.btn--secondary:hover { --btn-bg: var(--navy); --btn-fg: var(--white); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy-900); --btn-border: var(--gold); }
.btn--gold:hover { --btn-bg: #E4BC55; --btn-border: #E4BC55; }

.btn--light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.6);
}
.btn--light:hover { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-border: var(--white); }

.btn--purple { --btn-bg: var(--purple); --btn-border: var(--purple); }
.btn--purple:hover { --btn-bg: #3A2185; --btn-border: #3A2185; }

.btn--sm { min-height: 2.5rem; padding: 0.55rem 1.1rem; font-size: 0.95rem; }

.btn[disabled], .btn[aria-disabled="true"] {
  --btn-bg: var(--stone-300);
  --btn-fg: #5D6076;
  --btn-border: var(--stone-300);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.link-arrow .icon { width: 1.05em; height: 1.05em; color: var(--teal-700); transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--teal-700); text-decoration: underline; }
.link-arrow:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(4px); }

/* ---------- 6. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-block-end: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(23, 27, 74, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand { display: inline-flex; flex: none; border-radius: 6px; }
.brand img { width: auto; height: 42px; }

.primary-nav { margin-inline-start: auto; }

.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-link {
  position: relative;
  display: block;
  padding: 0.55rem 0.6rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { color: var(--navy); background: var(--navy-050); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0.6rem;
  bottom: 0.2rem;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-cta { white-space: nowrap; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.lang-switch .icon { width: 1.05rem; height: 1.05rem; color: var(--teal-700); }
.lang-switch [lang="ar"] { font-family: var(--font-ar); }
.lang-switch [lang="en"] { font-family: var(--font-sans); }

.header-cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}
.menu-toggle .bars { position: relative; width: 18px; height: 12px; }
.menu-toggle .bars span {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 5px; }
.menu-toggle .bars span:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile navigation panel */
@media (max-width: 1079.98px) {
  .header-actions { margin-inline-start: auto; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: var(--space-4) var(--gutter) var(--space-6);
    background: var(--white);
    border-block-start: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .primary-nav.is-open { display: block; animation: navIn 0.22s var(--ease); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-block-start: 1px solid var(--stone-200); }
  .nav-link {
    padding: 1rem 0.25rem;
    border-radius: 0;
    font-size: 1.1rem;
  }
  .nav-link:hover { background: transparent; color: var(--teal-700); }
  .nav-link[aria-current="page"]::after { inset-inline: auto 0; inset-inline-start: -0.6rem; inset-inline-end: auto; top: 1.1rem; bottom: 1.1rem; width: 3px; height: auto; }
  .nav-cta { margin-block-start: var(--space-5); }
  .nav-cta .btn { width: 100%; }
}
@media (max-width: 419.98px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand img { height: 38px; }
}
@media (min-width: 1080px) {
  .menu-toggle, .nav-cta { display: none; }
  .brand img { height: 46px; }
}
@media (min-width: 1280px) {
  .header-cta { display: inline-flex; }
}
main:focus { outline: none; }
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 7. Sections ---------- */
.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--stone { background: var(--stone); }
.section--sand { background: var(--stone-200); }
.section--navy {
  position: relative;
  background: var(--navy);
  color: #DADCF0;
  --focus: var(--gold);
  isolation: isolate;
  overflow: hidden;
}
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy .eyebrow { color: #9FD3D9; }
.section--navy .lead { color: #C9CCE6; }
.section--navy a:not(.btn) { color: #BFE3E7; }
.section--navy::before {
  /* faint limestone-block texture */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 32px, 64px 32px;
  mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, transparent 70%);
}

/* ---------- 8. Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(3.5rem, 2rem + 5vw, 6.5rem);
  background:
    radial-gradient(60rem 30rem at 100% 0%, rgba(216, 172, 61, 0.14), transparent 60%),
    radial-gradient(50rem 30rem at 0% 100%, rgba(47, 141, 152, 0.10), transparent 60%),
    var(--stone);
}
[dir="rtl"] .hero {
  background:
    radial-gradient(60rem 30rem at 0% 0%, rgba(216, 172, 61, 0.14), transparent 60%),
    radial-gradient(50rem 30rem at 100% 100%, rgba(47, 141, 152, 0.10), transparent 60%),
    var(--stone);
}
.hero-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr 1fr; } }

.hero h1 { max-width: 17ch; font-size: clamp(2.1rem, 1.5rem + 2.5vw, 3.35rem); }
:lang(ar) .hero h1 { max-width: 20ch; }
.hero h1 .accent {
  color: var(--teal-700);
  background: linear-gradient(transparent 82%, rgba(216, 172, 61, 0.45) 82%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero .lead { margin-block: var(--space-5) var(--space-6); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-block-start: var(--space-6);
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta .icon { color: var(--teal-700); width: 1.15rem; height: 1.15rem; }

.hero-art { position: relative; margin: 0; padding-block-end: 2rem; padding-inline-start: 1.5rem; }
.hero-art__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--stone-200);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 640 / 560;
}
.hero-art__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::before {
  content: "";
  position: absolute;
  inset-block: 2.5rem 0;
  inset-inline: 0 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--navy);
  z-index: -1;
}
.hero-art { isolation: isolate; }

.float-card {
  position: absolute;
  z-index: 2;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(220, 214, 200, 0.7);
}
.float-card--model {
  inset-inline-start: 0;
  bottom: 0;
  width: min(19rem, 78%);
}
.float-card__title {
  display: block;
  margin-block-end: 0.65rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
:lang(ar) .float-card__title { letter-spacing: 0; font-size: 0.85rem; }
.mini-rise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; align-items: end; list-style: none; }
.mini-rise li { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--navy); text-align: center; }
:lang(ar) .mini-rise li { font-size: 0.82rem; }
.mini-rise li::before {
  content: "";
  display: block;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: var(--c);
}
/* Same three bars as the INSIDE logo: navy, teal, gold (gold = practice) */
.mini-rise li:nth-child(1) { --h: 22px; --c: var(--navy); }
.mini-rise li:nth-child(2) { --h: 36px; --c: var(--teal); }
.mini-rise li:nth-child(3) { --h: 52px; --c: var(--gold); }

.float-card--place {
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.float-card--place .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-100); }

/* ---------- 9. Inner page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0;
  background: var(--stone);
  isolation: isolate;
}
.page-hero::after {
  /* Amman hills strip */
  content: "";
  display: block;
  height: clamp(90px, 11vw, 160px);
  margin-block-start: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  background: url("../img/amman-strip.svg") center bottom / cover no-repeat;
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-block-start: var(--space-5); }
.page-hero .btn-row { margin-block-start: var(--space-6); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin-block-end: var(--space-5); font-size: 0.92rem; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; color: var(--stone-300); font-weight: 600; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- 10. Trust strip ---------- */
.trust {
  position: relative;
  z-index: 3;
  margin-block-start: calc(clamp(3.5rem, 2rem + 5vw, 6.5rem) * -0.5);
}
.trust-list {
  display: grid;
  grid-template-columns: 1fr;
  list-style: none;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--stone-200);
  overflow: hidden;
}
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.35rem 1.5rem;
}
.trust-list li + li { border-block-start: 1px solid var(--stone-200); }
.trust-list strong { display: block; color: var(--navy); font-size: 1.02rem; }
.trust-list span { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.5; margin-block-start: 0.15rem; }
@media (min-width: 640px) {
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .trust-list li + li { border-block-start: 0; }
  .trust-list li:nth-child(n+3) { border-block-start: 1px solid var(--stone-200); }
  .trust-list li:nth-child(even) { border-inline-start: 1px solid var(--stone-200); }
}
@media (min-width: 1024px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
  .trust-list li:nth-child(n+3) { border-block-start: 0; }
  .trust-list li + li { border-inline-start: 1px solid var(--stone-200); }
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal-700);
}
.icon-tile .icon { width: 1.4rem; height: 1.4rem; }
.icon-tile--navy { background: var(--navy-100); color: var(--navy); }
.icon-tile--gold { background: var(--gold-100); color: #7A5B0C; }
.icon-tile--purple { background: var(--purple-100); color: var(--purple); }
.icon-tile--lg { width: 3.5rem; height: 3.5rem; border-radius: 16px; }
.icon-tile--lg .icon { width: 1.7rem; height: 1.7rem; }

/* ---------- 11. Gap / bridge visual (About) ---------- */
.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.split--wide-start { }
@media (min-width: 900px) { .split--wide-start { grid-template-columns: 1.15fr 1fr; } }

.bridge {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--stone-200);
}
.bridge__cols { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.75rem; align-items: stretch; }
@media (max-width: 519.98px) {
  .bridge__cols { grid-template-columns: 1fr; }
  .bridge__gap { width: auto; height: 2.25rem; }
  .bridge__gap::before { inset-block: 50% auto; inset-inline: 0.5rem; border-inline-start: 0; border-block-start: 2px dashed var(--stone-300); }
  .bridge__gap .icon { transform: rotate(90deg); }
}
.bridge__col { padding: 1rem; border-radius: var(--radius); background: var(--stone); }
.bridge__col h3 { font-size: 1.05rem; font-family: var(--font-sans); letter-spacing: 0; color: var(--muted); font-weight: 600; margin-block-end: 0.6rem; }
:lang(ar) .bridge__col h3 { font-family: var(--font-ar); }
.bridge__col ul { list-style: none; display: grid; gap: 0.45rem; font-size: 0.9rem; line-height: 1.45; }
.bridge__col li { padding: 0.45rem 0.6rem; border-radius: 8px; background: var(--white); border: 1px solid var(--stone-200); }
.bridge__col--practice { background: var(--teal-100); }
.bridge__col--practice h3 { color: var(--teal-700); }
.bridge__gap {
  display: grid;
  place-items: center;
  width: 2.25rem;
  position: relative;
}
.bridge__gap::before {
  content: "";
  position: absolute;
  inset-block: 0.5rem;
  inset-inline-start: 50%;
  border-inline-start: 2px dashed var(--stone-300);
}
.bridge__gap span {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
}
.bridge__gap .icon { width: 1.1rem; height: 1.1rem; }
.bridge__caption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-start: 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.45;
}
.bridge__caption img { height: 26px; width: auto; background: var(--white); border-radius: 6px; padding: 3px 6px; }

.statement {
  font-family: var(--font-serif);
  font-size: var(--fs-700);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.015em;
}
:lang(ar) .statement { font-family: var(--font-ar); font-weight: 700; line-height: 1.45; letter-spacing: 0; }
.statement em { font-style: normal; color: var(--teal-700); }

/* ---------- 12. Cards ---------- */
.card-grid { display: grid; gap: var(--space-5); }
@media (min-width: 720px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
}
.card h3 { font-size: var(--fs-600); }
.card p { color: var(--muted); }
.card--hover:hover, .card--hover:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--stone-300); }
.card .card-foot { margin-block-start: auto; padding-block-start: var(--space-2); }

/* Service card */
.service-card { padding-block-start: 2.25rem; overflow: hidden; }
.service-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 5px;
  background: var(--accent, var(--navy));
}
.service-card:nth-child(2) { --accent: var(--teal); }
.service-card:nth-child(3) { --accent: var(--gold); }
.service-card__num {
  position: absolute;
  inset-block-start: 1.4rem;
  inset-inline-end: 1.6rem;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--stone-200);
}
.check-list { display: grid; gap: 0.55rem; list-style: none; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.5; color: var(--ink); }
.check-list li::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-block-start: 0.2rem;
  border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231E6C75' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}
.section--navy .check-list li { color: #DADCF0; }
.section--navy .check-list li::before { background-color: rgba(255,255,255,0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23D8AC3D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Training track card */
.track-grid { display: grid; gap: var(--space-5); }
@media (min-width: 720px) { .track-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .track-grid { grid-template-columns: repeat(6, 1fr); }
  .track-grid > * { grid-column: span 2; }
  .track-grid > :nth-child(4) { grid-column: 2 / span 2; }
  .track-grid > :nth-child(5) { grid-column: 4 / span 2; }
}
.track-card { gap: var(--space-3); }
.track-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-block-end: var(--space-2); }
.track-card h3 { font-size: 1.35rem; line-height: 1.25; }
:lang(ar) .track-card h3 { font-size: 1.25rem; }
.track-card__audience {
  margin-block-start: var(--space-2);
  padding-block-start: var(--space-4);
  border-block-start: 1px dashed var(--stone-300);
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}
.track-card__audience strong { display: block; color: var(--navy); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-block-end: 0.2rem; }
:lang(ar) .track-card__audience strong { letter-spacing: 0; font-size: 0.85rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.badge .icon { width: 1rem; height: 1rem; }
.badge--duration { background: var(--gold-100); color: #6B4F08; }
.badge--teal { background: var(--teal-100); color: var(--teal-700); }
.badge--navy { background: var(--navy-100); color: var(--navy); }
.badge--purple { background: var(--purple-100); color: var(--purple); }

/* Feature (icon + text) */
.feature { display: flex; flex-direction: column; gap: var(--space-3); }
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--muted); }
.section--navy .feature p { color: #C9CCE6; }

.feature-grid { display: grid; gap: var(--space-6) var(--space-5); }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Numbered "why" list */
.why-list { display: grid; gap: 0; list-style: none; counter-reset: why; border-block-start: 1px solid var(--line); }
.why-list li {
  counter-increment: why;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.25rem 1rem;
  padding-block: 1.4rem;
  border-block-end: 1px solid var(--line);
}
.why-list li::before {
  content: counter(why, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-600);
  line-height: 1.2;
}
.why-list h3 { font-size: 1.2rem; }
.why-list p { color: var(--muted); }

/* ---------- 13. Rising-bar process ---------- */
.rise {
  display: grid;
  gap: var(--space-4);
  list-style: none;
  counter-reset: step;
}
.rise__step {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.rise__bar {
  grid-row: span 2;
  width: 0.6rem;
  border-radius: 6px;
  background: var(--c);
}
.rise__step h3 { font-size: 1.3rem; }
.rise__step h3::before {
  content: counter(step, decimal-leading-zero) "  ";
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  vertical-align: middle;
  white-space: pre;
}
.rise__step p { color: #C9CCE6; font-size: 0.97rem; line-height: 1.55; }
/* Gold is reserved for practice, so it marks only the final step */
.rise__step:nth-child(1) { --c: #5C63B8; --h: 38%; }
.rise__step:nth-child(2) { --c: var(--teal); --h: 56%; }
.rise__step:nth-child(3) { --c: #9CA2E0; --h: 76%; }
.rise__step:nth-child(4) { --c: var(--gold); --h: 100%; }

/* light-background variant */
.rise--light .rise__step { background: var(--white); border-color: var(--stone-200); box-shadow: var(--shadow-sm); }
.rise--light .rise__step p { color: var(--muted); }
.rise--light .rise__step h3::before { color: var(--gold-600); }
.rise--light .rise__step:nth-child(1) { --c: var(--navy); }
.rise--light .rise__step:nth-child(3) { --c: #6F76C4; }
.rise--light .rise__step:nth-child(4) { --c: var(--gold); }
.rise--light.rise--purple .rise__step:nth-child(4) { --c: var(--purple); }

@media (min-width: 900px) {
  .rise {
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    gap: var(--space-4);
    padding-block-end: 0;
    border-block-end: 3px solid rgba(255,255,255,0.25);
  }
  .rise--light { border-block-end-color: var(--navy); }
  .rise__step {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.6rem;
    min-height: calc(14rem + 10rem * var(--k, 0));
    padding: 1.5rem 1.35rem 1.75rem;
    border: 0;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(to top, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
    overflow: hidden;
  }
  .rise__step::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 6px;
    background: var(--c);
  }
  .rise__bar { display: none; }
  .rise__step:nth-child(1) { --k: 0; }
  .rise__step:nth-child(2) { --k: 0.33; }
  .rise__step:nth-child(3) { --k: 0.66; }
  .rise__step:nth-child(4) { --k: 1; }
  .rise--light .rise__step { background: linear-gradient(to top, var(--white), var(--white)); box-shadow: var(--shadow-sm); }
}

/* Three-step model: Assess, Train, Practice. Same three colours as the logo bars; gold = practice */
.rise--3 .rise__step:nth-child(1) { --c: #5C63B8; }
.rise--3 .rise__step:nth-child(2) { --c: var(--teal); }
.rise--3 .rise__step:nth-child(3) { --c: var(--gold); }
.rise--light.rise--3 .rise__step:nth-child(1) { --c: var(--navy); }
@media (min-width: 900px) {
  .rise--3 { grid-template-columns: repeat(3, 1fr); }
  .rise--3 .rise__step:nth-child(2) { --k: 0.5; }
  .rise--3 .rise__step:nth-child(3) { --k: 1; }
}

/* ---------- 14. Partnership ---------- */
.lockup {
  display: grid;
  grid-template-columns: 1.35fr auto 1fr;
  align-items: center;
  gap: clamp(0.75rem, 0.5rem + 1.5vw, 2rem);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow);
}
.lockup__logo {
  display: block;
  height: clamp(7rem, 5rem + 8vw, 11rem);
  padding: clamp(0.5rem, 0.25rem + 1vw, 1rem);
}
/* Equal visual weight: both marks share the same optical box */
.lockup__logo picture, .profile-card__logo picture { display: block; width: 100%; height: 100%; }
.lockup__logo img, .profile-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.lockup__logo { width: 100%; }
.lockup__logo:not(.lockup__logo--inside) { padding-block: clamp(0.25rem, 0.5vw, 0.5rem); }
.lockup__plus {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--stone);
  color: var(--navy);
  border: 1px solid var(--stone-300);
}
.lockup__plus .icon { width: 1.1rem; height: 1.1rem; }
.lockup-wrap { position: relative; }
.lockup-wrap::before {
  content: "";
  position: absolute;
  inset: 1.5rem -0.75rem -0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy) 50%, var(--purple) 50%, var(--purple) 100%);
  z-index: -1;
  opacity: 0.95;
}
[dir="rtl"] .lockup-wrap::before { inset: 1.5rem 1.5rem -0.75rem -0.75rem; background: linear-gradient(225deg, var(--navy) 0%, var(--navy) 50%, var(--purple) 50%, var(--purple) 100%); }
.lockup-wrap { isolation: isolate; }

@media (max-width: 479.98px) {
  .lockup--stack-sm { grid-template-columns: 1fr; }
  .lockup--stack-sm .lockup__plus { justify-self: center; }
  .lockup--stack-sm .lockup__logo { height: 8rem; }
  .lockup--stack-sm .lockup__logo--inside { height: 5.5rem; padding-inline: 8%; }
}

.partner-banner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding: clamp(1.75rem, 1.25rem + 2.5vw, 3.25rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(40rem 20rem at 100% 100%, rgba(71, 41, 159, 0.10), transparent 70%),
    var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.partner-banner::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 6px;
  background: linear-gradient(var(--navy) 0 50%, var(--purple) 50% 100%);
}
@media (min-width: 900px) { .partner-banner { grid-template-columns: 1fr 1.1fr; gap: var(--space-8); } }
.partner-banner .lockup { box-shadow: none; background: var(--stone); border-color: var(--stone-200); }
.partner-banner .lockup__logo { height: clamp(6rem, 4rem + 6vw, 8.5rem); }

.profile-card { gap: var(--space-4); }
.profile-card__logo {
  display: block;
  height: 8.5rem;
  border-radius: var(--radius);
  background: var(--stone);
  padding: 1rem;
}
.profile-card__logo--inside { padding-inline: 20%; }
.profile-card__logo:not(.profile-card__logo--inside) { padding-block: 0.6rem; }
@media (min-width: 720px) { .profile-card__logo { height: 10.5rem; } }
.profile-card--inside { border-block-start: 5px solid var(--navy); }
.profile-card--purple { border-block-start: 5px solid var(--purple); }
.profile-card .tagline { font-weight: 600; color: var(--navy); }
.profile-card--purple .tagline { color: var(--purple); }

.outcome-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
}
.outcome-card p { color: var(--ink); font-weight: 500; line-height: 1.5; }
.outcome-stack { display: grid; gap: var(--space-3); }

.capability-grid { display: grid; gap: var(--space-3); list-style: none; }
@media (min-width: 640px) { .capability-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .capability-grid { grid-template-columns: repeat(3, 1fr); } }
.capability-grid li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-weight: 500;
  line-height: 1.4;
}
.capability-grid .icon-tile { background: rgba(255,255,255,0.1); color: var(--gold); width: 2.5rem; height: 2.5rem; }
.capability-grid .icon-tile .icon { width: 1.25rem; height: 1.25rem; }

/* ---------- 15. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--space-5);
  align-items: center;
  padding: clamp(2rem, 1.25rem + 3.5vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #D5D8EE;
  isolation: isolate;
  --focus: var(--gold);
}
.cta-band h2 { color: var(--white); max-width: 22ch; }
.cta-band p { max-width: 56ch; color: #C9CCE6; }
.cta-band::after {
  /* three rising bars: the INSIDE mark as a quiet watermark */
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: clamp(1rem, 4vw, 4rem);
  width: clamp(7rem, 14vw, 12rem);
  height: 80%;
  background:
    linear-gradient(var(--gold), var(--gold)) right bottom / 28% 100% no-repeat,
    linear-gradient(var(--teal), var(--teal)) center bottom / 28% 70% no-repeat,
    linear-gradient(#3A4196, #3A4196) left bottom / 28% 42% no-repeat;
  opacity: 0.14;
  z-index: -1;
  border-radius: 10px 10px 0 0;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; gap: var(--space-7); } }
.cta-band--purple { background: linear-gradient(120deg, var(--navy) 0%, var(--navy) 55%, #34207A 100%); }

/* ---------- 16. Services page ---------- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--stone-200);
}
.subnav ul { display: flex; gap: 0.5rem; list-style: none; overflow-x: auto; padding-block: 0.7rem; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--stone-300);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  white-space: nowrap;
}
.subnav a:hover { border-color: var(--navy); }
.subnav a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.subnav .dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--c); }

.service-detail { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 960px) { .service-detail { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.service-detail + .service-detail { margin-block-start: var(--section); padding-block-start: var(--section); border-block-start: 1px solid var(--line); }
.service-detail__intro { display: grid; gap: var(--space-4); }
.service-detail__intro .icon-tile { margin-block-end: var(--space-2); }
@media (min-width: 960px) { .service-detail__intro { position: sticky; top: calc(var(--header-h) + 5rem); } }
.panel {
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
}
.panel h3 { font-size: 1.05rem; font-family: var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-block-end: var(--space-4); }
:lang(ar) .panel h3 { font-family: var(--font-ar); letter-spacing: 0; font-size: 1.05rem; }
.panel + .panel { margin-block-start: var(--space-4); }
.deliverables { display: grid; gap: 0.75rem; list-style: none; counter-reset: d; }
.deliverables li {
  counter-increment: d;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--stone);
  font-weight: 500;
  color: var(--navy);
}
.deliverables li::before {
  content: counter(d);
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--c, var(--navy));
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}
.panel--note { background: var(--navy-050); border-color: var(--navy-100); box-shadow: none; }
.panel--note p { color: var(--ink); }

/* ---------- 17. Training page ---------- */
.track-detail {
  display: grid;
  gap: var(--space-5);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.track-detail::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: var(--c, var(--navy));
}
.track-detail + .track-detail { margin-block-start: var(--space-5); }
@media (min-width: 960px) { .track-detail { grid-template-columns: 1.35fr 1fr; gap: var(--space-7); } }
.track-detail__head { display: grid; gap: var(--space-3); align-content: start; }
.track-detail__head .badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.track-detail h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
.track-detail__side { display: grid; gap: var(--space-4); align-content: start; }
.meta-box { padding: 1.15rem 1.25rem; border-radius: var(--radius); background: var(--stone); }
.meta-box dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
:lang(ar) .meta-box dt { letter-spacing: 0; font-size: 0.88rem; }
.meta-box dd { margin: 0.25rem 0 0; color: var(--navy); font-weight: 500; line-height: 1.5; }
.meta-box dd + dt { margin-block-start: 0.9rem; }
.track-detail:nth-of-type(1) { --c: var(--navy); }
.track-detail:nth-of-type(2) { --c: var(--teal); }
.track-detail:nth-of-type(3) { --c: var(--gold); }
.track-detail:nth-of-type(4) { --c: var(--navy-600); }
.track-detail:nth-of-type(5) { --c: var(--teal-700); }

.track-index { display: grid; gap: 0.5rem; list-style: none; }
@media (min-width: 720px) { .track-index { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); } }
.track-index a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--stone-200);
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.35;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.track-index a:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.track-index small { color: #6B4F08; font-weight: 600; font-size: 0.82rem; }

/* FAQ accordion (native details/summary: keyboard & screen-reader friendly) */
.faq { display: grid; gap: var(--space-3); max-width: 52rem; }
.faq details {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--stone-200);
  transition: box-shadow 0.2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--stone-300); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--stone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%23252B6F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 1.35rem 1.25rem; color: var(--muted); }

/* ---------- 18. Forms ---------- */
.contact-layout { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1.55fr 1fr; gap: var(--space-7); } }

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow);
}
.form-card > h2 { font-size: var(--fs-600); }
.form-intro { margin-block: var(--space-3) var(--space-6); color: var(--muted); font-size: 0.95rem; }

.form-grid { display: grid; gap: 1.35rem 1.25rem; }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label, .field legend { font-weight: 600; color: var(--navy); font-size: 0.97rem; }
.req { color: var(--error); font-weight: 700; margin-inline-start: 0.15rem; }
.opt { color: var(--muted); font-weight: 400; font-size: 0.88rem; margin-inline-start: 0.3rem; }
.field__hint { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

.input, .select, .textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid #8F92A8;   /* 3:1+ against white */
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { min-height: 9rem; resize: vertical; }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23252B6F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 1.1rem;
  background-position: right 0.9rem center;
}
[dir="rtl"] .select { background-position: left 0.9rem center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--navy); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--teal-700);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--error);
  background-color: #FFFBFA;
}
.input[type="tel"] { direction: ltr; }
[dir="rtl"] .input[type="tel"], [dir="rtl"] .input[type="email"] { text-align: right; }

.field__error {
  display: none;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--error);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}
.field__error:not(:empty) { display: flex; }
.field__error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-block-start: 0.1rem;
  border-radius: 50%;
  background: var(--error);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--stone);
  border: 1.5px solid transparent;
}
.check:has(input[aria-invalid="true"]) { border-color: var(--error); background: #FFFBFA; }
.check input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.1rem 0 0;
  border: 2px solid #6D7090;
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}
.check input::after {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scale(0);
  transition: transform 0.15s var(--ease);
}
.check input:checked { background: var(--navy); border-color: var(--navy); }
.check input:checked::after { transform: scale(1); }
.check input:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 2px; }
.check label { font-weight: 400; color: var(--ink); font-size: 0.95rem; line-height: 1.5; cursor: pointer; }

/* Honeypot: hidden from everyone, including assistive tech */
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-block-start: var(--space-6); }
.form-actions p { color: var(--muted); font-size: 0.88rem; }

.alert {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid;
  margin-block-end: var(--space-5);
}
.alert .icon { width: 1.4rem; height: 1.4rem; margin-block-start: 0.1rem; }
.alert h3 { font-family: var(--font-sans); font-size: 1.02rem; letter-spacing: 0; margin-block-end: 0.2rem; color: inherit; }
:lang(ar) .alert h3 { font-family: var(--font-ar); }
.alert ul { padding-inline-start: 1.1rem; margin-block-start: 0.35rem; }
.alert a { color: inherit; font-weight: 600; }
.alert--error { background: var(--error-100); border-color: #F2B8B5; color: #7A1A12; }
.alert--success { background: var(--success-100); border-color: #A6D8BD; color: #14492F; }
.alert[hidden] { display: none; }

.success-panel {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow);
}
.success-panel[hidden] { display: none; }
.success-panel .icon-tile { background: var(--success-100); color: var(--success); }
.success-panel p { color: var(--muted); max-width: 52ch; }

.aside-stack { display: grid; gap: var(--space-4); }
.next-steps { display: grid; gap: 1rem; list-style: none; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 2rem 1fr; gap: 0.85rem; align-items: start; line-height: 1.5; }
.next-steps li::before {
  content: counter(n);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.9rem;
}
.next-steps strong { display: block; color: var(--white); }
.next-steps span { color: #C9CCE6; font-size: 0.93rem; }

.contact-list { display: grid; gap: 0.9rem; list-style: none; }
.contact-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-list .icon-tile { width: 2.4rem; height: 2.4rem; border-radius: 10px; }
.contact-list .icon-tile .icon { width: 1.15rem; height: 1.15rem; }
.contact-list small { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
:lang(ar) .contact-list small { letter-spacing: 0; font-size: 0.88rem; }
.contact-list a, .contact-list span { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list [dir="ltr"] { unicode-bidi: isolate; }

.dark-card {
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #D5D8EE;
  --focus: var(--gold);
}
.dark-card h2, .dark-card h3 { color: var(--white); font-size: 1.35rem; margin-block-end: var(--space-4); }

/* ---------- 19. Footer ---------- */
.site-footer {
  background: var(--stone-200);
  border-block-start: 1px solid var(--stone-300);
  color: var(--ink);
  font-size: 0.95rem;
}
.footer-rule {
  height: 6px;
  background: linear-gradient(90deg, var(--navy) 0 33.3%, var(--teal) 33.3% 66.6%, var(--gold) 66.6% 100%);
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
  padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem) var(--space-6);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-7); } }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin-block-start: var(--space-4); color: var(--muted); max-width: 36ch; line-height: 1.6; }
.footer-col h2 {
  margin-block-end: var(--space-4);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
:lang(ar) .footer-col h2 { font-family: var(--font-ar); letter-spacing: 0; font-size: 0.95rem; }
.footer-col ul { display: grid; gap: 0.55rem; list-style: none; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--teal-700); text-decoration: underline; }
.footer-col .contact-list a, .footer-col .contact-list span { font-weight: 500; color: var(--ink); }
.footer-col .contact-list .icon-tile { background: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: var(--space-5);
  border-block-start: 1px solid var(--stone-300);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; align-items: center; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--navy); }

/* ---------- 20. Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 21. Photography ---------- */
.photo {
  position: relative;
  margin: 0;
  aspect-ratio: var(--ar, 4 / 3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--stone-200);
  box-shadow: var(--shadow);
}
.photo picture { display: block; width: 100%; height: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--wide { --ar: 16 / 9; }
.section--navy .photo { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); background: var(--navy-800); }

/* Hero photo: portrait crop on phones, landscape-ish frame on desktop */
.hero-art__frame { aspect-ratio: 4 / 5; }
@media (min-width: 600px) { .hero-art__frame { aspect-ratio: 4 / 3; } }
@media (min-width: 960px) { .hero-art__frame { aspect-ratio: 640 / 580; } }
.hero-art__frame picture { display: block; width: 100%; height: 100%; }

/* Photo with an overlapping note card */
.photo-stack { position: relative; padding-block-end: 3rem; }
.photo-note {
  position: absolute;
  bottom: 0;
  inset-inline-start: clamp(0.75rem, 3vw, 1.5rem);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: min(23rem, calc(100% - 1.5rem));
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow: var(--shadow-lg);
}
.photo-note .icon { color: var(--gold); margin-block-start: 0.1rem; }

/* Cards with a photo on top */
.card { --card-pad: clamp(1.5rem, 1.2rem + 1vw, 2rem); padding: var(--card-pad); }
.card--media { overflow: hidden; }
.card__media {
  position: relative;
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) var(--space-2);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-200);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card--hover:hover .card__media img, .card--hover:focus-within .card__media img { transform: scale(1.04); }
.card__media .badge {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.service-card.card--media { padding-block-start: var(--card-pad); }
.service-card.card--media::before { z-index: 1; }
.service-card.card--media .icon-tile {
  position: relative;
  z-index: 1;
  margin-block-start: calc(-1 * (var(--space-2) + 1.75rem + var(--space-4)));
  border: 4px solid var(--white);
  box-sizing: content-box;
}

/* Partnership hero: photo with the official logos overlaid in HTML */
.partner-hero-art { position: relative; padding-block-end: 4.5rem; }
.partner-hero-art .photo { aspect-ratio: 4 / 5; }
@media (min-width: 600px) { .partner-hero-art .photo { aspect-ratio: 4 / 3; } }
.lockup--float {
  position: absolute;
  bottom: 0;
  left: clamp(0.75rem, 3vw, 1.5rem);   /* physical: the photo's negative space is on the left */
  width: min(24rem, calc(100% - 1.5rem));
  padding: clamp(0.9rem, 0.6rem + 1vw, 1.25rem) clamp(1rem, 0.6rem + 1.5vw, 1.5rem);
  box-shadow: var(--shadow-lg);
}
.lockup--float .lockup__logo { height: clamp(4.25rem, 3rem + 3vw, 6rem); padding: 0.25rem; }

.capability-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .capability-grid--2 { grid-template-columns: repeat(2, 1fr); } }

.track-detail__side .photo { box-shadow: none; }
.service-detail .photo { margin-block-end: var(--space-4); }

.contact-photo .float-card--place { top: 1rem; inset-inline-end: 1rem; }

/* ---------- 22. Purple Circle presence ---------- */
.hero-partner {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-block-start: var(--space-5);
  padding: 0.45rem 0.6rem 0.45rem 1.1rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
[dir="rtl"] .hero-partner { padding: 0.45rem 1.1rem 0.45rem 0.6rem; }
.hero-partner:hover { border-color: var(--purple); box-shadow: var(--shadow); }
.hero-partner small, .footer-partner small, .partner-mini small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
:lang(ar) .hero-partner small, :lang(ar) .footer-partner small, :lang(ar) .partner-mini small { letter-spacing: 0; font-size: 0.88rem; }
.hero-partner small { white-space: nowrap; }
.hero-partner__logo { display: block; width: 3rem; height: 4.1rem; }
.hero-partner__logo picture, .footer-partner__logo picture, .partner-mini__logo picture { display: block; height: 100%; }
.hero-partner__logo img, .footer-partner__logo img, .partner-mini__logo img { width: 100%; height: 100%; object-fit: contain; }

.footer-partner {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-block-start: var(--space-5);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--stone-300);
  text-decoration: none;
}
.footer-partner:hover { border-color: var(--purple); }
.footer-partner__logo { display: block; width: 3.3rem; height: 4.5rem; }

.partner-mini {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--purple-100);
  border: 1px solid #DCD3F2;
  text-decoration: none;
  color: var(--ink);
}
.partner-mini:hover { border-color: var(--purple); }
.partner-mini__logo { flex: none; display: block; width: 4.2rem; height: 5.7rem; padding: 0.35rem; border-radius: var(--radius); background: var(--white); }
.partner-mini strong { display: block; color: var(--purple); font-size: 1.15rem; margin-block: 0.1rem 0.3rem; }
.partner-mini__more { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--navy); font-weight: 600; font-size: 0.93rem; }
.partner-mini__more .icon { width: 1rem; height: 1rem; color: var(--purple); }

/* Partner badge sits above the hero photo, aligned with the photo's outer edge */
.hero-media { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.hero-media .hero-art { width: 100%; }
.hero-media .hero-partner {
  margin: 0;
  gap: 1rem;
  padding: 0.6rem 0.75rem 0.6rem 1.25rem;
  box-shadow: var(--shadow);
}
[dir="rtl"] .hero-media .hero-partner { padding: 0.6rem 1.25rem 0.6rem 0.75rem; }
.hero-media .hero-partner small { font-size: 0.85rem; color: var(--navy); }
:lang(ar) .hero-media .hero-partner small { font-size: 0.98rem; }
.hero-media .hero-partner__logo { width: 4.6rem; height: 6.25rem; }
@media (max-width: 599.98px) {
  .hero-media { align-items: stretch; }
  .hero-media .hero-partner { justify-content: space-between; }
  .hero-media .hero-partner__logo { width: 3.8rem; height: 5.2rem; }
  .hero-art .float-card--place { display: none; } /* "Based in Amman" is already listed above */
}

/* Partner badge spans the full width of the photo (photo starts after the hero-art inline padding) */
.hero-media { align-items: stretch; }
.hero-media .hero-partner { margin-inline-start: 1.5rem; justify-content: space-between; }
.rise--light.rise--3.rise--purple .rise__step:nth-child(3) { --c: var(--gold); }

/* ---------- 23. About: INSIDE modules ---------- */
.module-card { border-block-start: 5px solid var(--mc); }
.module-card--1 { --mc: var(--navy); }
.module-card--2 { --mc: var(--teal); }
.module-card--3 { --mc: var(--gold); }
.module-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.module-card__tag { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
:lang(ar) .module-card__tag { letter-spacing: 0; font-size: 0.92rem; }
.module-card h3 { font-family: var(--font-serif); }
:lang(ar) .module-card h3 { font-family: var(--font-serif); font-weight: 650; letter-spacing: -0.01em; }
/* The three logo bars; the module's own stage is highlighted */
.module-bars { display: inline-flex; align-items: flex-end; gap: 4px; height: 2.6rem; }
.module-bars i { display: block; width: 0.75rem; border-radius: 3px 3px 1px 1px; background: var(--stone-300); }
.module-bars i:nth-child(1) { height: 38%; }
.module-bars i:nth-child(2) { height: 66%; }
.module-bars i:nth-child(3) { height: 100%; }
.module-card--1 .module-bars i:nth-child(1) { background: var(--navy); }
.module-card--2 .module-bars i:nth-child(2) { background: var(--teal); }
.module-card--3 .module-bars i:nth-child(3) { background: var(--gold); }

/* ---------- About: aligned "where do many start" boxes ---------- */
/* Headings share one height so both lists start on the same line */
.bridge__col { display: flex; flex-direction: column; }
.bridge__col h3 { min-height: 2.7em; line-height: 1.35; display: flex; align-items: flex-end; }
.bridge__col ul { flex: 1; align-content: start; }
.footer-brand .footer-partner { display: flex; width: max-content; }

/* ---------- Home: INSIDE editions ---------- */
.edition-card { gap: var(--space-3); }
.edition-card .module-bars { margin-block-end: var(--space-2); }
.edition-card p { font-size: 0.97rem; line-height: 1.7; }
.edition-stats { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; }
.edition-stats li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--stone);
  border: 1px solid var(--stone-200);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 600;
}

/* ---------- About: our partners ---------- */
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-5); list-style: none; }
.partner-logo a {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  width: 15rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.partner-logo a:hover { border-color: var(--purple); box-shadow: var(--shadow); }
.partner-logo__img { display: block; width: 6rem; height: 8.2rem; }
.partner-logo__img picture { display: block; height: 100%; }
.partner-logo__img img { width: 100%; height: 100%; object-fit: contain; }
.partner-logo__name { color: var(--navy); font-weight: 600; font-size: 1.05rem; }
.partner-logo__link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--purple); font-weight: 600; font-size: 0.9rem; }
.partner-logo__link .icon { width: 1rem; height: 1rem; }

/* ---------- 24. Scientific Committee ---------- */
@media (min-width: 1100px) { .pillars--4 { grid-template-columns: repeat(4, 1fr); } }
.member-grid { display: grid; gap: var(--space-5); list-style: none; }
@media (min-width: 560px) { .member-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .member-grid { grid-template-columns: repeat(3, 1fr); } }
.member-card {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.member-card__photo {
  width: 8.5rem;
  height: 8.5rem;
  margin-block-end: 0.9rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--stone);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--stone-200);
}
.member-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.member-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--stone-300); }
.member-card__placeholder .icon { width: 4.5rem; height: 4.5rem; stroke-width: 1.2; }
.member-card h3 { font-size: 1.25rem; }
.member-card__role { color: var(--teal-700); font-weight: 600; font-size: 0.95rem; }
.member-card__expertise { color: var(--muted); font-size: 0.93rem; }

/* ---------- 25. Misc ---------- */
.stack-sm > * + * { margin-block-start: var(--space-3); }
.stack > * + * { margin-block-start: var(--space-5); }
.mt-6 { margin-block-start: var(--space-6); }
.mt-7 { margin-block-start: var(--space-7); }
.text-center { text-align: center; }
.center-row { display: flex; justify-content: center; }

.pillars { display: grid; gap: var(--space-4); list-style: none; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.6rem;
}
.pillar h3 { font-size: 1.2rem; }
.pillar p { color: var(--muted); font-size: 0.97rem; }

.audience-list { display: grid; gap: var(--space-3); list-style: none; }
@media (min-width: 640px) { .audience-list { grid-template-columns: repeat(2, 1fr); } }
.audience-list li {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-weight: 500;
}
.audience-list .icon-tile { background: rgba(255,255,255,0.1); color: var(--gold); }

.mission {
  position: relative;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mission::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: clamp(2rem, 1.5rem + 3vw, 4rem);
  width: 5rem;
  height: 5px;
  background: var(--gold);
}
.mission .statement { max-width: 30ch; }

.note-inline {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--navy-050);
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.55;
}
.note-inline .icon { color: var(--navy); margin-block-start: 0.15rem; }

@media print {
  .site-header, .site-footer, .cta-band, .menu-toggle, .subnav { display: none !important; }
  body { background: #fff; }
  .section { padding-block: 1.5rem; }
}

/* Hero without a lead paragraph: give the buttons room below the headline */
.hero h1 + .btn-row { margin-block-start: var(--space-6); }

/* Home hero: entry point for institutions with an audit access code */
.audit-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-start: var(--space-5);
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--stone-300);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 0.97rem;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
[dir="rtl"] .audit-cta { padding: 0.6rem 0.6rem 0.6rem 1rem; }
.audit-cta:hover { border-color: var(--navy); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.audit-cta strong { color: var(--navy); }
.audit-cta__icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--gold-100); color: #7A5B0C; flex: none; }
.audit-cta__icon .icon { width: 1.15rem; height: 1.15rem; }
.audit-cta > .icon { width: 1.05rem; height: 1.05rem; color: var(--teal-700); transition: transform 0.2s var(--ease); }
.audit-cta:hover > .icon { transform: translateX(3px); }
[dir="rtl"] .audit-cta:hover > .icon { transform: scaleX(-1) translateX(3px); }
