/* ==========================================================================
   YPPD: Youth Partnership for Peace and Development
   Stylesheet
   ========================================================================== */

:root {
  /* Brand palette, sampled directly from the YPPD logo (yppdatwork.org) */
  --navy: #1e3054;
  --navy-deep: #131f38;
  --blue: #0172b4;
  --blue-light: #4fb3e8;
  --blue-dark: #045690;
  --bg: #f7f9fb;
  --bg-alt: #eef3f6;
  --white: #ffffff;
  --ink: #16232b;
  --muted: #5b6b76;
  --border: #e2e8ec;
  --shadow: 0 10px 30px -12px rgba(11, 47, 69, 0.18);
  --shadow-soft: 0 4px 18px -6px rgba(11, 47, 69, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1440px;
  --ff-heading: "Dosis", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Overpass", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

section { position: relative; }

.section-pad { padding: 112px 0; }
@media (max-width: 768px) { .section-pad { padding: 72px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  display: inline-block;
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 24px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn .btn-label { display: inline-flex; align-items: center; gap: 10px; }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 24px -8px rgba(1,114,180,0.4); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--blue); color: var(--white); padding: 11px 22px; font-size: 0.85rem; }
.btn-navy:hover { background: var(--blue-dark); }
.btn-navy svg { width: 15px; height: 15px; }
.btn-ghost { border-color: var(--border); color: var(--navy); background: var(--white); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------------------------------- Header ---------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.is-scrolled {
  padding: 12px 0;
  background: var(--white);
  box-shadow: 0 6px 24px rgba(11,47,69,0.12);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.brand img.logo-img {
  height: 50px; width: auto; flex-shrink: 0;
  transition: height 0.3s ease, filter 0.3s ease;
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.35));
}
.site-header.is-scrolled .brand img.logo-img { height: 50px; filter: none; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-family: var(--ff-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  padding: 10px 16px;
  border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,0.16); color: var(--white); }
.site-header.is-scrolled .main-nav a { color: var(--navy); text-shadow: none; }
.site-header.is-scrolled .main-nav a:hover, .site-header.is-scrolled .main-nav a.active { background: rgba(1,114,180,0.09); color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-actions .btn-primary {
  padding: 6px 18px 6px 6px;
  gap: 9px;
  font-size: 0.85rem;
  box-shadow: 0 6px 16px -6px rgba(1,114,180,0.5);
}
.header-actions .btn-primary .icon-circle {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
}
.header-actions .btn-primary .icon-circle svg { width: 14px; height: 14px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 82vw);
    background: var(--white);
    flex-direction: column; align-items: stretch;
    padding: 100px 28px 40px;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -12px 0 30px rgba(11,47,69,0.12);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 14px 10px; font-size: 1.02rem; color: var(--navy); border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav a:hover, .main-nav a.active { background: var(--bg-alt); color: var(--blue); }
  .nav-toggle { display: flex; }
}
.nav-scrim {
  display: none;
  position: fixed; inset: 0; background: rgba(7,30,44,0.55); z-index: 900;
}
.nav-scrim.open { display: block; }

.footer-logo { height: 36px; width: auto; margin-bottom: 16px; }

/* ---------------------------------- Hero / Slider ---------------------------------- */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #000;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease;
  z-index: 1;
}
.slide.active { opacity: 1; visibility: visible; z-index: 2; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s ease;
}
.slide.active img { transform: scale(1); }
.slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.88) 100%);
}
.slide-caption {
  position: absolute; z-index: 3; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  padding: 0 24px;
}
.hero-slider .slide-caption .container { max-width: var(--container); }
.slide-caption h1 { color: var(--white); font-size: clamp(2.3rem, 5.6vw, 4.4rem); margin-bottom: 18px; opacity: 0; transform: translateY(24px); transition: all .8s ease .2s; }
.slide-caption p { color: rgba(255,255,255,0.88); font-size: clamp(1.15rem, 1.9vw, 1.5rem); max-width: 680px; opacity: 0; transform: translateY(24px); transition: all .8s ease .35s; }
.slide.active h1, .slide.active p { opacity: 1; transform: translateY(0); }

/* Prev/next arrows anchored to the screen edges, vertically centered */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 6;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.08);
  color: var(--white); font-size: 1.15rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,0.22); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
