/* ==========================================================================
   Da3m Misr Foundation — Design System
   Brand source: Da3m Misr Foundation Logo guidelines
     Blue   #0865FF   (primary — the "D" and the human head)
     Green  #00CD0D   (accent — the network / gear)
     White  #FFFFFF
   Type: Paperclip / Giorgio Sans (condensed)  → web: Barlow Condensed
         GE SS Two (Arabic)                    → web: Cairo
         Body                                  → DM Sans
   ========================================================================== */

:root {
  /* Brand */
  --blue: #0865FF;
  --blue-600: #0052DB;
  --blue-700: #0040AD;
  --blue-50: #EEF4FF;
  --blue-100: #DCE8FF;
  --green: #00CD0D;
  --green-700: #00850A;         /* AA-safe green for text on white */
  --green-50: #E9FBEA;

  /* Neutrals */
  --ink: #0A1A3A;               /* deep navy, the "night" of the blue */
  --ink-80: #2A3958;
  --ink-60: #56627A;
  --ink-40: #8E97AA;
  --line: #E3E8F0;
  --mist: #F4F7FB;
  --paper: #FFFFFF;
  --sand: #F8F5EF;              /* a warm whisper for human sections */

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;

  --fs-hero: clamp(3.25rem, 2rem + 5.4vw, 6.4rem);
  --fs-h1: clamp(2.75rem, 1.8rem + 4.2vw, 5.25rem);
  --fs-h2: clamp(2.25rem, 1.6rem + 2.8vw, 4rem);
  --fs-h3: clamp(1.6rem, 1.3rem + 1.1vw, 2.25rem);
  --fs-h4: 1.375rem;
  --fs-lead: clamp(1.125rem, 1.05rem + .35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-eyebrow: .8125rem;

  /* Space & shape */
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(88px, 10vw, 152px);
  --container: 1240px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 26, 58, .06), 0 2px 8px rgba(10, 26, 58, .04);
  --shadow-md: 0 10px 30px -12px rgba(10, 26, 58, .18);
  --shadow-lg: 0 30px 60px -24px rgba(8, 101, 255, .35);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-80);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.05; }
h4 { font-size: var(--fs-h4); line-height: 1.15; font-family: var(--font-body); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding: 0; margin: 0; list-style: none; }

[lang="ar"] { font-family: var(--font-ar); }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.bg-mist { background: var(--mist); }
.bg-sand { background: var(--sand); }
.bg-blue { background: var(--blue); color: rgba(255,255,255,.88); }
.bg-ink { background: var(--ink); color: rgba(255,255,255,.78); }
.bg-blue h1, .bg-blue h2, .bg-blue h3, .bg-blue h4,
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }

/* --------------------------------------------------------------------------
   Typographic helpers
   -------------------------------------------------------------------------- */
/* Eyebrow uses the logo's two dots: blue head, green network */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
  color: var(--blue);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 20px; flex: none;
  background:
    radial-gradient(circle at 50% 4px, var(--blue) 3.6px, transparent 4px),
    radial-gradient(circle at 50% 16px, var(--green) 3.6px, transparent 4px);
}
.bg-blue .eyebrow, .bg-ink .eyebrow { color: #fff; }
.bg-blue .eyebrow::before {
  background:
    radial-gradient(circle at 50% 4px, #fff 3.6px, transparent 4px),
    radial-gradient(circle at 50% 16px, var(--green) 3.6px, transparent 4px);
}
.bg-ink .eyebrow::before {
  background:
    radial-gradient(circle at 50% 4px, var(--blue) 3.6px, transparent 4px),
    radial-gradient(circle at 50% 16px, var(--green) 3.6px, transparent 4px);
}

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-60); max-width: 60ch; }
.bg-blue .lead, .bg-ink .lead { color: rgba(255,255,255,.8); }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.arabic-line {
  font-family: var(--font-ar); font-weight: 700; color: var(--ink-60);
  font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); line-height: 1.6;
  margin: 0 0 28px;
}
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 20px; }
.section-head.center .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1 var(--font-body); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), color .25s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn-primary { --btn-bg: var(--blue); box-shadow: 0 8px 24px -10px rgba(8,101,255,.7); }
.btn-primary:hover { --btn-bg: var(--blue-600); box-shadow: 0 14px 30px -12px rgba(8,101,255,.8); }
.btn-green { --btn-bg: var(--green); --btn-fg: var(--ink); }
.btn-green:hover { --btn-bg: #00B80C; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--blue); }
.btn-white:hover { --btn-fg: var(--blue-700); }
.btn-outline-white { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--blue);
}
.link-arrow::after {
  content: ""; width: 18px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M12.5 1 17 5l-4.5 4M0 5h16.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M12.5 1 17 5l-4.5 4M0 5h16.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s var(--ease);
}
.link-arrow:hover::after, a:hover .link-arrow::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
          backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; transition: height .3s var(--ease); }
