/* WOFHRAD-SL shared styles. One file for every public page. */
/* ── Design tokens: the WOFHRAD-SL brand palette ──
   Brand colours: primary #0865FF, accent #C8960C, white #FFFFFF.
   Deep and light shades below are the same blue hue, darker or lighter, so every colour on the
   site comes from the brand. Contrast rules: white text on primary passes (4.9:1); text on the
   accent must be dark (ink), never white; accent text is used only on dark backgrounds. */
:root {
  --brand: #0865FF;       /* primary brand colour: buttons, links, highlights, key numbers */
  --brand-dark: #0652CC;  /* primary, hover state */
  --accent: #C8960C;      /* brand accent: Donate, rules, figures on dark backgrounds */
  --accent-dark: #A87D08; /* accent, hover state */
  --navy: #06306F;        /* deep shade of the primary: headings and dark sections */
  --navy-deep: #041F4A;   /* deepest shade: footer and dark bands */
  --blue: var(--brand);
  --gold: var(--accent);
  --gold-soft: #E9C766;   /* light tint of the accent, for text on dark photos */
  --green: var(--navy);   /* small labels use the deep brand blue */
  --ink: #0B1B3A;         /* headings */
  --body: #3A4558;        /* body text */
  --muted: #586378;
  --line: #E3E8F2;        /* hairlines, tinted with the primary */
  --paper: #F3F7FF;       /* alternate sections: a faint tint of the primary on white */
  --mist: #F8FAFF;
  --sky: #EAF2FF;
  --shadow-sm: 0 1px 2px rgba(6,48,111,.06), 0 2px 8px rgba(6,48,111,.05);
  --shadow-md: 0 8px 24px rgba(6,48,111,.09), 0 2px 6px rgba(6,48,111,.05);
  --shadow-lg: 0 24px 48px rgba(6,48,111,.15);
  --ease: cubic-bezier(.2,.7,.2,1);
}
/* Self-hosted fonts (SIL Open Font Licence, see assets/fonts) */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/dm-sans-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/dm-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/playfair-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/playfair-display-latin-900-normal.woff2') format('woff2'); }

/* Base reset. The pages were designed on top of Tailwind's reset ("preflight"); Tailwind
   itself is no longer loaded, so the parts the design relies on are kept here. */
*, ::before, ::after { box-sizing: border-box; border: 0 solid #e5e7eb; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; margin: 0; padding: 0; }
button, [type='button'], [type='submit'] { background-color: transparent; background-image: none; cursor: pointer; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
img, svg, video { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
table { border-collapse: collapse; }
fieldset { margin: 0; padding: 0; } legend { padding: 0; }
textarea { resize: vertical; }
[hidden] { display: none !important; }

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: #1e293b;
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; }
img { max-width: 100%; display: block; }

/* ── Utility Classes ──────────────────────── */
.section-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--green);
  display: inline-block; margin-bottom: .75rem; position: relative;
}
.section-label::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 50%; height: 2px; background: var(--gold);
}

/* Buttons */
.btn {
  display: inline-block; font-weight: 600; text-align: center;
  border-radius: 9999px; padding: .7rem 1.8rem;
  transition: all .3s ease; cursor: pointer; line-height: 1.4;
  text-decoration: none; font-size: .875rem;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.btn-outline { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.btn-outline-blue { border: 2px solid var(--blue); color: var(--blue); background: transparent; }
.btn-outline-blue:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* Card hover */
.card { transition: transform .4s ease, box-shadow .4s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.12); }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Accessibility: Skip Link ─────────────── */
.skip-link {
  position: absolute; top: -3.5rem; left: 1rem; z-index: 2000;
  background: var(--navy); color: #fff; padding: .65rem 1.25rem;
  border-radius: .5rem; font-weight: 700; font-size: .85rem;
  text-decoration: none; transition: top .25s ease;
}
.skip-link:focus { top: 1rem; }

/* ── Scroll Progress Bar ───────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg,var(--blue),var(--gold));
  z-index: 1200; transition: width .12s linear;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

.partners-section { background: var(--mist); padding: 4.5rem 0; overflow: hidden; }
.partners-head { text-align: center; max-width: 640px; margin: 0 auto 2.75rem; padding: 0 1.25rem; }
.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.marquee-track {
  display: flex; width: max-content; gap: 3.5rem; align-items: center;
  animation: marquee 30s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.partners-cta { text-align: center; margin-top: 2.75rem; }

/* ── Partners Page Grid ─────────────────────── */
.partners-hero {
  background: var(--navy); padding: 9rem 1.25rem 4rem; position: relative; overflow: hidden;
}
.partners-grid {
  display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
}
.partner-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1.25rem; padding: 2.25rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .9rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.partner-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.1); border-color: transparent; }

.partner-card h3 { font-size: 1.05rem; color: var(--navy); margin: 0; }
.partner-card p { font-size: .82rem; color: #64748b; line-height: 1.65; margin: 0; }
.partner-tag {
  font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); background: rgba(46,125,50,.08); border: 1px solid rgba(46,125,50,.2);
  padding: .25rem .75rem; border-radius: 9999px;
}
.partner-note {
  font-size: .78rem; color: #94a3b8; line-height: 1.6; margin-top: .35rem;
}

/* -- Partner logo chip (marquee) -- */
.partner-logo-chip {
  flex-shrink: 0; height: 96px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e2e8f0; border-radius: .85rem;
  padding: .5rem 1.25rem; transition: transform .3s ease, box-shadow .3s ease;
}
.partner-logo-chip:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.partner-logo-chip img { height: 76px; width: auto; max-width: 190px; object-fit: contain; display: block; }

/* -- Partner logo box (grid card) -- */
.partner-logo-box {
  width: 100%; height: 92px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #f1f5f9; border-radius: 1rem; padding: .75rem;
}
.partner-logo-box img { max-height: 100%; max-width: 100%; object-fit: contain; display: block; }

/* -- Donate button (nav) -- */
.btn-donate {
  background: var(--gold); color: var(--navy); font-weight: 700;
}
.btn-donate:hover { background: #F57F17; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }

/* -- Floating donate button -- */
#float-donate {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 900;
  background: var(--gold); color: var(--navy); font-weight: 700; font-size: .85rem;
  padding: .75rem 1.35rem; border-radius: 9999px; text-decoration: none;
  display: flex; align-items: center; gap: .5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .2s ease;
}
#float-donate.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#float-donate:hover { background: #F57F17; color: #fff; }
@media (max-width: 640px) { #float-donate span.label { display:none; } #float-donate { padding: .85rem; } }

/* -- Local partner badge -- */
.impl-partner-note {
  display:flex; align-items:center; gap:.6rem; justify-content:center; text-align:left;
  background:rgba(46,125,50,.06); border:1px solid rgba(46,125,50,.2); border-radius:.85rem;
  padding:.75rem 1rem; font-size:.8rem; color:#166534; max-width:520px; margin:1rem auto 0;
}

    /* ── Navbar ───────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: #fff; transition: box-shadow .3s ease, padding .3s ease;
  padding: 1rem 0;
}
#navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.1); padding: .6rem 0; border-bottom: 2px solid var(--blue); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.nav-logo img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--blue); object-fit: cover; }
.nav-logo-text .brand-name { display: block; font-family: 'DM Sans',sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--blue); line-height: 1.2; margin: 0; }
.nav-logo-text .brand-tag { display: block; font-size: .72rem; color: #64748b; font-style: italic; margin: 0; line-height: 1.3; max-width: 200px; }
.nav-links { display: none; align-items: center; gap: 1.6rem; }
@media (min-width: 1180px) { .nav-links { display: flex; } }
.nav-links a { font-size: .85rem; font-weight: 600; color: #334155; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }

/* Hamburger */
#hamburger {
  display: flex; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 6px; border-radius: 6px;
}
@media (min-width: 1180px) { #hamburger { display: none; } }
#hamburger span {
  display: block; width: 24px; height: 2px; background: var(--blue);
  border-radius: 2px; transition: all .3s ease;
}
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
#mobile-menu {
  max-height: 0; overflow: hidden; background: #fff;
  border-top: 1px solid #e2e8f0; transition: max-height .4s ease, padding .4s ease;
}
#mobile-menu.open { max-height: calc(100vh - 80px); overflow-y: auto; padding: 1.25rem; }
#mobile-menu a {
  display: block; padding: .75rem 0; font-weight: 600; color: #334155;
  border-bottom: 1px solid #f1f5f9; text-decoration: none; font-size: .95rem;
}
#mobile-menu a:last-child { border-bottom: none; }
#mobile-menu a:hover { color: var(--blue); }
#mobile-menu .btn { width: 100%; margin-top: 1rem; text-align: center; }