@media (max-width: 640px) {
  .hero-arrow { width: 38px; height: 38px; font-size: 1rem; }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }
}

/* Page (inner) hero banner: black overlay over photo, white text */

.page-hero {
  position: relative;
  padding: 170px 0 70px;
  overflow: hidden;
  background: #000;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.82) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .eyebrow {
  color: var(--blue-light);
}

.page-hero .eyebrow::before {
  display: none;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  max-width: 780px;
}

.page-hero p.lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-top: 16px;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--white);
}

/* ---------------------------------- Stats (animated cards) ---------------------------------- */
section.stats-section { padding: 48px 0 56px; }
@media (max-width: 768px) { section.stats-section { padding: 36px 0 44px; } }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--white); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: rgba(1,114,180,0.1); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 26px; height: 26px; }
.stat-text { min-width: 0; }
.stat-card .num { font-family: var(--ff-heading); font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2rem); color: var(--navy); line-height: 1.1; }
.stat-card .label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; letter-spacing: 0.02em; }

/* ---------------------------------- About / split ---------------------------------- */
.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
@media (max-width: 900px) { .split.reverse { grid-template-columns: 1fr; } }
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) { .split.reverse .split-media { order: -1; } }

.split-media {
  position: relative;
  --tilt: -9deg; --slide: -110px;
  transform: translateX(var(--slide)) rotate(var(--tilt));
  transition: transform .5s cubic-bezier(.16,.84,.44,1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .split-media { transform: none; transition: none; }
}
.split-media:hover .media-frame {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -18px rgba(11,47,69,0.3);
}

.media-frame {
  position: relative; z-index: 1; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4/3.1;
  transition: transform .5s cubic-bezier(.16,.84,.44,1), box-shadow .5s ease;
}
/* Curtain wipe: a solid colour panel covers the photo, then slides off on reveal */
.media-frame::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: var(--white);
  transform: translateX(0);
  transition: transform 1.05s cubic-bezier(.16,.84,.44,1);
}
.reveal.in .media-frame::after { transform: translateX(102%); }
.media-frame--contain { background: var(--white); }
.media-frame--contain img { height: 100%; top: 0; }

.media-frame img {
  --py: 0px;
  width: 100%; height: 128%; object-fit: cover;
  position: relative; top: -14%;
  transform: translateY(var(--py));
  transition: transform .6s cubic-bezier(.16,.84,.44,1);
  will-change: transform;
}
.media-frame:hover img { transform: translateY(var(--py)) scale(1.05) rotate(-0.5deg); }

.split-body p { color: var(--muted); margin-bottom: 16px; }
.check-list { margin-top: 22px; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-weight: 500; font-size: 0.96rem; }
.check-list .tick {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(1,114,180,0.12); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; font-size: 0.75rem;
}

/* ---------------------------------- Vision / Mission cards ---------------------------------- */
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .vm-grid { grid-template-columns: 1fr; } }
.vm-card {
  background: var(--white); border-radius: var(--radius); padding: 40px 34px;
  box-shadow: var(--shadow-soft); border: 1px solid var(--border); position: relative; overflow: hidden;
}
.vm-card::before {
  content: ""; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15,107,168,0.10), transparent 70%);
}
.vm-card .icon-badge {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px; color: var(--white);
}
.vm-card.vision .icon-badge { background: linear-gradient(135deg, var(--blue), var(--navy)); }
.vm-card.mission .icon-badge { background: linear-gradient(135deg, var(--blue-light), var(--blue)); }
.vm-card h3 { font-size: 1.35rem; margin-bottom: 14px; }
.vm-card p { color: var(--muted); }

/* ---------------------------------- Theory of change ---------------------------------- */
.toc-wrap {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  background: linear-gradient(135deg, rgba(1,114,180,0.05), rgba(79,179,232,0.08));
  border-radius: 24px; overflow: hidden;
}
@media (max-width: 900px) { .toc-wrap { grid-template-columns: 1fr; } }

.toc-media { position: relative; min-height: 320px; }
.toc-media .media-frame { border-radius: 0; box-shadow: none; aspect-ratio: auto; height: 100%; }

