/* ============================================================
   SSCRS — Saudi Society of Colon & Rectal Surgery
   الجمعية السعودية لجراحة القولون والمستقيم

   Palette sampled from the society seal: navy #1B4C93 (inner
   disc), green #4E9E37 (palm & swords). Neutrals are tinted
   toward those hues rather than pure grey.

   Layout uses CSS logical properties throughout, so the Arabic
   (RTL) view mirrors without a parallel set of rules.
   ============================================================ */

:root {
  /* Brand — taken from the seal */
  --navy-900: #0B2444;
  --navy-800: #143A6B;
  --navy:     #1B4C93;
  --navy-600: #2E6BBD;
  --green:    #4E9E37;
  --green-600:#5BB040;
  --green-700:#3C7A2A;

  /* Tints drawn from the two brand hues */
  --tint-navy:  #F4F7FC;
  --tint-green: #F4FAF2;
  --wash-navy:  #E7EFFA;
  --wash-green: #E6F3E1;

  /* Extended palette — shades of the two brand hues plus a true grey
     scale, so sections can be told apart without leaving the brand. */
  --blue-100:  #E3ECF8;
  --blue-200:  #C7D9F0;
  --blue-500:  #2E6BBD;
  --teal-100:  #DCEFF1;
  --teal-500:  #1E7F8A;
  --teal-700:  #166069;
  --green-100: #E3F2DD;
  --green-200: #C6E4BA;
  --slate-100: #E7EBF2;
  --slate-500: #5B6B86;
  --slate-700: #3F4C63;
  --grey-50:   #F7F8FA;
  --grey-100:  #EEF1F5;
  --grey-300:  #CDD3DD;
  --grey-500:  #8A94A6;
  --grey-700:  #4B5565;
  --green-800: #2F6321;
  --green-900: #2F5A24;   /* deep palm green — feature plates */
  --teal-900:  #0F4A52;
  --slate-900: #2A3446;

  /* Neutrals, pulled slightly toward navy */
  --ink:      #101B2B;
  --body:     #56637A;
  --muted:    #8290A6;
  --line:     #E6ECF4;
  --line-soft:#F0F4F9;
  --paper:    #FFFFFF;

  /* Radii — generous, the single biggest moderniser here */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-pill: 999px;

  /* Elevation — soft and low-contrast, never a hard drop shadow */
  --shadow-sm: 0 1px 2px rgba(11,36,68,.04), 0 2px 6px rgba(11,36,68,.04);
  --shadow-md: 0 2px 4px rgba(11,36,68,.03), 0 8px 24px rgba(11,36,68,.07);
  --shadow-lg: 0 4px 8px rgba(11,36,68,.04), 0 20px 48px rgba(11,36,68,.11);

  --wrap: 1200px;
  /* Interface face for the header and menus; the page body stays serif. */
  --ui: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui-ar: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", serif;
  --arabic: "Noto Naskh Arabic", "Times New Roman", "Traditional Arabic", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body { font-family: var(--arabic); line-height: 1.9; }
html[lang="ar"] h1, html[lang="ar"] h2,
html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.45; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 {
  margin: 0; color: var(--ink); font-weight: 700;
  line-height: 1.18; letter-spacing: -0.01em;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.page-wrap { width: calc(100% - 56px); max-width: var(--wrap); margin: 0 auto; }

/* Shared type ---------------------------------------------- */
/* Eyebrows are pill chips in sentence case — not the tracked
   uppercase micro-caps that dated the previous pass. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 12px; border-radius: var(--r-pill);
  background: var(--wash-green); color: var(--green-700);
  font-size: 13.5px; font-weight: 600; letter-spacing: 0;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex: none;
}
.eyebrow-navy { background: var(--wash-navy); color: var(--navy); }
.eyebrow-navy::before { background: var(--navy-600); }
.eyebrow-dark { background: rgba(255,255,255,.10); color: #B9E5A8; }
.eyebrow-dark::before { background: var(--green-600); }

.section-head { max-width: 740px; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(2rem, 3.5vw, 2.85rem); }
.section-head .section-sub {
  margin-top: 20px; font-size: 1.125rem; line-height: 1.65; color: var(--body);
}

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border-radius: var(--r-pill);
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease,
              border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--navy); color: #fff; border-color: var(--navy);
  box-shadow: 0 4px 14px rgba(27,76,147,.24);
}
.btn-primary:hover {
  background: var(--navy-800); border-color: var(--navy-800);
  transform: translateY(-2px); box-shadow: 0 8px 22px rgba(27,76,147,.3);
}
.btn-green {
  background: var(--green); color: #fff; border-color: var(--green);
  box-shadow: 0 4px 14px rgba(78,158,55,.26);
}
.btn-green:hover {
  background: var(--green-700); border-color: var(--green-700);
  transform: translateY(-2px); box-shadow: 0 8px 22px rgba(78,158,55,.32);
}
.btn-outline { background: var(--paper); color: var(--navy); border-color: #D3DEEC; }
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ============================================================
   HEADER — one row, sticky, floating on a blurred surface
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-stuck {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(11,36,68,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 88px; padding: 10px 0;
}

/* The seal lockup — the anchor of the whole page */
.lockup { display: flex; align-items: center; gap: 12px; flex: none; }
.lockup-seal { width: 60px; height: 60px; flex: none; }
.lockup-text { display: flex; flex-direction: column; gap: 1px; }
/* The cap belongs to the header row only — .lockup-text is shared with
   the footer identity block, which has room for the full lockup. */
.site-header .lockup-text { max-width: 186px; }
.lockup-ar {
  font-family: var(--arabic); direction: rtl; font-size: 12.5px; font-weight: 600;
  color: var(--navy); line-height: 1.4;
}
.lockup-en {
  font-size: 14.5px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em; line-height: 1.22;
}
.lockup-est { font-size: 11.5px; font-weight: 500; color: var(--muted); }

/* The header bar carries one name, not three stacked lines — stacking
   them wrapped to ~94px and overflowed the 88px row. */
.site-header .lockup-est { display: none; }
html[lang="en"] .site-header .lockup-ar { display: none; }
html[lang="ar"] .site-header .lockup-en { display: none; }
.site-header .lockup-ar { font-size: 13px; line-height: 1.45; }
.site-header .lockup-en { font-size: 13.5px; line-height: 1.3; }

/* Navigation — sentence case, pill hover, no uppercase tracking */
.nav-shell { display: flex; align-items: center; gap: 0; flex: 1 1 auto; justify-content: center; min-width: 0; }
.nav-shell a {
  padding: 9px 9px; border-radius: var(--r-pill); white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--body);
  letter-spacing: -0.01em;
  transition: background-color .18s ease, color .18s ease;
}
.nav-shell a:hover { background: var(--tint-navy); color: var(--navy); }

/* Grouped navigation -----------------------------------------
   Ten flat links cannot fit the bar in either language, so
   related destinations sit behind two disclosure menus. */
.nav-group { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 10px; border: 0; border-radius: var(--r-pill);
  background: none; cursor: pointer; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--body);
  letter-spacing: -0.01em;
  transition: background-color .18s ease, color .18s ease;
}
.nav-trigger::after {
  content: ""; width: 7px; height: 7px; flex: none;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.nav-trigger:hover,
.nav-group.is-open .nav-trigger { background: var(--tint-navy); color: var(--navy); }
.nav-group.is-open .nav-trigger::after { transform: translateY(1px) rotate(225deg); }

.nav-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 0; z-index: 90;
  min-width: 208px; padding: 8px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.nav-menu[hidden] { display: none; }
.nav-group.is-open .nav-menu { opacity: 1; transform: none; }
.nav-menu a {
  padding: 10px 13px; border-radius: var(--r-sm); white-space: nowrap;
  font-size: 14.5px; font-weight: 500; color: var(--body); text-align: start;
  transition: background-color .16s ease, color .16s ease;
}
.nav-menu a:hover { background: var(--tint-navy); color: var(--navy); }

/* Group headings in the mobile sheet */
.mobile-nav-group {
  margin: 18px 0 6px; padding-inline-start: 18px;
  font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.mobile-nav nav > .mobile-nav-group:first-child { margin-top: 0; }

/* Set by script.js when the nav's natural width exceeds the space left
   between the lockup and the actions. Without it the nav box shrinks
   below its content and the nowrap links paint over the lockup. */
.site-header.nav-collapsed .nav-shell,
.site-header.nav-collapsed .lang-switch,
.site-header.nav-collapsed .header-actions .btn { display: none; }

/* Member portal entry. While the portal URL is unknown the button is
   rendered inert and marked pending (see MAAKOM_URL in build.py). */
.btn-login { background: var(--paper); color: var(--navy); border-color: #D3DEEC; }
.btn-login:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-login[data-portal-pending] { opacity: .55; cursor: not-allowed; }
.btn-login[data-portal-pending]:hover { transform: none; box-shadow: none; border-color: #D3DEEC; }
.mobile-login-btn {
  margin-top: 18px; border: 1.5px solid #D3DEEC !important; border-radius: var(--r-pill) !important;
  text-align: center; padding: 15px !important; color: var(--navy) !important;
}
.mobile-login-btn[data-portal-pending] { opacity: .55; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-actions .btn { padding: 12px 16px; font-size: 14.5px; white-space: nowrap; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 13px; border-radius: var(--r-pill);
  background: var(--tint-navy); border: 1px solid transparent;
  color: var(--navy); font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.lang-switch::before {
  content: ""; width: 15px; height: 15px; flex: none;
  background: currentColor;
  -webkit-mask: var(--globe) center/contain no-repeat;
  mask: var(--globe) center/contain no-repeat;
}
.lang-switch:hover { background: var(--wash-navy); border-color: #CFE0F5; }

/* --- Header, second pass: larger and clearer -----------------
   The board found the bar small and the serif hard to read at that
   size. Links are now 16px semibold in the interface face, and each
   one is a full-height block: on hover, and on the current page, it
   takes a pale blue fill and a navy rule along the bottom edge of
   the bar. The About menu hangs from that same edge. */
.site-header, .mobile-nav { font-family: var(--ui); }
html[lang="ar"] .site-header, html[lang="ar"] .mobile-nav { font-family: var(--ui-ar); }
.site-header { border-bottom-color: var(--line); }
.site-header .page-wrap { max-width: 1280px; }
.header-inner { min-height: 92px; padding: 0; gap: 16px; align-items: stretch; }
.site-header .lockup, .header-actions { align-self: center; }
.site-header .lockup-seal { width: 58px; height: 58px; }
.site-header .lockup-text { max-width: 200px; }
.site-header .lockup-en { font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.site-header .lockup-ar { font-family: var(--ui-ar); font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--ink); }

.nav-shell { align-items: stretch; }
.nav-group { display: flex; }
.nav-shell > a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px 0; border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--slate-700);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.nav-shell > a:hover, .nav-trigger:hover, .nav-group.is-open .nav-trigger,
.nav-shell > a[aria-current="page"] {
  background: var(--wash-navy); color: var(--navy); border-bottom-color: var(--navy);
}

.nav-menu {
  top: 100%; margin-top: -3px; min-width: 300px; padding: 10px;
  border-radius: 0 0 var(--r-md) var(--r-md); border-top: 3px solid var(--navy);
  box-shadow: 0 18px 44px rgba(11,36,68,.14);
}
.nav-menu a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-sm);
  font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.nav-menu a small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
.nav-mi {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; background: var(--wash-navy); color: var(--navy);
}
.nav-mi svg { width: 17px; height: 17px; }
.nav-menu a:hover { background: var(--tint-navy); color: var(--navy); }

.header-actions { gap: 10px; }
.lang-switch { padding: 9px 12px; background: transparent; font-size: 15px; }
.lang-switch::before { width: 16px; height: 16px; }
.header-actions .btn-primary { padding: 13px 20px; font-size: 15px; font-weight: 700; }
/* Member login is an icon here so the larger links have room. */
.header-actions .btn-login.is-icon {
  width: 44px; height: 44px; padding: 0; border-radius: 50%; border-width: 1.5px; border-color: var(--line);
}
.btn-login.is-icon svg { width: 18px; height: 18px; flex: none; }

.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--tint-navy); border: 0; cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; width: 100%; border-radius: 2px; background: var(--ink); }
.site-header.nav-collapsed .menu-toggle { display: flex; }

/* Mobile navigation */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; background: var(--paper);
  display: flex; flex-direction: column; padding: 22px; overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .32s cubic-bezier(.4,0,.2,1), visibility 0s linear .32s;
}
[dir="rtl"] .mobile-nav { transform: translateX(-100%); }
.mobile-nav.is-open, [dir="rtl"] .mobile-nav.is-open {
  transform: none; visibility: visible;
  transition: transform .32s cubic-bezier(.4,0,.2,1), visibility 0s linear 0s;
}
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.mobile-nav-head svg { width: 52px; height: 52px; }
.mobile-nav-close {
  width: 44px; height: 44px; border-radius: var(--r-pill);
  background: var(--tint-navy); border: 0; font-size: 26px; line-height: 1;
  color: var(--ink); cursor: pointer;
}
.mobile-nav nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav nav a {
  padding: 15px 18px; border-radius: var(--r-md);
  font-size: 17px; font-weight: 600; color: var(--ink);
  transition: background-color .18s ease;
}
.mobile-nav nav a:hover { background: var(--tint-navy); }
.mobile-join-btn {
  margin-top: 18px; background: var(--navy); color: #fff !important;
  text-align: center; border-radius: var(--r-pill) !important; padding: 16px !important;
}
.mobile-lang {
  margin-top: 10px; padding: 15px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--tint-green);
  font-size: 16px; font-weight: 600; color: var(--navy); cursor: pointer;
}

/* ============================================================
   HERO — identity beside a sliding news panel.
   Slides are moved with a transform (mirrored in RTL), so the panel
   does not depend on scroll-snap or smooth-scroll support.
   ============================================================ */
.hero {
  position: relative; overflow: hidden; padding: 64px 0 56px;
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, var(--blue-100) 0%, rgba(227,236,248,0) 70%),
    radial-gradient(ellipse 40% 50% at 0% 100%, var(--green-100) 0%, rgba(227,242,221,0) 70%),
    linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }

