/* ==========================================================================
   JEEVAN VIDYA TRUST — Main Stylesheet
   Design system derived from the official logo:
   blue "V" band, green sapling, red "J", navy "T".
   Edit the variables in :root to adjust the whole site.
   ========================================================================== */

:root {
  /* Brand colours (from logo) */
  --blue: #1476B8;
  --blue-700: #0F5E94;
  --blue-50: #EAF3FA;
  --navy: #10117F;
  --navy-900: #0B0C5C;
  --green: #76B82A;
  --green-700: #4A8416;   /* accessible green for text on white */
  --green-50: #F0F7E6;
  --red: #F52222;
  --red-600: #D41A1A;     /* accessible red for buttons with white text */

  /* Neutrals */
  --white: #FFFFFF;
  --bg-alt: #F7FAFC;
  --line: #E3E9EF;
  --ink: #17202A;
  --muted: #5E6772;
  --placeholder-bg: #FFF7D9;
  --placeholder-line: #D9A800;

  /* Typography */
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h4: 1.25rem;
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 2.5vw, 3.4rem);

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6rem;

  /* Shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 17, 127, 0.06);
  --shadow: 0 10px 30px -12px rgba(16, 17, 127, 0.18);

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.2; margin: 0 0 var(--sp-4); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-h4); font-weight: 600; }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: var(--sp-4); top: -60px; z-index: 1000;
  background: var(--navy); color: #fff; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: var(--sp-3); color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Placeholder marker ----------
   Every piece of content that the Trust must replace is wrapped in .ph
   so it is visible during review. Remove the class once real content is added. */
.ph {
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-line);
  color: #6B5200;
  border-radius: 4px;
  padding: 0 0.35em;
  font-style: normal;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ph-block {
  display: block;
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-line);
  color: #6B5200;
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
}
.on-dark .ph, .ph.on-dark { background: rgba(255, 247, 217, 0.14); border-color: rgba(255, 220, 110, 0.7); color: #FFE9A6; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2.5rem, var(--container-narrow)); margin-inline: auto; }
.section { padding-block: var(--sp-9); }
.section-tight { padding-block: var(--sp-8); }
.bg-alt { background: var(--bg-alt); }
.bg-blue-50 { background: var(--blue-50); }

.section-head { max-width: 680px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: var(--fs-lg); margin-bottom: 0; }
.section-head h2 { margin-bottom: var(--sp-3); }

/* sprout mark above headings — echoes the logo sapling */
.sprout-mark { display: inline-block; width: 34px; height: 22px; color: var(--green); margin-bottom: var(--sp-2); }
.section-head.center .sprout-mark { margin-inline: auto; display: block; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.split.reverse > :first-child { order: 2; }

.lead { font-size: var(--fs-lg); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.5em;
  font-family: var(--font-head); font-weight: 600; font-size: 0.975rem; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-700); color: #fff; }
.btn-donate { background: var(--red-600); color: #fff; }
.btn-donate:hover { background: #B31515; color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-50); color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn-row.center { justify-content: center; }

.text-link {
  align-self: flex-start;
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
  color: var(--blue-700); text-decoration: none; border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--navy); }
.brand img { width: 62px; height: auto; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; line-height: 1.15; color: var(--navy); }
.brand-name small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.01em; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--sp-1); }
.main-nav a {
  display: block; padding: 0.55em 0.85em; border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.95rem;
  color: var(--ink); text-decoration: none; transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--blue-700); background: var(--blue-50); }