.toc-content { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 700px) { .toc-content { padding: 40px 28px; } }
.toc-content .eyebrow { color: var(--blue); }
.toc-content .btn { align-self: flex-start; }
.toc-quote-mark { width: 38px; height: 38px; color: var(--blue-light); margin-bottom: 14px; }
.toc-pullquote {
  font-family: var(--ff-heading); font-weight: 600; color: var(--navy);
  font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.4; margin-bottom: 20px;
}
.toc-pullquote b { color: var(--blue); }
.toc-support { color: var(--muted); margin-bottom: 28px; }

/* ---------------------------------- Program / thematic cards ---------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.program-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.program-card .thumb { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.program-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.program-card:hover .thumb img { transform: scale(1.08); }
.program-card .thumb .num {
  position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(11,47,69,0.75); color: var(--blue-light); display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-heading); font-weight: 700; font-size: 0.95rem; backdrop-filter: blur(4px);
}
.program-card .body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.program-card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.program-card p { color: var(--muted); font-size: 0.93rem; margin-bottom: 14px; }
.program-card ul { margin-top: auto; display: grid; gap: 8px; }
.program-card ul li { font-size: 0.86rem; color: var(--ink); display: flex; gap: 8px; align-items: flex-start; }
.program-card ul li::before { content: "→"; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ---------------------------------- News ---------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 1080px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column; color: var(--ink); text-decoration: none;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.news-card .thumb { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--bg-alt); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .thumb img { transform: scale(1.08); }
.news-card .thumb img.news-card-fallback { object-fit: contain; padding: 30%; opacity: 0.35; }
.news-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.news-card h3 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.3; }
.news-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.news-read-more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-heading); font-weight: 600; font-size: 0.9rem; color: var(--blue);
  transition: gap .2s ease;
}
.news-read-more svg { width: 16px; height: 16px; }
.news-card:hover .news-read-more { gap: 12px; }

.page-hero-news { padding: 150px 0 60px; }
.page-hero-news h1 { max-width: 900px; }

.news-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .news-layout { grid-template-columns: 1fr; } }

.news-main { min-width: 0; }
.news-article-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); margin-bottom: 28px; }
.news-article-cover img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.news-article-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  border: 1px solid var(--border); padding: 44px 48px;
}
@media (max-width: 640px) { .news-article-card { padding: 32px 24px; } }
.news-article-body { color: var(--ink); font-size: 1.02rem; line-height: 1.75; }
.news-article-body p { margin-bottom: 20px; }
.news-article-body h2 { font-size: 1.4rem; margin: 34px 0 14px; color: var(--navy); }
.news-article-body h3 { font-size: 1.18rem; margin: 28px 0 12px; color: var(--navy); }
.news-article-body ul, .news-article-body ol { margin: 0 0 20px 22px; }
.news-article-body li { margin-bottom: 8px; }
.news-article-body a { color: var(--blue); text-decoration: underline; }
.news-article-body img { max-width: 100%; border-radius: var(--radius-sm); margin: 10px 0 20px; }
.news-article-body blockquote {
  border-left: 3px solid var(--blue); padding: 4px 0 4px 20px; margin: 20px 0;
  color: var(--muted); font-style: italic;
}
.news-article-footer { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }

/* Related-posts sidebar on the article page */
.news-sidebar { position: sticky; top: 110px; }
@media (max-width: 900px) { .news-sidebar { position: static; margin-top: 8px; } }
.news-sidebar-head { margin-bottom: 20px; }
.news-sidebar-head h3 { font-size: 1.25rem; color: var(--navy); }
.news-sidebar-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.news-sidebar-item {
  display: flex; gap: 14px; align-items: center; background: var(--white); border-radius: var(--radius-sm);
  border: 1px solid var(--border); padding: 10px; text-decoration: none; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.news-sidebar-item:hover { border-color: var(--blue); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.news-sidebar-item .thumb { width: 68px; height: 68px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg-alt); }
.news-sidebar-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-sidebar-item .body { min-width: 0; }
.news-sidebar-item .news-date { font-size: 0.68rem; margin-bottom: 2px; }
.news-sidebar-item h4 {
  font-size: 0.9rem; line-height: 1.35; margin: 0; color: var(--navy); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-sidebar-all {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-heading); font-weight: 600; font-size: 0.9rem; color: var(--blue);
  border: 1.5px solid var(--border); border-radius: 100px; padding: 12px; text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.news-sidebar-all svg { width: 16px; height: 16px; }
.news-sidebar-all:hover { border-color: var(--blue); }

/* Homepage news slider: continuous auto-sliding motion, same technique as the partner logo marquee */
.news-slider-wrap {
  overflow: hidden; padding: 6px 0 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}
.news-slider {
  display: flex; gap: 24px; width: max-content;
  animation: news-marquee-scroll var(--news-marquee-duration, 40s) linear infinite;
}
.news-slider-wrap:hover .news-slider { animation-play-state: paused; }
.news-slider .news-card { flex: 0 0 320px; }
@media (max-width: 560px) { .news-slider .news-card { flex-basis: 82vw; } }
.news-slider-loading, .news-slider-empty {
  color: var(--muted); font-size: 0.94rem; padding: 30px 0; width: 100%; text-align: center;
}
@keyframes news-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .news-slider { animation: none; } }

/* Key program areas: icon list style */
.kpa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .kpa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kpa-grid { grid-template-columns: 1fr; } }
.kpa-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-soft); transition: border-color .25s ease, transform .25s ease;
}
.kpa-card:hover { transform: translateY(-6px); border-color: var(--blue-light); }
.kpa-card .icon-badge {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(1,114,180,0.1); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.kpa-card .icon-badge svg { width: 24px; height: 24px; }
.kpa-card h4 { font-size: 1.04rem; margin-bottom: 10px; }
.kpa-card p { font-size: 0.9rem; color: var(--muted); }

/* Approach steps */
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: approach; }
@media (max-width: 900px) { .approach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .approach-grid { grid-template-columns: 1fr; } }
.approach-card { position: relative; padding: 30px 24px 26px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.approach-card .step-num {
  font-family: var(--ff-heading); font-weight: 700; font-size: 2.4rem; color: var(--bg-alt);
  -webkit-text-stroke: 1.5px var(--blue-light); text-stroke: 1.5px var(--blue-light);
  margin-bottom: 6px; line-height: 1;
}
.approach-card h4 { font-size: 1.02rem; margin: 10px 0 10px; }
.approach-card p { font-size: 0.9rem; color: var(--muted); }

/* ---------------------------------- Journey tree (About page) ---------------------------------- */
.journey-tree { position: relative; padding: 10px 0 0; }
.journey-line {
  position: absolute; left: 50%; top: 6px; bottom: 6px; width: 3px;
  background: var(--border); transform: translateX(-50%); border-radius: 3px;
}
.journey-line-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--blue-light), var(--blue));
  border-radius: 3px; transition: height .15s linear;
}