.hero-id { display: flex; flex-direction: column; align-items: flex-start; }
.hero-seal {
  width: 216px; height: 216px; margin-bottom: 26px;
  filter: drop-shadow(0 18px 36px rgba(11,36,68,.18));
}
.hero-en {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; color: var(--ink);
  letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 8px;
}
.hero-abbr { color: var(--navy); font-weight: 700; white-space: nowrap; }
.hero-ar {
  font-family: var(--arabic); direction: rtl;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 600; color: var(--navy);
  line-height: 1.6; margin-bottom: 12px;
}
html[lang="ar"] .hero-ar { font-size: clamp(1.7rem, 3.1vw, 2.4rem); font-weight: 700; color: var(--ink); margin-bottom: 6px; }
html[lang="ar"] .hero-en { font-size: clamp(0.95rem, 1.5vw, 1.1rem); font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.hero-est {
  margin: 2px 0 14px; padding: 7px 15px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--navy);
}
.hero-tag { font-size: 1.05rem; color: var(--body); line-height: 1.6; max-width: 38ch; }
.hero-ctas { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* Slider ------------------------------------------------------ */
.hero-slider {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.hs-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 14px; padding-inline: 24px 16px;
}
.hs-label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.hs-label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--green); box-shadow: 0 0 0 4px var(--wash-green);
}
.hs-nav { display: flex; align-items: center; gap: 8px; }
.hs-count { margin-inline-end: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.hs-arrow {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  transition: background-color .18s ease, border-color .18s ease;
}
.hs-arrow:hover { background: var(--tint-green); border-color: var(--green-200); }
.hs-arrow::before {
  content: ""; width: 8px; height: 8px;
  border-top: 2.2px solid currentColor; border-left: 2.2px solid currentColor;
}
.hs-prev::before { transform: rotate(-45deg); margin-left: 3px; }
.hs-next::before { transform: rotate(135deg); margin-right: 3px; }
[dir="rtl"] .hs-prev::before { transform: rotate(135deg); margin: 0 3px 0 0; }
[dir="rtl"] .hs-next::before { transform: rotate(-45deg); margin: 0 0 0 3px; }

/* The track: every slide sits side by side and the row travels. */
.hs-viewport { overflow: hidden; }
.hs-slides {
  display: flex; transform: translateX(calc(var(--i, 0) * -100%));
  transition: transform .7s cubic-bezier(.22,.7,.2,1);
}
[dir="rtl"] .hs-slides { transform: translateX(calc(var(--i, 0) * 100%)); }
.hs-slide { flex: 0 0 100%; min-width: 0; }
.hs-media {
  position: relative; display: block; margin-inline: 14px; aspect-ratio: 16 / 7.6;
  border-radius: var(--r-lg); overflow: hidden; background: var(--wash-green);
}
.hs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-kind {
  position: absolute; top: 14px; inset-inline-start: 14px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.95); color: var(--green-800); font-size: 12.5px; font-weight: 700;
}
.hs-body { padding: 18px 24px 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.hs-when { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.hs-title {
  color: var(--ink); font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.28; letter-spacing: -0.01em;
  min-height: 2.56em;   /* two lines, so the card keeps one height as slides change */
}
.hs-title a { color: inherit; }
.hs-title a:hover { color: var(--green-800); }
.hs-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--green-700); }
.hs-cta::after { content: "→"; transition: transform .18s ease; }
[dir="rtl"] .hs-cta::after { content: "←"; }
.hs-cta:hover::after { transform: translateX(3px); }
[dir="rtl"] .hs-cta:hover::after { transform: translateX(-3px); }

/* One bar per slide; the active one fills while its slide is showing. */
.hs-dots { display: flex; gap: 6px; padding: 16px 24px 20px; }
.hs-dot {
  flex: 1; height: 4px; padding: 0; border: 0; border-radius: 4px; overflow: hidden;
  background: var(--line); cursor: pointer;
}
.hs-dot:hover { background: var(--grey-300); }
.hs-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); }
.hs-dot.is-done .hs-fill, .hs-dot.is-active .hs-fill { width: 100%; }
.hero-slider.is-auto .hs-dot.is-active .hs-fill { animation: hs-fill var(--hs-ms, 6000ms) linear both; }
.hero-slider.is-paused .hs-dot.is-active .hs-fill { animation-play-state: paused; }
@keyframes hs-fill { from { width: 0; } to { width: 100%; } }

/* Four main sections — colour tiles */
.quads { padding: 48px 0 24px; }
.quad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.quad {
  --q: var(--navy); --q-deep: var(--navy-900);
  position: relative; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; gap: 10px;
  padding: 30px 26px 26px; border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--q) 0%, var(--q-deep) 100%);
  box-shadow: var(--shadow-md);
  transition: transform .22s ease, box-shadow .22s ease;
}
.quad::after {   /* ghost of the icon in the corner for depth */
  content: ""; position: absolute; inset-inline-end: 14px; bottom: 12px;
  width: 104px; height: 104px; opacity: .10; background: #fff; pointer-events: none;
  -webkit-mask: var(--qi) center/contain no-repeat; mask: var(--qi) center/contain no-repeat;
}
.quad:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.quad > * { position: relative; z-index: 1; }
.quad-icon {
  width: 50px; height: 50px; border-radius: var(--r-md); margin-bottom: 6px;
  display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}