/* ── Hero ─────────────────────────────────── */
.hero {
  background: var(--navy); min-height: 100vh;
  display: flex; align-items: center; padding-top: 80px;
  position: relative; overflow: hidden;
}
.hero-dots {
  position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(circle, #fff 1px, transparent 0);
  background-size: 36px 36px;
}
.hero-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  opacity: .18; pointer-events: none;
}
.hero-inner {
  max-width: 1280px; margin: 0 auto; padding: 3rem 1.25rem;
  display: grid; gap: 3rem; position: relative; z-index: 1;
}
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1fr 1fr; align-items: center; } }
.hero-badge {
  display: inline-block; padding: .3rem 1rem; border-radius: 9999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero h2 { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; line-height: 1.15; margin-bottom: 1.25rem; }
.hero h2 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,.8); font-size: 1.05rem; line-height: 1.8; margin-bottom: 2rem; max-width: 500px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-img-wrap { position: relative; }
.hero-img-wrap img { border-radius: 1rem; box-shadow: 0 24px 60px rgba(0,0,0,.4); border: 4px solid rgba(21,101,192,.4); width: 100%; }
.stat-badge {
  position: absolute; background: #fff; padding: .75rem 1rem;
  border-radius: .75rem; box-shadow: 0 8px 24px rgba(0,0,0,.15);
  display: flex; align-items: center; gap: .75rem;
}
.stat-badge-left { bottom: -1.5rem; left: -1.5rem; border-left: 4px solid var(--blue); }
.stat-badge-right { top: -1.5rem; right: -1.5rem; border-left: 4px solid var(--green); }
.stat-badge p { margin: 0; }
.stat-badge .num { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.stat-badge .lbl { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #64748b; }
@media (max-width: 640px) { .stat-badge { display: none; } }

/* ── Stats Bar ────────────────────────────── */
.stats-bar { background: var(--blue); padding: 2.5rem 1.25rem; }
.stats-bar-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; text-align: center; }
@media (min-width: 768px) { .stats-bar-inner { grid-template-columns: repeat(4,1fr); } }
.stats-bar .num { font-size: 2.5rem; font-weight: 900; color: var(--gold); display: block; line-height: 1; margin-bottom: .4rem; }
.stats-bar .lbl { font-size: .65rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .15em; }

/* ── Section Base ─────────────────────────── */
.section { padding: 5rem 1.25rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }

/* ── About ────────────────────────────────── */
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-img-wrap { position: relative; }
.about-img-main { border-radius: 1rem; box-shadow: 0 20px 50px rgba(0,0,0,.15); width: 100%; height: 460px; object-fit: cover; }
.about-img-accent {
  position: absolute; bottom: -2rem; right: -2rem;
  width: 55%; border-radius: .75rem; border: 6px solid #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.15); display: none;
}
@media (min-width: 640px) { .about-img-accent { display: block; } }

/* ── Programs ─────────────────────────────── */
.programs-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .programs-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .programs-grid { grid-template-columns: repeat(3,1fr); } }
.prog-card { border-radius: 1rem; overflow: hidden; border: 1px solid #e2e8f0; background: #fff; display: flex; flex-direction: column; }
.prog-card img { width: 100%; height: 200px; object-fit: cover; transition: transform .6s ease; }
.prog-card:hover img { transform: scale(1.06); }
.prog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.prog-tag { font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .25rem .75rem; border-radius: 9999px; background: var(--paper); color: var(--green); display: inline-block; margin-bottom: 1rem; }
.prog-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: .75rem; }
.prog-card p { font-size: .85rem; color: #64748b; line-height: 1.7; flex: 1; }
.prog-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--blue); margin-top: 1rem; text-decoration: none; transition: gap .3s; }
.prog-link:hover { gap: .7rem; }

/* ── Impact ───────────────────────────────── */
.impact-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .impact-grid { grid-template-columns: 1fr 1fr; } }
.impact-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.impact-stat {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 1rem; padding: 1.25rem; transition: background .3s;
}
.impact-stat:hover { background: rgba(21,101,192,.3); }
.impact-stat .num { font-size: 1.8rem; font-weight: 900; color: var(--gold); display: block; }
.impact-stat .lbl { font-size: .65rem; font-weight: 700; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .1em; }
.impact-quote { border-left: 4px solid var(--gold); background: rgba(255,255,255,.05); padding: 1.5rem; border-radius: 0 .75rem .75rem 0; margin-bottom: 1rem; }
.impact-quote p { color: #fff; font-style: italic; font-size: 1rem; line-height: 1.7; margin: 0; }

/* ── Team ─────────────────────────────────── */
.team-leaders { display: grid; gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .team-leaders { grid-template-columns: repeat(2,1fr); } }
.leader-card {
  background: #fff; border-radius: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,.08);
  border-top: 6px solid var(--blue); display: flex; flex-direction: column;
  align-items: center; gap: 1.25rem; padding: 1.5rem; text-align: center;
}
@media (min-width: 480px) { .leader-card { flex-direction: row; text-align: left; } }
.leader-card img { width: 110px; height: 110px; border-radius: .75rem; object-fit: cover; flex-shrink: 0; }
.leader-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: .25rem; }
.leader-card p { font-size: .7rem; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin: 0; }