.journey-node {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: start;
  gap: 0 40px;
  margin-bottom: 76px;
}
.journey-node:last-child { margin-bottom: 0; }
.journey-node .node-marker {
  grid-column: 2; justify-self: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--blue);
  color: var(--blue); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px var(--bg); z-index: 2; flex-shrink: 0;
  transition: background .5s ease, color .5s ease, transform .5s ease;
}
.journey-node .node-marker svg { width: 24px; height: 24px; }
.journey-node.in .node-marker { background: var(--blue); color: var(--white); transform: scale(1.08); }

.journey-node .node-card {
  grid-column: 1; justify-self: end; max-width: 480px; width: 100%; text-align: left;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  overflow: hidden;
  opacity: 0; transform: translateX(-34px); transition: opacity .6s ease, transform .6s ease;
}
.journey-node.right .node-card { grid-column: 3; justify-self: start; text-align: left; transform: translateX(34px); }
.journey-node.in .node-card { opacity: 1; transform: translateX(0); }
.journey-node .node-card .node-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.journey-node .node-card .node-media::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: var(--white);
  transform: translateX(0);
  transition: transform 1.05s cubic-bezier(.16,.84,.44,1);
}
.journey-node.in .node-card .node-media::after { transform: translateX(102%); }
.journey-node .node-card .node-media img {
  --py: 0px;
  width: 100%; height: 128%; object-fit: cover;
  position: relative; top: -14%;
  transform: translateY(var(--py));
  transition: transform .6s cubic-bezier(.16,.84,.44,1);
  will-change: transform;
}
.journey-node .node-card .node-media:hover img { transform: translateY(var(--py)) scale(1.05) rotate(-0.5deg); }
.journey-node .node-card .node-body { padding: 30px 32px; }
.journey-node .node-card .eyebrow { justify-content: flex-start; }
.journey-node .node-card .eyebrow::before { display: none; }
.journey-node .node-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.journey-node .node-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.journey-node .node-card p:last-child { margin-bottom: 0; }