.main-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; background: var(--blue-50); }
.header-cta { display: flex; align-items: center; gap: var(--sp-3); }
.header-cta .btn { min-height: 44px; padding: 0.6em 1.3em; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--navy);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.main-nav .mobile-donate { display: none; }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); margin-bottom: var(--sp-4); flex: none;
}
.icon-badge.green { background: var(--green-50); color: var(--green-700); }
.icon-badge.navy { background: #E8E8F6; color: var(--navy); }
.icon-badge.red { background: #FDECEC; color: var(--red-600); }
.icon-badge .icon { width: 26px; height: 26px; }

/* ---------- Home hero ----------
   Signature element: a photo frame with a V-shaped notch (from the logo's V)
   and a sapling that grows out of the notch on page load. */
.hero { position: relative; padding: var(--sp-7) 0 var(--sp-8); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 55%; height: 100%;
  background: linear-gradient(180deg, var(--blue-50), rgba(234, 243, 250, 0));
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--sp-8); align-items: center; }
.hero h1 { color: var(--navy-900); margin-bottom: var(--sp-5); }
.hero h1 .line { display: block; }
.hero h1 .line-green { color: var(--green-700); }
.hero-text p { font-size: var(--fs-lg); color: var(--muted); max-width: 34em; margin-bottom: var(--sp-6); }

.v-frame { position: relative; aspect-ratio: 5 / 5.4; margin-top: 70px; }
.v-frame .v-band {
  position: absolute; left: -3%; width: 106%; top: -15%; height: 40%; z-index: 0; color: var(--blue);
}
.v-frame .v-photo {
  position: absolute; inset: 0; overflow: hidden; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  clip-path: polygon(0 0, 50% 22%, 100% 0, 100% 100%, 0 100%);
  z-index: 1; background: var(--blue-50);
}
.v-frame .v-photo img { width: 100%; height: 100%; object-fit: cover; }
.v-frame .v-sprout {
  position: absolute; left: 50%; top: calc(22% - 186px); width: 140px; height: 190px;
  transform: translateX(-50%); z-index: 2; pointer-events: none;
}
.v-sprout .stem { stroke-dasharray: 200; stroke-dashoffset: 200; animation: grow 1.4s .3s var(--ease) forwards; }
.v-sprout .leaf { transform-box: fill-box; transform: scale(0); animation: leaf .7s var(--ease) forwards; }
.v-sprout .leaf-1 { transform-origin: 100% 100%; animation-delay: 1.1s; }
.v-sprout .leaf-2 { transform-origin: 0% 100%; animation-delay: 1.3s; }
.v-sprout .leaf-3 { transform-origin: 50% 100%; animation-delay: 1.5s; }
@keyframes grow { to { stroke-dashoffset: 0; } }
@keyframes leaf { to { transform: scale(1); } }

.hero-note {
  position: absolute; left: -28px; top: 46%; z-index: 3; max-width: 250px;
  background: #fff; border-radius: var(--radius); padding: var(--sp-4); box-shadow: var(--shadow);
  font-size: var(--fs-sm); border-left: 4px solid var(--green);
}
.hero-note strong { display: block; font-family: var(--font-head); color: var(--navy); }

.scroll-cue {
  display: inline-flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-7);
  color: var(--muted); font-size: var(--fs-sm); text-decoration: none;
}
.scroll-cue span.mouse {
  width: 22px; height: 34px; border: 2px solid var(--muted); border-radius: 12px; position: relative;
}
.scroll-cue span.mouse::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px;
  background: var(--muted); border-radius: 2px; animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; color: #fff; text-align: center;
  padding: var(--sp-8) 0 calc(var(--sp-9) + 20px);
  background:
    radial-gradient(1000px 400px at 50% -10%, rgba(20, 118, 184, 0.55), transparent 70%),
    var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%);
}
.page-hero h1 { color: #fff; margin-bottom: var(--sp-3); }
.page-hero p { color: rgba(255, 255, 255, 0.85); font-size: var(--fs-lg); max-width: 40em; margin: 0 auto; }
.breadcrumb { font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: var(--sp-2); flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: rgba(255,255,255,.5); }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #BFE38F; }
.page-hero .sprout-mark { color: var(--green); margin-inline: auto; display: block; }

/* ---------- Media ---------- */
.media { border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-50); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-tall { aspect-ratio: 4 / 5; }
.media-wide { aspect-ratio: 16 / 10; }
.media-accent { position: relative; }
.media-accent::after {
  content: ""; position: absolute; right: -14px; bottom: -14px; width: 45%; height: 45%;
  border-right: 4px solid var(--green); border-bottom: 4px solid var(--green);
  border-radius: 0 0 var(--radius-lg) 0; z-index: -1;
}
.media-wrap { position: relative; isolation: isolate; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-6); height: 100%;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: var(--sp-3); }
.card p:last-child { margin-bottom: 0; }

/* Mission / Vision / Values trio: top colour strip in logo colours */
.mvv .card { border-top: 4px solid var(--blue); }
.mvv .card:nth-child(2) { border-top-color: var(--green); }
.mvv .card:nth-child(3) { border-top-color: var(--navy); }

/* Focus area cards with image */
.focus-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.focus-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.focus-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.focus-card:hover .thumb img { transform: scale(1.04); }
.focus-card .thumb .icon-badge {
  position: absolute; right: var(--sp-5); bottom: -28px; margin: 0; background: #fff; box-shadow: var(--shadow-sm);
}
.focus-card .body { padding: calc(var(--sp-6) + 8px) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.focus-card .body p { color: var(--muted); flex: 1; }

/* Story & news cards */
.story-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.story-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; }
.story-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.story-card:hover .thumb img { transform: scale(1.04); }
.story-card .body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.story-card .body p { color: var(--muted); flex: 1; }
.tag {
  display: inline-block; font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600;
  color: var(--green-700); background: var(--green-50); padding: 0.25em 0.75em; border-radius: 999px;
  margin-bottom: var(--sp-3); align-self: flex-start;
}
.tag.blue { color: var(--blue-700); background: var(--blue-50); }
.meta { font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--sp-2); display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.meta span { display: inline-flex; align-items: center; gap: 0.3em; }
.meta .icon { width: 14px; height: 14px; }