.quad-icon::before {
  content: ""; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: var(--qi) center/contain no-repeat; mask: var(--qi) center/contain no-repeat;
}
.quad strong { font-size: 17.5px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.quad-desc { font-size: 14.5px; color: rgba(255,255,255,.8); line-height: 1.58; flex: 1; }
.quad-cta { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: 14.5px; }
.quad-cta::after { content: "→"; transition: transform .18s ease; }
[dir="rtl"] .quad-cta::after { content: "←"; }
.quad:hover .quad-cta::after { transform: translateX(3px); }
[dir="rtl"] .quad:hover .quad-cta::after { transform: translateX(-3px); }

.quad-forum   { --q: var(--navy-600); --q-deep: var(--navy-900);  --qi: var(--ic-calendar); }
.quad-members { --q: var(--green-600); --q-deep: var(--green-800); --qi: var(--ic-members); }
.quad-edu     { --q: var(--teal-500);  --q-deep: var(--teal-900);  --qi: var(--ic-book); }
.quad-cmt     { --q: var(--slate-500); --q-deep: var(--slate-900); --qi: var(--ic-guide); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 112px 0; }
.section-tint { background: var(--tint-navy); }
.section-green { background: var(--tint-green); }

/* About ----------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 76px; align-items: center; }
.about-plate {
  border-radius: var(--r-xl); padding: 52px 40px; text-align: center;
  background: linear-gradient(165deg, var(--paper) 0%, var(--tint-navy) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.about-plate svg {
  width: 168px; height: 168px; margin: 0 auto 28px;
  filter: drop-shadow(0 10px 24px rgba(11,36,68,.13));
}
.plate-ar { font-family: var(--arabic); direction: rtl; font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.6; margin-bottom: 8px; }
.plate-en { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.35; letter-spacing: -0.01em; }
.plate-years { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.plate-years div {
  flex: 1; max-width: 130px; padding: 14px 10px; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line);
}
.plate-years b { display: block; font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.plate-years span { font-size: 12.5px; font-weight: 500; color: var(--muted); }

.about-body h2 { font-size: clamp(2rem, 3.5vw, 2.85rem); margin-bottom: 24px; }
.about-body > p { font-size: 1.0625rem; }
.about-body > p + p { margin-top: 18px; }
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 38px; }
.pillar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: var(--r-md);
  background: var(--tint-navy); border: 1px solid transparent;
  font-size: 15.5px; font-weight: 600; color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease;
}
.pillar:hover { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow-sm); }
.pillar-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }

/* Numbers — a contained panel rather than a full-bleed band. Of the four
   large panels (numbers, goals, forum announcement, footer) two are
   outlined so a page is not a stack of solid navy blocks: this one and
   the forum announcement. */
.numbers-section { padding: 0 0 112px; }
.numbers-panel {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: 64px 56px;
  background: var(--paper); border: 1px solid var(--blue-200); box-shadow: var(--shadow-sm);
}
.numbers-panel .section-head { position: relative; z-index: 1; margin-bottom: 44px; }
.numbers-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.num-card {
  padding: 24px 20px; border-radius: var(--r-md);
  background: var(--tint-navy); border: 1px solid var(--wash-navy);
  transition: background-color .22s ease, transform .22s ease;
}
.num-card:hover { background: var(--wash-navy); transform: translateY(-3px); }
.num-val { font-size: 2.5rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; line-height: 1; }
.num-val sup { font-size: 1.1rem; color: var(--green); top: -0.75em; }
.num-label { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--body); line-height: 1.45; }
/* On the home page the panel follows the four tiles directly. */
.numbers-home { padding: 44px 0 100px; }

/* Vision / Mission / Goals -----------------------------------
   Vision and Mission are a matched pair of cards; the goals sit in
   their own dark band underneath. Putting a five-item list in a
   third card of the same row could never balance against two short
   paragraphs.
   ----------------------------------------------------------- */
.vmg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.vmg-card {
  position: relative; overflow: hidden;
  padding: 40px 36px; border-radius: var(--r-xl);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.vmg-card::after {
  content: ""; position: absolute; inset-inline-end: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%; pointer-events: none;
  background: var(--wash-navy); opacity: .55;
}
.vmg-card.is-mission::after { background: var(--wash-green); }
.vmg-card > * { position: relative; z-index: 1; }
.vmg-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.vmg-icon {
  width: 54px; height: 54px; border-radius: var(--r-md); margin-bottom: 22px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  box-shadow: 0 6px 18px rgba(27,76,147,.28);
}
.vmg-card.is-mission .vmg-icon {
  background: var(--green); box-shadow: 0 6px 18px rgba(78,158,55,.28);
}
.vmg-icon::before {
  content: ""; width: 26px; height: 26px; background: currentColor;
  -webkit-mask: var(--vi) center/contain no-repeat;
  mask: var(--vi) center/contain no-repeat;
}
.vmg-card.is-vision  { --vi: var(--ic-eye); }
.vmg-card.is-mission { --vi: var(--ic-target); }

.vmg-tag {
  align-self: flex-start; padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--wash-navy); color: var(--navy);
  font-size: 13px; font-weight: 600; margin-bottom: 14px;
}
.vmg-card.is-mission .vmg-tag { background: var(--wash-green); color: var(--green-700); }
.vmg-tag.is-onDark { background: rgba(255,255,255,.12); color: #B9E5A8; }
.vmg-card h3 { font-size: 1.45rem; margin-bottom: 14px; }
.vmg-card p { font-size: 16px; line-height: 1.7; }

/* Goals band */
.goals-band {
  position: relative; overflow: hidden; margin-top: 24px;
  padding: 44px 46px; border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--navy-800) 0%, var(--navy-900) 72%);
  box-shadow: var(--shadow-lg);
}
.goals-head { position: relative; z-index: 1; margin-bottom: 30px; }
.goals-head h3 { color: #fff; font-size: 1.45rem; }

.goals-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  counter-reset: goal;
}
.goal {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 18px; border-top: 2px solid rgba(255,255,255,.16);
  font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.78);
  transition: border-color .22s ease, color .22s ease;
}
.goal:hover { border-top-color: var(--green); color: #fff; }
.goal-num {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--green-600);
}

@media (max-width: 1080px) {
  .goals-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .vmg-pair { grid-template-columns: 1fr; }
  .goals-grid { grid-template-columns: repeat(2, 1fr); }
  .goals-band { padding: 34px 28px; }
}
@media (max-width: 560px) {
  .goals-grid { grid-template-columns: 1fr; gap: 16px; }
  .vmg-card { padding: 32px 26px; }
}

/* Board / member cards --------------------------------------
   The chair sits on a wide feature card; the rest share an even
   three-up grid. Biographies are levelled to a similar length so
   the three cards end up the same height.
   ----------------------------------------------------------- */
.member-feature-wrap { margin-bottom: 24px; }
.member-feature {
  display: grid; grid-template-columns: 330px 1fr;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--green-900);
  box-shadow: var(--shadow-md); position: relative;
}
.member-feature-photo { position: relative; background: var(--green-900); }
.member-feature-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.member-feature-body {
  position: relative; z-index: 1;
  padding: 40px 42px; display: flex; flex-direction: column; justify-content: center;
}
.member-role.is-chair {
  align-self: flex-start; background: rgba(255,255,255,.14); color: #fff;
  padding: 6px 15px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; margin-bottom: 16px;
}
.member-feature-body h3 { font-size: 1.75rem; color: #fff; margin-bottom: 8px; }
.member-feature-spec {
  font-size: 14.5px; font-weight: 600; color: #9FD88B; margin-bottom: 16px;
}
.member-feature-bio {
  font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.88);
  max-width: 62ch; margin-bottom: 22px;
}
.member-creds { display: flex; flex-wrap: wrap; gap: 8px; }
.member-creds li {
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.86); font-size: 12.5px; font-weight: 500;
}

.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.member-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.member-photo { position: relative; aspect-ratio: 4 / 5; background: var(--wash-navy); overflow: hidden; }
.member-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .5s cubic-bezier(.2,.6,.3,1);
}
.member-card:hover .member-photo img { transform: scale(1.04); }
.member-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.member-body h3 { font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -0.01em; }
/* Reserve two lines so a specialty that wraps does not push that
   card's bio divider out of line with its neighbours. */
.member-spec {
  font-size: 13.5px; font-weight: 600; color: var(--navy);
  line-height: 1.45; min-height: calc(2 * 1.45em);
}
.member-org { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.member-bio {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-size: 14px; line-height: 1.62; color: var(--body);
}
.member-note { margin-top: 26px; font-size: 13.5px; color: var(--muted); font-style: italic; }

@media (max-width: 940px) {
  .member-feature { grid-template-columns: 1fr; }
  /* Stacked, a 16:10 crop got very tall on narrow screens and pushed
     the whole card past a screenful, so cap it. */
  .member-feature-photo { aspect-ratio: 16 / 10; max-height: 360px; }
  .member-feature-photo img { object-position: center 20%; }
  .member-feature-body { padding: 30px 26px; }
  .member-feature-body h3 { font-size: 1.5rem; }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Membership tiers -------------------------------------------
   Three even cards: same structure, same three points, so the
   heights match. Honorary is the distinguished one and, being
   granted by the board rather than applied for, ends in a static
   note instead of a button.
   ----------------------------------------------------------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier-card {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 40px 34px 34px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.tier-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.tier-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.tier-for {
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--wash-navy); color: var(--navy);
  font-size: 12.5px; font-weight: 600;
}
.tier-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.tier-lead {
  font-size: 15px; line-height: 1.6; color: var(--body);
  padding-bottom: 22px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  min-height: calc(2 * 1.6em + 44px);
}
.tier-list { flex: 1; margin-bottom: 28px; }
.tier-list li {
  position: relative; padding-inline-start: 28px; font-size: 14.5px;
  line-height: 1.6; margin-bottom: 14px;
}
.tier-list li:last-child { margin-bottom: 0; }
.tier-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--wash-green) var(--check) center/10px no-repeat;
}