/* Vision & Mission mini pair inside a node */
.node-vm-pair { display: grid; gap: 20px; text-align: left; margin-top: 6px; }
.node-vm-pair .vm-mini { padding-top: 16px; border-top: 1px solid var(--border); }
.node-vm-pair .vm-mini:first-child { padding-top: 0; border-top: none; }
.node-vm-pair .vm-mini h4 { font-size: 1.02rem; color: var(--navy); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.node-vm-pair .vm-mini h4 svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.node-vm-pair .vm-mini p { font-size: 0.9rem; }

.node-quote { margin-top: 14px; font-weight: 600; color: var(--navy); font-size: 0.95rem; text-align: left; }
.journey-node .node-card .tag-row { justify-content: flex-start; margin-top: 16px; }

/* Branch node: "Our Approach" fans into 4 twigs */
.journey-node.branch { grid-template-columns: 1fr; justify-items: center; row-gap: 24px; }
.journey-node.branch .node-marker { grid-column: 1; }
.journey-node.branch .node-card {
  grid-column: 1; justify-self: center; text-align: center; max-width: 1120px; width: 100%;
  transform: translateY(24px);
}
.journey-node.branch.in .node-card { transform: translateY(0); }
.journey-node.branch .node-card .node-body { padding: 34px 40px 40px; }
.journey-node.branch .node-card .eyebrow { justify-content: center; }
.journey-node.branch .node-card h3 { margin-bottom: 10px; }
.journey-node.branch .node-card > .node-body > p { max-width: 560px; margin-inline: auto; }

.branch-twigs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; padding-top: 30px; text-align: left; }
.branch-twigs::before { content: ""; position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 2px; background: var(--border); }
.twig { position: relative; background: var(--bg-alt); border-radius: 12px; padding: 20px 18px; }
.twig::before { content: ""; position: absolute; top: -30px; left: 50%; width: 2px; height: 30px; background: var(--border); }
.twig-num { font-family: var(--ff-heading); font-weight: 700; color: var(--blue-light); font-size: 1.3rem; }
.twig h4 { font-size: 0.96rem; margin: 6px 0 8px; }
.twig p { font-size: 0.85rem; color: var(--muted); }

@media (max-width: 900px) {
  .branch-twigs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .journey-line { left: 27px; transform: none; }
  .journey-node, .journey-node.right, .journey-node.branch {
    grid-template-columns: 54px 1fr; gap: 0 20px; justify-items: stretch;
  }
  .journey-node .node-marker, .journey-node.right .node-marker, .journey-node.branch .node-marker {
    grid-column: 1; justify-self: start; margin-top: 2px;
  }
  .journey-node .node-card, .journey-node.right .node-card, .journey-node.branch .node-card {
    grid-column: 2; justify-self: stretch; max-width: none; text-align: left !important;
    transform: translateY(24px);
  }
  .journey-node .node-card .eyebrow, .journey-node.right .node-card .eyebrow, .journey-node.branch .node-card .eyebrow {
    justify-content: flex-start !important;
  }
  .journey-node .node-card .eyebrow::before { order: 0 !important; }
  .journey-node .node-card .tag-row, .journey-node.right .node-card .tag-row { justify-content: flex-start !important; }
  .journey-node.in .node-card { transform: translateY(0); }
  .branch-twigs { grid-template-columns: 1fr; padding-top: 0; }
  .branch-twigs::before { display: none; }
  .twig::before { display: none; }
}