/* ---------- Impact counters ---------- */
.impact-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.impact-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border: 60px solid rgba(20, 118, 184, 0.35); border-radius: 50%;
}
.impact-band h2 { color: #fff; }
.impact-band .section-head p { color: rgba(255,255,255,.8); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); position: relative; z-index: 1; }
.stats.five { grid-template-columns: repeat(5, 1fr); }
.stat { border-left: 3px solid var(--green); padding-left: var(--sp-5); }
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.1; color: #fff; display: block; }
.stat-label { color: rgba(255, 255, 255, 0.85); font-size: var(--fs-sm); }
.stats-note { margin-top: var(--sp-6); font-size: var(--fs-xs); color: rgba(255,255,255,.7); position: relative; z-index: 1; }

/* ---------- Featured initiative ---------- */
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
}
.feature .media { border-radius: 0; min-height: 420px; position: relative; }
.feature .media img { position: absolute; inset: 0; }
.feature .content { padding: var(--sp-8) var(--sp-7); display: flex; flex-direction: column; justify-content: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 var(--sp-5); }
.checklist li { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3); }
.checklist li .icon { color: var(--green-700); width: 20px; height: 20px; margin-top: 4px; flex: none; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); font-size: var(--fs-lg); max-width: 38em; margin: 0 auto var(--sp-6); }
.cta-band .v-deco {
  position: absolute; left: 50%; top: 0; width: 720px; height: 300px; transform: translateX(-50%);
  opacity: .12; pointer-events: none;
}

/* ---------- Partners marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: var(--sp-5); width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.partner-logo {
  width: 190px; height: 96px; border: 1px dashed var(--line); border-radius: var(--radius);
  display: grid; place-items: center; background: #fff; flex: none;
}
.partner-logo img { width: 150px; height: 60px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Newsletter ---------- */
.newsletter {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--sp-7); align-items: center;
  background: var(--blue-50); border-radius: var(--radius-lg); padding: var(--sp-7);
}
.newsletter h2 { margin-bottom: var(--sp-2); }
.newsletter form { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--sp-3); align-items: start; }

/* ---------- Process steps (sequences only) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-5); counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 14px);
}
.steps li { position: relative; text-align: center; counter-increment: step; }
.steps .step-icon {
  width: 64px; height: 64px; margin: 0 auto var(--sp-4); border-radius: 50%;
  background: #fff; border: 2px solid var(--blue); color: var(--blue);
  display: grid; place-items: center; position: relative; z-index: 1;
}
.steps .step-icon::after {
  content: counter(step); position: absolute; right: -6px; top: -6px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--green-700); color: #fff;
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; display: grid; place-items: center;
}
.steps h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.steps p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* ---------- Timeline (Before / Intervention / Outcome) ---------- */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.journey-item { padding: var(--sp-6); position: relative; }
.journey-item + .journey-item { border-left: 1px solid var(--line); }
.journey-item .phase {
  display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-head); font-weight: 600;
  color: var(--navy); margin-bottom: var(--sp-3);
}
.journey-item .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--red-600); }
.journey-item:nth-child(2) .dot { background: var(--blue); }
.journey-item:nth-child(3) .dot { background: var(--green); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card .avatar { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; margin: 0 auto var(--sp-4); border: 4px solid var(--blue-50); }
.team-card .role { color: var(--green-700); font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.team-card p { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Documents / transparency ---------- */
.doc-card { display: flex; gap: var(--sp-4); align-items: flex-start; }
.doc-card .icon-badge { margin: 0; }
.doc-card h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.doc-status {
  display: inline-flex; align-items: center; gap: 0.4em; font-size: var(--fs-xs); font-weight: 700;
  padding: 0.25em 0.7em; border-radius: 999px; background: #F1F2F4; color: #4A525C; margin-bottom: var(--sp-2);
}
.doc-status.pending::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--placeholder-line); }

/* ---------- Program detail blocks ---------- */
.program { padding-block: var(--sp-8); border-bottom: 1px solid var(--line); }
.program:last-child { border-bottom: 0; }
.program-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.program:nth-child(even) .program-grid > .media-wrap { order: 2; }
.program-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin: var(--sp-5) 0; }
.program-facts div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); }
.program-facts h4 { font-size: var(--fs-sm); margin-bottom: var(--sp-1); color: var(--blue-700); }
.program-facts p { font-size: var(--fs-sm); margin: 0; }
.program-nav { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }
.program-nav a {
  padding: 0.5em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  text-decoration: none; color: var(--ink); font-size: var(--fs-sm); font-family: var(--font-head); font-weight: 500;
}
.program-nav a:hover { border-color: var(--blue); color: var(--blue-700); }