.tier-btn {
  display: block; text-align: center; padding: 13px;
  border-radius: var(--r-pill); font-size: 15px; font-weight: 600;
  border: 1.5px solid #D3DEEC; color: var(--navy);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
a.tier-btn:hover { border-color: var(--navy); background: var(--tint-navy); }
.tier-btn.is-static { border-style: dashed; color: var(--muted); cursor: default; }

/* Honorary — the distinguished card */
.tier-card.is-honorary {
  background: linear-gradient(155deg, var(--navy-800) 0%, var(--navy-900) 75%);
  border-color: transparent; box-shadow: var(--shadow-lg);
}
.tier-card.is-honorary > * { position: relative; z-index: 1; }
.tier-badge {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.12) var(--star-icon) center/17px no-repeat;
  border: 1px solid rgba(255,255,255,.2);
}
.tier-card.is-honorary .tier-for { background: var(--green); color: #fff; }
.tier-card.is-honorary h3 { color: #fff; }
.tier-card.is-honorary .tier-lead { color: rgba(255,255,255,.76); border-bottom-color: rgba(255,255,255,.16); }
.tier-card.is-honorary .tier-list li { color: rgba(255,255,255,.78); }
.tier-card.is-honorary .tier-list li::before { background-color: rgba(255,255,255,.16); }
.tier-card.is-honorary .tier-btn.is-static {
  border-color: rgba(255,255,255,.28); color: rgba(255,255,255,.72);
}

.tier-source { margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.tier-source a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* News ------------------------------------------------------ */
.news-hdr { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 52px; }
.news-hdr .section-head { margin-bottom: 0; }
.view-all {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 12px 22px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--navy);
  transition: box-shadow .2s ease, transform .2s ease;
}
.view-all:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.news-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start; }
.news-lead {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.news-lead:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-thumb {
  height: 268px;
  background: radial-gradient(circle at 50% 40%, var(--navy-600) 0%, var(--navy-900) 72%);
  display: flex; align-items: center; justify-content: center;
}
.news-thumb svg { width: 132px; height: 132px; filter: drop-shadow(0 10px 26px rgba(0,0,0,.3)); }
.news-lead .news-body { padding: 30px 32px 30px; }
.news-tag {
  display: inline-block; padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--wash-green); color: var(--green-700);
  font-size: 12.5px; font-weight: 600; margin-bottom: 16px;
}
.news-lead h3 { font-size: 1.5rem; line-height: 1.24; margin-bottom: 14px; }
.news-lead p { font-size: 16px; margin-bottom: 22px; }
.news-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.news-foot time { font-size: 14.5px; color: var(--muted); }
.read-link { font-size: 15px; font-weight: 600; color: var(--navy); }

.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
  display: block; padding: 24px 26px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.news-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-item time { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); margin-bottom: 9px; }
.news-item h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 8px; transition: color .18s ease; }
.news-item:hover h3 { color: var(--navy); }
.news-item p { font-size: 15px; }

/* Partners -------------------------------------------------- */
.partners-band + .partners-band { margin-top: 40px; }
.partners-label { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.partners-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partners-row-sm { grid-template-columns: repeat(5, 1fr); }
.partner-tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  min-height: 124px; padding: 24px; text-align: center;
  font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.partner-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.partner-tile-sm { min-height: 96px; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.partners-row-soc .partner-tile { flex-direction: column; gap: 8px; min-height: 136px; }
.partner-abbr {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; color: var(--navy);
}
.partner-name { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.45; max-width: 26ch; }

.partners-cta {
  margin-top: 56px; padding: 48px 52px; border-radius: var(--r-xl);
  background: linear-gradient(130deg, var(--tint-green) 0%, var(--wash-navy) 100%);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.partners-cta-text h3 { font-size: 1.5rem; margin-bottom: 8px; }
.partners-cta-text p { font-size: 16px; }

/* ============================================================
   GALLERY — filterable grid, and a full-screen lightbox
   carousel opened from any tile
   ============================================================ */
.gal-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.gal-filter {
  padding: 10px 20px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 600; color: var(--body); cursor: pointer;
  transition: background-color .2s ease, color .2s ease,
              border-color .2s ease, box-shadow .2s ease;
}
.gal-filter:hover { border-color: #BFD0E4; color: var(--navy); }
.gal-filter.is-active {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 4px 14px rgba(27,76,147,.22);
}

/* Horizontal carousel: a scroll-snap track rather than a grid, so it
   drags on touch, snaps per slide, and stays keyboard scrollable. */
.gal-viewport { position: relative; }
.gal-viewport:hover .gal-arrow { opacity: 1; }
.gal-track {
  display: flex; gap: 18px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-track:focus-visible { outline: 2.5px solid var(--green); outline-offset: 4px; border-radius: var(--r-lg); }

.gal-item {
  position: relative; margin: 0; overflow: hidden; flex: 0 0 auto;
  width: clamp(300px, 34vw, 460px); aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  border-radius: var(--r-lg); background: var(--wash-navy);
  box-shadow: var(--shadow-sm);
  transition: opacity .34s ease, transform .34s ease, box-shadow .28s ease;
}
.gal-item:hover { box-shadow: var(--shadow-lg); }

/* Filtered-out slides fade, then leave the track. */
.gal-item.is-filtered { opacity: 0; transform: scale(.94); pointer-events: none; }
.gal-item.is-gone { display: none; }

.gal-open {
  display: block; width: 100%; height: 100%; padding: 0;
  border: 0; background: none; cursor: zoom-in; position: relative;
}
.gal-open img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.6,.3,1);
}
.gal-item:hover .gal-open img { transform: scale(1.06); }
.gal-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,36,68,0) 42%, rgba(11,36,68,.72) 100%);
  opacity: .82; transition: opacity .28s ease;
}
.gal-item:hover .gal-veil { opacity: 1; }

.gal-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 18px 20px;
  pointer-events: none; display: flex; flex-direction: column; gap: 5px;
  transform: translateY(5px);
  transition: transform .3s ease;
}
.gal-item:hover figcaption { transform: none; }
.gal-cat {
  align-self: flex-start; padding: 4px 11px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.16); backdrop-filter: blur(4px);
  color: #C9EBBB; font-size: 11.5px; font-weight: 600;
}
.gal-cap { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }

/* Arrows sit outside the slides on wide screens, over them when tight. */
.gal-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); color: var(--navy);
  transition: background-color .18s ease, transform .18s ease, opacity .2s ease;
}
.gal-arrow:hover { background: var(--tint-navy); transform: translateY(-50%) scale(1.06); }
.gal-arrow[disabled] { opacity: 0; pointer-events: none; }
.gal-prev { inset-inline-start: -22px; }
.gal-next { inset-inline-end: -22px; }
.gal-arrow::before {
  content: ""; width: 11px; height: 11px;
  /* Physical borders on purpose: border-inline-start becomes
     border-right under RTL, which turned this chevron into a
     downward "v" in Arabic. */
  border-top: 2.4px solid currentColor; border-left: 2.4px solid currentColor;
}
.gal-prev::before { transform: rotate(-45deg);  margin-left: 4px; }
.gal-next::before { transform: rotate(135deg);  margin-right: 4px; }
[dir="rtl"] .gal-prev::before { transform: rotate(135deg); margin: 0 4px 0 0; }
[dir="rtl"] .gal-next::before { transform: rotate(-45deg); margin: 0 0 0 4px; }

/* Scroll position indicator */
.gal-progress {
  height: 3px; border-radius: 3px; background: var(--line);
  margin-top: 6px; overflow: hidden;
}
.gal-progress span {
  display: block; height: 100%; width: 30%; border-radius: 3px;
  background: var(--navy); transition: transform .1s linear, width .2s ease;
}

.gal-empty { text-align: center; padding: 48px 0; color: var(--muted); font-size: 16px; }

/* Lightbox --------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6,18,36,.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 5vh 6vw;
  opacity: 0; transition: opacity .28s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lb-stage {
  margin: 0; max-width: 100%; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.lb-stage img {
  max-width: 100%; max-height: 76vh; width: auto; height: auto;
  border-radius: var(--r-md); box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transition: opacity .22s ease;
}
.lightbox.is-swapping .lb-stage img { opacity: 0; }
.lb-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.lb-cat {
  padding: 5px 13px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.13); color: #C9EBBB; font-size: 12.5px; font-weight: 600;
}
.lb-cap { color: #fff; font-size: 16px; font-weight: 600; letter-spacing: -0.005em; }
.lb-count { color: rgba(255,255,255,.55); font-size: 14px; }

.lb-btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  color: #fff; transition: background-color .2s ease, transform .2s ease;
}
.lb-btn:hover { background: rgba(255,255,255,.2); transform: scale(1.06); }
.lb-close { top: 22px; inset-inline-end: 22px; font-size: 26px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; margin-top: -26px; }
.lb-prev { inset-inline-start: 20px; }
.lb-next { inset-inline-end: 20px; }
.lb-prev::before, .lb-next::before {
  content: ""; width: 13px; height: 13px;
  border-top: 2.5px solid currentColor; border-inline-start: 2.5px solid currentColor;
}
.lb-prev::before { transform: rotate(-45deg); margin-inline-start: 5px; }
.lb-next::before { transform: rotate(135deg); margin-inline-end: 5px; }

@media (max-width: 1080px) {
  .gal-arrow { width: 42px; height: 42px; }
  .gal-prev { inset-inline-start: 4px; }
  .gal-next { inset-inline-end: 4px; }
}
@media (max-width: 640px) {
  .gal-track { gap: 12px; }
  .gal-item { width: min(80vw, 300px); }
  .gal-filters { gap: 8px; }
  .gal-filter { padding: 9px 15px; font-size: 13.5px; }
  .lightbox { padding: 4vh 4vw; }
  .lb-btn { width: 44px; height: 44px; }
  .lb-prev { inset-inline-start: 8px; }
  .lb-next { inset-inline-end: 8px; }
  .lb-close { top: 12px; inset-inline-end: 12px; }
  .lb-stage img { max-height: 64vh; }
}

/* ============================================================
   HELP ASSISTANT — floating button and panel
   Placeholder implementation; see chatbot.js
   ============================================================ */
.chat-fab {
  position: fixed; inset-inline-end: 26px; bottom: 26px; z-index: 240;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 18px; border: 0; border-radius: var(--r-pill);
  background: linear-gradient(140deg, var(--navy-600) 0%, var(--navy) 55%, var(--navy-800) 100%);
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; box-shadow: 0 10px 30px rgba(11,36,68,.28);
  transition: transform .22s ease, box-shadow .22s ease;
}
.chat-fab:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(11,36,68,.34); }
.chat-fab-icon {
  width: 21px; height: 21px; flex: none; background: currentColor;
  -webkit-mask: var(--chat-icon) center/contain no-repeat;
  mask: var(--chat-icon) center/contain no-repeat;
}
/* A single unobtrusive ping shortly after load, then it stays still. */
.chat-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--green-600); opacity: 0; pointer-events: none;
  animation: chatPing 2.6s ease-out 1.2s 2;
}
@keyframes chatPing {
  0%   { transform: scale(1);    opacity: .6; }
  100% { transform: scale(1.2);  opacity: 0; }
}
.chat-fab.is-active .chat-fab-icon {
  -webkit-mask-image: var(--close-icon); mask-image: var(--close-icon);
}
.chat-fab.is-active::after { animation: none; }