.is-scrolled .header-inner { height: 72px; }
.brand img { height: 38px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a {
  display: block; padding: 10px 12px;
  color: var(--ink); font-weight: 500; font-size: .975rem; text-decoration: none;
  border-radius: var(--r-pill);
  transition: color .2s, background-color .2s;
}
.nav-list > li > a:hover { color: var(--blue); }
.nav-list > li > a[aria-current="page"] { color: var(--blue); }
.nav-list > li > a[aria-current="page"]::after {
  content: ""; display: block; width: 5px; height: 5px; margin: 3px auto -8px;
  border-radius: 50%; background: var(--green);
}
.has-menu > a { padding-inline-end: 2px !important; }
.submenu-toggle {
  display: grid; place-items: center; width: 22px; height: 28px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--ink-60);
}
.submenu-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s; }
.submenu {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 250px;
  padding: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.submenu a { display: block; padding: 10px 14px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: .95rem; }
.submenu a:hover { background: var(--blue-50); color: var(--blue); }
@media (hover: hover) and (min-width: 1081px) {
  .has-menu:hover .submenu, .has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
  .has-menu:hover .submenu-toggle svg { transform: rotate(180deg); }
}
.has-menu.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.nav-cta { min-height: 46px; padding: 0 22px; }

.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
    background: var(--mist); border: 0; border-radius: 50%; cursor: pointer; position: relative; z-index: 2;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    padding: 104px var(--gutter) 40px;
    background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  /* backdrop-filter makes the header a containing block for fixed children — drop it while the menu is open */
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav-open .brand { position: relative; z-index: 2; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; padding: 18px 0; font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; }
  .nav-list > li > a[aria-current="page"]::after { display: none; }
  .submenu-toggle { width: 44px; height: 44px; }
  .submenu-toggle svg { width: 16px; height: 16px; }
  .has-menu.is-open .submenu-toggle svg { transform: rotate(180deg); }
  .submenu {
    position: static; flex-basis: 100%; min-width: 0; padding: 0 0 14px;
    border: 0; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none;
  }
  .has-menu.is-open .submenu { display: block; }
  .submenu a { padding: 10px 0; color: var(--ink-60); font-size: 1.05rem; }
  .nav-cta { align-self: flex-start; min-height: 54px; padding: 0 30px; }
}

/* --------------------------------------------------------------------------
   Hero (home) — the logo built from photography:
   a blue "head" circle, a green "network" dot, and a D-shaped photo.
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 9vw, 128px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: var(--fs-hero); line-height: .92; margin-bottom: 28px; letter-spacing: -.01em; }
.hero h1 .text-blue { display: inline; }
.hero .lead { margin-bottom: 36px; max-width: 52ch; }
.hero-meta { display: flex; align-items: center; gap: 14px; margin-top: 44px; color: var(--ink-60); font-size: var(--fs-small); }
.hero-meta strong { color: var(--ink); }
.hero-meta .divider { width: 1px; height: 28px; background: var(--line); }

.hero-mark { position: relative; display: grid; grid-template-columns: 24% 1fr; gap: 1.5%; aspect-ratio: 1 / 1.05; }
.hero-mark .dots { display: flex; flex-direction: column; justify-content: space-between; padding: 2% 0; }
.hero-mark .dot { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.hero-mark .dot-head { background: var(--blue); box-shadow: 0 0 0 6px #fff, var(--shadow-lg); }
.hero-mark .dot-head img { width: 100%; height: 100%; object-fit: cover; }
.hero-mark .dot-net { width: 74%; margin-inline-start: 13%; background: var(--green); }
.hero-mark .d-photo {
  position: relative; overflow: hidden;
  border-radius: 6% 50% 50% 6% / 6% 38% 38% 6%;
  box-shadow: var(--shadow-lg);
}
.hero-mark .d-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero-mark .d-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,26,58,.35));
}
.hero-tag {
  position: absolute; inset-inline-start: 22%; bottom: 8%; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: var(--r-pill);
  background: #fff; box-shadow: var(--shadow-md);
  font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.25;
}
.hero-tag i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green-50); color: var(--green-700); font-style: normal; }
.hero-tag svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Diagonal pills from the brand palette page */
.pills { position: absolute; pointer-events: none; z-index: -1; }
.pills span { position: absolute; border-radius: var(--r-pill); transform: rotate(-35deg); transform-origin: left center; }
.hero .pills { inset: 0; }
.hero .pills span:nth-child(1) { width: 900px; height: 140px; right: -520px; top: 4%; background: var(--blue-50); }
.hero .pills span:nth-child(2) { width: 700px; height: 110px; right: -480px; top: 34%; background: var(--green-50); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { max-width: 520px; width: 100%; margin: 0 auto; }
}