/* ---------------------------------- Impact / gallery ---------------------------------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px;
  grid-auto-flow: dense;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; } }
.gallery-item {
  position: relative; border-radius: 12px; overflow: hidden; cursor: pointer;
  opacity: 0;
  transform: translate(var(--px, -36px), var(--py, 28px)) rotate(var(--pr, -9deg)) scale(0.82);
  transition: transform .8s cubic-bezier(.16,.84,.44,1), opacity .55s ease;
  transition-delay: var(--pd, 0s);
}
.gallery-grid.in .gallery-item { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
/* Scattered puzzle-piece origins and a staggered assembly order */
.gallery-item:nth-child(6n+1) { --px: -46px; --py: -26px; --pr: -11deg; }
.gallery-item:nth-child(6n+2) { --px: 42px; --py: -34px; --pr: 10deg; }
.gallery-item:nth-child(6n+3) { --px: -38px; --py: 36px; --pr: 8deg; }
.gallery-item:nth-child(6n+4) { --px: 48px; --py: 30px; --pr: -9deg; }
.gallery-item:nth-child(6n+5) { --px: -30px; --py: -44px; --pr: 7deg; }
.gallery-item:nth-child(6n) { --px: 34px; --py: -20px; --pr: -7deg; }
.gallery-item:nth-child(1) { --pd: 0.02s; }
.gallery-item:nth-child(2) { --pd: 0.09s; }
.gallery-item:nth-child(3) { --pd: 0.16s; }
.gallery-item:nth-child(4) { --pd: 0.23s; }
.gallery-item:nth-child(5) { --pd: 0.3s; }
.gallery-item:nth-child(6) { --pd: 0.37s; }
.gallery-item:nth-child(7) { --pd: 0.44s; }
.gallery-item:nth-child(8) { --pd: 0.51s; }
.gallery-item:nth-child(n+9) { --pd: 0.55s; }
@media (prefers-reduced-motion: reduce) {
  .gallery-item { opacity: 1; transform: none; transition: none; }
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
@media (max-width: 520px) {
  .gallery-item.wide, .gallery-item.tall { grid-column: auto; grid-row: auto; }
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(6,20,32,0.94) 100%);
  opacity: 0.92; transition: opacity .3s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .cap {
  position: absolute; left: 14px; right: 14px; bottom: 12px; color: var(--white); z-index: 2;
  font-family: var(--ff-heading); font-size: 0.85rem; font-weight: 700;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  opacity: 1; transition: transform .3s ease;
}
.gallery-item:hover .cap { transform: translateY(-2px); }

.lightbox {
  position: fixed; inset: 0; background: rgba(7,30,44,0.94); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(90vw, 1000px); max-height: 82vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 24px; right: 30px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); color: var(--white);
  font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-cap { position: absolute; bottom: 32px; left: 0; right: 0; text-align: center; color: var(--white); font-size: 0.92rem; font-weight: 500; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); color: var(--white); cursor: pointer; font-size: 1.1rem; }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

/* ---------------------------------- Impact story ---------------------------------- */
.story-quote {
  border-left: 4px solid var(--blue); padding-left: 26px; margin: 34px 0; font-family: var(--ff-heading);
  font-size: 1.18rem; color: var(--navy); font-weight: 500;
}

/* ---------------------------------- Partners ---------------------------------- */
.partners-band { background: var(--bg-alt); }