/* Map-ready area */
.map-ready {
  border: 2px dashed var(--line); border-radius: var(--radius-lg); min-height: 360px;
  display: grid; place-items: center; text-align: center; padding: var(--sp-6);
  background:
    radial-gradient(circle at 30% 40%, var(--blue-50) 0 60px, transparent 61px),
    radial-gradient(circle at 70% 60%, var(--green-50) 0 80px, transparent 81px),
    var(--bg-alt);
}
.map-ready .icon { width: 40px; height: 40px; color: var(--blue); margin: 0 auto var(--sp-3); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-bottom: var(--sp-6); }
.filter-btn {
  min-height: 42px; padding: 0.45em 1.2em; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-family: var(--font-head); font-weight: 500; font-size: var(--fs-sm);
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue-700); }
.filter-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.masonry { columns: 3 280px; column-gap: var(--sp-4); }
.masonry figure { break-inside: avoid; margin: 0 0 var(--sp-4); position: relative; }
.masonry figure[hidden] { display: none; }
.masonry button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden;
}
.masonry img { width: 100%; transition: transform .5s var(--ease); }
.masonry button:hover img { transform: scale(1.03); }
.masonry figcaption { font-size: var(--fs-xs); color: var(--muted); padding: var(--sp-2) var(--sp-1) 0; }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; width: 100%;
}
.lightbox::backdrop { background: rgba(11, 12, 92, 0.88); }
.lightbox-inner { position: relative; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius); background: #fff; }
.lightbox p { color: #fff; text-align: center; margin: var(--sp-3) 0 0; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--navy); display: grid; place-items: center;
}
.lightbox-close { top: -14px; right: -14px; }
.lightbox-prev { left: 12px; top: 40%; }
.lightbox-next { right: 12px; top: 40%; }

/* Video cards */
.video-card .frame {
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--navy), var(--blue)); display: grid; place-items: center; color: #fff;
  margin-bottom: var(--sp-4);
}
.video-card .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--red-600); display: grid; place-items: center; }
.video-card .play .icon { fill: currentColor; margin-left: 4px; }

/* ---------- Engagement options ---------- */
.engage-card { display: flex; flex-direction: column; }
.engage-card p { color: var(--muted); flex: 1; }
.engage-card .btn { align-self: flex-start; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-7); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-5); }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.field .req { color: var(--red-600); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7em 0.9em; border: 1.5px solid #CCD5DE; border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 118, 184, .2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-600); }
.field .error { display: none; color: var(--red-600); font-size: var(--fs-xs); margin-top: var(--sp-1); font-weight: 600; }
.field.has-error .error { display: block; }
.form-success {
  display: none; align-items: flex-start; gap: var(--sp-3); margin-top: var(--sp-4);
  background: var(--green-50); border: 1px solid #BFDF98; color: #2F5A0A; border-radius: var(--radius-sm); padding: var(--sp-4);
}
.form-success.show { display: flex; }
.form-success .icon { flex: none; margin-top: 2px; }
.form-note { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-3); }