.team-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
@media (min-width: 480px) { .team-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(4,1fr); } }
.team-member { text-align: center; }
.team-member img {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1rem; border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.12); display: block;
}
.team-member h4, .team-member .team-name { font-family: 'DM Sans',sans-serif; font-weight: 700; font-size: .875rem; color: #1e293b; margin-bottom: .25rem; }
.team-member p { font-size: .65rem; color: #64748b; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin: 0; }

/* ── Challenges ───────────────────────────── */
.challenges-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .challenges-grid { grid-template-columns: 1fr 1fr; } }
.challenge-item { display: flex; gap: 1.25rem; padding: 1.25rem; border-left: 4px solid var(--blue); background: rgba(227,242,253,.3); border-radius: 0 .75rem .75rem 0; }
.challenge-item + .challenge-item { margin-top: 1rem; }
.challenge-icon { color: var(--blue); flex-shrink: 0; margin-top: .15rem; }
.challenge-item h3 { font-size: 1rem; color: var(--navy); margin-bottom: .3rem; }
.challenge-item p { font-size: .85rem; color: #64748b; margin: 0; line-height: 1.6; }

/* ── Get Involved ─────────────────────────── */
.involve-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .involve-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.involve-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  border-radius: 1.5rem; padding: 2.5rem; display: flex; flex-direction: column;
  color: #fff;
}
.involve-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.involve-card p { font-size: .9rem; color: rgba(255,255,255,.8); line-height: 1.7; flex: 1; margin-bottom: 2rem; }

/* ── Contact ──────────────────────────────── */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.contact-item + .contact-item { margin-top: 1.75rem; }
.contact-icon { width: 48px; height: 48px; border-radius: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item h4, .contact-item .contact-h { font-family: 'DM Sans',sans-serif; font-weight: 700; margin-bottom: .2rem; font-size: .9rem; }
.contact-item p, .contact-item a { font-size: .9rem; color: #64748b; text-decoration: none; margin: 0; }
.contact-item a:hover { color: var(--blue); text-decoration: underline; }

/* Form */
.form-group { margin-bottom: 1.25rem; }
.form-input {
  width: 100%; padding: .85rem 1.1rem; border: 1.5px solid #e2e8f0;
  border-radius: .75rem; font-size: .95rem; font-family: 'DM Sans',sans-serif;
  background: #fff; transition: border-color .2s, box-shadow .2s; outline: none;
  color: #1e293b;
}
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,.15); }
.form-input::placeholder { color: #94a3b8; }
textarea.form-input { resize: vertical; min-height: 120px; }
.form-btn { width: 100%; background: var(--blue); color: #fff; border: none; padding: .9rem; border-radius: .75rem; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.form-btn:hover { background: var(--navy); transform: translateY(-1px); }
.form-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-success { display: none; padding: .9rem; border-radius: .75rem; background: var(--paper); color: var(--green); font-weight: 700; text-align: center; font-size: .9rem; margin-top: 1rem; }

/* Social icons */
.social-links { display: flex; gap: .75rem; margin-top: 2rem; }
.social-btn {
  width: 44px; height: 44px; border-radius: 50%; background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  color: #475569; transition: background .2s, color .2s; text-decoration: none;
}
.social-btn:hover { background: var(--blue); color: #fff; }

/* ── Footer ───────────────────────────────── */
footer { background: var(--navy); padding: 4rem 1.25rem 1.5rem; color: rgba(255,255,255,.6); }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand h2 { font-family: 'DM Sans',sans-serif; font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.footer-brand p { font-size: .85rem; font-style: italic; line-height: 1.6; }
.footer-col h4, .footer-h { font-family: 'DM Sans',sans-serif; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: #fff; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li + li { margin-top: .6rem; }
.footer-col a { font-size: .85rem; color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; text-align: center; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }

/* ── Back to Top ──────────────────────────── */
#back-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue);
  color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s, background .2s;
  box-shadow: 0 4px 14px rgba(21,101,192,.4);
}
#back-top.visible { opacity: 1; transform: translateY(0); }
#back-top:hover { background: var(--navy); }

/* ── Accessibility ────────────────────────── */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Inner-page hero (partners, stories, donate, reports, privacy) ── */
/* ── Partners Hero ─────────────────────────── */
.partners-hero {
  background: var(--navy); min-height: 46vh; display: flex; align-items: center;
  padding: 9rem 1.25rem 4rem; position: relative; overflow: hidden;
}
.partners-hero .hero-dots {
  position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(circle, #fff 1px, transparent 0);
  background-size: 36px 36px;
}
.partners-hero-inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.partners-hero-badge {
  display: inline-block; padding: .3rem 1rem; border-radius: 9999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.partners-hero h1 { font-size: clamp(2rem,5vw,3.2rem); color: #fff; line-height: 1.15; margin-bottom: 1.25rem; }
.partners-hero h1 span { color: var(--gold); }
.partners-hero p { color: rgba(255,255,255,.8); font-size: 1.05rem; line-height: 1.8; max-width: 640px; margin: 0 auto; }
/* ── CTA ─────────────────────────────────────── */
.partners-cta-section {
  background: linear-gradient(135deg,var(--blue),var(--navy)); position: relative; overflow: hidden;
}
.partners-cta-section::before {
  content: ''; position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(circle,#fff 1px,transparent 0); background-size: 30px 30px;
}
.partners-cta-inner { position: relative; z-index: 1; text-align: center; }
.partners-cta-inner h2 { color: #fff; font-size: clamp(1.6rem,4vw,2.3rem); margin-bottom: 1rem; }
.partners-cta-inner p { color: rgba(255,255,255,.8); font-size: 1rem; max-width: 560px; margin: 0 auto 2rem; line-height: 1.8; }
.partners-cta-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ── Donate page ── */
/* -- Donate page -- */
.donate-hero { background: var(--navy); padding: 8.5rem 1.25rem 4.5rem; position: relative; overflow: hidden; }
.donate-hero .hero-dots { position:absolute; inset:0; opacity:.07; background-image: radial-gradient(circle,#fff 1px,transparent 0); background-size:36px 36px; }
.donate-hero-inner { max-width:1180px; margin:0 auto; display:grid; gap:2.5rem; position:relative; z-index:1; align-items:start; }
@media (min-width: 960px) { .donate-hero-inner { grid-template-columns: 1.1fr .9fr; gap:3.5rem; } }
.partners-hero-badge { display:inline-block; padding:.3rem 1rem; border-radius:9999px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); color:#fff; font-size:.7rem; font-weight:700; letter-spacing:.15em; text-transform:uppercase; margin-bottom:1.25rem; }
.donate-copy h1 { font-size: clamp(2rem,4.6vw,3.1rem); color:#fff; line-height:1.15; margin:0 0 1.1rem; }
.donate-copy h1 span { color:var(--gold); }
.donate-copy p { color:rgba(255,255,255,.82); font-size:1.02rem; line-height:1.8; margin:0 0 1.25rem; }
.donate-points { list-style:none; padding:0; margin:0 0 1.75rem; color:#fff; font-weight:600; font-size:.95rem; }
.donate-points li { padding-left:1.6rem; position:relative; margin-bottom:.5rem; }
.donate-points li::before { content:''; position:absolute; left:0; top:.45rem; width:.7rem; height:.7rem; border-radius:50%; background:var(--gold); }
.donate-photo img { width:100%; height:auto; max-height:320px; object-fit:cover; border-radius:1.25rem; border:3px solid rgba(255,255,255,.15); }

.donate-card { background:#fff; border-radius:1.5rem; padding:2rem 1.75rem; box-shadow:0 30px 60px rgba(0,0,0,.3); }
.donate-card h2 { font-size:1.5rem; color:var(--navy); margin:0 0 1.25rem; }
.freq-toggle { display:grid; grid-template-columns:1fr 1fr; background:#F1F5F9; border-radius:9999px; padding:.3rem; margin-bottom:1.25rem; }
.freq-btn { border:none; background:transparent; padding:.65rem; border-radius:9999px; font-weight:700; font-size:.85rem; color:#64748b; cursor:pointer; font-family:inherit; transition:all .25s ease; }
.freq-btn.active { background:var(--blue); color:#fff; box-shadow:0 4px 12px rgba(21,101,192,.35); }
.donate-label { display:block; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#475569; margin:1rem 0 .45rem; }
.donate-select, .donate-input, .custom-wrap { width:100%; border:1.5px solid #cbd5e1; border-radius:.75rem; font-family:inherit; font-size:.95rem; color:#1e293b; background:#fff; }
.donate-select, .donate-input { padding:.75rem .9rem; }
.donate-select:focus, .donate-input:focus, .custom-wrap:focus-within { outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(21,101,192,.15); }
.amount-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:.6rem; }
@media (min-width:420px) { .amount-grid { grid-template-columns:repeat(4,1fr); } }
.amount-btn { border:1.5px solid #cbd5e1; background:#fff; border-radius:.75rem; padding:.8rem .25rem; font-weight:700; font-size:.9rem; color:var(--navy); cursor:pointer; font-family:inherit; transition:all .2s ease; }
.amount-btn:hover { border-color:var(--blue); transform:translateY(-2px); }
.amount-btn.active { background:var(--blue); border-color:var(--blue); color:#fff; }
.custom-wrap { display:flex; align-items:center; padding:0 .9rem; }
.custom-wrap span { color:#64748b; font-weight:700; margin-right:.5rem; }
.custom-wrap input { border:none; outline:none; flex:1; padding:.75rem 0; font-size:.95rem; font-family:inherit; min-width:0; background:transparent; }
.donate-summary { margin:1.25rem 0 1rem; padding:.85rem 1rem; background:var(--paper); border-radius:.75rem; font-size:.9rem; color:var(--navy); font-weight:600; text-align:center; }
.donate-submit { display:block; width:100%; padding:.95rem 1rem; font-size:1rem; }
.donate-submit[aria-disabled="true"] { opacity:.5; pointer-events:none; }
.donate-fineprint { font-size:.72rem; color:#64748b; line-height:1.6; margin:.9rem 0 0; text-align:center; }

.gift-grid, .ways-grid { display:grid; gap:1.5rem; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); }
.gift-card { background:#fff; border-radius:1.25rem; padding:2rem 1.75rem; border-top:4px solid var(--gold); box-shadow:0 8px 24px rgba(0,0,0,.06); transition:transform .3s ease, box-shadow .3s ease; }
.gift-card:hover { transform:translateY(-6px); box-shadow:0 20px 40px rgba(0,0,0,.1); }
.gift-num { display:block; font-family:'Playfair Display',serif; font-weight:900; font-size:2.6rem; color:var(--blue); line-height:1; margin-bottom:.6rem; }
.gift-card h3 { font-size:1.1rem; color:var(--navy); margin:0 0 .5rem; }
.gift-card p { font-size:.88rem; color:#64748b; line-height:1.7; margin:0; }
.way-card { display:block; text-decoration:none; background:var(--mist); border:1px solid #e2e8f0; border-radius:1.25rem; padding:1.75rem; text-align:center; transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
a.way-card:hover, .way-card:hover { transform:translateY(-5px); box-shadow:0 16px 32px rgba(0,0,0,.08); border-color:var(--blue); }
.way-card h3 { font-size:1.05rem; color:var(--navy); margin:0 0 .4rem; }
.way-card p { font-size:.95rem; color:var(--blue); font-weight:700; margin:0 0 .4rem; }
.way-card span { font-size:.8rem; color:#64748b; }
.faq details { background:#fff; border:1px solid #e2e8f0; border-radius:1rem; padding:1.1rem 1.25rem; margin-bottom:.85rem; }
.faq summary { cursor:pointer; font-weight:700; color:var(--navy); font-size:.98rem; }
.faq details[open] summary { margin-bottom:.6rem; }
.faq p { font-size:.9rem; color:#64748b; line-height:1.75; margin:0; }
.faq a { color:var(--blue); font-weight:600; }

/* Stories, newsletter and subscribe form. Uses the site's existing palette. */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Story cards */
.story-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.story-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 1.25rem;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.story-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.1); border-color: transparent; }
.story-thumb { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; display: block; background: var(--paper); }
.story-thumb-empty { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--blue), var(--navy)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.4rem; }
.story-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.story-date { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.story-card h3 { font-size: 1.15rem; line-height: 1.35; color: var(--navy); margin: 0; }
.story-card p { font-size: .88rem; line-height: 1.7; color: #64748b; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-more { margin-top: auto; padding-top: .5rem; font-size: .82rem; font-weight: 700; color: var(--blue); }
.story-state { text-align: center; color: #64748b; padding: 3rem 1rem; font-size: .95rem; }

/* Single story */
.story-article { max-width: 760px; margin: 0 auto; }
.story-article .story-date { display: block; margin-bottom: .75rem; }
.story-article h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.2; color: var(--navy); margin: 0 0 1.5rem; }
.story-cover { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 1.25rem; margin-bottom: 2rem; }
.story-text p { font-size: 1.06rem; line-height: 1.9; color: #334155; margin: 0 0 1.4rem; overflow-wrap: anywhere; }

.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 2.25rem 0 0; padding-top: 1.5rem; border-top: 1px solid #e2e8f0; }
.share-row strong { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #475569; margin-right: .4rem; }
.share-btn { border: 1.5px solid #cbd5e1; background: #fff; color: var(--navy); font: 600 .8rem 'DM Sans', sans-serif; padding: .5rem 1rem; border-radius: 9999px; text-decoration: none; cursor: pointer; transition: all .2s ease; }
.share-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-size: .85rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* Subscribe form */
.subscribe-form { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; max-width: 560px; margin: 0 auto; }
.subscribe-form input[type="email"] {
  flex: 1 1 260px; min-width: 0; padding: .85rem 1.25rem; border-radius: 9999px; border: 2px solid transparent;
  font: 500 .95rem 'DM Sans', sans-serif; color: #1e293b; background: #fff;
}
.subscribe-form input[type="email"]:focus { outline: none; border-color: var(--gold); }
.subscribe-form button { border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.subscribe-form button:disabled { opacity: .6; cursor: wait; }
.subscribe-msg { flex-basis: 100%; margin: .25rem 0 0; font-size: .85rem; min-height: 1.3em; text-align: center; color: rgba(255,255,255,.85); }
.subscribe-msg.ok { color: #A5D6A7; font-weight: 600; }
.subscribe-msg.err { color: #FFCDD2; font-weight: 600; }

/* Newsletter band */
.newsletter-band { background: linear-gradient(135deg, var(--blue), var(--navy)); padding: 4rem 1.25rem; position: relative; overflow: hidden; }
.newsletter-band::before { content: ''; position: absolute; inset: 0; opacity: .07; background-image: radial-gradient(circle, #fff 1px, transparent 0); background-size: 30px 30px; }
.newsletter-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; text-align: center; }
.newsletter-inner h2 { color: #fff; font-size: clamp(1.5rem, 3.8vw, 2.2rem); margin: 0 0 .75rem; }
.newsletter-inner > p { color: rgba(255,255,255,.82); line-height: 1.75; margin: 0 0 1.75rem; }
.newsletter-fine { font-size: .72rem; color: rgba(255,255,255,.55); margin: .9rem 0 0; }

/* Latest stories on the homepage */
.latest-stories { background: #fff; padding: 5rem 1.25rem; }
.latest-stories[hidden] { display: none; }

/* Contact form error message */
.form-error { display: none; margin-top: 1rem; padding: .8rem 1rem; border-radius: .7rem; background: #FFEBEE; color: #C62828; font-size: .85rem; font-weight: 600; line-height: 1.5; }

/* ── Additions ─────────────────────────────── */
main:focus { outline: none; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; line-height: 1.15; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--gold); }
.nav-links a[aria-current="page"], #mobile-menu a[aria-current="page"] { color: var(--blue); }
.nav-links a.btn[aria-current="page"] { color: var(--navy); }
.source-note { font-size: .78rem; color: rgba(255,255,255,.78); line-height: 1.6; margin-top: 1rem; }
.source-note a { color: inherit; text-decoration: underline; }

/* Marquee pause control (WCAG 2.2.2) */
.marquee-controls { text-align: center; margin-top: 1.25rem; }
.marquee-toggle { background: #fff; border: 1.5px solid #cbd5e1; color: #334155; font: 600 .8rem 'DM Sans', sans-serif; padding: .45rem 1.1rem; border-radius: 9999px; cursor: pointer; }
.marquee-toggle:hover { border-color: var(--blue); color: var(--blue); }
.marquee-wrap.paused .marquee-track { animation-play-state: paused; }
.partner-group-title { text-align: center; font-size: 1.2rem; color: var(--navy); margin: 3rem 0 1.5rem; }
.partner-tag.past { color: #64748b; background: #f1f5f9; border-color: #e2e8f0; }

/* Contact form select */
select.form-input { appearance: auto; }

/* Story filters and paging */
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 0 2.25rem; }
.filter-chip { border: 1.5px solid #cbd5e1; background: #fff; color: #334155; font: 600 .82rem 'DM Sans', sans-serif; padding: .45rem 1rem; border-radius: 9999px; cursor: pointer; text-decoration: none; }
.filter-chip[aria-pressed="true"], .filter-chip:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.load-more-wrap { text-align: center; margin-top: 2.5rem; }
.story-tag { display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); background: var(--paper); padding: .2rem .65rem; border-radius: 9999px; margin-left: .5rem; vertical-align: middle; }

/* Long-form text pages (privacy, reports) */
.prose { max-width: 760px; margin: 0 auto; color: #334155; line-height: 1.85; font-size: 1rem; }
.prose h2 { font-size: 1.45rem; color: var(--navy); margin: 2.25rem 0 .75rem; }
.prose p, .prose ul { margin: 0 0 1.1rem; }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose a { color: var(--blue); font-weight: 600; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.doc-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1rem 1.25rem; }
.doc-item h3 { font-size: 1.05rem; color: var(--navy); margin: 0; }
.doc-item p { margin: .2rem 0 0; font-size: .82rem; color: #64748b; }
.facts-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; }
.facts-table th, .facts-table td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.facts-table th { width: 40%; color: #475569; font-weight: 700; font-size: .9rem; }

/* Donate: payment methods and pledge form */
.pay-methods { display: grid; gap: .85rem; margin: 0 0 1.25rem; }
.pay-method { border: 1.5px solid #e2e8f0; border-radius: 1rem; padding: 1rem 1.1rem; background: var(--mist); }
.pay-method h3 { font-family: 'DM Sans', sans-serif; font-size: .95rem; font-weight: 700; color: var(--navy); margin: 0 0 .35rem; }
.pay-method p { margin: 0; font-size: .88rem; color: #334155; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.pay-method .btn { margin-top: .6rem; }
.pay-or { text-align: center; font-size: .78rem; color: #64748b; margin: .25rem 0 1rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.donate-submit { border: none; cursor: pointer; font-family: inherit; }
.donate-submit:disabled { opacity: .5; cursor: not-allowed; }
.donate-msg { margin: .85rem 0 0; font-size: .88rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.donate-msg.ok { color: var(--green); } .donate-msg.err { color: #C62828; }

.footer-bottom a { color: inherit; }

.form-label { display: block; font-size: .8rem; font-weight: 700; color: #334155; margin-bottom: .35rem; }
.form-hint { font-size: .78rem; color: #64748b; line-height: 1.55; margin: .4rem 0 0; }
.form-hint a { color: var(--blue); }
/* Nav link colour must not override the button colours */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover, #mobile-menu a.btn-primary { color: #fff; }
.nav-links a.btn-donate, #mobile-menu a.btn-donate { color: var(--navy); }
.nav-links a.btn-donate:hover { color: #fff; }

/* ════════════════════════════════════════════════════════════════════
   Design system: spacing, rhythm and the components of the new pages.
   One spacing scale for the whole site, so every section breathes the same way.
   ════════════════════════════════════════════════════════════════════ */
:root {
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --stack-lg: clamp(2.5rem, 5vw, 4rem);
  --stack-md: clamp(1.5rem, 3vw, 2.25rem);
  --grid-gap: clamp(1.25rem, 3vw, 2.25rem);
  --container: 1200px;
  --measure: 65ch;
  --radius: 1.25rem;
}
body { line-height: 1.7; color: var(--ink); }
p { color: inherit; }

/* Containers and section rhythm */
.section { padding: var(--section-y) var(--gutter); }
.section-inner, .footer-inner, .stats-bar-inner, .nav-inner { max-width: var(--container); }
.nav-inner { padding: 0 var(--gutter); }
.hero-inner { max-width: var(--container); padding: clamp(3rem, 7vw, 6rem) var(--gutter); gap: clamp(3rem, 6vw, 5rem); }
.hero { min-height: min(100vh, 900px); }
.hero p { font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 34rem; margin-bottom: 2.5rem; }
.hero-badge { margin-bottom: 2rem; }
.stats-bar { padding: clamp(3rem, 6vw, 4.5rem) var(--gutter); }
.stats-bar-inner { gap: 2.5rem 2rem; }
.stats-bar .num { margin-bottom: .75rem; }
.partners-section { padding: var(--section-y) 0; }
.partners-head { margin-bottom: var(--stack-lg); }
.newsletter-band { padding: var(--section-y) var(--gutter); }
.newsletter-inner > p { margin-bottom: 2.25rem; }
footer { padding: clamp(4rem, 7vw, 6rem) var(--gutter) 2rem; }
.footer-grid { gap: 3rem 2.5rem; margin-bottom: 3.5rem; }
.footer-col li + li { margin-top: .75rem; }

/* Section headings: one pattern everywhere */
.section-head { max-width: 46rem; margin: 0 0 var(--stack-lg); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.2; color: var(--navy); }
.section-head .lead { margin-top: 1.25rem; }
.on-dark .section-head h2, .section-head.on-dark h2 { color: #fff; }
.section-label { margin-bottom: 1.25rem; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.125rem); line-height: 1.8; color: var(--body); max-width: var(--measure); }
.center .lead { margin-left: auto; margin-right: auto; }
.prose-block p { color: var(--body); line-height: 1.85; max-width: var(--measure); }
.prose-block p + p { margin-top: 1.25rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.center .btn-row { justify-content: center; }

/* Cards and grids */
.programs-grid, .story-grid, .involve-grid, .gift-grid, .ways-grid, .partners-grid { gap: var(--grid-gap); }
.prog-card-body { padding: 1.75rem 1.75rem 2rem; }
.prog-card h3 { margin-bottom: .85rem; font-size: 1.2rem; }
.prog-card p { line-height: 1.75; }
.prog-tag { margin-bottom: 1.25rem; }
.prog-link { margin-top: 1.5rem; }
.involve-card { padding: clamp(2rem, 3vw, 2.5rem); }
.about-grid, .impact-grid, .challenges-grid, .contact-grid { gap: clamp(3rem, 6vw, 5rem); }
.story-body { padding: 1.5rem 1.6rem 1.75rem; gap: .65rem; }
.story-meta-line { display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.story-meta-line .mins { color: var(--muted); }
.story-card .story-tag { margin: 0; }

/* Inner page hero (About, Partners, Stories, Reports, programmes...) */
.page-hero, .partners-hero { background: var(--navy); padding: clamp(8rem, 14vw, 11rem) var(--gutter) clamp(4.5rem, 8vw, 6.5rem); position: relative; overflow: hidden; min-height: 0; }
.page-hero::before { content: ''; position: absolute; inset: 0; opacity: .07; background-image: radial-gradient(circle, #fff 1px, transparent 0); background-size: 36px 36px; }
.page-hero-inner { max-width: 50rem; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.page-hero h1, .partners-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12; color: #fff; margin-bottom: 1.5rem; }
.page-hero h1 span { color: var(--gold); }
.page-hero p, .partners-hero p { color: rgba(255,255,255,.82); font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.8; max-width: 40rem; margin: 0 auto; }
.page-hero .partners-hero-badge, .partners-hero-badge { margin-bottom: 1.75rem; }
.breadcrumb { position: relative; z-index: 1; font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: 1.5rem; }
.breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Programme pages */
.prog-hero-img { margin: calc(var(--section-y) * -0.5) auto 0; max-width: var(--container); padding: 0 var(--gutter); position: relative; z-index: 2; }
.prog-hero-img img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(13,43,107,.25); }
.prog-layout { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 960px) { .prog-layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } }
.prog-aside { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .prog-aside { position: sticky; top: 7rem; } }
.prog-aside h2 { font-family: 'DM Sans', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: .5rem; }
.prog-aside p, .prog-aside li { font-size: .92rem; color: var(--body); line-height: 1.65; }
.prog-aside ul { display: grid; gap: .35rem; }
.prog-content h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--navy); margin: 3.5rem 0 1.25rem; line-height: 1.25; }
.prog-content h2:first-child { margin-top: 0; }
.prog-content p { color: var(--body); line-height: 1.85; max-width: var(--measure); }
.prog-content p + p { margin-top: 1.25rem; }
.check-list { display: grid; gap: 1rem; margin-top: 1.5rem; max-width: var(--measure); }
.check-list li { position: relative; padding-left: 2rem; color: var(--body); line-height: 1.75; }
.check-list li::before { content: ''; position: absolute; left: 0; top: .55rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(249,168,37,.18); }
.result-grid { display: grid; gap: 1.25rem; margin-top: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem; }
.result-card .num { display: block; font-family: 'Playfair Display', serif; font-weight: 900; font-size: 2.1rem; color: var(--blue); line-height: 1.1; margin-bottom: .5rem; }
.result-card p { font-size: .9rem; margin: 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.chip-list li { font-size: .8rem; font-weight: 600; color: var(--navy); background: var(--sky); padding: .35rem .85rem; border-radius: 9999px; }

/* Photo galleries and the lightbox */
.gallery { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); margin-top: 1.5rem; }
.gallery-item { display: block; border-radius: .9rem; overflow: hidden; background: var(--sky); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); }
.gallery-title { font-size: 1.35rem; color: var(--navy); margin: 3rem 0 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(7, 18, 45, .92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 1rem 1.5rem; gap: 1rem; }
.lightbox img { max-width: min(100%, 1200px); max-height: calc(100vh - 9rem); object-fit: contain; border-radius: .5rem; background: #000; }
.lightbox p { color: rgba(255,255,255,.88); font-size: .9rem; text-align: center; max-width: 50rem; margin: 0; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.4rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* About page */
.values-list { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.value-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: .75rem; }
.value-card p { color: var(--body); font-size: .95rem; line-height: 1.75; }
.timeline { position: relative; max-width: 48rem; margin: 0 auto; display: grid; gap: 2.5rem; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: .35rem; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(var(--gold), var(--blue)); }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -2rem; top: .45rem; width: .85rem; height: .85rem; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline .year { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.5rem; color: var(--blue); line-height: 1.2; }
.timeline h3 { font-size: 1.15rem; color: var(--navy); margin: .35rem 0 .5rem; }
.timeline p { color: var(--body); line-height: 1.75; }
.timeline a { color: var(--blue); font-weight: 600; }
.mission-quote { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.45; color: var(--navy); max-width: 48rem; margin: 0 auto; text-align: center; }

/* Stories page: search and filters */
.story-tools { display: grid; gap: 1.25rem; margin-bottom: var(--stack-lg); }
.search-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.search-row input, .search-row select { padding: .8rem 1.1rem; border: 1.5px solid #cbd5e1; border-radius: 9999px; background: #fff; font-size: .95rem; min-width: 0; }
.search-row input { flex: 1 1 18rem; max-width: 28rem; }
.search-row input:focus, .search-row select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,.15); }
.filter-row { margin: 0; }

/* Single story */
.story-article { max-width: 44rem; }
.story-article h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 2rem; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin: 0 0 1.25rem; }
.story-meta span[aria-hidden] { color: #cbd5e1; }
.story-meta .story-tag { margin: 0; text-decoration: none; }
.story-figure { margin: 0 0 2.5rem; }
.story-cover { margin-bottom: 0; max-height: 520px; }
.story-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: .75rem; }
.story-text p { font-size: 1.0625rem; line-height: 1.85; margin: 0 0 1.5rem; }
.story-text h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); color: var(--navy); margin: 3rem 0 1rem; line-height: 1.25; }
.story-text ul { margin: 0 0 1.5rem; padding-left: 1.25rem; list-style: disc; display: grid; gap: .6rem; }
.story-text li { font-size: 1.0625rem; line-height: 1.75; color: #334155; }
.story-text strong { color: var(--ink); }
.story-byline { font-size: .9rem; font-style: italic; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 1rem; margin: 2rem 0 0; }
.story-news { margin-top: 3rem; background: var(--mist); border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem 1.75rem; }
.story-news h2 { font-family: 'DM Sans', sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: .5rem; }
.story-news a { color: var(--blue); font-weight: 600; }
.share-row { margin-top: 3rem; padding-top: 2rem; }
.related { background: var(--mist); }

/* WhatsApp links appear only once a number is saved in the admin settings */
[data-whatsapp][hidden] { display: none !important; }
.social-btn.whatsapp:hover { background: #25D366; }

@media (max-width: 640px) {
  .section-head { margin-bottom: 2.25rem; }
  .prog-hero-img img { aspect-ratio: 4 / 3; }
}

/* Print: a clean copy of the page for reports and noticeboards */
@media print {
  #navbar, footer, .newsletter-band, #back-top, #float-donate, .share-row, .skip-link, #scroll-progress, .btn, .marquee-controls, .related, .filter-row { display: none !important; }
  body { color: #000; background: #fff; }
  .section, .page-hero, .partners-hero { padding: 1rem 0; background: #fff !important; }
  .page-hero h1, .page-hero p, .page-hero h1 span { color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
  img { max-height: 10cm; page-break-inside: avoid; }
}
.footer-social { margin-top: 1.5rem; } .footer-social .social-btn { background: rgba(255,255,255,.08); color: #fff; }
.challenge-item { padding: 1.5rem 1.5rem 1.5rem 1.25rem; }
.challenge-item + .challenge-item { margin-top: 1.25rem; }
.context-figures { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem); align-self: stretch; }
.context-title { font-size: 1.35rem; margin-bottom: 2rem; color: #fff; }
.context-list { display: grid; gap: 1.75rem; margin: 0; }
.context-list div { display: grid; gap: .25rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.context-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.context-list dt { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 2rem; color: var(--gold); line-height: 1.1; }
.context-list dd { margin: 0; color: rgba(255,255,255,.82); font-size: .95rem; }
.context-source { margin-top: 2rem; font-size: .78rem; line-height: 1.6; color: rgba(255,255,255,.7); }
.context-source a { color: inherit; text-decoration: underline; }
.impact-stats { gap: 1.25rem; }
.impact-stat { padding: 1.5rem; }
.involve-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
/* The hero's lead paragraph style must not reach the small badges on the hero photo */
.hero .stat-badge p { margin: 0; max-width: none; line-height: 1.2; }
.hero .stat-badge .num { font-size: 1.5rem; font-weight: 900; }
.hero .stat-badge .lbl { font-size: .6rem; margin-top: .2rem; }
.stat-badge { padding: .85rem 1.1rem; }
.page-hero .breadcrumb { margin-bottom: 1.75rem; }
@media (min-width: 900px) { .values-list { grid-template-columns: repeat(3, 1fr); } }

/* Team cards link to profiles */
a.leader-card { text-decoration: none; color: inherit; transition: transform .3s ease, box-shadow .3s ease; }
a.leader-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.12); }
.team-more { display: inline-block; margin-top: .75rem; font-size: .8rem; font-weight: 700; color: var(--blue); text-transform: none; letter-spacing: 0; }
.team-grid { gap: 2.5rem 1.5rem; }
.team-link { display: block; text-decoration: none; color: inherit; border-radius: 1rem; padding: .75rem .5rem; transition: background .2s ease; }
.team-link:hover { background: rgba(255,255,255,.7); }
.team-link:hover .team-name { color: var(--blue); }
.team-initials { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.6rem; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.leader-card .team-initials { width: 110px; height: 110px; border-radius: .75rem; margin: 0; flex-shrink: 0; }

/* Staff profile page */
.profile-section { background: #fff; padding-top: clamp(8rem, 13vw, 10rem); }
.profile-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); margin-top: 1.5rem; align-items: start; }
@media (min-width: 860px) { .profile-grid { grid-template-columns: 20rem minmax(0, 1fr); } }
.profile-photo img, .profile-initials { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 50px rgba(13,43,107,.18); }
.profile-initials { display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-family: 'Playfair Display', serif; font-weight: 900; font-size: 5rem; }
@media (min-width: 860px) { .profile-photo { position: sticky; top: 7rem; } }
.profile-text h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; color: var(--navy); }
.profile-title { font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin: .75rem 0 2rem; }
.profile-text .story-text { max-width: var(--measure); }
@media (max-width: 859px) { .profile-photo { max-width: 16rem; } }

/* ── Accessibility fixes (contrast and tap targets) ── */
/* Gold on blue failed contrast (2.9:1). The stats bar is now navy (gold on navy is 7:1),
   and gold links on blue cards use a lighter gold (4.7:1). */
.stats-bar { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.08); }
#prog-internship .prog-link { color: #fff !important; }
/* Green labels on light-blue sections were just under 4.5:1; a deeper green passes on every background. */
.section-label { color: #1B5E20; }
/* Every link and button is at least 44px tall to tap comfortably on a phone. */
.prog-link { min-height: 44px; padding: .5rem 0; }
#hamburger { width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; }
.back-link { padding: .6rem 0; }
.footer-col a { display: inline-block; padding: .35rem 0; }

/* The floating Donate and back-to-top buttons hide while you scroll down to read, and come
   back when you scroll up, so they never sit on top of what you are reading. */
#float-donate.reading, #back-top.reading { opacity: 0; visibility: hidden; transform: translateY(12px); }
@media (max-width: 640px) { footer { padding-bottom: 6rem; } }

/* ════════════════════════════════════════════════════════════════════
   Visual design, version 3: an international humanitarian look.
   Imagery first, one primary colour (navy), one accent (gold) for action,
   warm neutral backgrounds, a confident sans-serif, and calm motion.
   ════════════════════════════════════════════════════════════════════ */

/* Typography */
body { font-size: 1.0625rem; color: var(--body); letter-spacing: .003em; }
h1, h2, h3, h4 { font-family: 'DM Sans', system-ui, sans-serif; font-weight: 700; letter-spacing: -.022em; color: var(--ink); }
.section-head h2, .page-hero h1, .partners-hero h1, .profile-text h1, .story-article h1 { font-weight: 700; letter-spacing: -.028em; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); line-height: 1.12; color: var(--ink); }
.lead { color: var(--body); }
::selection { background: var(--gold-soft); color: var(--ink); }

/* Eyebrow labels: small caps with a gold rule, used above every heading */
.eyebrow, .section-label {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.25rem;
}
.eyebrow::before, .section-label::before { content: ''; width: 1.75rem; height: 2px; background: var(--gold); flex-shrink: 0; }
.section-label::after { display: none; }
.eyebrow-light, .on-dark .section-label, .section-head.on-dark .section-label { color: rgba(255,255,255,.82) !important; }
.center .section-label, .section-head.center .section-label, .partners-head .section-label { justify-content: center; }

/* Buttons */
.btn { border-radius: 9999px; padding: .85rem 1.6rem; font-weight: 600; font-size: .95rem; letter-spacing: .01em; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-donate { background: var(--gold); color: var(--ink); font-weight: 700; }
.btn-donate:hover { background: var(--accent-dark); color: var(--ink); }
.btn-outline { border: 1.5px solid rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline-blue { border: 1.5px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline-blue:hover { background: var(--brand); color: #fff; }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(2px); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn .arr, .prog-link span[aria-hidden], .story-more { transition: transform .3s var(--ease); display: inline-block; }
.btn:hover .arr, .prog-link:hover span[aria-hidden] { transform: translateX(4px); }

/* Navigation: white, quiet, with an underline that draws in on hover */
#navbar { background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; padding: .85rem 0; }
#navbar.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(11,42,92,.06); border-bottom-color: var(--line); padding: .55rem 0; }
.nav-logo img { border: 0; width: 46px; height: 46px; }
.nav-logo-text .brand-name { color: var(--navy); font-size: 1.12rem; letter-spacing: .01em; }
.nav-logo-text .brand-tag { font-style: normal; color: var(--muted); font-size: .7rem; }
.nav-links { gap: 1.9rem; }
.nav-links a:not(.btn) { position: relative; color: var(--ink); font-weight: 500; font-size: .93rem; padding: .35rem 0; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]:not(.btn)::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"]:not(.btn) { color: var(--navy); }
.nav-links .btn { padding: .65rem 1.25rem; font-size: .88rem; }
.nav-links a.btn-primary { background: var(--brand); color: #fff !important; border: 1.5px solid var(--brand); }
.nav-links a.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff !important; }
#hamburger span { background: var(--navy); }
#scroll-progress { background: var(--brand); height: 3px; }

/* Homepage hero: a full-width photograph with calm, legible text over it */
.hero.hero-photo { background: var(--navy-deep); min-height: min(94vh, 880px); padding: 0; display: flex; align-items: flex-end; position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; animation: kenburns 26s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.1) translate3d(0, 1.5%, 0); } to { transform: scale(1) translate3d(0, 0, 0); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(7,28,64,.92) 0%, rgba(7,28,64,.72) 38%, rgba(7,28,64,.25) 70%, rgba(7,28,64,.1) 100%),
  linear-gradient(0deg, rgba(7,28,64,.7) 0%, rgba(7,28,64,0) 45%); }
.hero-content { position: relative; z-index: 1; width: 100%; max-width: var(--container); margin: 0 auto; padding: 9rem var(--gutter) clamp(4.5rem, 9vw, 7.5rem); }
.hero.hero-photo h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.03em; max-width: 15em; margin: 0 0 1.75rem; }
.hero.hero-photo h1 span { color: var(--gold-soft); }
.hero-lead { color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; max-width: 36rem; margin: 0 0 2.5rem; }
.hero.hero-photo .hero-btns { gap: 1rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.75rem; transform: translateX(-50%); z-index: 1; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 760px) {
  .hero.hero-photo { min-height: 88vh; }
  .hero-shade { background: linear-gradient(0deg, rgba(7,28,64,.95) 0%, rgba(7,28,64,.75) 50%, rgba(7,28,64,.35) 100%); }
  .scroll-cue { display: none; }
}

/* Impact strip: large, quiet numbers separated by hairlines */
.impact-strip { background: #fff; border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 3.75rem) var(--gutter); }
.impact-strip-inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem 0; }
@media (min-width: 900px) { .impact-strip-inner { grid-template-columns: repeat(4, 1fr); } }
.figure { padding: 0 clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--line); }
.figure:first-child, .impact-strip-inner .figure:nth-child(3) { border-left-color: transparent; }
@media (min-width: 900px) { .impact-strip-inner .figure:nth-child(3) { border-left-color: var(--line); } }
.figure-num { display: block; font-size: clamp(2.3rem, 4.2vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.figure-lbl { display: block; margin-top: .75rem; font-size: .95rem; line-height: 1.45; color: var(--muted); max-width: 14rem; }

/* Photo band: a full-width image carrying one strong statement */
.photo-band { position: relative; background: linear-gradient(rgba(7,28,64,.78), rgba(7,28,64,.78)), var(--band) center / cover no-repeat; color: #fff; padding: clamp(6rem, 13vw, 10rem) var(--gutter); text-align: center; }
@media (max-width: 760px) { .photo-band { background-image: linear-gradient(rgba(7,28,64,.8), rgba(7,28,64,.8)), var(--band-sm); } }
.photo-band-inner { max-width: 52rem; margin: 0 auto; }
.photo-band .eyebrow { justify-content: center; }
.band-quote { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; color: #fff; font-size: clamp(1.6rem, 3.3vw, 2.6rem); line-height: 1.35; letter-spacing: -.01em; margin: 0 0 2.5rem; }

/* Inner page heroes: a photograph under a deep navy veil */
.page-hero::before, .partners-hero .hero-dots, .page-hero .hero-dots, .hero-dots, .partners-cta-section::before, .newsletter-band::before { display: none !important; }
.page-hero, .partners-hero { background: var(--navy); }
.page-hero--photo { background: linear-gradient(rgba(7,28,64,.86), rgba(7,28,64,.74)), var(--hero) center 40% / cover no-repeat !important; }
@media (max-width: 760px) { .page-hero--photo { background-image: linear-gradient(rgba(7,28,64,.88), rgba(7,28,64,.78)), var(--hero-sm) !important; } }
.page-hero h1 span, .partners-hero h1 span { color: var(--gold-soft); }
.partners-hero-badge { background: transparent; border: 0; padding: 0; color: rgba(255,255,255,.82); letter-spacing: .16em; display: inline-flex; align-items: center; gap: .75rem; }
.partners-hero-badge::before { content: ''; width: 1.75rem; height: 2px; background: var(--gold); }

/* Cards: one family of soft, warm cards with a gentle lift */
.prog-card, .story-card, .value-card, .result-card, .partner-card, .gift-card, .doc-item, .pay-method, .faq details, .prog-aside, .way-card {
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); background: #fff;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.prog-card:hover, .story-card:hover, .partner-card:hover, .gift-card:hover, .value-card:hover, a.way-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover { transform: translateY(-4px); }
.prog-card img, .story-thumb { transition: transform .9s var(--ease); }
.prog-card:hover img, .story-card:hover .story-thumb { transform: scale(1.045); }
.story-card { overflow: hidden; }
.story-thumb, .story-thumb-empty { aspect-ratio: 3 / 2; }
.story-thumb-empty { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); font-family: 'DM Sans', sans-serif; letter-spacing: .08em; font-size: 1rem; }
.story-card h3 { font-size: 1.18rem; line-height: 1.35; color: var(--ink); letter-spacing: -.012em; }
.story-meta-line { color: var(--muted); letter-spacing: .1em; }
.story-tag { background: transparent; color: var(--navy); padding: 0; letter-spacing: .1em; }
.story-tag::before { content: '\2022'; color: var(--gold); margin-right: .45rem; }
.prog-tag { background: transparent !important; color: var(--muted) !important; padding: 0; letter-spacing: .14em; font-size: .7rem; }
.prog-card h3 { font-size: 1.25rem; color: var(--ink); letter-spacing: -.015em; }
.prog-link { color: var(--brand); font-weight: 700; }
#prog-internship { background: var(--brand) !important; border-color: var(--brand); }
.value-card h3, .gift-card h3, .partner-card h3, .result-card .num, .prog-aside h2 { letter-spacing: -.01em; }
.gift-card { border-top: 3px solid var(--gold); }
.gift-num, .result-card .num, .impact-stat .num, .context-list dt, .timeline .year, .stat { font-family: 'DM Sans', sans-serif; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gift-num, .result-card .num { color: var(--brand); }
.check-list li::before { background: var(--gold); box-shadow: none; width: .55rem; height: .55rem; top: .65rem; }

/* Team */
.leader-card { border-top: 0; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 14px; }
a.leader-card:hover { box-shadow: var(--shadow-lg); }
.leader-card p { color: var(--muted); }
.team-member img, .team-initials { box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); border: 4px solid #fff; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.team-link:hover img { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), var(--shadow-md); }
.team-link:hover { background: transparent; }
.team-member p { color: var(--muted); letter-spacing: .08em; }

/* Dark sections: solid, calm navy instead of gradients and dot patterns */
#impact, #get-involved, .partners-cta-section, .context-figures { background: var(--navy-deep) !important; }
.impact-stat { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); border-radius: 12px; }
.impact-stat .num { color: var(--gold); }
.impact-quote { background: rgba(255,255,255,.04); border-left-color: var(--gold); border-radius: 0 12px 12px 0; }
.involve-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); border-radius: 14px; transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.involve-card:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.involve-card h3 { color: #fff; }
.newsletter-band { background: var(--navy) !important; }
footer { background: var(--navy-deep); }
.footer-col a { color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--gold-soft); }

/* Context, challenges and timeline */
.challenge-item { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; }
.challenge-icon { color: var(--navy); }
.timeline::before { background: linear-gradient(var(--gold), var(--line)); }
.timeline li::before { border-color: var(--gold); }
.timeline .year { color: var(--navy); }
.mission-quote { color: var(--ink); }

/* Partner logos: calm grey until you point at them */
.partner-logo-chip { border-color: var(--line); box-shadow: none; }
.partner-logo-chip img { filter: grayscale(1); opacity: .72; transition: filter .45s var(--ease), opacity .45s var(--ease); }
.partner-logo-chip:hover img { filter: none; opacity: 1; }
.marquee-track { animation-duration: 45s; }

/* Forms */
.form-input, .donate-select, .donate-input, .custom-wrap, .search-row input, .search-row select { border-color: #D9D5CA; border-radius: 10px; }
.form-input:focus, .donate-select:focus, .donate-input:focus, .search-row input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,42,92,.12); }
.form-btn { background: var(--brand); border-radius: 9999px; }
.form-btn:hover { background: var(--brand-dark); }
.filter-chip { border-color: #D9D5CA; }
.filter-chip[aria-pressed="true"], .filter-chip:hover { background: var(--brand); border-color: var(--brand); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Motion: content rises gently into place as you scroll */
.reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.hero-content .reveal { transition-duration: 1.1s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-bg, .scroll-cue span, .marquee-track { animation: none !important; }
  .btn, .prog-card, .story-card, .prog-card img, .story-thumb { transition: none !important; }
}

/* Hero: keep the words on the shaded side, clear of the faces in the photo */
.hero-content > * { max-width: 40rem; }
.hero.hero-photo h1 { max-width: 12.5em; }
@media (min-width: 1200px) { .hero.hero-photo h1 { font-size: 4.25rem; } }
.contact-photo { margin: 2.5rem 0 0; }
.contact-photo img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow-md); }
@media (max-width: 1023px) { .contact-photo { display: none; } }
.hero.hero-photo p.eyebrow { font-size: .78rem; line-height: 1.4; margin: 0 0 1.5rem; max-width: none; color: rgba(255,255,255,.85); }

/* Brand accents */
.nav-logo-text .brand-name { color: var(--brand); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"]:not(.btn) { color: var(--brand); }
.nav-links a:not(.btn)::after { background: var(--brand); }
.hero.hero-photo h1 span, .page-hero h1 span, .partners-hero h1 span { color: var(--gold-soft); }
.form-input:focus, .donate-select:focus, .donate-input:focus, .search-row input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(8,101,255,.18); }
:focus-visible { outline-color: var(--brand); }
.story-tag { color: var(--brand); }
.text-brand { color: var(--brand); }
.social-btn:hover { background: var(--brand); color: #fff; }
#back-top { background: var(--brand); }
#back-top:hover { background: var(--brand-dark); }
.amount-btn.active, .freq-btn.active { background: var(--brand); border-color: var(--brand); }
.donate-summary { background: var(--sky); color: var(--navy); }
#prog-internship .prog-tag { color: #fff !important; }