/* Homepage teaser: borderless logos in continuous motion */
.logo-marquee {
  overflow: hidden; padding: 12px 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.logo-track {
  display: flex; align-items: center; gap: 68px; width: max-content;
  animation: marquee-scroll 36s linear infinite;
}
.logo-marquee.reverse .logo-track { animation-direction: reverse; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track img {
  height: 60px; width: auto; max-width: 220px; object-fit: contain; flex-shrink: 0;
  filter: grayscale(45%); opacity: 0.8; transition: filter .3s ease, opacity .3s ease;
}
.logo-track img:hover { filter: grayscale(0%); opacity: 1; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; } }

.partner-group { margin-bottom: 44px; }
.partner-group:last-of-type { margin-bottom: 0; }
.partner-group-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--ff-heading); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
}
.partner-group-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.coalitions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 800px) { .coalitions { grid-template-columns: 1fr; } }
.coalition-card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-soft); transition: transform .25s ease, box-shadow .25s ease;
}
.coalition-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.coalition-card .icon-badge {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(1,114,180,0.1); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.coalition-card .icon-badge svg { width: 22px; height: 22px; }
.coalition-card h4 { font-size: 1.02rem; margin-bottom: 8px; color: var(--navy); }
.coalition-card p { font-size: 0.9rem; color: var(--muted); }

/* ---------------------------------- CTA band ---------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(115deg, var(--navy-deep), var(--blue-dark) 30%, var(--blue) 55%, var(--blue-light) 75%, var(--blue) 100%);
  background-size: 260% 260%;
  animation: ctaGradientFlow 14s ease-in-out infinite;
  padding: 76px 0; color: var(--white);
}
@keyframes ctaGradientFlow {
  0% { background-position: 0% 30%; }
  50% { background-position: 100% 70%; }
  100% { background-position: 0% 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band { animation: none; }
}
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 560px; }
.cta-inner p { color: rgba(255,255,255,0.88); margin-top: 10px; max-width: 520px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-actions .btn-primary { background: var(--white); color: var(--blue); box-shadow: 0 10px 24px -8px rgba(11,47,69,0.3); }
.cta-actions .btn-primary:hover { background: var(--bg-alt); }

/* ---------------------------------- Contact ---------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--white); color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow-soft); border-radius: var(--radius); padding: 44px 36px; }
.contact-info-card h3 { color: var(--navy); margin-bottom: 20px; }
.contact-line { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-line .ic {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(1,114,180,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue);
}
.contact-line .ic svg { width: 19px; height: 19px; }
.contact-line strong { display: block; font-size: 0.92rem; margin-bottom: 3px; color: var(--navy); }
.contact-line span, .contact-line a { font-size: 0.9rem; color: var(--muted); }
.social-row { display: flex; gap: 10px; margin-top: 28px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); color: var(--navy); display: flex; align-items: center; justify-content: center; transition: background .25s ease, color .25s ease; }
.social-row a:hover { background: var(--blue); color: var(--white); }
.social-row a svg { width: 17px; height: 17px; }

.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea, .field select {
  border: 1px solid var(--border); border-radius: 10px; padding: 13px 14px; font-family: var(--ff-body);
  font-size: 0.94rem; background: var(--bg); transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); background: var(--white); }
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230172b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* ---------------------------------- Donate ---------------------------------- */
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .donate-grid { grid-template-columns: 1fr; } }

.donate-impact p { color: var(--muted); margin-bottom: 16px; }
.donate-impact-list { display: grid; gap: 20px; margin-top: 28px; }
.donate-impact-item { display: flex; gap: 14px; align-items: flex-start; }
.donate-impact-item .icon-badge {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(1,114,180,0.1); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.donate-impact-item .icon-badge svg { width: 20px; height: 20px; }
.donate-impact-item h4 { font-size: 0.98rem; margin-bottom: 4px; }
.donate-impact-item p { font-size: 0.9rem; margin: 0; color: var(--muted); }

.donate-col { position: sticky; top: 110px; }
.donate-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; overflow: hidden; }
.donate-card h3 { margin-bottom: 6px; }
.donate-card .donate-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.donate-card label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }

/* Real payment-method logos, centered directly under the donation card */
.pay-methods {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 26px; margin-top: 24px;
}
.pay-methods .pm-logo { display: flex; align-items: center; height: 26px; }
.pay-methods .pm-logo img { height: 100%; width: auto; object-fit: contain; }

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.amount-btn {
  padding: 14px 8px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg-alt);
  font-family: var(--ff-heading); font-weight: 600; font-size: 1.02rem; color: var(--navy);
  cursor: pointer; transition: all .2s ease; text-align: center;
}
.amount-btn:hover { border-color: var(--blue-light); }
.amount-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); }

.custom-amount {
  position: relative; margin: 0 0 22px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease, margin .3s ease;
}
.custom-amount.open { max-height: 80px; opacity: 1; margin: 4px 0 22px; }
.custom-amount .currency-prefix {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--navy);
  font-weight: 700; font-family: var(--ff-heading); font-size: 0.94rem; pointer-events: none;
  padding-right: 12px; border-right: 1px solid var(--border);
}
.custom-amount input {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 10px; padding: 13px 14px 13px 52px;
  font-family: var(--ff-body); font-size: 0.94rem; color: var(--ink); background: var(--bg);
  transition: border-color .2s ease, background .2s ease;
  -moz-appearance: textfield;
}
.custom-amount input:focus { outline: none; border-color: var(--blue); background: var(--white); }
.custom-amount input::-webkit-outer-spin-button,
.custom-amount input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}