/* ---------- Donation widget ---------- */
.donate-box { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.donate-form { padding: var(--sp-7); }
.donate-aside { background: var(--navy); color: #fff; padding: var(--sp-7); display: flex; flex-direction: column; justify-content: center; }
.donate-aside h3 { color: #fff; }
.donate-aside p { color: rgba(255,255,255,.85); }
.segmented { display: inline-flex; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: var(--sp-5); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 0.5em 1.3em; border-radius: 999px; cursor: pointer; font-family: var(--font-head); font-weight: 500; font-size: var(--fs-sm); }
.segmented input:checked + span { background: var(--navy); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.amount-btn {
  min-height: 54px; border-radius: var(--radius-sm); border: 1.5px solid #CCD5DE; background: #fff; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
}
.amount-btn:hover { border-color: var(--blue); }
.amount-btn[aria-pressed="true"] { border-color: var(--navy); background: #E8E8F6; color: var(--navy); }
.donate-summary { font-size: var(--fs-sm); color: var(--muted); margin: var(--sp-3) 0 var(--sp-4); }
.donate-summary strong { color: var(--navy); }

/* ---------- Accordion (FAQ) ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: var(--sp-3); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--sp-4) var(--sp-5); font-family: var(--font-head); font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: #BCD6EA; }
.faq .answer { padding: 0 var(--sp-5) var(--sp-5); color: var(--muted); }

/* ---------- Contact ---------- */
.contact-card { text-align: left; }
.contact-card h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.dept-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.dept { border-left: 3px solid var(--blue); padding: var(--sp-3) var(--sp-5); background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.dept h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.dept p { margin: 0; font-size: var(--fs-sm); }
.socials { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-50); color: var(--navy); transition: background-color .2s, color .2s;
}
.socials a:hover { background: var(--navy); color: #fff; }
.socials .icon { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.82); padding-top: var(--sp-8); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: var(--sp-7); }
.footer-logo { background: #fff; border-radius: var(--radius); padding: var(--sp-2) var(--sp-3); display: inline-block; margin-bottom: var(--sp-4); }
.footer-logo img { width: 90px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: var(--sp-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--sp-2); }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--green); margin-top: 3px; flex: none; }
.site-footer .socials a { background: rgba(255, 255, 255, 0.08); color: #fff; }
.site-footer .socials a:hover { background: var(--blue); }
.footer-bottom {
  margin-top: var(--sp-8); padding-block: var(--sp-5); border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4);
}
.footer-bottom ul { display: flex; gap: var(--sp-5); flex-wrap: wrap; }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--navy); color: #fff; cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
  box-shadow: var(--shadow);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top .icon { transform: rotate(180deg); }

/* ---------- Scroll reveal (subtle, one-time) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .v-sprout .stem { stroke-dashoffset: 0; }
  .v-sprout .leaf { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* Hero visual wrapper (holds the V-frame and the note card) */
.hero-visual { position: relative; }
.hero-visual .hero-note { position: absolute; }
@media (max-width: 640px) { .hero-visual .hero-note { position: relative; } }

/* ==========================================================================
   v2 additions: real-content components
   ========================================================================== */

/* Photos: slight warmth + consistent treatment */
.media img, .story-card .thumb img, .focus-card .thumb img, .event-card .thumb img, .masonry img { background: var(--blue-50); }

/* Place tag (Nandurbar) in hero */
.place-line {
  display: inline-flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--green-700);
}
.place-line .icon { width: 18px; height: 18px; }

/* SDG strip */
.sdg-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); }
.sdg {
  border-radius: var(--radius); padding: var(--sp-4); color: #fff; min-height: 128px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.sdg strong { font-family: var(--font-head); font-size: 1.6rem; line-height: 1; }
.sdg span { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; }
.sdg.s1 { background: #E5243B; } .sdg.s3 { background: #4C9F38; } .sdg.s4 { background: #C5192D; }
.sdg.s5 { background: #FF3A21; } .sdg.s13 { background: #3F7E44; }

/* Pull quote (foreword) */
.quote-block {
  display: grid; grid-template-columns: 150px 1fr; gap: var(--sp-6); align-items: center;
  background: #fff; border-radius: var(--radius-lg); padding: var(--sp-6); border: 1px solid var(--line);
}
.quote-block img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--green-50); }
.quote-block blockquote { margin: 0; }
.quote-block blockquote p { font-family: var(--font-head); font-size: var(--fs-h4); font-weight: 500; color: var(--navy-900); line-height: 1.5; }
.quote-block cite { font-style: normal; color: var(--muted); font-size: var(--fs-sm); }
.quote-block cite strong { color: var(--ink); display: block; font-family: var(--font-head); }

/* Stats: wide numbers with label */
.stat small { display: block; color: rgba(255,255,255,.65); font-size: var(--fs-xs); margin-top: 2px; }
.stats.six { grid-template-columns: repeat(3, 1fr); row-gap: var(--sp-6); }

/* Light fact tiles (used inside programs) */
.fact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin: var(--sp-5) 0; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); }
.fact b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); line-height: 1.15; }
.fact span { font-size: var(--fs-xs); color: var(--muted); }

/* Photo pair under a program */
.photo-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-3); }
.photo-pair img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo-pair img:first-child { grid-row: span 2; aspect-ratio: auto; }

/* Monogram avatar (no photo supplied) */
.avatar-mono {
  width: 128px; height: 128px; border-radius: 50%; margin: 0 auto var(--sp-4);
  display: grid; place-items: center; background: var(--blue-50); color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; border: 4px solid #fff; box-shadow: var(--shadow-sm);
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; list-style: none; padding: 0; margin: var(--sp-5) 0 0; }
.staff-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.35em 1em; font-size: var(--fs-sm); }

/* Objectives list (a real numbered sequence from the report) */
.objectives { list-style: none; padding: 0; margin: 0; counter-reset: obj; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-6); }
.objectives li { counter-increment: obj; display: grid; grid-template-columns: 40px 1fr; gap: var(--sp-3); align-items: start; }
.objectives li::before {
  content: counter(obj); width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sm);
}

/* Supporters (text, no invented logos) */
.supporters { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.supporter { display: flex; gap: var(--sp-4); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); }
.supporter .mark { width: 60px; height: 60px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex: none; }
.supporter h3 { margin: 0 0 2px; font-size: var(--fs-h4); }
.supporter p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.network { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: var(--sp-5) 0 0; }
.network li { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.4em 1em; font-size: var(--fs-sm); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 420px; }
.data-table th, .data-table td { padding: 0.75em 1em; text-align: left; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td.num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy); }