/* Page hero (inner pages) */
.page-hero { position: relative; padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 62ch; margin-top: 8px; }
.page-hero .pills { inset: 0; }
.page-hero .pills span:nth-child(1) { width: 760px; height: 120px; right: -380px; top: 18%; background: var(--blue-50); }
.page-hero .pills span:nth-child(2) { width: 560px; height: 90px; right: -380px; top: 52%; background: var(--green-50); }
.page-hero-media { margin-top: clamp(48px, 6vw, 80px); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 8; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .page-hero-media { aspect-ratio: 4 / 3; } }

.crumbs { display: flex; gap: 8px; margin-bottom: 26px; font-size: var(--fs-small); color: var(--ink-40); }
.crumbs a { color: var(--ink-60); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.split-5-7 { grid-template-columns: 5fr 7fr; }
.split-7-5 { grid-template-columns: 7fr 5fr; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split, .split-5-7, .split-7-5 { grid-template-columns: 1fr; } }
@media (max-width: 900px) and (min-width: 561px) { .split .media.ratio-4-5 { aspect-ratio: 4 / 3; } }

.media { border-radius: var(--r-lg); overflow: hidden; background: var(--mist); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-d { border-radius: var(--r-lg) 50% 50% var(--r-lg) / var(--r-lg) 34% 34% var(--r-lg); }
.media-d-left { border-radius: 50% var(--r-lg) var(--r-lg) 50% / 34% var(--r-lg) var(--r-lg) 34%; }
.media-d.wide { border-radius: var(--r-lg) 28% 28% var(--r-lg) / var(--r-lg) 50% 50% var(--r-lg); }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-1 { aspect-ratio: 1; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-16-9 { aspect-ratio: 16 / 9; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Equation chips: People + Technology + Community Action
   -------------------------------------------------------------------------- */
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 32px 0 0; }
.equation .chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--ink); line-height: 1;
}
.equation .chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.equation .chip:nth-of-type(2)::before { background: var(--green); }
.equation .chip:nth-of-type(3)::before { background: var(--ink); }
.equation .op { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink-40); }
.equation .chip.result { background: var(--blue); color: #fff; border-color: var(--blue); }
.equation .chip.result::before { background: var(--green); }

/* --------------------------------------------------------------------------
   Area cards (Our Work)
   -------------------------------------------------------------------------- */
.area-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 520px; padding: 28px; border-radius: var(--r-lg); overflow: hidden;
  color: #fff; text-decoration: none; isolation: isolate;
}
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.area-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,26,58,0) 30%, rgba(10,26,58,.88) 100%); transition: background .4s; }
.area-card:hover { color: #fff; }
.area-card:hover img { transform: scale(1.05); }
.area-card:hover::before { background: linear-gradient(180deg, rgba(8,101,255,.15) 10%, rgba(8,64,173,.92) 100%); }
.area-card .num { position: absolute; top: 24px; inset-inline-start: 28px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .1em; opacity: .9; }
.area-card h3 { color: #fff; font-size: 2.25rem; margin-bottom: 10px; }
.area-card .tag { font-weight: 600; margin-bottom: 8px; color: #fff; }
.area-card p { font-size: .95rem; color: rgba(255,255,255,.82); margin-bottom: 18px; line-height: 1.55; }
.area-card .link-arrow { color: #fff; }
@media (max-width: 640px) { .area-card { min-height: 440px; } }

/* --------------------------------------------------------------------------
   Technology for Good (dark)
   -------------------------------------------------------------------------- */
.tech { position: relative; overflow: hidden; isolation: isolate; }
.tech .pills { inset: 0; }
.tech .pills span:nth-child(1) { width: 1100px; height: 180px; right: -560px; top: -4%; background: rgba(8,101,255,.22); }
.tech .pills span:nth-child(2) { width: 820px; height: 130px; right: -560px; top: 36%; background: rgba(0,205,13,.10); }
.tech .pills span:nth-child(3) { width: 560px; height: 90px; left: -380px; bottom: 6%; top: auto; background: rgba(8,101,255,.14); }
.tech h2 { font-size: var(--fs-h1); max-width: 14ch; }
.tech h2 em { font-style: normal; color: var(--green); }
.tech .arabic-line { color: rgba(255,255,255,.6); }
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--r-lg); overflow: hidden; }
.cap { padding: 34px 30px; background: var(--ink); transition: background .3s; }
.cap:hover { background: #0E2350; }
.cap .icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(8,101,255,.18); color: #7FB0FF; margin-bottom: 22px; }
.cap .icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cap h4 { color: #fff; margin-bottom: 8px; }
.cap p { margin: 0; font-size: .975rem; color: rgba(255,255,255,.66); }
@media (max-width: 640px) { .cap-grid { grid-template-columns: 1fr; } }

.areas-explore { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.areas-explore .label { margin-inline-end: 10px; font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.tag-pill { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.2); color: #fff; font-weight: 500; font-size: .95rem; }
.light .tag-pill, .tag-pill.light { border-color: var(--line); color: var(--ink); background: #fff; }

/* --------------------------------------------------------------------------
   Steps (How we work)
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: repeating-linear-gradient(90deg, var(--blue-100) 0 8px, transparent 8px 16px); z-index: 0; }
.step { position: relative; z-index: 1; padding-inline-end: 12px; }
.step .n {
  display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 28px;
  border-radius: 50%; background: #fff; border: 2px solid var(--blue);
  font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--blue);
}
.step:nth-child(4) .n { background: var(--blue); color: #fff; }
.step:nth-child(4) .n::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--green); transform: translate(26px, 26px); box-shadow: 0 0 0 4px #fff; }
.step h3 { font-size: 2.25rem; margin-bottom: 10px; }
.step p { color: var(--ink-60); margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Impact metrics (placeholders until verified)
   -------------------------------------------------------------------------- */
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.metric { padding: 32px 24px 8px 0; }
.metric + .metric { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.metric .value { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 2.4rem + 2vw, 4.5rem); line-height: 1; color: var(--ink); }
.metric .value .pending { display: inline-block; width: .9em; height: .12em; margin-bottom: .2em; border-radius: 4px; background: var(--blue-100); position: relative; overflow: hidden; }
.metric .value .pending::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--blue), transparent); animation: shimmer 2.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.metric .label { margin-top: 14px; font-weight: 600; color: var(--ink); }
.metric .sub { font-size: .875rem; color: var(--ink-40); }
@media (max-width: 1080px) {
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metric:nth-child(4) { padding-inline-start: 0; border-inline-start: 0; }
}
@media (max-width: 640px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding-inline-start: 0 !important; border-inline-start: 0 !important; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .metric:nth-child(even) { padding-inline-start: 20px !important; border-inline-start: 1px solid var(--line) !important; }
}
.note {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 40px; padding: 20px 24px; border-radius: var(--r-md);
  background: var(--blue-50); color: var(--ink-80); font-size: .975rem;
}
.note::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(8,101,255,.15); }
.note p { margin: 0; }

/* --------------------------------------------------------------------------
   Story framework
   -------------------------------------------------------------------------- */
.story-frame { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.story-frame > div { padding: 30px 26px; }
.story-frame > div + div { border-inline-start: 1px solid var(--line); }
.story-frame .k { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--ink); line-height: 1; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.story-frame .k::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.story-frame > div:nth-child(3) .k::before { background: var(--green); }
.story-frame > div:nth-child(4) .k::before { background: var(--ink); }
.story-frame p { margin: 0; color: var(--ink-60); font-size: .95rem; }
@media (max-width: 900px) {
  .story-frame { grid-template-columns: 1fr 1fr; }
  .story-frame > div:nth-child(3) { border-inline-start: 0; }
  .story-frame > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .story-frame { grid-template-columns: 1fr; }
  .story-frame > div + div { border-inline-start: 0; border-top: 1px solid var(--line); }
}

.coming-soon {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: rgba(255,255,255,.78);
}
.coming-soon .copy { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.coming-soon h3 { color: #fff; font-size: var(--fs-h3); }
.coming-soon .media-wrap { min-height: 320px; position: relative; }
.coming-soon .media-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 14px; margin-bottom: 18px; border-radius: var(--r-pill); background: rgba(0,205,13,.14); color: var(--green); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.badge.light { background: var(--green-50); color: var(--green-700); }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 800px) { .coming-soon { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Involvement cards
   -------------------------------------------------------------------------- */
.involve-card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink-80); min-height: 300px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.involve-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; color: var(--ink-80); }
.involve-card .icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-50); color: var(--blue); margin-bottom: auto; }
.involve-card .icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.involve-card h3 { margin: 44px 0 10px; font-size: 2.25rem; }
.involve-card p { color: var(--ink-60); margin-bottom: 20px; }
.involve-card.featured { background: var(--blue); border-color: var(--blue); color: rgba(255,255,255,.85); }
.involve-card.featured h3 { color: #fff; }
.involve-card.featured p { color: rgba(255,255,255,.8); }
.involve-card.featured .icon { background: rgba(255,255,255,.16); color: #fff; }
.involve-card.featured .link-arrow { color: #fff; }
.involve-card.green .icon { background: var(--green-50); color: var(--green-700); }

/* Ways-to-contribute list */
.ways { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.way { padding: 28px 22px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.way .k { font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.way p { margin: 0; color: var(--ink-60); font-size: .95rem; }
.way:nth-child(odd) .k { color: var(--blue); }
@media (max-width: 1080px) { .ways { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .ways { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Transparency
   -------------------------------------------------------------------------- */
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { padding: 28px 24px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.trust-item .icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--mist); color: var(--blue); }
.trust-item .icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust-item h4 { margin: 8px 0 0; font-size: 1.125rem; }
.trust-item p { margin: 0; color: var(--ink-60); font-size: .925rem; }
.trust-item .status { margin-top: auto; padding-top: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-40); }
.trust-item .status.ok { color: var(--green-700); }
@media (max-width: 1080px) { .trust-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-list { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Final CTA band
   -------------------------------------------------------------------------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); padding: clamp(56px, 9vw, 128px) clamp(28px, 6vw, 88px); color: #fff; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8,64,173,.94) 0%, rgba(8,101,255,.78) 45%, rgba(8,101,255,.15) 100%); }
.cta-band h2 { color: #fff; font-size: var(--fs-h1); max-width: 12ch; }
.cta-band p { max-width: 46ch; color: rgba(255,255,255,.86); font-size: var(--fs-lead); margin-bottom: 36px; }
.cta-band .arabic-line { color: rgba(255,255,255,.75); margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   Detail blocks (inner pages)
   -------------------------------------------------------------------------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { padding: clamp(32px, 4vw, 52px); border-radius: var(--r-lg); background: var(--mist); }
.mv-card.blue { background: var(--blue); color: rgba(255,255,255,.88); }
.mv-card.blue h3 { color: #fff; }
.mv-card.blue .eyebrow { color: #fff; }
.mv-card.blue .eyebrow::before { background: radial-gradient(circle at 50% 4px, #fff 3.6px, transparent 4px), radial-gradient(circle at 50% 16px, var(--green) 3.6px, transparent 4px); }
.mv-card p { font-size: var(--fs-lead); line-height: 1.55; margin: 0; }
@media (max-width: 800px) { .mv { grid-template-columns: 1fr; } }

.principles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.principle { padding: 28px 22px 0 0; }
.principle + .principle { padding-inline-start: 22px; border-inline-start: 1px solid var(--line); }
.principle .n { font-family: var(--font-display); font-weight: 600; color: var(--blue); font-size: 1rem; letter-spacing: .1em; margin-bottom: 18px; }
.principle h3 { font-size: 1.9rem; margin-bottom: 10px; }
.principle p { color: var(--ink-60); margin: 0; font-size: .975rem; }
@media (max-width: 1080px) {
  .principles { grid-template-columns: repeat(2, 1fr); border-top: 0; gap: 0 24px; }
  .principle, .principle + .principle { padding: 28px 0; border-inline-start: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m7 11.3 2.7 2.7L15.2 8' fill='none' stroke='%2300850A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.check-list.blue li::before {
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M8 11h6M11.5 8.5 14 11l-2.5 2.5' fill='none' stroke='%230865FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.two-col-list { grid-template-columns: 1fr 1fr; column-gap: 24px; }
@media (max-width: 520px) { .two-col-list { grid-template-columns: 1fr; } }

.area-block { padding: var(--section) 0; border-top: 1px solid var(--line); }
.area-block:first-of-type { border-top: 0; }
.area-block .area-num { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .14em; color: var(--blue); margin-bottom: 14px; }
.area-block h2 { margin-bottom: 14px; }
.area-block .tagline { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; color: var(--ink-60); line-height: 1.1; margin-bottom: 26px; }
.sub-h { font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-40); margin: 36px 0 16px; }
.info-card { padding: 28px; border-radius: var(--r-md); background: var(--mist); }
.info-card h4 { margin-bottom: 6px; }
.info-card p { margin: 0; color: var(--ink-60); }
.callout { margin-top: 28px; padding: 18px 22px; border-inline-start: 3px solid var(--blue); background: var(--blue-50); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .975rem; }
.callout strong { color: var(--ink); }
.formula { display: inline-flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.formula span:not(.op) { padding: 8px 16px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); }
.formula .op { color: var(--ink-40); }

/* Jump nav (sub-page anchors) */
.jump { position: sticky; top: 72px; z-index: 20; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.jump ul { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.jump ul::-webkit-scrollbar { display: none; }
.jump a { display: block; padding: 8px 16px; border-radius: var(--r-pill); color: var(--ink-60); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.jump a:hover, .jump a.is-active { background: var(--blue-50); color: var(--blue); }

/* How-it-works mini steps */
.mini-steps { display: grid; gap: 14px; counter-reset: ms; }
.mini-steps li { counter-increment: ms; display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.mini-steps li::before { content: counter(ms); flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.mini-steps strong { display: block; color: var(--ink); }
.mini-steps span { color: var(--ink-60); font-size: .95rem; }

/* Values */
.values { display: flex; flex-wrap: wrap; gap: 10px; }
.values span { padding: 12px 22px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink); line-height: 1; }
.values span:nth-child(odd) { background: var(--blue); border-color: var(--blue); color: #fff; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card { padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-40); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper);
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2356627A' stroke-width='1.6'/%3E%3C/svg%3E") right 16px center/12px no-repeat; padding-inline-end: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8,101,255,.12); }
.field input[type="file"] { padding: 12px; min-height: 0; background: var(--mist); border-style: dashed; cursor: pointer; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.form-foot small { color: var(--ink-40); max-width: 42ch; }
.form-success { display: none; padding: 28px; border-radius: var(--r-md); background: var(--green-50); color: var(--ink); }
.form-success h4 { margin-bottom: 6px; }
.form-success p { margin: 0; color: var(--ink-60); }
.form-error { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: #FDECEC; color: #B42318; font-size: .95rem; }
.form-error:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
form.is-sent .form-body { display: none; }
form.is-sent .form-success { display: block; }

/* Tabs / filters (News) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; color: var(--ink-60); font: 500 .95rem var(--font-body); cursor: pointer; transition: all .2s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.empty-state { display: grid; place-items: center; text-align: center; padding: clamp(56px, 8vw, 112px) 24px; border-radius: var(--r-lg); border: 1.5px dashed var(--blue-100); background: linear-gradient(180deg, var(--blue-50), #fff); }
.empty-state .mark { width: 92px; margin: 0 auto 28px; opacity: .95; }
.empty-state h3 { font-size: var(--fs-h3); }
.empty-state p { max-width: 46ch; margin: 0 auto 28px; color: var(--ink-60); }

.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-md); background: var(--mist); }
.contact-card .icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--blue); }
.contact-card .icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-card strong { display: block; color: var(--ink); }
.contact-card span, .contact-card a { color: var(--ink-60); font-size: .95rem; }

/* Legal */
.prose h2 { font-size: var(--fs-h3); margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-60); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: var(--blue); color: rgba(255,255,255,.82); padding: clamp(64px, 8vw, 104px) 0 32px; margin-top: clamp(40px, 5vw, 72px); isolation: isolate; }
.site-footer::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 160px; right: -420px; top: 10%; border-radius: var(--r-pill); background: rgba(255,255,255,.06); transform: rotate(-35deg); }
.site-footer::after { content: ""; position: absolute; z-index: -1; width: 600px; height: 110px; right: -380px; top: 52%; border-radius: var(--r-pill); background: rgba(0,205,13,.18); transform: rotate(-35deg); }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer-brand img { height: 44px; width: auto; margin-bottom: 26px; }
.footer-tagline { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.05; color: #fff; max-width: 18ch; margin-bottom: 10px; }
.footer-tagline-ar { font-family: var(--font-ar); font-size: 1.1rem; color: rgba(255,255,255,.75); margin-bottom: 28px; text-align: start; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; transition: background .2s, transform .2s; }
.social a:hover { background: #fff; color: var(--blue); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-h { font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-cols li + li { margin-top: 10px; }
.footer-cols a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; padding-top: 28px; font-size: .875rem; }
.footer-reg { max-width: 62ch; margin: 0; color: rgba(255,255,255,.7); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; color: rgba(255,255,255,.7); }
.footer-legal a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Utility spacing */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.center { text-align: center; }

/* --------------------------------------------------------------------------
   Dynamic content (managed from the admin)
   -------------------------------------------------------------------------- */
.announce { background: var(--ink); color: #fff; font-size: .925rem; text-align: center; }
.announce .container { padding-top: 10px; padding-bottom: 10px; }
.announce a, .announce span { color: #fff; text-decoration: none; font-weight: 500; }
.announce a:hover { text-decoration: underline; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink-80); }
.post-card .thumb { aspect-ratio: 3 / 2; border-radius: var(--r-md); overflow: hidden; background: var(--mist); margin-bottom: 18px; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .thumb.empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-50), var(--green-50)); }
.post-card .thumb.empty img { width: 30%; height: auto; object-fit: contain; opacity: .5; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .85rem; color: var(--ink-40); margin-bottom: 8px; }
.post-meta .cat { color: var(--blue); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
.post-card h3 { font-size: 1.75rem; margin-bottom: 8px; transition: color .2s; }
.post-card:hover h3 { color: var(--blue); }
.post-card p { color: var(--ink-60); font-size: .975rem; margin: 0; }
.post-card[hidden] { display: none; }

.article { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; margin: 40px 0 48px; aspect-ratio: 16 / 9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.rich { font-size: 1.125rem; line-height: 1.75; color: var(--ink-80); }
.rich h2 { font-size: var(--fs-h3); margin: 1.6em 0 .5em; }
.rich h3 { font-size: 1.6rem; margin: 1.4em 0 .4em; }
.rich ul, .rich ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.rich ul { list-style: disc; } .rich ol { list-style: decimal; }
.rich li { margin-bottom: .4em; }
.rich blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-inline-start: 3px solid var(--green); font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; color: var(--ink); }
.rich img { border-radius: var(--r-md); margin: 1.6em 0; }
.rich a { color: var(--blue); }
.rich hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.metric .value .suffix { color: var(--blue); margin-inline-start: -6px; }
.metric .note-text { font-size: .85rem; color: var(--ink-40); margin-top: 4px; }

.story-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.story-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: rgba(255,255,255,.8); text-decoration: none; }
.story-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.story-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.story-card:hover .thumb img { transform: scale(1.04); }
.story-card .body { padding: 26px 26px 30px; }
.story-card h3 { color: #fff; font-size: 1.9rem; margin-bottom: 8px; }
.story-card .who { font-size: .85rem; color: var(--green); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.story-card p { margin: 0; font-size: .975rem; }
.story-card:hover { color: rgba(255,255,255,.9); }
.story-quote { font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.12; color: var(--ink); margin: 0 0 40px; padding-inline-start: 24px; border-inline-start: 3px solid var(--green); }
.story-steps { display: grid; gap: 18px; }
.story-step { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.story-step .k { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--ink); display: flex; gap: 10px; align-items: center; }
.story-step .k::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex: none; }
.story-step:nth-child(3) .k::before { background: var(--green); }
.story-step:nth-child(4) .k::before { background: var(--ink); }
.story-step p { margin: 0; color: var(--ink-60); white-space: pre-line; }
@media (max-width: 700px) { .story-step { grid-template-columns: 1fr; gap: 8px; } }

.doc-list { display: grid; gap: 10px; margin-top: 14px; }
.doc-link { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--blue); }
.doc-link::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E") center/contain no-repeat; }
.doc-link small { font-weight: 400; color: var(--ink-40); }

.vacancy-list { display: grid; gap: 14px; margin-bottom: 28px; }
.vacancy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 22px 24px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-80); transition: border-color .2s, box-shadow .2s; }
.vacancy:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); color: var(--ink-80); }
.vacancy h4 { margin: 0 0 4px; }
.vacancy .meta { font-size: .9rem; color: var(--ink-60); }
.donate-box { margin-top: 24px; padding: 28px; border-radius: var(--r-md); background: var(--mist); }
.donate-box h4 { margin-bottom: 10px; }
.donate-box p { white-space: pre-line; margin: 0; color: var(--ink-80); }

/* --------------------------------------------------------------------------
   Language switch
   -------------------------------------------------------------------------- */
.lang-switch {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap;
}
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }
.lang-switch[lang="ar"] { font-family: var(--font-ar); }
.lang-switch[lang="en"] { font-family: "DM Sans", system-ui, sans-serif; }
@media (max-width: 1080px) { .lang-switch { align-self: flex-start; min-height: 46px; padding: 0 20px; } }

/* --------------------------------------------------------------------------
   Arabic / right-to-left
   -------------------------------------------------------------------------- */
html[dir="rtl"] {
  --font-body: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --fs-hero: clamp(2.5rem, 1.6rem + 3.8vw, 4.6rem);
  --fs-h1: clamp(2.2rem, 1.5rem + 3vw, 3.8rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --fs-h3: clamp(1.4rem, 1.2rem + .8vw, 1.9rem);
}
/* Letter-spacing breaks the joins between Arabic letters. */
html[dir="rtl"] body, html[dir="rtl"] body * { letter-spacing: 0 !important; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-weight: 700; line-height: 1.3; }
html[dir="rtl"] .hero h1 { line-height: 1.25; }
html[dir="rtl"] body { line-height: 1.8; }
html[dir="rtl"] .eyebrow { font-size: .9rem; }
html[dir="rtl"] .area-card h3, html[dir="rtl"] .step h3, html[dir="rtl"] .involve-card h3 { font-size: 1.75rem; }
html[dir="rtl"] .principle h3 { font-size: 1.5rem; }
html[dir="rtl"] .way .k { font-size: 1.6rem; }
html[dir="rtl"] .values span, html[dir="rtl"] .equation .chip { font-size: 1.15rem; }
html[dir="rtl"] .footer-tagline { font-size: 1.5rem; line-height: 1.4; }
html[dir="rtl"] .story-frame .k, html[dir="rtl"] .story-step .k { font-size: 1.35rem; }
html[dir="rtl"] .story-quote, html[dir="rtl"] .rich blockquote { line-height: 1.5; }
html[dir="rtl"] .area-block .tagline { line-height: 1.45; }
html[dir="rtl"] .nav-list > li > a { font-size: 1rem; }

/* Mirror the decorative pills and the D-shaped photos */
html[dir="rtl"] .pills { transform: scaleX(-1); }
html[dir="rtl"] .site-footer::before { right: auto; left: -420px; transform: rotate(35deg); }
html[dir="rtl"] .site-footer::after { right: auto; left: -380px; transform: rotate(35deg); }
html[dir="rtl"] .hero-mark .d-photo { border-radius: 50% 6% 6% 50% / 38% 6% 6% 38%; }
html[dir="rtl"] .media-d { border-radius: 50% var(--r-lg) var(--r-lg) 50% / 34% var(--r-lg) var(--r-lg) 34%; }
html[dir="rtl"] .media-d-left { border-radius: var(--r-lg) 50% 50% var(--r-lg) / var(--r-lg) 34% 34% var(--r-lg); }
html[dir="rtl"] .media-d.wide { border-radius: 28% var(--r-lg) var(--r-lg) 28% / 50% var(--r-lg) var(--r-lg) 50%; }
html[dir="rtl"] .callout { border-radius: var(--r-sm) 0 0 var(--r-sm); }
html[dir="rtl"] .cta-band::before { background: linear-gradient(-100deg, rgba(8,64,173,.94) 0%, rgba(8,101,255,.78) 45%, rgba(8,101,255,.15) 100%); }

/* Arrows point the reading direction */
html[dir="rtl"] .link-arrow::after { transform: scaleX(-1); }
html[dir="rtl"] .link-arrow:hover::after, html[dir="rtl"] a:hover .link-arrow::after { transform: scaleX(-1) translateX(4px); }

/* Form selects: arrow on the left */
html[dir="rtl"] .field select { background-position: left 16px center; padding-right: 16px; padding-left: 40px; }
html[dir="rtl"] .mini-steps li::before { content: counter(ms, arabic-indic); }
html[dir="rtl"] .hero-meta, html[dir="rtl"] .btn { font-family: var(--font-body); }

/* English text inside Arabic pages (untranslated items) keeps its own direction */
html[dir="rtl"] [dir="ltr"] { text-align: left; }