.donate-trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; }
.donate-trust svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.donate-trust p { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* Donate success page */
.donate-status-wrap { display: flex; justify-content: center; }
.donate-status-card {
  max-width: 520px; width: 100%; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 48px 40px; text-align: center;
}
.donate-status-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center; background: rgba(1,114,180,0.1); color: var(--blue);
  transition: background .3s ease, color .3s ease;
}
.donate-status-icon svg { width: 34px; height: 34px; }
.donate-status-card h1 { margin-bottom: 12px; font-size: 1.7rem; }
.donate-status-card p { color: var(--muted); margin-bottom: 8px; }
.donate-status-amount { font-family: var(--ff-heading); font-weight: 700; font-size: 2rem; color: var(--navy); margin: 14px 0; }
.donate-status-card .btn { margin-top: 22px; }
.donate-status-card.is-pending .donate-status-icon svg { animation: spin-slow 1.4s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }

.form-error {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: rgba(1,114,180,0.08); border: 1px solid rgba(1,114,180,0.22);
  color: var(--navy); font-size: 0.88rem;
}

#contactSubmit.is-loading { opacity: 0.75; pointer-events: none; }
#contactSubmit .spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  animation: btn-spin 0.7s linear infinite; display: none;
}
#contactSubmit.is-loading .spinner { display: inline-block; }
#contactSubmit.is-loading .btn-label { display: none; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Form submit confirmation modal */
.form-modal {
  display: none; position: fixed; inset: 0; z-index: 2100;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(19,31,56,0.55); backdrop-filter: blur(2px);
}
.form-modal.open { display: flex; }
.form-modal-card {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 44px 36px; max-width: 380px; width: 100%; text-align: center;
  box-shadow: var(--shadow);
}
.form-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: var(--bg-alt); color: var(--muted);
  font-size: 1.2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.form-modal-icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px;
  background: rgba(1,114,180,0.1); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.form-modal-icon svg { width: 30px; height: 30px; }
.form-modal-card h3 { color: var(--navy); margin-bottom: 10px; }
.form-modal-card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 22px; }
.form-modal-card .btn { width: 100%; justify-content: center; }
.form-modal.is-error .form-modal-icon { background: var(--bg-alt); color: var(--navy); }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer { background: var(--bg-alt); color: var(--muted); padding: 70px 0 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--border); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--navy); font-size: 0.95rem; margin-bottom: 20px; letter-spacing: 0.02em; }
.footer-brand p { font-size: 0.9rem; margin: 0 0 20px; max-width: 300px; }
.footer-grid ul { display: grid; gap: 12px; }
.footer-grid ul a { font-size: 0.9rem; color: var(--muted); transition: color .2s ease; }
.footer-grid ul a:hover { color: var(--blue); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); color: var(--navy); display: flex; align-items: center; justify-content: center; transition: background .25s ease, color .25s ease; }
.footer-social a:hover { background: var(--blue); color: var(--white); }
.footer-social a svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; color: var(--muted); }
.footer-bottom a:hover { color: var(--blue); }

/* ---------------------------------- Reveal animation ---------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
/* Journey nodes animate their own marker/card, not the outer container */
.journey-node.reveal { opacity: 1; transform: none; transition: none; }

/* ---------------------------------- Misc ---------------------------------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag-row span { background: var(--bg-alt); color: var(--navy); font-size: 0.82rem; font-weight: 600; padding: 8px 16px; border-radius: 100px; border: 1px solid var(--border); }

.timeline-note {
  display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 16px 20px;
  background: var(--bg-alt); border-radius: 12px; border: 1px solid var(--border);
}
.timeline-note .badge { font-family: var(--ff-heading); font-weight: 700; color: var(--white); background: var(--blue); border-radius: 8px; padding: 8px 12px; font-size: 0.85rem; }
.timeline-note span { font-size: 0.88rem; color: var(--muted); }

.two-col-text { columns: 2; column-gap: 44px; }
@media (max-width: 800px) { .two-col-text { columns: 1; } }
.two-col-text p { margin-bottom: 16px; color: var(--muted); break-inside: avoid; }