/* Case study */
.case { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--sp-7); align-items: start; padding: var(--sp-7); background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.case + .case { margin-top: var(--sp-6); }
.case .media { aspect-ratio: 4 / 4.2; }
.case h3 { font-size: var(--fs-h3); }
.case dl { margin: var(--sp-4) 0 0; }
.case dt { font-family: var(--font-head); font-weight: 600; color: var(--navy); margin-top: var(--sp-3); }
.case dd { margin: var(--sp-1) 0 0; color: var(--muted); }
.case .pull { border-left: 4px solid var(--green); padding-left: var(--sp-4); font-family: var(--font-head); font-weight: 500; color: var(--navy-900); font-size: var(--fs-lg); }

/* Learnings (challenges) */
.learn-card h3 { font-size: var(--fs-h4); }
.learn-card ul { padding-left: 1.1em; margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.learn-card li { margin-bottom: var(--sp-2); }

/* ---------- Events & blog ---------- */
.event-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.event-card[hidden] { display: none; }
.event-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.event-card:hover .thumb img { transform: scale(1.04); }
.date-badge {
  position: absolute; left: var(--sp-4); top: var(--sp-4); background: #fff; border-radius: var(--radius-sm);
  text-align: center; padding: 0.35em 0.7em; box-shadow: var(--shadow-sm); line-height: 1.1; min-width: 58px;
}
.date-badge b { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--navy); }
.date-badge span { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; }
.event-card .body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.event-card .body p { color: var(--muted); flex: 1; }
.event-card .read-btn {
  align-self: flex-start; background: none; border: 0; padding: 0 0 2px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--blue-700); border-bottom: 2px solid var(--green);
}
.event-card .read-btn:hover { color: var(--navy); border-bottom-color: var(--navy); }

.featured-post { display: grid; grid-template-columns: 1.2fr 1fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); color: #fff; }
.featured-post .media { border-radius: 0; min-height: 380px; position: relative; }
.featured-post .media img { position: absolute; inset: 0; }
.featured-post .content { padding: var(--sp-7); display: flex; flex-direction: column; justify-content: center; }
.featured-post h2 { color: #fff; font-size: var(--fs-h3); }
.featured-post p { color: rgba(255,255,255,.85); }
.featured-post .tag { background: rgba(118,184,42,.18); color: #BFE38F; }

.post-dialog {
  border: 0; padding: 0; border-radius: var(--radius-lg); width: min(760px, 94vw); max-height: 90vh;
  overflow: auto; box-shadow: 0 30px 80px -20px rgba(11,12,92,.5);
}
.post-dialog::backdrop { background: rgba(11, 12, 92, 0.72); }
.post-dialog .post-media img { width: 100%; max-height: 380px; object-fit: cover; }
.post-dialog .post-content { padding: var(--sp-6); }
.post-dialog .post-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -58px 0; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.post-dialog h2 { font-size: var(--fs-h3); }
.post-template { display: none; }

.upcoming { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-5); align-items: center; background: var(--green-50); border: 1px dashed #A9CF7A; border-radius: var(--radius-lg); padding: var(--sp-5) var(--sp-6); }
.upcoming .icon-badge { margin: 0; background: #fff; }
.upcoming p { margin: 0; }

/* Report download highlight */
.report-hero { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-6); align-items: center; background: #FFF4DE; border-radius: var(--radius-lg); padding: var(--sp-6); border: 1px solid #F5D9A2; }
.report-hero img { width: 220px; border-radius: 6px; box-shadow: var(--shadow); }
.doc-status.ok { background: var(--green-50); color: var(--green-700); }
.doc-status.ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.split > *, .grid > *, .program-grid > * { min-width: 0; }
/* v2 hero tweaks: squarer frame for real photo, note card at the bottom */
.v-frame { aspect-ratio: 1 / 1.02; }
.hero-visual .hero-note { top: auto; bottom: -26px; left: -28px; }

/* ==========================================================================
   v3 additions: the Trust's own photos and videos
   ========================================================================== */

/* Inner page heroes now carry a real photo under a navy overlay */
.page-hero { isolation: isolate; }
.page-hero.has-photo { padding-top: calc(var(--sp-8) + 12px); padding-bottom: calc(var(--sp-9) + 36px); }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 12, 92, 0.66) 0%, rgba(16, 17, 127, 0.76) 55%, rgba(11, 12, 92, 0.9) 100%);
}
.page-hero.has-photo h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25); }