.chat-panel {
  position: fixed; inset-inline-end: 26px; bottom: 98px; z-index: 241;
  width: min(384px, calc(100vw - 36px)); max-height: min(586px, calc(100vh - 140px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: 0 24px 64px rgba(11,36,68,.24);
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .24s ease, transform .24s cubic-bezier(.2,.7,.3,1);
}
.chat-panel[hidden] { display: none; }
.chat-panel.is-open { opacity: 1; transform: none; }

.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-900));
  color: #fff; flex: none;
}
.chat-avatar {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: rgba(255,255,255,.12); padding: 4px;
}
.chat-avatar svg { width: 100%; height: 100%; }
.chat-id { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.chat-id strong { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.chat-id span { font-size: 12.5px; color: rgba(255,255,255,.62); line-height: 1.35; }
.chat-close {
  width: 34px; height: 34px; flex: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 20px; line-height: 1;
  transition: background-color .18s ease;
}
.chat-close:hover { background: rgba(255,255,255,.24); }

.chat-log {
  flex: 1; overflow-y: auto; padding: 18px; display: flex;
  flex-direction: column; gap: 12px; background: var(--tint-navy);
  overscroll-behavior: contain;
}
.chat-msg { display: flex; }
.chat-msg.chat-user { justify-content: flex-end; }
.chat-bubble {
  max-width: 84%; padding: 12px 15px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.6;
}
.chat-bot .chat-bubble {
  background: var(--paper); color: var(--body);
  border: 1px solid var(--line); border-start-start-radius: 5px;
}
.chat-user .chat-bubble {
  background: var(--navy); color: #fff; border-start-end-radius: 5px;
}
.chat-typing .chat-bubble { display: flex; gap: 5px; padding: 15px; }
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #B4C2D6;
  animation: chatDot 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .16s; }
.chat-typing span:nth-child(3) { animation-delay: .32s; }
@keyframes chatDot {
  0%, 60%, 100% { transform: translateY(0);    opacity: .45; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

.chat-chips {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px;
  background: var(--tint-navy); flex: none;
}
.chat-chips[hidden] { display: none; }
.chat-chip {
  padding: 8px 14px; border-radius: var(--r-pill); cursor: pointer;
  background: var(--paper); border: 1px solid #CFDCEC;
  color: var(--navy); font-size: 13.5px; font-weight: 600;
  transition: background-color .18s ease, border-color .18s ease;
}
.chat-chip:hover { background: var(--wash-navy); border-color: var(--navy-600); }

.chat-form {
  display: flex; align-items: center; gap: 8px; padding: 12px;
  border-top: 1px solid var(--line); background: var(--paper); flex: none;
}
.chat-input {
  flex: 1; min-width: 0; padding: 12px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--tint-navy);
  font-family: inherit; font-size: 14.5px; color: var(--ink);
}
.chat-input::placeholder { color: var(--muted); }
.chat-input:focus { outline: none; border-color: var(--navy-600); background: var(--paper); }
.chat-send {
  width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%;
  background: var(--navy); cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.chat-send::before {
  content: ""; display: block; width: 18px; height: 18px; margin: 0 auto;
  background: #fff;
  -webkit-mask: var(--send-icon) center/contain no-repeat;
  mask: var(--send-icon) center/contain no-repeat;
}
[dir="rtl"] .chat-send::before { transform: scaleX(-1); }
.chat-send:hover { background: var(--navy-800); transform: scale(1.06); }

.chat-note {
  padding: 0 18px 14px; font-size: 11.5px; line-height: 1.5;
  color: var(--muted); text-align: center; background: var(--paper); flex: none;
}

@media (max-width: 640px) {
  .chat-fab { inset-inline-end: 16px; bottom: 16px; padding: 13px 18px 13px 15px; font-size: 14.5px; }
  .chat-panel {
    inset-inline: 12px; bottom: 84px; width: auto;
    max-height: min(70vh, calc(100vh - 120px));
  }
}
@media (max-height: 560px) {
  .chat-panel { max-height: calc(100vh - 100px); bottom: 78px; }
}

/* ============================================================
   AWARENESS — public health tips
   ============================================================ */
/* ============================================================
   COOPERATION AGREEMENTS — inside Partners
   ============================================================ */
.coop {
  margin-top: 56px; padding: 44px 46px; border-radius: var(--r-xl);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.coop-head { margin-bottom: 28px; }
.coop-head h3 { font-size: 1.5rem; margin-bottom: 8px; }
.coop-head p { font-size: 15.5px; }
.coop-list { display: flex; flex-direction: column; }
.coop-item {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--line-soft);
}
.coop-item:last-child { border-bottom: 0; }
.coop-icon {
  flex: none; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--wash-navy) var(--doc-icon) center/19px no-repeat;
}
.coop-body { flex: 1; min-width: 0; }
.coop-body h4 { font-size: 1.0625rem; margin-bottom: 4px; }
.coop-body p { font-size: 14.5px; line-height: 1.55; }
.coop-meta {
  flex: none; padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--tint-green); color: var(--green-700);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.coop-note { margin-top: 22px; font-size: 13px; color: var(--muted); font-style: italic; }

@media (max-width: 1080px) {
  .awr-layout { grid-template-columns: 1fr; }
  .awr-feature { padding: 36px 32px; }
}
@media (max-width: 640px) {
  .awr-feature { padding: 30px 24px; border-radius: var(--r-lg); }
  .awr-feature h3 { font-size: 1.4rem; }
  .awr-tip { padding: 20px; gap: 14px; }
  .coop { padding: 30px 24px; border-radius: var(--r-lg); }
  .coop-item { flex-wrap: wrap; gap: 12px; }
  .coop-meta { order: 3; }
}

/* ============================================================
   SUB-PAGE HERO + REGULATIONS LIST
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden; padding: 64px 0 56px;
  background:
    radial-gradient(ellipse 70% 70% at 50% -20%, var(--wash-navy) 0%, rgba(231,239,250,0) 70%),
    linear-gradient(180deg, #F7FBFF 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .page-wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 16px; }
.page-hero-sub { max-width: 640px; font-size: 1.125rem; line-height: 1.65; }

.crumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted); margin-bottom: 18px;
}
.crumb a { color: var(--navy); font-weight: 600; }
.crumb a:hover { text-decoration: underline; }

.reg-list { display: flex; flex-direction: column; gap: 16px; }
.reg-item {
  display: flex; align-items: center; gap: 22px;
  padding: 26px 28px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.reg-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.reg-icon {
  flex: none; width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--wash-navy) var(--doc-icon) center/24px no-repeat;
}
.reg-body { flex: 1; min-width: 0; }
.reg-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.reg-body p { font-size: 15px; line-height: 1.6; margin-bottom: 8px; }
.reg-meta {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--tint-navy); color: var(--muted);
  font-size: 12.5px; font-weight: 600;
}
.reg-actions { flex: none; display: flex; gap: 10px; }
.reg-actions .btn { padding: 11px 20px; font-size: 14.5px; }

.reg-note {
  margin-top: 30px; padding: 16px 22px; border-radius: var(--r-md);
  background: var(--tint-green); border: 1px solid var(--line);
  border-inline-start: 3px solid var(--green);
  font-size: 14.5px; color: var(--body); line-height: 1.6;
}
.reg-note code {
  padding: 2px 7px; border-radius: 5px; background: var(--paper);
  border: 1px solid var(--line); font-size: 13px;
}

/* Page-hero jump links */
.page-jumps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.page-jump {
  padding: 9px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600;
  background: var(--paper); border: 1px solid var(--line); color: var(--navy);
  box-shadow: var(--shadow-sm); transition: border-color .18s ease, transform .18s ease;
}
.page-jump:hover { border-color: var(--navy); transform: translateY(-2px); }

/* ============================================================
   COMMITTEES
   ============================================================ */
.cmt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cmt-card {
  --c: var(--navy); --c-wash: var(--wash-navy);
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 30px 28px 26px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cmt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #D3DEEC; }
.cmt-card.is-green { --c: var(--green-600); --c-wash: var(--wash-green); }
.cmt-card.is-teal  { --c: var(--teal-500);  --c-wash: var(--teal-100); }
.cmt-card.is-slate { --c: var(--slate-500); --c-wash: var(--slate-100); }
.cmt-icon {
  width: 52px; height: 52px; border-radius: var(--r-md); margin-bottom: 6px;
  display: grid; place-items: center; background: var(--c-wash); color: var(--c);
}
.cmt-icon::before {
  content: ""; width: 25px; height: 25px; background: currentColor;
  -webkit-mask: var(--qi) center/contain no-repeat; mask: var(--qi) center/contain no-repeat;
}
.cmt-kind { font-size: 12.5px; font-weight: 600; color: var(--c); letter-spacing: 0; }
.cmt-card h3 { font-size: 1.22rem; line-height: 1.3; }
.cmt-card > p { font-size: 15px; line-height: 1.62; color: var(--body); flex: 1; }
.cmt-chair {
  display: flex; gap: 8px; align-items: baseline; margin-top: 4px; padding-top: 14px;
  border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); flex: none !important;
}
.cmt-chair strong { color: var(--ink); font-weight: 600; }

.cmt-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper);
}
.cmt-facts li {
  display: flex; flex-direction: column; gap: 6px; padding: 24px 26px;
  border-inline-end: 1px solid var(--line);
}
.cmt-facts li:last-child { border-inline-end: 0; }
.cmt-facts strong { font-size: 1.15rem; color: var(--navy); letter-spacing: -0.01em; }
.cmt-facts span { font-size: 14px; color: var(--body); line-height: 1.55; }
.cmt-source { margin-top: 18px; font-size: 14px; color: var(--muted); }
.cmt-source a { color: var(--navy); font-weight: 600; }
.cmt-source a:hover { text-decoration: underline; }

/* ============================================================
   DOCUMENT LIBRARY — list beside an in-page PDF viewer
   ============================================================ */