/* Video band on the home page */
.video-band { position: relative; isolation: isolate; color: #fff; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.video-band-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.video-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11, 12, 92, 0.88) 0%, rgba(11, 12, 92, 0.62) 45%, rgba(11, 12, 92, 0.12) 100%);
}
.video-band-inner { padding-block: var(--sp-9); }
.video-band h2 { color: #fff; max-width: 15em; font-size: var(--fs-h2); }
.video-band p { color: rgba(255, 255, 255, 0.9); font-size: var(--fs-lg); max-width: 32em; margin-bottom: var(--sp-6); }

/* Photo mosaic */
.mosaic-head { display: flex; justify-content: space-between; align-items: end; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: var(--sp-3); }
.mosaic-tile { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--blue-50); }
.mosaic-tile.big { grid-row: span 2; }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic-tile:hover img { transform: scale(1.04); }
.mosaic-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-6) var(--sp-4) var(--sp-3);
  color: #fff; font-size: var(--fs-xs); line-height: 1.4;
  background: linear-gradient(180deg, transparent, rgba(11, 12, 92, 0.8));
}

/* Video cards with real video */
.video-card video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--navy); margin-bottom: var(--sp-4); display: block; }
.video-card h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }

/* Featured image block on home uses wider real photos */
.feature .media img { object-position: 50% 45%; }

/* v3: larger programme photos that stay in view while reading */
.program-grid { align-items: start; }
.program-grid > .media-wrap { position: sticky; top: calc(var(--header-h) + 24px); }
.photo-pair { grid-auto-rows: 230px; }
.photo-pair img, .photo-pair img:first-child { aspect-ratio: auto; height: 100%; }

/* v3.1: contact details */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, 0.85); font-size: var(--fs-xs); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); min-height: 36px; flex-wrap: wrap; }
.topbar-links { display: flex; gap: var(--sp-5); }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.dept-contact { margin-top: var(--sp-2) !important; font-weight: 600; overflow-wrap: anywhere; }
.site-footer .footer-contact a { overflow-wrap: anywhere; }

/* v3.2: policy pages */
.legal-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
.legal-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc, .legal-meta { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); }
.legal-meta { margin-top: var(--sp-4); font-size: var(--fs-sm); }
.legal-meta p { margin-bottom: var(--sp-3); }
.legal-meta a { overflow-wrap: anywhere; }
.legal-toc h2, .legal-meta h2 { font-size: var(--fs-sm); color: var(--navy); margin-bottom: var(--sp-3); }
.legal-toc ol, .legal-meta ul { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin: 0; }
.legal-toc a { display: block; padding: 0.35em 0.6em; border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--ink); text-decoration: none; }
.legal-toc a:hover { background: #fff; color: var(--blue-700); }
.legal-meta ul li { margin-bottom: var(--sp-2); }
.legal-body { max-width: 72ch; }
.legal-body section { padding-top: var(--sp-6); margin-top: var(--sp-6); border-top: 1px solid var(--line); }
.legal-body h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-4); }
.legal-body ul { padding-left: 1.2em; }
.legal-body li { margin-bottom: var(--sp-2); }
.legal-body li::marker { color: var(--green-700); }
.legal-body .table-wrap { margin-bottom: var(--sp-4); }
.legal-review { margin-bottom: var(--sp-4); }
.legal-address { font-style: normal; background: var(--blue-50); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: var(--sp-4) var(--sp-5); line-height: 1.7; }

/* ==========================================================================
   v4: changes from the Trust's review
   ========================================================================== */

/* Hero slideshow */
.hero-slides .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-slides .hero-slide.is-active { opacity: 1; }
.hero-note span { display: block; }
.hero-controls { position: absolute; right: 14px; bottom: 14px; z-index: 4; display: flex; align-items: center; gap: 6px;
  background: rgba(11, 12, 92, 0.6); padding: 6px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.hero-dot { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.hero-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); transition: width .3s var(--ease), background-color .3s; }
.hero-dot.is-active::before { width: 22px; border-radius: 6px; background: #fff; }
.hero-pause { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; margin-left: 2px; }
.hero-pause .icon { width: 14px; height: 14px; stroke-width: 3; }

/* UN SDG section: bigger, bolder tiles */
.sdg-section { margin-top: var(--sp-8); }
.sdg-head { text-align: center; max-width: 820px; margin: 0 auto var(--sp-6); }
.sdg-head h3 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); margin-bottom: var(--sp-2); }
.sdg-head p { color: var(--muted); font-size: var(--fs-lg); margin: 0; }
.sdg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-4); }
.sdg-grid .sdg {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg);
  padding: var(--sp-5); min-height: 280px; display: flex; flex-direction: column;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sdg-grid .sdg:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.5); }
.sdg-grid .sdg::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.sdg-icon { width: 44px; height: 44px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--sp-4); }
.sdg-goal { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600; opacity: .85; }
.sdg-grid .sdg strong { font-family: var(--font-head); font-size: clamp(3rem, 2.2rem + 2vw, 4.25rem); line-height: 1; font-weight: 700; margin-bottom: var(--sp-3); }
.sdg-grid .sdg h4 { color: #fff; font-size: 1.15rem; line-height: 1.25; margin-bottom: var(--sp-2); }
.sdg-grid .sdg p { font-size: var(--fs-sm); line-height: 1.5; margin: 0; opacity: .95; position: relative; z-index: 1; }
.sdg-grid .s1 { background: linear-gradient(160deg, #F0394E, #C81A30); }
.sdg-grid .s3 { background: linear-gradient(160deg, #56AD3F, #3C8A2D); }
.sdg-grid .s4 { background: linear-gradient(160deg, #D22238, #A3121F); }
.sdg-grid .s5 { background: linear-gradient(160deg, #FF5233, #D9361A); }
.sdg-grid .s13 { background: linear-gradient(160deg, #468A4B, #2F6A34); }

/* Focus cards without a photo */
.focus-card .thumb.icon-thumb { display: grid; place-items: center; background: linear-gradient(150deg, var(--blue-50), #fff); }
.focus-card .thumb.icon-thumb.green { background: linear-gradient(150deg, var(--green-50), #fff); }
.icon-thumb-svg { width: 84px; height: 84px; stroke: var(--blue); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-thumb.green .icon-thumb-svg { stroke: var(--green-700); }
.focus-card .thumb.icon-thumb + .body { padding-top: var(--sp-5); }

/* Our journey: four headings with the President's photo */
.journey-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: var(--sp-8); align-items: center; }
.journey-photo { margin: 0; position: relative; }
.journey-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 30%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.journey-photo figcaption {
  position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4);
  background: #fff; border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); color: var(--muted);
  border-left: 4px solid var(--green); box-shadow: var(--shadow-sm);
}
.journey-photo figcaption strong { display: block; color: var(--navy); font-family: var(--font-head); }
.journey-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.journey-card { background: #fff; border-radius: var(--radius); padding: var(--sp-5); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.journey-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.journey-num { font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--green); margin-bottom: var(--sp-3); }
.journey-card:nth-child(2) .journey-num { color: var(--blue); }
.journey-card:nth-child(3) .journey-num { color: var(--red-600); }
.journey-card:nth-child(4) .journey-num { color: var(--navy); }
.journey-card h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: var(--sp-2); }
.journey-card p { color: var(--muted); font-size: var(--fs-sm); flex: 1; }

/* v5: event post photo grid + "show more" */
.post-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-5); }
.post-gallery figure { margin: 0; }
.post-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.post-gallery figure:only-child { grid-column: 1 / -1; }
#event-grid .event-card.is-more { display: none; }

/* ==========================================================================
   v6: full-width photo slider at the top of the home page.
   Each photo is shown complete (object-fit: contain) over a soft blurred
   copy of itself, so no faces are cut off on any screen size.
   ========================================================================== */
.photo-hero { position: relative; background: var(--navy-900); color: #fff; }
.photo-hero .hero-slides { position: relative; height: min(78vh, 720px); min-height: 360px; overflow: hidden; }
.photo-hero .hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.photo-hero .hero-slide.is-active { opacity: 1; }
.photo-hero .slide-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(.55) saturate(1.1); }
.photo-hero .slide-img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.photo-hero-bar { background: var(--navy); border-top: 3px solid var(--green); }
.photo-hero-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); padding-block: var(--sp-4); }
.photo-hero-caption strong { font-family: var(--font-head); font-size: var(--fs-lg); color: #fff; margin-right: var(--sp-3); }
.photo-hero-caption span { color: rgba(255,255,255,.85); font-size: var(--fs-sm); }
.photo-hero .hero-controls { position: static; background: rgba(255,255,255,.12); flex: none; }

.hero-intro { padding: var(--sp-8) 0; background: linear-gradient(180deg, var(--blue-50), #fff); }
.hero-intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-7); align-items: end; }
.hero-intro h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); margin: 0; }
.hero-intro h1 .line { display: inline; }
.hero-intro h1 .line-green { color: var(--green-700); }
.hero-intro p { font-size: var(--fs-lg); color: var(--muted); }

/* Photos on the Our Journey cards */
.journey-thumb { margin: calc(-1 * var(--sp-5)) calc(-1 * var(--sp-5)) var(--sp-4); aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--blue-50); }
.journey-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.journey-card:hover .journey-thumb img { transform: scale(1.04); }
.journey-card { overflow: hidden; }

/* v7: programme photo grids with more than three photos */
.photo-pair.many { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
.photo-pair.many img:first-child { grid-column: 1 / -1; grid-row: auto; height: 260px; }
.photo-pair.many img:nth-child(n+2):last-child:nth-child(even) { grid-column: 1 / -1; }

/* v7.1: JVT staff group photo */
.staff-group { margin: var(--sp-5) auto 0; max-width: 1000px; }
.staff-group img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