.docs { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 28px; align-items: start; }
.docs-filters { margin-bottom: 18px; }
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-item {
  display: flex; flex-direction: column; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.doc-item:hover { border-color: #C9D7EA; box-shadow: var(--shadow-sm); }
.doc-item.is-active { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,76,147,.10); }
.doc-item[hidden] { display: none; }
.doc-pick {
  display: flex; gap: 16px; align-items: flex-start; width: 100%;
  padding: 18px 18px 14px; text-align: start; background: none; border: 0; cursor: pointer;
  border-radius: var(--r-md) var(--r-md) 0 0; color: inherit; font: inherit;
}
.doc-pick .reg-icon { width: 44px; height: 44px; background-size: 20px; }
.doc-item.is-active .doc-pick .reg-icon { background-color: var(--navy); filter: none; background-image: var(--doc-icon-light); }
.doc-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.doc-title { font-weight: 700; color: var(--ink); font-size: 15.5px; line-height: 1.3; }
.doc-desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.doc-text .reg-meta { align-self: flex-start; margin-top: 4px; }
.doc-actions {
  display: flex; gap: 18px; padding: 10px 18px 12px; margin: 0 18px;
  border-top: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.doc-actions a { color: var(--navy); }
.doc-actions a:hover { text-decoration: underline; }
.doc-empty { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

.docs-viewer {
  position: sticky; top: 96px;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.docs-viewer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.docs-viewer-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.docs-viewer-title .reg-icon { width: 44px; height: 44px; background-size: 20px; }
.docs-viewer-title strong { display: block; font-size: 1.05rem; color: var(--ink); line-height: 1.3; }
.docs-viewer-title span { font-size: 13px; color: var(--muted); }
.docs-viewer-actions { display: flex; gap: 10px; }
.docs-viewer-actions .btn { padding: 10px 18px; font-size: 14px; }
.docs-frame { position: relative; height: min(78vh, 880px); background: var(--grey-100, #EEF2F7); }
.docs-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.docs-fallback {
  position: absolute; inset-inline: 0; bottom: 0; z-index: -1;   /* visible only if the frame fails to paint */
  padding: 16px; text-align: center; font-size: 14px; color: var(--muted);
}
.docs-fallback a { color: var(--navy); font-weight: 600; }

@media (max-width: 1080px) {
  .cmt-grid { grid-template-columns: repeat(2, 1fr); }
  .cmt-facts { grid-template-columns: repeat(2, 1fr); }
  .cmt-facts li:nth-child(2) { border-inline-end: 0; }
  .cmt-facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .docs { grid-template-columns: 1fr; }
  .docs-viewer { display: none; }      /* phones and tablets open the PDF directly */
  .doc-item.is-active { border-color: var(--line); box-shadow: none; }
  .doc-item.is-active .doc-pick .reg-icon { background-color: var(--wash-navy); background-image: var(--doc-icon); }
}
@media (max-width: 640px) {
  .cmt-grid { grid-template-columns: 1fr; gap: 14px; }
  .cmt-card { padding: 24px 22px 22px; }
  .cmt-facts { grid-template-columns: 1fr; }
  .cmt-facts li { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .cmt-facts li:last-child { border-bottom: 0; }
  .doc-pick { padding: 16px 16px 12px; gap: 12px; }
  .doc-actions { margin: 0 16px; padding-inline: 0; }
}

/* The current page in the nav */
.mobile-nav nav a[aria-current="page"] { background: var(--wash-navy); color: var(--navy); }

@media (max-width: 860px) {
  .reg-item { flex-wrap: wrap; }
  .reg-actions { width: 100%; }
  .reg-actions .btn { flex: 1; }
}
@media (max-width: 640px) {
  .page-hero { padding: 44px 0 40px; }
  .reg-item { padding: 22px 20px; gap: 16px; }
  .reg-icon { width: 44px; height: 44px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(170deg, var(--navy-800) 0%, var(--navy-900) 55%);
  color: rgba(255,255,255,.66);
}
.footer-identity { display: flex; align-items: center; gap: 22px; padding: 60px 0 44px; }
.footer-identity svg {
  width: 100px; height: 100px; flex: none;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.3));
}
.footer-identity .lockup-text { max-width: 460px; gap: 4px; }
.footer-identity .lockup-ar { color: #fff; font-size: 17px; }
.footer-identity .lockup-en { color: #fff; font-size: 20px; }
.footer-identity .lockup-est { color: rgba(255,255,255,.55); }

.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding: 44px 0 56px; }
.footer-about p { font-size: 15.5px; color: rgba(255,255,255,.6); max-width: 330px; }
.footer-col h5 { font-size: 15.5px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: -0.01em; }
.footer-col a { display: block; font-size: 15px; padding: 7px 0; transition: color .18s ease; }
.footer-col a:hover { color: var(--green-600); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0 32px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14.5px;
}
.footer-legal { display: flex; gap: 26px; }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   MOTION
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2,.6,.3,1), transform .6s cubic-bezier(.2,.6,.3,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; inset-inline-start: 14px; top: 14px; z-index: 999;
  background: var(--navy); color: #fff; padding: 14px 22px; border-radius: var(--r-sm);
  clip-path: inset(50%); opacity: 0; pointer-events: none;
}
.skip-link:focus { clip-path: none; opacity: 1; pointer-events: auto; }

/* Inline icon masks, so no external icon library is needed */
:root {
  --globe: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M2 12h20M12 2a15 15 0 010 20a15 15 0 010-20"/></svg>');
  --check: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234E9E37" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>');
  --chat-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 11.5a8.4 8.4 0 01-9 8.4 9 9 0 01-4.1-.9L3 20.5l1.6-4.6A8.4 8.4 0 013 11.5a8.4 8.4 0 019-8.4 8.4 8.4 0 019 8.4z"/></svg>');
  --close-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round"><path d="M18 6L6 18M6 6l12 12"/></svg>');
  --send-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M3.4 20.4l17.5-8a.6.6 0 000-1.1l-17.5-8a.6.6 0 00-.8.7l2 6.3c.1.3.3.5.6.5l8.4 1-8.4 1c-.3 0-.5.2-.6.5l-2 6.3a.6.6 0 00.8.8z"/></svg>');
  --doc-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231B4C93" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/><path d="M14 2v6h6"/><path d="M9 13h6M9 17h4"/></svg>');
  --doc-icon-light: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/><path d="M14 2v6h6"/><path d="M9 13h6M9 17h4"/></svg>');
  --search-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236B7A90" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="M20 20l-3.5-3.5"/></svg>');
  --dot-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><circle cx="4" cy="4" r="3" fill="%231B4C93"/></svg>');
  --star-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23B9E5A8"><path d="M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.3 5.9 20.6l1.4-6.8L2.2 9.1l6.9-.8z"/></svg>');
  --ic-calendar: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.9" stroke-linecap="round"><rect x="3" y="5" width="18" height="16" rx="2"/><path d="M3 10h18M8 3v4M16 3v4"/></svg>');
  --ic-person: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><circle cx="12" cy="8" r="4.2"/><path d="M3.5 21a8.5 8.5 0 0117 0z"/></svg>');
  --ic-members: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 00-4-4H6a4 4 0 00-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 00-3-3.9"/><path d="M16 3.1a4 4 0 010 7.8"/></svg>');
  --ic-guide: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/><path d="M9 12l2 2 4-4"/></svg>');
  --ic-mail: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="M2 7l10 6 10-6"/></svg>');
  --ic-eye: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M1.5 12S5 5 12 5s10.5 7 10.5 7-3.5 7-10.5 7S1.5 12 1.5 12z"/><circle cx="12" cy="12" r="3.2"/></svg>');
  --ic-target: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="5"/><circle cx="12" cy="12" r="1.4"/></svg>');
  --ic-award: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="9" r="6"/><path d="M8.5 14.5L7 22l5-3 5 3-1.5-7.5"/></svg>');
  --ic-ballot: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M3 13h18v8H3z"/><path d="M7 13V5a1 1 0 011-1h8a1 1 0 011 1v8"/><path d="M9.5 8.5l1.8 1.8L15 6.5"/><path d="M3 17h18"/></svg>');
  --ic-book: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M4 19.5A2.5 2.5 0 016.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 014 19.5v-15A2.5 2.5 0 016.5 2z"/><path d="M9 7h7M9 11h5"/></svg>');
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1240px) {
  .nav-shell > a, .nav-trigger { padding-inline: 8px; font-size: 15px; }
  .site-header .lockup-text { max-width: 170px; }
  .header-actions .btn-primary { padding-inline: 16px; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-id { align-items: center; text-align: center; }
  .hero-tag { max-width: 52ch; }
  .hero-ctas { justify-content: center; }
  .quad-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(3, 1fr); }
  .tier-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 52px; }
  .about-plate { max-width: 460px; }
  .news-layout { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .numbers-panel { padding: 60px 40px; }
}

@media (max-width: 1080px) {
  .page-wrap { width: calc(100% - 36px); }
  .nav-shell { display: none; }
  .menu-toggle { display: flex; }
  .lang-switch { display: none; }
  .header-actions .btn { display: none; }
  .header-inner { min-height: 72px; padding: 8px 0; }
  .lockup-seal { width: 54px; height: 54px; }
  .lockup-est { display: none; }
  .partners-row-sm { grid-template-columns: repeat(2, 1fr); }
  .partners-cta { flex-direction: column; align-items: flex-start; padding: 36px 30px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 44px 0 44px; }
  .hero-grid { gap: 24px; }
  .hero-seal { width: 160px; height: 160px; margin-bottom: 18px; }
  .hero-slider { border-radius: var(--r-lg); }
  .hs-bar { padding-inline: 18px 12px; }
  .hs-media { margin-inline: 10px; aspect-ratio: 16 / 9; border-radius: var(--r-md); }
  .hs-body { padding: 16px 18px 4px; }
  .hs-dots { padding: 14px 18px 18px; }
  .quad-grid { grid-template-columns: 1fr; gap: 14px; }
  .partners-row-soc .partner-tile { min-height: 112px; }
  .hero { padding: 60px 0 84px; }
  .hero-seal { width: 148px; height: 148px; }
  .hero::before { width: 520px; height: 520px; }
  .hero-en { max-width: none; }
  .glance-grid { grid-template-columns: 1fr; gap: 14px; }
  .numbers-section { padding-bottom: 72px; }
  .numbers-panel { padding: 44px 24px; border-radius: var(--r-lg); }
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .member-grid, .partners-row, .partners-row-sm { grid-template-columns: 1fr; }
  .member-creds li { font-size: 12px; }
  .tier-card { padding: 30px 24px; }
  .about-pillars { grid-template-columns: 1fr; }
  .about-plate { padding: 40px 24px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-identity { flex-direction: column; text-align: center; gap: 18px; padding-top: 48px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .news-hdr { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .section-head { margin-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .hs-slides { transition: none; }
  .hs-dot .hs-fill { animation: none !important; }
  .gal-item:hover .gal-open img { transform: none; }
  .chat-fab::after { animation: none; }
  .chat-typing span { animation: none; }
  .gal-item.is-filtered { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
   ROUND 4 — 3D tiles, partner logos, founders, education,
   members directory, footer social
   ============================================================ */
.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;
}
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }

/* Hero seal sits centred over the identity column */
@media (min-width: 1081px) { .hero-seal { align-self: center; } }

/* Seal plate — the soft green disc behind the hero seal */
.hero-seal-plate {
  display: grid; place-items: center; border-radius: 50%;
  padding: 36px; margin-bottom: 26px; background: var(--wash-green);
}
.hero-seal-plate .hero-seal { margin-bottom: 0; filter: drop-shadow(0 8px 18px rgba(11,36,68,.12)); }
@media (min-width: 1081px) { .hero-seal-plate { align-self: center; } }
@media (max-width: 640px) { .hero-seal-plate { padding: 24px; margin-bottom: 18px; } }

/* Current page inside the About menu lights the trigger too */
.nav-group:has(a[aria-current="page"]) .nav-trigger { background: var(--wash-navy); color: var(--navy); border-bottom-color: var(--navy); }
.nav-menu a[aria-current="page"] { background: var(--tint-navy); color: var(--navy); }

/* --- Partner logos ------------------------------------------- */
.logo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.logo-tile {
  display: flex; align-items: center; justify-content: center;
  min-height: 132px; padding: 24px 30px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.logo-tile img {
  display: block; width: auto; max-width: 100%; height: auto; max-height: 64px; object-fit: contain;
  transition: transform .25s ease;
}
.logo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #C9D7EA; }
.logo-tile:hover img { transform: scale(1.04); }

/* --- Footer social ------------------------------------------- */
.footer-follow { margin-top: 24px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--green-600); border-color: var(--green-600); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* --- Founding members ---------------------------------------- */
.fnd-story {
  display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center;
  padding: 40px 44px; margin-bottom: 48px; border-radius: var(--r-xl);
  background: linear-gradient(130deg, var(--wash-navy) 0%, var(--paper) 60%, var(--wash-green) 100%);
  border: 1px solid var(--line);
}
.fnd-story-text { font-size: 1.05rem; line-height: 1.75; color: var(--body); }
.fnd-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fnd-facts li {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.fnd-facts strong { font-size: 1.1rem; color: var(--navy); }
.fnd-facts span { font-size: 12.5px; color: var(--muted); }

.fnd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.fnd-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 34px 22px 26px; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.fnd-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.fnd-card.is-lead { border-color: transparent; background: linear-gradient(160deg, #F4F8FE 0%, var(--paper) 55%); box-shadow: 0 0 0 2px var(--navy) inset, var(--shadow-md); }
.fnd-year { position: absolute; top: 14px; inset-inline-end: 16px; font-size: 12px; font-weight: 700; color: var(--muted); }
.fnd-avatar {
  width: 92px; height: 92px; border-radius: 50%; margin-bottom: 8px;
  display: grid; place-items: center; font-size: 1.55rem; font-weight: 700; color: var(--navy);
  background: linear-gradient(145deg, var(--blue-100), var(--wash-navy));
  border: 3px solid #fff; box-shadow: 0 10px 22px -10px rgba(11,36,68,.4);
}
.fnd-card.is-lead .fnd-avatar { background: linear-gradient(145deg, var(--navy-600), var(--navy-900)); color: #fff; }
.fnd-role {
  padding: 4px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
  background: var(--wash-green); color: var(--green-800);
}
.fnd-card.is-lead .fnd-role { background: var(--navy); color: #fff; }
.fnd-card h3 { font-size: 1.15rem; line-height: 1.3; margin-top: 4px; }
.fnd-spec { font-size: 14px; color: var(--body); }
.fnd-org { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.fnd-note { margin-top: 22px; font-size: 13px; color: var(--muted); font-style: italic; }

/* --- Education ----------------------------------------------- */
.edu-sub + .edu-sub { margin-top: 56px; }
.edu-sub-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.edu-sub-head h3 { font-size: 1.5rem; }
.edu-sub-head p { font-size: 15px; color: var(--muted); }
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.edu-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.edu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.edu-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.edu-date {
  display: flex; flex-direction: column; align-items: center; width: 58px; padding: 8px 0 7px;
  border-radius: 12px; background: var(--wash-navy); color: var(--navy); line-height: 1;
}
.edu-date b { font-size: 1.45rem; font-weight: 700; }
.edu-date span { font-size: 12px; font-weight: 600; margin-top: 3px; }
.edu-status { padding: 5px 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.edu-status.is-soon { background: var(--blue-100); color: var(--navy); }
.edu-status.is-live { background: var(--wash-green); color: var(--green-800); }
.edu-status.is-rec  { background: var(--grey-100); color: var(--slate-700); }
.edu-card h4 { font-size: 1.1rem; line-height: 1.35; }
.edu-meta { font-size: 13.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.edu-card .btn { align-self: flex-start; margin-top: 8px; padding: 10px 18px; font-size: 14px; }

/* --- Conferences --------------------------------------------- */
.conf-next {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px;
  padding: 48px 52px; border-radius: var(--r-xl); color: var(--ink);
  background: var(--paper); border: 1px solid var(--blue-200);
  box-shadow: var(--shadow-sm);
}
.conf-next::after {
  content: ""; position: absolute; inset-inline-end: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,107,189,.13) 0%, rgba(46,107,189,0) 65%); pointer-events: none;
}
.conf-next > * { position: relative; z-index: 1; }
.conf-kicker { display: inline-block; padding: 5px 13px; border-radius: var(--r-pill); background: var(--green-600); color: #fff; font-size: 12.5px; font-weight: 700; margin-bottom: 16px; }
.conf-next h3 { color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 10px; }
.conf-theme { color: var(--body); font-size: 1.05rem; margin-bottom: 22px; max-width: 48ch; }
.conf-facts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.conf-facts li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: var(--ink); }
.conf-fact-ic {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--wash-navy); color: var(--navy);
}
.conf-fact-ic::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--qi) center/contain no-repeat; mask: var(--qi) center/contain no-repeat; }
.conf-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.conf-dates {
  align-self: center; padding: 26px 28px; border-radius: var(--r-lg);
  background: var(--tint-navy); border: 1px solid var(--wash-navy);
}
.conf-dates-h { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.conf-dates dl { display: flex; flex-direction: column; gap: 0; }
.conf-dates dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--blue-200); }
.conf-dates dt { font-size: 14px; color: var(--body); }
.conf-dates dd { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }

.conf-prev { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; margin-top: 28px; }
.conf-prev-main, .conf-prev-side {
  padding: 36px 38px; border-radius: var(--r-xl);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.conf-prev-k { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--green-800); margin-bottom: 10px; }
.conf-prev-main h3 { font-size: 1.6rem; margin-bottom: 12px; }
.conf-prev-main > p { font-size: 15.5px; line-height: 1.7; color: var(--body); margin-bottom: 26px; }
.conf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.conf-stats li { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; border-radius: var(--r-md); background: var(--tint-navy); text-align: center; }
.conf-stats strong { font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.conf-stats span { font-size: 12.5px; color: var(--muted); }
.conf-prev-side h4 { font-size: 1.1rem; margin-bottom: 14px; }
.conf-hl { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.conf-hl li { position: relative; padding-inline-start: 26px; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.conf-hl li::before { content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--wash-green) var(--check) center/9px no-repeat; }
.conf-gallery { font-weight: 600; color: var(--navy); font-size: 14.5px; }
.conf-gallery:hover { text-decoration: underline; }
.conf-note { margin-top: 18px; font-size: 13px; color: var(--muted); font-style: italic; }

/* --- Members directory --------------------------------------- */
.members-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.members-head .section-head { margin-bottom: 0; }
.members-search { flex: 0 1 340px; }
.members-search input {
  width: 100%; padding: 13px 18px 13px 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--paper) var(--search-icon) 16px center/18px no-repeat;
  font: inherit; font-size: 15px; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
[dir="rtl"] .members-search input { padding: 13px 44px 13px 18px; background-position: calc(100% - 16px) center; }
.members-search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,76,147,.12); }
.members-table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-sm); overflow: hidden; }
.members-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.members-table th {
  text-align: start; padding: 16px 22px; font-size: 12.5px; font-weight: 700; color: var(--muted);
  background: var(--grey-50); border-bottom: 1px solid var(--line);
}
.members-table td { padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--body); }
.members-table td:first-child { font-weight: 600; color: var(--ink); }
.members-table tbody tr:last-child td { border-bottom: 0; }
.members-table tbody tr:hover td { background: #FAFCFF; }
.members-table tr[hidden] { display: none; }
.mem-type { display: inline-block; padding: 4px 11px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.mem-type.is-reg { background: var(--wash-navy); color: var(--navy); }
.mem-type.is-aff { background: var(--grey-100); color: var(--slate-700); }
.mem-type.is-hon { background: var(--wash-green); color: var(--green-800); }
.members-empty { padding: 28px 22px; font-size: 15px; color: var(--muted); text-align: center; }
.members-note { margin-top: 16px; font-size: 13px; color: var(--muted); font-style: italic; }

@media (max-width: 1080px) {
  .fnd-story { grid-template-columns: 1fr; gap: 24px; padding: 30px 28px; }
  .fnd-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .conf-next { grid-template-columns: 1fr; padding: 36px 32px; }
  .conf-prev { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .logo-tile { min-height: 110px; padding: 18px; }
}
@media (max-width: 640px) {
  .fnd-grid { grid-template-columns: 1fr; gap: 14px; }
  .fnd-facts { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; gap: 14px; }
  .edu-sub-head { flex-direction: column; gap: 6px; }
  .conf-next { padding: 28px 22px; }
  .conf-prev-main, .conf-prev-side { padding: 26px 22px; }
  .conf-stats { grid-template-columns: repeat(2, 1fr); }
  .logo-row { grid-template-columns: 1fr; }
  .members-head { align-items: stretch; }
  .members-search { flex-basis: 100%; }
  .members-table-wrap { overflow-x: auto; }
  .members-table { min-width: 640px; font-size: 14px; }
  .members-table th, .members-table td { padding: 13px 16px; }
}

/* ============================================================
   ROUND 5 — true 3D cards and a tinted canvas
   ============================================================ */

/* --- Shared 3D card: layered edge, cursor sheen, lifted parts ---
   [data-tilt] cards and the home tiles. The JS tilts the card and
   moves --mx/--my; everything else is CSS so it degrades cleanly. */
[data-tilt], .quad {
  position: relative; overflow: visible; transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}
[data-tilt].is-tilting, .quad.is-tilting { transition: transform .08s linear, box-shadow .45s ease; }
[data-tilt] > *, .quad > * { transform: translateZ(18px); }

/* light cards: a stacked paper edge in soft blue-greys */
.tier-card, .cmt-card, .fnd-card, .edu-card, .member-card {
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 0 #E2E9F3, 0 4px 0 #D6DFEC, 0 6px 0 #CBD6E6,
    0 22px 40px -18px rgba(11,36,68,.35), 0 2px 6px rgba(11,36,68,.05);
}
.tier-card::before, .cmt-card::before, .fnd-card::before, .edu-card::before, .member-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at var(--mx, 25%) var(--my, 15%), rgba(27,76,147,.09) 0%, rgba(27,76,147,0) 58%);
  transform: translateZ(1px);
}
.tier-card:hover, .cmt-card:hover, .fnd-card:hover, .edu-card:hover, .member-card:hover,
.js .reveal.is-visible:is(.tier-card, .cmt-card, .fnd-card, .edu-card, .member-card):hover {
  transform: translateY(-8px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 0 #E2E9F3, 0 4px 0 #D6DFEC, 0 6px 0 #CBD6E6,
    0 40px 60px -22px rgba(11,36,68,.45), 0 4px 10px rgba(11,36,68,.06);
}
.cmt-card { border-top: 3px solid var(--c); }

/* parts that float above the card */
.tier-card h3, .cmt-card h3, .fnd-card h3, .edu-card h4, .member-card h3 { transform: translateZ(34px); }
.cmt-icon, .fnd-avatar, .edu-date, .tier-badge { transform: translateZ(44px); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
.cmt-icon { box-shadow: 0 10px 18px -10px rgba(11,36,68,.45); }
.fnd-avatar { box-shadow: 0 16px 28px -12px rgba(11,36,68,.5); }
.edu-date { box-shadow: 0 8px 16px -8px rgba(11,36,68,.4); }
[data-tilt]:hover .cmt-icon, [data-tilt]:hover .fnd-avatar, [data-tilt]:hover .edu-date { transform: translateZ(64px) scale(1.04); }

/* honorary stays dark; its edge is deeper navy */
.tier-card.is-honorary {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 2px 0 #0E2C52, 0 4px 0 #0B2444, 0 6px 0 #081B33,
    0 26px 48px -18px rgba(11,36,68,.7), 0 2px 8px rgba(11,36,68,.25);
}
.tier-card.is-honorary::before {
  background: radial-gradient(circle at var(--mx, 25%) var(--my, 15%), rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 58%);
}
.tier-card.is-honorary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 2px 0 #0E2C52, 0 4px 0 #0B2444, 0 6px 0 #081B33,
    0 44px 70px -22px rgba(11,36,68,.8), 0 4px 10px rgba(11,36,68,.25);
}

/* home tiles: dark edge in the tile's own hue, floating white icon */
.quad {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.15),
    0 2px 0 var(--q-deep), 0 4px 0 color-mix(in srgb, var(--q-deep) 80%, #000), 0 6px 0 color-mix(in srgb, var(--q-deep) 65%, #000),
    0 24px 44px -16px rgba(11,36,68,.55), 0 2px 6px rgba(11,36,68,.15);
}
.quad::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(255,255,255,.26) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 42%);
  transform: translateZ(1px);
}
.quad::after { transform: translateZ(2px); }
.quad:hover, .js .quad.reveal.is-visible:hover {
  transform: translateY(-8px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34), inset 0 -1px 0 rgba(0,0,0,.15),
    0 2px 0 var(--q-deep), 0 4px 0 color-mix(in srgb, var(--q-deep) 80%, #000), 0 6px 0 color-mix(in srgb, var(--q-deep) 65%, #000),
    0 44px 64px -20px rgba(11,36,68,.6), 0 4px 10px rgba(11,36,68,.18);
}
.quad-icon {
  background: rgba(255,255,255,.96); color: var(--q-deep); border: 0;
  box-shadow: 0 12px 22px -10px rgba(0,0,0,.55), inset 0 -2px 0 rgba(0,0,0,.08);
  transform: translateZ(46px); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
}
.quad:hover .quad-icon { transform: translateZ(68px) scale(1.06); box-shadow: 0 22px 30px -12px rgba(0,0,0,.6), inset 0 -2px 0 rgba(0,0,0,.08); }
.quad strong { transform: translateZ(30px); }
.quad-desc, .quad-cta { transform: translateZ(18px); }
.quad-grid, .tier-grid, .cmt-grid, .fnd-grid, .edu-grid, .member-grid { perspective: 1200px; }

/* --- A tinted canvas: colour on every white stretch ------------- */
.site-header::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, var(--navy) 0%, var(--teal-500) 50%, var(--green-600) 100%);
}
.section:not(.section-tint):not(.section-green) {
  background:
    radial-gradient(900px 520px at 100% 0%, var(--blue-100) 0%, rgba(227,236,248,0) 62%),
    radial-gradient(760px 460px at 0% 100%, var(--green-100) 0%, rgba(227,242,221,0) 62%),
    linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 100%);
}
.section-tint {
  background:
    radial-gradient(820px 500px at 0% 0%, var(--teal-100) 0%, rgba(220,239,241,0) 60%),
    radial-gradient(700px 440px at 100% 100%, var(--blue-200) 0%, rgba(199,217,240,0) 65%),
    linear-gradient(180deg, #EEF4FB 0%, #F4F7FC 100%);
}
.section-green {
  background:
    radial-gradient(820px 500px at 100% 0%, var(--green-200) 0%, rgba(198,228,186,0) 62%),
    radial-gradient(640px 420px at 0% 100%, var(--teal-100) 0%, rgba(220,239,241,0) 62%),
    linear-gradient(180deg, #EEF7EA 0%, #F4FAF2 100%);
}
.quads {
  background: linear-gradient(180deg, #EEF4FB 0%, #F7FAFE 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 64px;
}
.hero { border-bottom: 0; }
.page-hero {
  background:
    radial-gradient(900px 520px at 100% 0%, var(--blue-200) 0%, rgba(199,217,240,0) 60%),
    radial-gradient(700px 460px at 0% 100%, var(--green-200) 0%, rgba(198,228,186,0) 60%),
    linear-gradient(120deg, #E7EFFA 0%, #F3F7FC 55%, #EAF5E6 100%);
}
.members-table th { background: var(--wash-navy); color: var(--navy); }
.members-table-wrap { box-shadow: var(--shadow-md); }
.edu-card { border-inline-start: 4px solid var(--ec, var(--navy)); }
.edu-card:has(.is-live) { --ec: var(--green-600); }
.edu-card:has(.is-rec)  { --ec: var(--slate-500); }
.fnd-card { border-top: 3px solid var(--blue-200); }
.fnd-card.is-lead { border-top-color: var(--navy); }
.news-item { border-inline-start: 3px solid var(--green-200); }
.news-item:hover { border-inline-start-color: var(--green-600); }
.member-card { border-top: 3px solid var(--blue-200); }

@media (max-width: 640px) {
  .quads { padding: 40px 0 48px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-tilt], .quad, [data-tilt] > *, .quad > *, .quad-icon, .cmt-icon, .fnd-avatar, .edu-date { transform: none !important; transition: none !important; }
}

/* ============================================================
   JOIN + DIRECTORY PAGES
   ============================================================ */
/* How to apply — three numbered steps */
.apply-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.apply-step {
  counter-increment: step;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 30px 28px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.apply-n {
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 6px;
  display: grid; place-items: center; background: var(--navy); color: #fff;
  font-size: 1.1rem; font-weight: 700;
}
.apply-n::before { content: counter(step); }
html[lang="ar"] .apply-n::before { content: counter(step, arabic-indic); }
.apply-step h3 { font-size: 1.25rem; }
.apply-step p { flex: 1; font-size: 15px; line-height: 1.65; color: var(--body); }
.apply-step .btn { margin-top: 8px; padding: 11px 20px; font-size: 14.5px; }

/* Current members — a card per member, photograph first */
.dir-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dir-card {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 28px 20px 20px; text-align: center; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.dir-card[hidden] { display: none; }
.dir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dir-photo {
  flex: none; width: 104px; height: 104px; margin-bottom: 10px; border-radius: 50%; overflow: hidden;
  background: var(--wash-green); border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 12px 22px -14px rgba(11,36,68,.4);
}
.dir-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* No photograph on file yet */
.dir-photo.is-empty { display: grid; place-items: center; }
.dir-photo.is-empty::before {
  content: ""; width: 50px; height: 50px; background: var(--green-700); opacity: .45;
  -webkit-mask: var(--ic-person) center/contain no-repeat; mask: var(--ic-person) center/contain no-repeat;
}
.dir-card h3 { font-size: 1.08rem; line-height: 1.3; }
.dir-spec { font-size: 14px; font-weight: 600; color: var(--green-700); }
.dir-work { flex: 1; font-size: 13.5px; line-height: 1.45; color: var(--body); }
.dir-meta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--muted);
}
.dir-join {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 44px; padding: 26px 30px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
}
.dir-join p { font-size: 1.05rem; font-weight: 600; color: var(--ink); }

@media (max-width: 1080px) {
  .dir-grid { grid-template-columns: repeat(3, 1fr); }
  .apply-steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .dir-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 460px) { .dir-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .dir-card { transition: none; } .dir-card:hover { transform: none; } }
