/* ===== Design tokens =====
   Matches the "Proposed Siddharth Foundation website" mockup: white header with the
   shield logo, gold Donate button, red ribbons/underlines, black counters + footer. */
:root {
  --gold: #c7821d;
  --gold-light: #e0a340;
  --gold-grad: linear-gradient(135deg, #b8701a 0%, #d9982f 100%);
  --orange-pill: #f5a623;
  --red: #d32f2f;
  --red-dark: #b3261e;
  --brand-green: #1f6b2a;
  /* logo colours (green / blue shield, orange figure) */
  --sf-green: #2f8a3a;
  --sf-green-light: #7cc142;
  --sf-blue: #1d6fb8;
  --sf-blue-dark: #163f7a;
  --sf-orange: #f7941d;
  --sf-grad: linear-gradient(120deg, #163f7a 0%, #1d6fb8 48%, #2f8a3a 100%);
  --ink: #1d1d1d;
  --purple: #5b4a9b;
  --lavender: #eceef7;

  /* names used by inner-page rules */
  --green-dark: #1d1d1d;
  --green: #b8701a;
  --green-light: #e0a340;
  --orange: var(--red);
  --cream: #f6f4ef;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --border: #e6e2da;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-display: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-cond: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Ubuntu', 'Segoe UI', sans-serif;
  --font-script: 'Dancing Script', cursive;
  --font-impact: 'Anton', 'Impact', sans-serif;
  --container-w: 1240px;
  --header-h: 84px;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--text); background: #fff; line-height: 1.65;
  overflow-x: hidden; width: 100%; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a, button { touch-action: manipulation; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ===== Page loader ===== */
#page-loader {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: #fff; transition: opacity .45s ease, visibility .45s ease;
}
#page-loader img { width: 64px; height: 64px; object-fit: contain; position: relative; z-index: 1; animation: loaderPulse 1.4s ease-in-out infinite; }
.loader-spinner { position: absolute; width: 96px; height: 96px; border-radius: 50%; border: 3px solid rgba(0,0,0,.08); border-top-color: var(--gold); animation: loaderSpin .9s linear infinite; }
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(.9); } }
body.is-loading { overflow: hidden; }
#page-loader.loader-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-smooth), transform .7s var(--ease-smooth); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Announcement bar ===== */

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 4px; font-weight: 500; font-family: var(--font-cond);
  text-decoration: none; font-size: 16px; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease-standard), box-shadow .2s var(--ease-standard), background .2s var(--ease-standard);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-cta { background: var(--gold-grad); color: #fff; box-shadow: 0 6px 18px rgba(184, 112, 26, .3); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; text-align: center; }
.btn-red {
  display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff; text-decoration: none;
  padding: 11px 30px; font-size: 18px; font-weight: 500; border-radius: 1px; transition: background .2s, transform .2s;
}
.btn-red:hover { background: var(--red-dark); }
.btn-pill-gold {
  display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(180deg, #f3b54a, #d89024); color: #3a2303;
  padding: 9px 24px; border-radius: 999px; text-decoration: none; font-family: var(--font-cond); font-weight: 500; font-size: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .2s, box-shadow .2s;
}
.btn-pill-dark {
  display: inline-block; background: rgba(40,40,40,.85); color: #fff; padding: 9px 26px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-cond); text-transform: uppercase; font-size: 17px; letter-spacing: .3px; transition: background .2s;
}
.btn-pill-dark:hover { background: #000; }
.btn-pill-orange {
  display: inline-block; background: var(--orange-pill); color: #fff; border: 0; padding: 9px 26px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-cond); font-size: 16px; cursor: pointer; transition: background .2s, transform .2s;
}
.btn-pill-orange:hover { background: #e0901a; }
.btn-pill-orange:disabled { opacity: .7; cursor: wait; }
@media (hover: hover) {
  .btn:hover, .btn-red:hover, .btn-pill-gold:hover, .btn-pill-orange:hover { transform: translateY(-2px); }
}
.btn:active, .btn-red:active, .btn-pill-gold:active, .btn-pill-orange:active, .btn-donate-nav:active { transform: scale(.97); }

/* ===== Header =====
   Logo on the left (desktop and mobile), menu + Donate to its right. The bar keeps one
   height while scrolling (a sticky header that changes height shifts the page and makes
   the scrolled state flicker); only the logo scales down, via transform. */
.site-header { position: sticky; top: 0; z-index: 200; background: #fff; transition: box-shadow .3s var(--ease-standard); }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.header-inner {
  display: flex; align-items: center; column-gap: 22px;
  max-width: 1600px; margin: 0 auto; padding: 4px 28px; min-height: var(--header-h);
}
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; position: relative; z-index: 2; transform-origin: left center; transition: transform .3s var(--ease-smooth); }
.brand-mark { width: 74px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 22px; letter-spacing: .3px; color: var(--sf-blue-dark); line-height: 1.02; }
.site-header.scrolled .brand { transform: scale(.86); }

.primary-nav { display: contents; }
.nav-side { display: flex; align-items: center; min-width: 0; }
.nav-left { margin-left: auto; }
.nav-right { gap: 16px; }
/* the two menu groups read as one row on desktop (no header column gap between them) */
@media (min-width: 1181px) { .nav-right { margin-left: -14px; } }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: block; padding: 12px 9px; font-family: var(--font-cond); font-size: 17px; color: #1f1f1f; text-decoration: none;
  white-space: nowrap; position: relative; transition: color .2s;
}
.nav-link::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: 5px; height: 3px; background: var(--sf-orange); transform: scaleX(0); transition: transform .25s var(--ease-smooth); }
.nav-item.active > .nav-link { color: var(--sf-blue); }
.nav-item.active > .nav-link::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover { color: var(--sf-blue); }
.has-dd .nav-link { padding-right: 2px; }
.dd-toggle { background: none; border: 0; padding: 6px 6px 6px 2px; cursor: pointer; color: #1f1f1f; display: flex; }
.dd-toggle svg { width: 12px; height: 12px; transition: transform .25s var(--ease-smooth); }
.dropdown {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff;
  border-radius: 10px; border-top: 3px solid var(--sf-blue); box-shadow: 0 16px 38px rgba(0,0,0,.14); z-index: 10;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .22s var(--ease-standard), transform .22s var(--ease-smooth), visibility 0s linear .22s;
}
.dropdown-cols { columns: 2; min-width: 560px; column-gap: 4px; }
.dropdown li { break-inside: avoid; }
.dropdown a {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-family: var(--font-cond);
  font-size: 16px; line-height: 1.25; color: #333; transition: color .15s, background .15s;
}
.dd-icon { flex: 0 0 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: var(--sf-blue); }
.dd-icon svg { width: 100%; height: 100%; }
.dropdown a:hover { color: var(--sf-blue-dark); background: #eef5fb; }
.nav-item:hover > .dropdown, .nav-item.dd-open > .dropdown { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease-standard), transform .22s var(--ease-smooth); }
.nav-item:hover > .dd-toggle svg, .nav-item.dd-open > .dd-toggle svg { transform: rotate(180deg); }
.nav-right .nav-item:nth-last-child(-n+2) > .dropdown { left: auto; right: 0; }

.btn-donate-nav {
  display: inline-flex; align-items: center; gap: 10px; background: var(--gold-grad); color: #fff; text-decoration: none;
  padding: 9px 24px; border-radius: 6px; font-family: var(--font-cond); font-size: 20px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(184,112,26,.28); transition: filter .2s, transform .2s;
}
.btn-donate-nav svg { width: 22px; height: 22px; }
.btn-donate-nav:hover { filter: brightness(1.07); }
.btn-donate-mobile { display: none; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; z-index: 2; }
.nav-toggle span { width: 24px; height: 2.5px; background: #1f1f1f; border-radius: 2px; transition: transform .3s var(--ease-smooth), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 190; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } }

/* ===== Home: banner slider =====
   Photo first: small headline in the lower-left, round arrows, and a numbered tab bar
   along the bottom to jump between slides. */
.hero-slider { position: relative; background: #1b1b1b; overflow: hidden; }
.hero-track { position: relative; width: 100%; aspect-ratio: 1920 / 760; max-height: calc(100vh - var(--header-h) - 36px); min-height: 320px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease-standard), visibility 0s linear .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s var(--ease-standard); }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
/* A photo much narrower than the banner, or too small for the screen, is shown whole
   and sharp in the middle over a blurred copy of itself, instead of cropped/stretched. */
.hero-slide-fill { display: none; filter: blur(28px) brightness(.7); transform: scale(1.15); }
.hero-slide.is-fit .hero-slide-fill { display: block; }
.hero-slide.is-fit .hero-slide-img { object-fit: contain; object-position: center; }
.hero-slide-content { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: 104px; }
.hero-slide-content.has-text { background: linear-gradient(0deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 42%, rgba(0,0,0,0) 62%), linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 45%); }
.hero-slide-content .container { width: 100%; padding-left: 90px; padding-right: 90px; max-width: 1600px; }
.hero-slide-title { color: #fff; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(22px, 2.3vw, 36px); line-height: 1.2; max-width: 560px; margin-bottom: 16px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero-slide-sub { color: rgba(255,255,255,.92); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.5; max-width: 500px; margin-bottom: 14px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.hero-slider .btn-pill-gold { padding: 7px 20px; font-size: 15px; }
.slider-arrow {
  position: absolute; top: 45%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; z-index: 3;
  background: rgba(255,255,255,.88); color: var(--sf-blue-dark); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: background .2s, color .2s, transform .2s;
}
.slider-arrow:hover { background: var(--sf-blue); color: #fff; }
.slider-arrow svg { width: 22px; height: 22px; }
.slider-arrow.prev { left: 22px; }
.slider-arrow.next { right: 22px; }
/* Whole slide links to its service; no text over the photo. */
.hero-slide-link { position: absolute; inset: 0; z-index: 1; }
/* One slim bar per slide (all ten visible), the current one in orange. */
.hero-tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: center; gap: 10px; padding: 0 70px 20px; pointer-events: none; }
.hero-tab { pointer-events: auto; flex: 0 0 auto; width: 46px; height: 22px; padding: 0; margin: 0; background: none; border: 0; cursor: pointer; position: relative; }
.hero-tab::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(255,255,255,.55); box-shadow: 0 1px 4px rgba(0,0,0,.35); transition: background .25s, transform .25s; }
.hero-tab:hover::before { background: #fff; }
.hero-tab[aria-current]::before { background: var(--sf-orange); transform: scaleY(1.35); }

/* ===== Home: About (fits one screen: short intro + photo strip of matching height) ===== */
.home-about { padding: 44px 0 48px; position: relative; overflow: hidden; }
.home-about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 4vw, 64px); align-items: center; max-width: 1300px; }
.eyebrow-spaced { font-family: var(--font-heading); letter-spacing: 6px; text-transform: uppercase; font-size: 12px; color: #444; margin-bottom: 4px; }
.home-about-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 4px; color: #222; letter-spacing: -.5px; }
.home-about-title span { color: var(--sf-green); }
.double-rule { display: block; width: 150px; height: 3px; margin: 6px 0 16px; background: linear-gradient(90deg, var(--sf-green) 0 22%, var(--sf-blue) 22% 44%, transparent 44% 58%, #cfcfcf 58% 100%); }
.home-about-text p { font-size: 16px; color: #2d2d2d; line-height: 1.6; }
.home-about-text h3 { font-family: var(--font-heading); color: var(--sf-blue-dark); font-size: clamp(18px, 1.6vw, 22px); margin: 16px 0 8px; }
.home-about-text .btn-red { margin-top: 4px; font-size: 16px; padding: 9px 24px; }
/* Three photos as a staggered collage: the middle one sits higher, each card rises in
   one after another when scrolled into view, then the photos zoom very slowly. */
.home-about-strip { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; height: clamp(380px, 36vw, 520px); padding: 10px 0; }
.home-about-strip.reveal { opacity: 1; transform: none; }
.home-about-strip::before {
  content: ''; position: absolute; z-index: -1; width: 62%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(124,193,66,.18) 0%, rgba(29,111,184,.10) 55%, transparent 72%);
}
.about-tile {
  position: relative; margin: 34px 0 0; overflow: hidden; border-radius: 18px; background: #eef2f6;
  box-shadow: 0 16px 34px rgba(22,63,122,.16);
  opacity: 0; transform: translateY(48px) scale(.96);
  transition: opacity .8s var(--ease-smooth), transform .9s var(--ease-smooth), box-shadow .3s;
  transition-delay: calc(var(--i) * .16s);
}
.about-tile:nth-child(2) { margin: 0 0 34px; }
.about-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; transform: scale(1.05); transform-origin: 50% 92%; }
.home-about-strip.is-visible .about-tile { opacity: 1; transform: none; }
.home-about-strip.is-visible .about-tile img { animation: aboutTileZoom 14s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -4s); }
@keyframes aboutTileZoom { from { transform: scale(1.05); } to { transform: scale(1.14); } }
@media (hover: hover) {
  .home-about-strip.is-visible .about-tile:hover { transform: translateY(-8px); box-shadow: 0 24px 44px rgba(22,63,122,.24); transition-delay: 0s; }
}

/* Vision | photo | Mission, with soft circles behind the text */
.home-vision { padding: 30px 0 64px; }
.home-vision-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.home-vision-head h2 { font-family: var(--font-heading); color: var(--sf-blue-dark); font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 10px; }
.home-vision-head p { color: #555; font-size: 16px; line-height: 1.65; margin: 0; }
.home-vision-grid { display: grid; grid-template-columns: 1fr minmax(0, 1.25fr) 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; max-width: 1200px; margin: 0 auto; }
.home-vision-col { position: relative; }
.home-vision-col h3 { position: relative; font-family: var(--font-heading); font-weight: 500; font-size: 22px; color: #222; margin: 0 0 18px; }
.home-vision-col p { position: relative; font-size: 15.5px; line-height: 1.75; color: #3a3a3a; margin: 0; }
.home-vision-blob { position: absolute; width: 150px; height: 150px; border-radius: 50%; pointer-events: none; }
.blob-left { left: 40%; bottom: -70px; background: rgba(124,193,66,.16); }
.blob-right { right: 10%; top: -60px; background: rgba(29,111,184,.12); }
.home-vision-photo { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 9 / 10; box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.home-vision-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .home-vision { padding: 10px 0 48px; }
  .home-vision-head { margin-bottom: 26px; }
  .home-vision-grid { grid-template-columns: 1fr; gap: 30px; max-width: 560px; }
  .home-vision-photo { order: -1; aspect-ratio: 4 / 3; }
  .blob-left { left: auto; right: 0; bottom: -40px; width: 110px; height: 110px; }
  .blob-right { right: auto; left: 30%; top: -30px; width: 110px; height: 110px; }
}

/* ===== Section titles ===== */
.section-title { font-family: var(--font-cond); font-weight: 400; font-size: clamp(28px, 2.8vw, 38px); color: #2b2b2b; padding-bottom: 12px; position: relative; margin-bottom: 26px; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100px; height: 2px; background: var(--red); }
.section-title.light { color: #fff; }
.section-subtitle { color: var(--muted); font-size: 16px; max-width: 640px; margin-bottom: 30px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.link-more { color: #9c5f0b; /* darker gold: readable on light backgrounds */ font-weight: 500; text-decoration: none; font-family: var(--font-cond); font-size: 17px; }
.link-more:hover { text-decoration: underline; }

/* ===== Ribbon tag (red label with folded corner) ===== */
.ribbon {
  position: absolute; top: 12px; right: -8px; z-index: 2; background: var(--red); color: #fff; padding: 4px 12px;
  font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: 1px; line-height: 1.5; max-width: 80%;
  white-space: nowrap;
}
.ribbon::after { content: ''; position: absolute; right: 0; bottom: -8px; border-style: solid; border-width: 8px 8px 0 0; border-color: #7a7a7a transparent transparent transparent; }

/* ===== Home: Latest carousel ===== */
.latest-section { background: #fff; padding: 50px 0 60px; }
.carousel { position: relative; display: flex; align-items: center; gap: 16px; }
.carousel-track {
  flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 22px) / 3); column-gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 14px 10px 10px; margin: -14px -10px -10px; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-arrow { flex: 0 0 30px; height: 30px; border: 0; background: #bdbdbd; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, opacity .2s; }
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-arrow:hover { background: #888; }
.carousel-arrow:disabled { opacity: .35; cursor: default; }
.latest-card { position: relative; background: #fff; padding: 8px 8px 18px; scroll-snap-align: start; transition: box-shadow .3s var(--ease-smooth), transform .3s var(--ease-smooth); }
@media (hover: hover) { .latest-card:hover { box-shadow: 0 14px 30px rgba(0,0,0,.12); transform: translateY(-4px); } }
.latest-card-img { display: block; aspect-ratio: 16 / 12; overflow: hidden; background: #ddd; }
.latest-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-smooth); }
.latest-card:hover .latest-card-img img { transform: scale(1.04); }
.latest-card-body { padding: 16px 4px 0; }
.latest-card h3 { font-family: var(--font-cond); font-weight: 700; font-size: 18px; line-height: 1.35; margin-bottom: 12px; }
.latest-card h3 a { text-decoration: none; color: #222; }
.latest-card h3 a::after { content: ''; position: absolute; inset: 0; }
.latest-card p { font-family: var(--font-cond); color: #6d6d6d; font-size: 15px; line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Wide "row" cards (home Latest + Insights list) */
.latest-list { display: flex; flex-direction: column; gap: 24px; max-width: 1150px; margin: 0 auto; padding: 6px 0 10px; }
.latest-row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 320px) minmax(0, 1fr) 48px; gap: 28px; align-items: center;
  padding: 30px 34px; border-radius: 18px; background: #eef4ef; transition: box-shadow .3s var(--ease-smooth), transform .3s var(--ease-smooth);
}
@media (hover: hover) { .latest-row:hover { box-shadow: 0 14px 30px rgba(22,63,122,.10); transform: translateY(-3px); } }
.latest-row-icon { align-self: start; width: 44px; height: 44px; color: var(--sf-green); }
.latest-row-icon svg { width: 100%; height: 100%; }
.latest-row-body { display: flex; flex-direction: column; min-width: 0; }
.latest-row-tag { margin: 0 0 6px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--sf-blue); }
.latest-row h3 { margin: 0 0 10px; font-family: var(--font-body); font-weight: 500; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.4; }
.latest-row h3 a { color: #2b2b2b; text-decoration: none; }
.latest-row h3 a:hover { color: var(--sf-blue-dark); }
.latest-row-excerpt { margin: 0; color: #555; font-size: 15px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-row-actions { display: flex; flex-direction: column; gap: 16px; justify-self: center; }
.latest-row-download .president-feature-arrow { background: var(--sf-green); }
/* Home: endless slow upward scroll of the Latest cards */
.latest-marquee { max-width: 1150px; margin: 0 auto; }
.latest-marquee .latest-row { margin-bottom: 24px; }
.latest-marquee.is-looping { height: 620px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 4px 6px; margin-left: -6px; margin-right: -6px; }
.latest-marquee.is-looping::-webkit-scrollbar { display: none; }
.latest-marquee .latest-row.reveal { opacity: 1; transform: none; }
.latest-marquee-hint { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.latest-row-img { display: block; aspect-ratio: 2 / 1; border-radius: 14px; overflow: hidden; background: #dfe7e1; }
.latest-row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-smooth); }
.latest-row:hover .latest-row-img img { transform: scale(1.04); }
@media (min-width: 761px) and (max-width: 1024px) {
  .latest-row { grid-template-columns: minmax(0, 1fr) minmax(0, 260px) minmax(0, 150px); gap: 22px; padding: 24px 26px; }
  .latest-row-icon { display: none; }
}
@media (max-width: 760px) {
  .latest-row { grid-template-columns: 1fr; gap: 14px; padding: 16px 16px 22px; }
  .latest-row-img { order: -1; }
  .latest-row-icon { display: none; }
  .latest-row-actions { flex-direction: row; flex-wrap: wrap; gap: 12px 26px; }
  .latest-marquee.is-looping { height: 680px; }
}
.latest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; padding: 10px 0 60px; }

/* ===== Counters (logo blue -> green band) ===== */
.counters-section { background: var(--sf-grad); padding: 48px 0; color: #fff; position: relative; overflow: hidden; }
.counters-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.12), transparent 45%); }
.counters-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1200px; }
.counter-card { display: flex; flex-direction: column; justify-content: flex-end; padding-left: 18px; border-left: 3px solid rgba(255,255,255,.28); }
.counter-number { font-family: var(--font-heading); font-weight: 700; font-size: clamp(34px, 3.6vw, 50px); line-height: 1.1; color: #fff; }
.counter-suffix { color: #ffb347; }
.counter-icon { width: clamp(40px, 3.6vw, 52px); height: clamp(40px, 3.6vw, 52px); color: #ffb347; margin-bottom: 4px; }
.counter-icon svg { width: 100%; height: 100%; }
.counter-number, .counter-icon { min-height: 56px; display: flex; align-items: flex-end; }
.counter-label { margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(255,255,255,.92); font-family: var(--font-heading); }

/* ===== Impact highlights ===== */
.highlights-section { padding: 40px 0 54px; }
.highlights-title { font-family: var(--font-body); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); color: #2b2b2b; margin-bottom: 20px; }
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.highlight-value { display: block; font-family: var(--font-body); font-weight: 500; color: var(--gold-light); font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 4px; }
.highlight h3 { font-family: var(--font-body); font-weight: 500; font-size: 20px; margin-bottom: 6px; }
.highlight p { font-size: 15px; color: #555; }

/* ===== Areas of work tiles ===== */
.areas-section { padding: 30px 0 50px; }
.areas-heading { text-align: center; font-family: var(--font-body); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); color: #3a3a3a; margin-bottom: 16px; }
.areas-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0 6px; }
.section-areas .areas-tiles { padding: 0; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.area-tile { --tile: #43a047; position: relative; display: block; aspect-ratio: 1 / 1.08; overflow: hidden; background: #2b2b2b; text-decoration: none; color: #fff; isolation: isolate; }
.area-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-smooth); z-index: -1; }
.area-tile-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; }
.area-tile-icon { flex: 0 0 29%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--tile); color: #fff; position: relative; transition: flex-basis .4s var(--ease-smooth); }
.area-tile-icon::before { content: ''; position: absolute; left: 0; top: -9px; border-style: solid; border-width: 0 0 9px 9px; border-color: transparent transparent var(--tile) transparent; filter: brightness(.7); }
.area-tile-icon svg, .area-tile-icon img { width: 58%; height: auto; max-height: 70%; object-fit: contain; }
.area-tile-label {
  flex: 1; min-height: 58%; align-self: flex-end; display: flex; align-items: center; padding: 6px 12px; background: rgba(25,25,25,.66);
  font-family: var(--font-cond); font-size: 16px; line-height: 1.2; word-break: normal; overflow-wrap: break-word; hyphens: auto;
}
/* Desktop/tablet: home grid sits in the same 1400px column as the other sections. */
@media (min-width: 901px) {
  .areas-section { padding: 36px 0 64px; }
  .areas-section .areas-heading { font-family: var(--font-heading); font-weight: 700; color: var(--sf-blue-dark); margin-bottom: 26px; }
  .areas-section .areas-tiles { max-width: 1400px; margin: 0 auto; padding: 0 40px; gap: 14px; }
  .areas-section .area-tile { border-radius: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.08); }
}
@media (hover: hover) {
  .area-tile:hover > img { transform: scale(1.07); }
  .area-tile:hover .area-tile-icon { flex-basis: 33%; }
}

/* ===== Impact stories: overlay cards + home mosaic ===== */
.section-stories { padding: 50px 20px 60px; }
.story-overlay {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; border-radius: 12px;
  background: #2b2b2b; color: #fff; isolation: isolate; box-shadow: 0 10px 26px rgba(0,0,0,.12);
  transition: transform .45s var(--ease-smooth), box-shadow .45s var(--ease-smooth);
}
.story-overlay > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; z-index: -2; }
.story-overlay::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,0) 70%); }
.story-overlay .ribbon { top: 22px; }
.story-overlay-body { padding: 22px 24px 24px; }
.story-overlay h3 { color: #fff; font-family: var(--font-cond); font-weight: 400; font-size: 24px; line-height: 1.25; margin-bottom: 8px; }
.story-overlay p { color: rgba(255,255,255,.93); font-family: var(--font-cond); font-size: 17px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-readmore { display: inline-block; background: rgba(50,50,50,.9); color: #fff; text-decoration: none; padding: 6px 14px; font-family: var(--font-cond); font-size: 16px; border-radius: 2px; transition: background .25s; }
.story-readmore::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
@media (hover: hover) {
  .story-overlay:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0,0,0,.2); }
  .story-overlay:hover .story-readmore { background: var(--red); }
}
.stories-mosaic { display: grid; grid-template-columns: 1fr 1fr 0.86fr; grid-auto-rows: 250px; gap: 14px; }
.stories-mosaic .story-overlay:nth-child(1) { grid-column: 1 / 3; grid-row: span 2; }
.stories-mosaic .story-overlay:nth-child(1) .story-overlay-body { max-width: 540px; margin-left: auto; }
.stories-mosaic .story-overlay:nth-child(2) { grid-column: 3; grid-row: span 3; }
.stories-mosaic .story-overlay:nth-child(3), .stories-mosaic .story-overlay:nth-child(4) { grid-row: span 1; min-height: 0; }
.stories-mosaic .story-overlay:nth-child(n+3) p { display: none; }
/* small tiles: keep the stretched link for the whole card, hide its label */
.stories-mosaic .story-overlay:nth-child(n+3) .story-readmore { font-size: 0; padding: 0; background: none; }
.stories-mosaic .story-overlay:nth-child(n+3) h3 { font-size: 20px; margin: 0; }
.stories-mosaic .story-overlay:nth-child(n+3) .story-overlay-body { padding: 16px 18px; }
/* A single story: split card (photo left, text right) instead of one full-width photo. */
.stories-mosaic.count-1 { grid-template-columns: 1fr; grid-auto-rows: auto; max-width: 980px; margin: 0 auto; }
.stories-mosaic.count-1 .story-overlay:nth-child(1) { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: 1.15fr 1fr; min-height: 340px; background: #1f2a22; }
.stories-mosaic.count-1 .story-overlay > img { position: relative; inset: auto; height: 100%; min-height: 340px; max-height: 420px; border-radius: 12px 0 0 12px; z-index: 0; }
.stories-mosaic.count-1 .story-overlay::before { display: none; }
.stories-mosaic.count-1 .story-overlay:nth-child(1) .story-overlay-body { align-self: center; max-width: none; margin: 0; padding: 32px 36px; }
.stories-mosaic.count-2 .story-overlay:nth-child(2), .stories-mosaic.count-3 .story-overlay:nth-child(2) { grid-row: span 2; }
.stories-mosaic.count-3 .story-overlay:nth-child(3) { grid-column: 1 / -1; }
.stories-more { text-align: right; margin-top: 18px; }
.stories-overlay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.stories-overlay-grid .story-overlay { min-height: 380px; }

/* ===== Impact Stories page ===== */
.stories-banner {
  position: relative; height: calc(100vh - var(--header-h) - 36px); min-height: 460px; max-height: 720px; display: flex; flex-direction: column; justify-content: center;
  background: #333 var(--bg) center / cover no-repeat; color: #fff; padding: 36px 0 24px; overflow: hidden;
}
.stories-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35)); }
.stories-banner > * { position: relative; }
.stories-banner .container { width: 100%; max-width: 1600px; padding: 0 60px; }
.stories-banner-title { font-family: var(--font-impact); font-weight: 400; color: #ffc233; text-transform: uppercase; font-size: clamp(40px, 5.2vw, 76px); line-height: 1; margin-bottom: 16px; text-shadow: 0 3px 16px rgba(0,0,0,.25); }
.stories-banner-small { height: auto; min-height: 0; padding: 56px 0 40px; }
.stories-banner-small .stories-banner-title { font-size: clamp(36px, 5vw, 64px); margin-bottom: 10px; }
.stories-banner-count { text-transform: uppercase; font-family: var(--font-cond); font-size: 18px; margin: 0; }
.breadcrumbs { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 12px; }
.breadcrumbs a { color: #fff; text-decoration: none; }
.portfolio-strip { position: relative; margin-top: 34px; }
.portfolio-wave { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 80px; }
.portfolio-list { list-style: none; margin: 0; padding: 0 70px 0 60px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; position: relative; }
.portfolio-list::-webkit-scrollbar { display: none; }
.portfolio-item { flex: 0 0 auto; width: calc((100% - 5 * 20px) / 6); min-width: 130px; scroll-snap-align: start; }
.portfolio-item.low { padding-top: 34px; }
.portfolio-item a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: #fff; text-align: center; }
.portfolio-icon { width: 74px; height: 74px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: transform .3s var(--ease-smooth); }
.portfolio-icon svg { width: 62%; height: 62%; }
.portfolio-name { font-family: var(--font-cond); font-weight: 700; font-size: 16px; line-height: 1.2; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.portfolio-plus svg { width: 30px; height: 30px; color: #fff; }
@media (hover: hover) { .portfolio-item a:hover .portfolio-icon { transform: translateY(-6px) scale(1.04); } }
.portfolio-next { position: absolute; right: 16px; top: 36px; width: 40px; height: 40px; border: 0; background: none; color: #fff; cursor: pointer; }
.portfolio-next svg { width: 30px; height: 30px; }

.portfolio-section {
  position: relative; height: calc(100vh - var(--header-h)); min-height: 500px; max-height: 760px; display: flex; align-items: center; padding: 30px 0;
  background: #333 var(--bg) center / cover no-repeat; color: #fff; overflow: hidden;
}
.portfolio-section::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.portfolio-inner { position: relative; width: 100%; max-width: 1400px; }
.portfolio-head { text-align: center; margin-bottom: 26px; }
.portfolio-head-icon { display: inline-flex; width: 58px; height: 58px; color: #fff; }
.portfolio-head-icon svg { width: 100%; height: 100%; }
.portfolio-head h2 { font-family: var(--font-impact); font-weight: 400; color: #fff; text-transform: uppercase; font-size: clamp(30px, 3.8vw, 50px); line-height: 1.05; margin: 4px 0 8px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.portfolio-head p { text-transform: uppercase; font-family: var(--font-cond); font-size: 17px; margin-bottom: 12px; }
.btn-pill-accent { display: inline-block; background: var(--accent); color: #fff; padding: 8px 36px; border-radius: 999px; text-decoration: none; text-transform: uppercase; font-family: var(--font-cond); font-size: 18px; transition: filter .2s, transform .2s; }
.btn-pill-accent:hover { filter: brightness(1.1); transform: translateY(-2px); }
.portfolio-cards { display: flex; justify-content: center; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 10px; }
.portfolio-cards::-webkit-scrollbar { display: none; }
.pcard { position: relative; flex: 0 0 230px; height: 200px; border: 4px solid #fff; border-radius: 6px; overflow: hidden; background: #fff; scroll-snap-align: start; text-decoration: none; transition: transform .3s var(--ease-smooth); }
.pcard img { width: 100%; height: 100%; object-fit: cover; }
.pcard-lead { flex-basis: 470px; display: grid; grid-template-columns: 1fr 1fr; border: 0; background: none; overflow: visible; }
.pcard-lead img { border: 4px solid #fff; border-radius: 6px; }
.pcard-text { margin: -14px 0 14px -8px; background: color-mix(in srgb, var(--accent) 88%, transparent); color: #fff; border-radius: 6px; padding: 16px 14px; display: flex; flex-direction: column; justify-content: center; text-align: center; font-family: var(--font-cond); }
.pcard-text strong { font-size: 18px; line-height: 1.25; margin-bottom: 8px; }
.pcard-text span { font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-plus { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1; font-weight: 300; transition: transform .3s var(--ease-smooth); }
@media (hover: hover) {
  .pcard:hover { transform: translateY(-5px); }
  .pcard:hover .pcard-plus { transform: rotate(90deg); }
}
.portfolio-dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 150; display: flex; flex-direction: column; gap: 12px; }
.portfolio-dots a { position: relative; display: block; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); transition: background .2s, transform .2s; }
.portfolio-dots a.active { background: var(--red); transform: scale(1.15); }
.portfolio-dot-label { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap; color: #fff; font-family: var(--font-cond); font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.6); opacity: 0; transition: opacity .2s; pointer-events: none; }
.portfolio-dots a.active .portfolio-dot-label, .portfolio-dots a:hover .portfolio-dot-label { opacity: 1; }

/* ===== Donate page (white card panel in the logo's blue/green) ===== */
.dn-hero { color: #fff; padding: 40px 0 34px; background: var(--sf-grad); }
.dn-hero h1 { color: #fff; font-family: var(--font-heading); font-size: clamp(28px, 3.2vw, 44px); margin-bottom: 6px; }
.dn-hero-lead { max-width: 760px; font-size: 17px; color: rgba(255,255,255,.92); margin-bottom: 18px; }
.dn-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dn-trust li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-size: 14px; }
.dn-trust svg { width: 18px; height: 18px; }

.donate-layout { padding: 40px 0 50px; background: linear-gradient(180deg, #f3f7fb 0, #fff 420px); }
.donate-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: start; max-width: 1300px; }
.donate-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: start; }
.donate-gallery img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; border-radius: 12px; }
.donate-gallery img.tall { grid-column: 1; grid-row: 1 / span 3; aspect-ratio: auto; height: 100%; }
.donate-panel {
  background: #fff; color: var(--text); padding: 26px 26px 24px; position: sticky; top: calc(var(--header-h) + 16px);
  border-radius: 18px; box-shadow: 0 18px 44px rgba(22,63,122,.14); border-top: 5px solid var(--sf-blue);
}
.donate-panel h2 { color: var(--sf-blue-dark); font-family: var(--font-heading); font-weight: 700; font-size: 20px; margin: 18px 0 10px; }
.donor-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #eef3f8; border-radius: 999px; }
.donor-tab { min-width: 110px; padding: 8px 18px; border-radius: 999px; border: 0; background: transparent; color: #4a5a6a; font-family: var(--font-heading); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.donor-tab.is-active { background: var(--sf-blue); color: #fff; box-shadow: 0 4px 12px rgba(29,111,184,.3); }
.panel-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #333; }
.pay-method { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1.5px solid #cfdceb; background: #f8fbfe; font-family: var(--font-body); font-size: 14.5px; margin-bottom: 18px; color: #222; }
.pay-method:focus { outline: 2px solid var(--sf-blue); outline-offset: 1px; }
.pay-pane p { font-size: 14.5px; }
.pay-pane a { color: var(--sf-blue); }
.pay-qr { background: #fff; padding: 8px; border-radius: 6px; margin-bottom: 12px; }
.pay-hint { opacity: .85; font-size: 13px !important; }
/* Bank transfer / UPI (QR) donations */
.pay-sample-warning { background: #fff3cd; color: #6b4b00; border-left: 4px solid #f5a623; border-radius: 6px; padding: 10px 14px; font-size: 13.5px; line-height: 1.5; margin: 14px 0 4px; }
.pay-sample-warning strong { display: block; color: #8a2a00; font-size: 14.5px; }
.pay-step { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 10px; line-height: 1.5; }
.pay-step span { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--sf-green); color: #fff; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.pay-qr-box { background: #fff; color: #222; border: 1.5px solid #dde8f3; border-radius: 12px; padding: 14px; text-align: center; max-width: 260px; }
.pay-qr-box .pay-qr { display: block; margin: 0 auto 8px; padding: 0; }
.pay-upi { margin: 4px 0 0; font-size: 14px !important; word-break: break-all; }
.pay-upi-name { margin: 0; color: #666; font-size: 13px !important; }
.bank-table { width: 100%; border-collapse: collapse; background: #f8fbfe; border: 1px solid #dde8f3; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.bank-table th, .bank-table td { text-align: left; padding: 8px 12px; font-size: 14px; border-bottom: 1px solid #e3ecf5; }
.bank-table th { font-weight: 400; color: #5b6b7b; width: 42%; }
.bank-table td { word-break: break-word; }
.offline-donation { border-top: 1px dashed #cfdceb; margin-top: 16px; }
.offline-donation .form-success, .offline-donation .form-error { margin-top: 16px; }
.offline-donation .form-success h2 { color: #1c4d2e; margin: 0 0 6px; }
.donate-form input[type="file"] { background: #f8fbfe; padding: 8px; }
.donate-form label small { opacity: .75; font-weight: 400; }
.donate-form label { color: #333; }
.donate-form input, .donate-form select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #cfdceb; font-size: 14.5px; font-family: inherit; background: #fff; color: #222; }
.donate-form input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--sf-green); }
.donate-form .checkbox-inline-light { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.donate-form input:focus, .donate-form select:focus { outline: 2px solid var(--sf-blue); outline-offset: 1px; border-color: var(--sf-blue); }
.donate-form .amount-pill { border: 1.5px solid #cfdceb; background: #fff; color: var(--sf-blue-dark); padding: 8px 16px; font-size: 14.5px; }
.donate-form .amount-pill.active, .donate-form .amount-pill:hover { background: var(--sf-green); color: #fff; border-color: var(--sf-green); }
.donate-submit-row { display: flex; justify-content: stretch; margin-top: 4px; }
.donate-panel .btn-pill-orange {
  width: 100%; text-align: center; padding: 13px 26px; font-family: var(--font-heading); font-weight: 700; font-size: 16px;
  background: linear-gradient(135deg, var(--sf-orange), #e9761a); box-shadow: 0 8px 20px rgba(247,148,29,.35);
}
.donate-panel .btn-pill-orange:hover { background: linear-gradient(135deg, #f08a12, #d9680f); }
.tax-note { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: #eef7ef; font-size: 13px; line-height: 1.6; }
.tax-note h3 { color: var(--sf-green); font-family: var(--font-heading); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.tax-note .rich-content { color: #34503a; font-size: 13px; }
.tax-note .rich-content p:last-child { margin-bottom: 0; }
#panel-foreign .rich-content { font-size: 15px; margin-bottom: 16px; }
#panel-foreign .btn-pill-orange { width: auto; }

/* ===== Contact page (brand blue/green, card based) ===== */
.ci-hero { position: relative; color: #fff; padding: 46px 0 40px; overflow: hidden; background: var(--sf-grad); }
.ci-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); }
.ci-hero-inner { position: relative; z-index: 1; }
.ci-crumbs { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 8px; }
.ci-crumbs a { color: #fff; text-decoration: none; }
.ci-hero h1 { color: #fff; font-family: var(--font-heading); font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 8px; }
.ci-hero-lead { max-width: 760px; font-size: 16.5px; color: rgba(255,255,255,.92); margin-bottom: 26px; }
.ci-paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ci-path {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(2px); transition: background .2s, transform .2s;
}
.ci-path:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.ci-path-icon { flex: 0 0 42px; height: 42px; border-radius: 10px; background: #fff; color: var(--sf-blue); display: flex; align-items: center; justify-content: center; }
.ci-path-icon svg { width: 24px; height: 24px; }
.ci-path strong { display: block; font-family: var(--font-heading); font-size: 16px; }
.ci-path small { display: block; font-size: 13px; opacity: .85; }

.ci-join { display: grid; grid-template-columns: .95fr 1.05fr; gap: 46px; align-items: center; padding-top: 60px; max-width: 1140px; }
.ci-join-flip .ci-join-media { order: 2; }
.ci-join-media { position: relative; }
.ci-join-media img { width: 100%; height: 380px; object-fit: cover; object-position: center 30%; border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.ci-badge { position: absolute; right: -16px; bottom: -16px; width: 70px; height: 70px; border-radius: 18px; background: var(--sf-blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(29,111,184,.4); border: 4px solid #fff; }
.ci-badge-green { background: var(--sf-green); box-shadow: 0 10px 24px rgba(47,138,58,.4); }
.ci-join-flip .ci-badge { right: auto; left: -16px; }
.ci-badge svg { width: 34px; height: 34px; }
.ci-kicker { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--sf-orange); margin-bottom: 6px; }
.ci-join-text h2 { font-family: var(--font-heading); font-size: clamp(22px, 2.2vw, 30px); color: var(--sf-blue-dark); margin-bottom: 12px; }
.ci-join-text p { font-size: 15.5px; color: #3a3a3a; }
.ci-join-text a:not(.ci-btn) { color: var(--sf-blue); font-weight: 500; }
.check-list { list-style: none; padding: 0; margin: 0 0 16px; }
.check-list li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.check-list svg { width: 16px; height: 16px; color: var(--sf-green); flex-shrink: 0; }
.ci-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ci-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 24px; border-radius: 999px; border: 2px solid var(--sf-blue);
  background: var(--sf-blue); color: #fff; text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.ci-btn:hover { background: var(--sf-blue-dark); border-color: var(--sf-blue-dark); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(22,63,122,.25); }
.ci-btn-green { background: var(--sf-green); border-color: var(--sf-green); }
.ci-btn-green:hover { background: #24702e; border-color: #24702e; }
.ci-btn-ghost { background: transparent; color: var(--sf-blue); }
.ci-btn-ghost:hover { color: #fff; }

.ci-career {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; max-width: 1140px; margin-top: 64px; padding: 26px 30px;
  border-radius: 18px; background: #f3f7fb; border: 1px solid #dde8f3;
}
.ci-career-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--sf-orange); color: #fff; display: flex; align-items: center; justify-content: center; }
.ci-career-icon svg { width: 32px; height: 32px; }
.ci-career h2 { font-family: var(--font-heading); font-size: 24px; color: var(--sf-blue-dark); margin-bottom: 4px; }
.ci-career p { margin: 0; color: #444; font-size: 15.5px; }

.ci-contact { margin-top: 64px; padding: 56px 0 70px; background: linear-gradient(180deg, #f3f7fb, #fff); }
.ci-title { font-family: var(--font-heading); font-size: clamp(26px, 2.6vw, 36px); color: var(--sf-blue-dark); text-align: center; margin-bottom: 30px; }
.ci-contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; max-width: 1140px; margin: 0 auto; align-items: start; }
.ci-contact-grid.is-single { grid-template-columns: 1fr; max-width: 720px; }
.ci-info-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 6px 20px rgba(22,63,122,.08); }
.ci-info-icon { flex: 0 0 44px; height: 44px; border-radius: 12px; background: #e6f0fa; color: var(--sf-blue); display: flex; align-items: center; justify-content: center; }
.ci-info-icon svg { width: 22px; height: 22px; }
.ci-info-card strong { font-family: var(--font-heading); font-size: 15px; color: var(--sf-blue-dark); }
.ci-info-card p { margin: 2px 0 0; color: #444; font-size: 15px; line-height: 1.5; }
.ci-info-card a { color: #444; text-decoration: none; }
.ci-info-card a:hover { color: var(--sf-blue); }
.ci-form-card { background: #fff; border-radius: 18px; padding: 28px 30px; box-shadow: 0 14px 36px rgba(22,63,122,.12); border-top: 4px solid var(--sf-green); }
.ci-form-card h3 { font-family: var(--font-heading); color: var(--sf-blue-dark); font-size: 21px; margin-bottom: 18px; }
.ci-btn-submit { width: 100%; padding: 13px 24px; font-size: 16px; }
.map-embed { margin: 18px 0; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/9; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ===== Media page ===== */
.media-type-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 220px)); gap: 26px; justify-content: center; padding: 20px 0 40px; }
.media-type-card { background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.08); border-radius: 4px; padding: 6px 6px 16px; text-decoration: none; color: #555; display: flex; flex-direction: column; font-family: var(--font-cond); transition: transform .3s var(--ease-smooth), box-shadow .3s; border-bottom: 3px solid transparent; }
.media-type-card img { aspect-ratio: 5 / 3; object-fit: cover; width: 100%; margin-bottom: 12px; }
.media-type-card strong { font-size: 20px; color: #666; padding: 0 8px; }
.media-type-card span { font-size: 15px; padding: 2px 8px 0; line-height: 1.5; }
.media-type-card.active { border-bottom-color: var(--red); }
.media-type-card.active strong { color: var(--red); }
@media (hover: hover) { .media-type-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.12); } }

/* ===== Footer ===== */
.site-footer {
  position: relative; color: #e8eef6; padding-top: 54px; font-size: 16px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(47,138,58,.35) 0%, transparent 55%), linear-gradient(160deg, #0d2a52 0%, #123a6e 55%, #0f3b3a 100%);
}
/* thin strip in the logo's colours along the top edge */
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--sf-green) 0 40%, var(--sf-orange) 40% 60%, var(--sf-blue) 60% 100%); }
/* Compact link-list footer: logo + social row on the left, plain link columns. */
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr 1.35fr .75fr 1.3fr; gap: 36px; padding-bottom: 40px; max-width: 1400px; }
.footer-logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.footer-logo img { width: 64px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.footer-logo-divider { width: 1.5px; align-self: stretch; margin: 6px 0; background: rgba(255,255,255,.55); }
.footer-logo-name { font-family: 'Playfair Display', Georgia, serif; font-size: 21px; line-height: 1.15; color: #fff; }
.footer-tagline { margin: 18px 0 0; max-width: 270px; font-family: var(--font-script); font-size: 19px; line-height: 1.35; color: var(--gold-light); }
.footer-social { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.footer-donate { white-space: nowrap; display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--gold-grad); color: #fff; font-family: var(--font-cond); font-size: 16px; text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,.2); transition: filter .2s, transform .2s; }
.footer-donate:hover { filter: brightness(1.08); transform: translateY(-2px); }
.footer-social a:not(.footer-donate) { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.footer-social a:not(.footer-donate):hover { background: #fff; border-color: #fff; color: var(--sf-blue-dark); transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; font-size: 14px; line-height: 1.45; letter-spacing: .2px; color: #e8eef6; }
.footer-col a { color: #e8eef6; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-contact li { overflow-wrap: anywhere; }
.footer-contact li:first-child { line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding-top: 18px; padding-bottom: 20px; max-width: 1400px; }
.footer-copy { font-size: 13px; color: #c3d0e0; margin: 0; text-align: center; line-height: 1.6; }
.footer-copy a { color: #c3d0e0; }
.footer-credit { margin: 8px 0 0; text-align: center; font-size: 14px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.footer-credit a { color: var(--gold-light); text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 290; width: 46px; height: 46px; border: 0; border-radius: 2px;
  background: var(--red); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.2);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease-standard), transform .3s var(--ease-smooth), visibility 0s linear .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease-standard), transform .3s var(--ease-smooth); }
.back-to-top svg { width: 24px; height: 24px; }

/* ===== Page header (inner pages) ===== */
.page-header { background: var(--green-dark); color: #fff; padding: 56px 0 40px; }
.page-header h1 { color: #fff; margin-bottom: 8px; font-size: clamp(28px, 4vw, 40px); }
.page-header-subtitle { color: rgba(255,255,255,.85); max-width: 700px; }
.page-header-img { background-size: cover; background-position: center; position: relative; }
.page-header-img::before { content: ''; position: absolute; inset: 0; background: rgba(16,16,16,.8); }
.page-header-img .container { position: relative; z-index: 1; }
.breadcrumbs { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.breadcrumbs a { color: rgba(255,255,255,.9); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ===== Rich content / detail pages ===== */
.detail-content { padding-top: 50px; padding-bottom: 20px; max-width: 820px; }
.detail-cover { display: block; width: 100%; padding: 0; border: 0; background: #f3f4f2; border-radius: var(--radius-lg); margin-bottom: 26px; cursor: zoom-in; overflow: hidden; }
/* Whole image, never cropped — reports and posters are often portrait or full of text */
.detail-cover-img { display: block; width: 100%; height: auto; max-height: min(460px, 60vh); object-fit: contain; margin: 0 auto; }
.rich-content { color: var(--text); font-size: 16px; }
.rich-content h1, .rich-content h2, .rich-content h3 { margin-top: 1.2em; }
.rich-content p { margin-bottom: 1em; }
.rich-content img { border-radius: var(--radius-md); margin: 12px 0; }
.rich-content ul, .rich-content ol { padding-left: 22px; }

/* ===== About page ===== */
/* ===== About page ===== */
.about-hero { position: relative; color: #fff; padding: clamp(70px, 11vw, 140px) 0 clamp(50px, 7vw, 90px); background: linear-gradient(100deg, rgba(13,42,82,.92) 0%, rgba(18,58,110,.78) 45%, rgba(47,138,58,.55) 100%), var(--hero) center 30% / cover no-repeat; }
/* Smaller copies of the banner photo on tablets and phones (much faster to load) */
@media (max-width: 1200px) { .about-hero { background-image: linear-gradient(100deg, rgba(13,42,82,.92) 0%, rgba(18,58,110,.78) 45%, rgba(47,138,58,.55) 100%), var(--hero-md, var(--hero)); } }
@media (max-width: 600px) { .about-hero { background-image: linear-gradient(100deg, rgba(13,42,82,.92) 0%, rgba(18,58,110,.78) 45%, rgba(47,138,58,.55) 100%), var(--hero-sm, var(--hero-md, var(--hero))); } }
.about-hero .breadcrumbs, .about-hero .breadcrumbs a { color: rgba(255,255,255,.8); }
.about-hero .eyebrow { color: #ffd38a; }
.about-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 56px); margin: 6px 0 10px; }
.about-hero-tagline { margin: 0; font-family: var(--font-script); font-size: clamp(20px, 2.4vw, 30px); color: #fff; opacity: .95; }

.about-intro2 { padding: 70px 0 60px; }
.about-intro2-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.about-intro2-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.about-intro2-aside h2 { font-family: var(--font-heading); font-size: clamp(28px, 3vw, 38px); color: #222; margin: 4px 0 6px; }
.about-facts { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 12px; }
.about-facts li { display: flex; flex-direction: column; padding: 14px 18px; border-radius: 12px; background: #f2f7f3; border-left: 4px solid var(--sf-green); }
.about-facts li:nth-child(2) { border-left-color: var(--sf-blue); background: #eef4fa; }
.about-facts li:nth-child(3) { border-left-color: var(--sf-orange); background: #fdf4e8; }
.about-facts strong { font-family: var(--font-heading); font-size: 20px; color: var(--sf-blue-dark); }
.about-facts span { font-size: 13.5px; color: #555; line-height: 1.45; }
.about-intro2-strip { height: 300px; gap: 10px; }
.about-intro2-strip .about-tile { border-radius: 14px; margin-top: 20px; }
.about-intro2-strip .about-tile:nth-child(2) { margin: 0 0 20px; }
.about-intro2-text { font-size: 16.5px; line-height: 1.85; color: #3a3a3a; }
.about-intro2-text p { margin: 0 0 16px; }
.about-intro2-text .about-sub { margin: 34px 0 12px; padding-left: 14px; border-left: 4px solid var(--sf-orange); font-family: var(--font-heading); font-weight: 600; font-size: 21px; color: var(--sf-blue-dark); }
.about-intro2-text .about-sub:first-child { margin-top: 0; font-size: 25px; border-left-color: var(--sf-green); }
.about-intro2-text .about-closing { margin: 6px 0; font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--sf-green); }
.about-intro2-text .about-closing + .about-closing { margin-top: 0; }

.about-vm { padding: 70px 0; background: linear-gradient(180deg, #f3f7fb, #eef5ee); }
.about-vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1150px; margin: 0 auto; }
.about-vm-card { position: relative; background: #fff; border-radius: 18px; padding: 38px 34px 34px; box-shadow: 0 14px 34px rgba(22,63,122,.10); border-top: 5px solid var(--sf-blue); transition: transform .3s var(--ease-smooth), box-shadow .3s; }
.about-vm-card.is-mission { border-top-color: var(--sf-green); }
@media (hover: hover) { .about-vm-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(22,63,122,.16); } }
.about-vm-icon { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: #eaf2fb; color: var(--sf-blue); margin-bottom: 16px; }
.is-mission .about-vm-icon { background: #e9f4ea; color: var(--sf-green); }
.about-vm-icon svg { width: 28px; height: 28px; }
.about-vm-card h2 { font-family: var(--font-heading); font-size: 24px; margin: 0 0 12px; color: #222; }
.about-vm-card .rich-content { font-size: 16px; line-height: 1.8; color: #444; }

.about-work { padding: 64px 0 30px; }
.about-work-title { text-align: center; font-family: var(--font-heading); font-size: clamp(24px, 2.6vw, 32px); color: var(--sf-blue-dark); margin-bottom: 30px; }
.about-work-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; }
.about-work-item { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 12px; text-align: center; border-radius: 14px; background: #fff; border: 1px solid #e8ecef; text-decoration: none; color: #333; font-size: 14.5px; line-height: 1.35; transition: transform .25s var(--ease-smooth), box-shadow .25s, border-color .25s; }
.about-work-icon { display: flex; width: 54px; height: 54px; border-radius: 50%; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.about-work-icon svg { width: 28px; height: 28px; }
@media (hover: hover) { .about-work-item:hover { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 12px 26px rgba(0,0,0,.08); } }
@media (max-width: 1024px) { .about-work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .about-intro2 { padding: 44px 0 40px; }
  .about-intro2-grid { grid-template-columns: 1fr; }
  .about-intro2-aside { position: static; }
  .about-vm { padding: 44px 0; }
  .about-vm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .about-work-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .about-vm-card { padding: 28px 22px; } }
/* ===== Impact stories (Tata Trusts "Our Stories" style) ===== */
.st-tabs { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid #e8ecef; }
.st-tabs-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; }
.st-tabs-list::-webkit-scrollbar { display: none; }
.st-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; color: #444; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.st-tab i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--sf-blue)); }
.st-tab span { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #eef1f4; color: #666; }
.st-tab:hover { background: #f2f5f8; color: #111; }
.st-tab.is-active { background: var(--sf-blue-dark); color: #fff; }
.st-tab.is-active span { background: rgba(255,255,255,.2); color: #fff; }
.st-tab.is-active i { box-shadow: 0 0 0 2px #fff; }
.st-body { padding: 44px 0 70px; background: #f7f9fa; }

/* image placeholder: shimmer until the photo has loaded, then blur-to-sharp + zoom-out */
.st-media { position: relative; display: block; overflow: hidden; background: linear-gradient(100deg, #e6ebef 30%, #f5f7f9 50%, #e6ebef 70%) 0 0 / 300% 100%; animation: stShimmer 1.4s linear infinite; }
.st-media.is-loaded { animation: none; background: #e6ebef; }
.st-img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.12); filter: blur(14px); transition: opacity .9s ease, transform 1.4s var(--ease-smooth), filter 1s ease; }
.st-media.is-loaded .st-img { opacity: 1; transform: scale(1); filter: none; }
@keyframes stShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (hover: hover) { .st-card:hover .st-media.is-loaded .st-img, .st-featured:hover .st-media.is-loaded .st-img { transform: scale(1.06); } }

/* cards rise in, staggered */
.st-reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease var(--d, 0s), transform .8s var(--ease-smooth) var(--d, 0s); }
.st-reveal.is-in { opacity: 1; transform: none; }

.st-featured { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); margin-bottom: 40px; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 20px 44px rgba(22,63,122,.12); }
.st-featured-media { min-height: 420px; }
.st-featured-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 52px); border-top: 6px solid var(--c, var(--sf-blue)); }
.st-featured-label { margin: 0 0 6px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--sf-orange); font-weight: 600; }
.st-featured h2 { font-family: var(--font-heading); font-size: clamp(24px, 2.5vw, 34px); line-height: 1.25; margin: 0 0 14px; }
.st-featured h2 a { color: #1f2a3a; text-decoration: none; }
.st-featured .st-excerpt { font-size: 16.5px; -webkit-line-clamp: 5; }

.st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.st-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.06); transition: box-shadow .35s var(--ease-smooth), opacity .7s ease var(--d, 0s), transform .8s var(--ease-smooth) var(--d, 0s); }
.st-card[hidden], .st-featured[hidden] { display: none; }
@media (hover: hover) { .st-card.is-in:hover { box-shadow: 0 22px 44px rgba(22,63,122,.16); transform: translateY(-6px); transition-delay: 0s; } }
.st-card .st-media { aspect-ratio: 10 / 7; }
.st-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; border-top: 4px solid var(--c, var(--sf-blue)); }
.st-card h3 { font-family: var(--font-heading); font-size: 19px; line-height: 1.35; margin: 4px 0 10px; }
.st-card h3 a { color: #1f2a3a; text-decoration: none; }
.st-card h3 a:hover, .st-featured h2 a:hover { color: var(--c, var(--sf-blue)); }
.st-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 6px; font-size: 13px; color: #777; }
.st-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--c, var(--sf-blue)); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.st-tag-float { position: absolute; left: 14px; top: 14px; z-index: 1; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.st-excerpt { margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: #555; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; color: var(--c, var(--sf-blue)); font-weight: 600; font-size: 15px; text-decoration: none; }
.st-more svg { width: 18px; height: 18px; transition: transform .25s; }
.st-more:hover svg { transform: translateX(4px); }
@media (max-width: 1024px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 900px) { .st-featured { grid-template-columns: 1fr; } .st-featured-media { min-height: 0; aspect-ratio: 16 / 10; } }
@media (max-width: 600px) { .st-grid { grid-template-columns: 1fr; } .st-body { padding: 28px 0 50px; } }
@media (prefers-reduced-motion: reduce) {
  .st-reveal, .st-img { opacity: 1; transform: none; filter: none; transition: none; }
  .st-media { animation: none; }
}

/* ===== Media page ===== */
.md-tab svg { width: 18px; height: 18px; }
.md-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 16px; }
.md-photo { margin: 0; }
.md-photo.is-big { grid-column: span 2; grid-row: span 2; }
.md-photo-open { width: 100%; height: 100%; padding: 0; border: 0; border-radius: 16px; cursor: zoom-in; }
.md-photo-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 40px 16px 14px; text-align: left; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.md-photo-cap strong { font-weight: 500; font-size: 14.5px; line-height: 1.35; }
.md-photo.is-big .md-photo-cap strong { font-size: 18px; }
.md-zoom svg { width: 26px; height: 26px; }
.md-photo-open:hover .md-photo-cap, .md-photo-open:focus-visible .md-photo-cap { opacity: 1; transform: none; }
@media (hover: none) { .md-photo-cap { opacity: 1; transform: none; } }
.md-count { position: absolute; top: 12px; right: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 12.5px; }
.md-count svg { width: 14px; height: 14px; }
.md-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.md-video { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.06); }
.md-video-play { width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; }
.md-video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.md-play { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.92); color: #e53935; box-shadow: 0 10px 28px rgba(0,0,0,.35); transition: transform .25s var(--ease-smooth); }
.md-play svg { width: 30px; height: 30px; margin-left: 3px; }
.md-video-play:hover .md-play { transform: scale(1.1); }
.md-video-body { padding: 16px 20px 20px; }
.md-video-body h3 { font-family: var(--font-heading); font-size: 17px; line-height: 1.4; margin: 0 0 4px; color: #1f2a3a; }
.md-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.md-news-card { display: flex; gap: 18px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.06); }
.md-news-thumb { flex: 0 0 170px; height: 130px; padding: 0; border: 0; border-radius: 12px; cursor: zoom-in; }
.md-news-body { display: flex; flex-direction: column; min-width: 0; }
.md-news-body h3 { font-family: var(--font-heading); font-size: 17px; line-height: 1.4; margin: 6px 0 10px; }
.md-news-body h3 a { color: #1f2a3a; text-decoration: none; }
.md-news-body h3 a:hover { color: var(--sf-blue); }
.md-news-actions { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: auto 0 0; }
.md-news-actions .link-btn { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.md-insta { grid-template-columns: repeat(auto-fill, minmax(326px, 1fr)); }
@media (max-width: 1024px) { .md-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 200px; } .md-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md-news { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .md-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
  .md-photo-open { border-radius: 12px; }
  .md-videos { grid-template-columns: 1fr; }
  .md-news-card { flex-direction: column; }
  .md-news-thumb { flex-basis: auto; width: 100%; height: 180px; }
}

/* ===== Area of Work: list + detail ===== */
.aow-intro { padding: 34px 0 10px; }
.aow-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1100px; margin: 0 auto; }
.aow-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid #e3e8ec; background: #fff; color: #333; font-size: 14px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.aow-chip:hover { border-color: var(--c); box-shadow: 0 6px 16px rgba(0,0,0,.07); transform: translateY(-2px); }
.aow-chip-icon { display: flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.aow-chip-icon svg { width: 18px; height: 18px; }
.aow-rows { padding: 40px 0 60px; }
.aow-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; max-width: 1150px; margin: 0 auto 70px; scroll-margin-top: calc(var(--header-h) + 20px); }
.aow-row.is-flipped .aow-row-photo { order: 2; }
.aow-row-photo { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 7 / 5; box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.aow-row-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-smooth); }
.aow-row-photo:hover img { transform: scale(1.05); }
.aow-row-photo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--c); }
.aow-row-icon { display: flex; width: 60px; height: 60px; border-radius: 16px; align-items: center; justify-content: center; color: #fff; background: var(--c); margin-bottom: 18px; box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 35%, transparent); }
.aow-row-icon svg, .aow-row-icon img { width: 32px; height: 32px; }
.aow-row-body h2 { font-family: var(--font-heading); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; margin: 0 0 12px; }
.aow-row-body h2 a { color: #222; text-decoration: none; }
.aow-row-body h2 a:hover { color: var(--c); }
.aow-row-body p { font-size: 16.5px; line-height: 1.75; color: #555; margin: 0 0 22px; }

.aow-hero { padding-bottom: clamp(56px, 8vw, 100px); }
.aow-hero-icon { display: inline-flex; width: 64px; height: 64px; border-radius: 18px; align-items: center; justify-content: center; background: var(--c); color: #fff; margin: 14px 0 6px; box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.aow-hero-icon svg, .aow-hero-icon img { width: 34px; height: 34px; }
.aow-hero-lead { max-width: 720px; margin: 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: rgba(255,255,255,.92); }
.aow-detail { padding: 60px 0 40px; }
.aow-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(30px, 5vw, 64px); align-items: start; max-width: 1200px; }
.aow-detail-text { font-size: 16.5px; line-height: 1.8; color: #3a3a3a; }
.aow-detail-text > p:first-child { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.7; color: #24324a; padding-left: 18px; border-left: 4px solid var(--c); }
.aow-detail-text h2, .aow-detail-text h3 { font-family: var(--font-heading); font-size: clamp(22px, 2vw, 28px); color: var(--sf-blue-dark); margin: 36px 0 18px; }
.aow-detail-text ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aow-detail-text li { position: relative; margin: 0; padding: 20px 20px 20px 56px; border-radius: 14px; background: #f6f8fa; border: 1px solid #e8ecef; font-size: 15px; line-height: 1.6; color: #555; transition: border-color .2s, box-shadow .2s, transform .2s; }
.aow-detail-text li::before { content: ''; position: absolute; left: 18px; top: 20px; width: 26px; height: 26px; border-radius: 50%; background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat; }
.aow-detail-text li strong { display: block; margin-bottom: 2px; font-family: var(--font-heading); font-size: 16.5px; color: #222; }
@media (hover: hover) { .aow-detail-text li:hover { border-color: var(--c); box-shadow: 0 10px 22px rgba(0,0,0,.06); transform: translateY(-2px); } }
.aow-detail-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aow-donate-card { padding: 28px 26px; border-radius: 18px; color: #fff; background: var(--sf-grad); box-shadow: 0 16px 34px rgba(22,63,122,.2); }
.aow-donate-card h3 { color: #fff; font-family: var(--font-heading); font-size: 21px; margin: 0 0 8px; }
.aow-donate-card p { color: rgba(255,255,255,.9); font-size: 15px; margin: 0 0 18px; }
.aow-donate-card .btn-donate-nav { display: inline-flex; }
.aow-volunteer { display: block; margin-top: 14px; color: #fff; font-size: 14.5px; text-decoration: none; opacity: .9; }
.aow-volunteer:hover { opacity: 1; text-decoration: underline; }
.aow-other { padding: 22px 20px; border-radius: 18px; background: #fff; border: 1px solid #e8ecef; }
.aow-other h3 { font-family: var(--font-heading); font-size: 17px; margin: 0 0 12px; color: #222; }
.aow-other ul { list-style: none; margin: 0; padding: 0; }
.aow-other a { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; color: #444; font-size: 14.5px; text-decoration: none; transition: background .2s, color .2s; }
.aow-other a:hover { background: #f4f6f8; color: var(--c); }
.aow-other-icon { display: flex; flex: 0 0 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.aow-other-icon svg { width: 17px; height: 17px; }
.aow-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 30px; padding-bottom: 50px; max-width: 1200px; }
.aow-pager-link { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-radius: 16px; border: 1px solid #e3e8ec; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.aow-pager-link.is-next { text-align: right; }
.aow-pager-link span { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.aow-pager-link strong { font-family: var(--font-heading); font-size: 17px; color: var(--sf-blue-dark); }
.aow-pager-link:hover { border-color: var(--sf-blue); box-shadow: 0 10px 22px rgba(0,0,0,.06); }
@media (max-width: 900px) {
  .aow-row, .aow-row.is-flipped { grid-template-columns: 1fr; gap: 22px; margin-bottom: 48px; }
  .aow-row.is-flipped .aow-row-photo { order: 0; }
  .aow-detail-grid { grid-template-columns: 1fr; }
  .aow-detail-aside { position: static; }
  .aow-detail-text ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .aow-pager { grid-template-columns: 1fr; } .aow-pager-link.is-next { text-align: left; } }

.about-intro { padding-top: 50px; padding-bottom: 50px; }
.about-intro-text { max-width: 980px; }

.about-strip { padding-top: 10px; }
.about-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-strip-grid figure { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-strip-grid img { width: 100%; height: clamp(260px, 42vh, 380px); object-fit: cover; }
.about-strip-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; color: #fff; font-family: var(--font-heading);
  font-weight: 700; font-size: 15px; text-align: center; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
}

.vision-mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 20px; }
.vm-card { background: var(--cream); border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--border); }
.vm-card h2 { font-size: 20px; }

.president-signature { margin-top: 16px; color: var(--muted); }

/* About page: President's Message feature (quote text left, photo right) */
.president-feature { margin: 40px 0 10px; padding: 70px 0; background: #f2f7f3; }
.president-feature-grid { display: grid; grid-template-columns: 1.25fr minmax(0, 420px); gap: clamp(36px, 7vw, 90px); align-items: stretch; max-width: 1150px; }
.president-feature-text { display: flex; flex-direction: column; justify-content: center; }
.president-feature-quote { width: 40px; height: 30px; margin-bottom: 6px; }
.president-feature-text h2 { font-family: var(--font-heading); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); color: #2b2b2b; margin: 0 0 14px; }
.president-feature-excerpt { font-size: 15.5px; line-height: 1.85; color: #4a4a4a; margin: 0 0 22px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.president-feature-more { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; color: #333; text-decoration: none; font-size: 15px; }
.president-feature-arrow { width: 32px; height: 32px; border-radius: 50%; background: #333; color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.president-feature-arrow svg { width: 16px; height: 16px; }
.president-feature-more:hover .president-feature-arrow { background: var(--sf-green); transform: translateX(3px); }
.president-feature-name { display: flex; flex-direction: column; gap: 4px; margin: auto 0 0; padding-top: 22px; border-top: 1px solid #c9d2cc; margin-top: 60px; }
.president-feature-name strong { font-weight: 500; font-size: 17px; color: #2b2b2b; }
.president-feature-name span { font-size: 13.5px; color: #555; }
.president-feature-photo { margin: 0; border-radius: 14px; overflow: hidden; position: relative; box-shadow: 0 14px 34px rgba(0,0,0,.1); }
.president-feature-photo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--sf-green), var(--sf-blue)); }
.president-feature-photo img { display: block; width: 100%; height: 100%; min-height: 420px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; }

/* President's Message page (text left, large portrait card right) */
.president-page { padding: 50px 0 70px; background: linear-gradient(180deg, #f3f7fb 0%, #fff 60%); }
.president-page-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: start; max-width: 1240px; }
.president-page-text h1 { font-family: var(--font-heading); font-size: clamp(28px, 3vw, 42px); color: var(--sf-blue-dark); margin-bottom: 4px; }
.president-page-text .rich-content { font-size: 17px; line-height: 1.75; }
.breadcrumbs-dark { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs-dark a { color: var(--sf-blue); text-decoration: none; }
.president-card { position: sticky; top: calc(var(--header-h) + 20px); margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 22px 46px rgba(0,0,0,.18); background: #ddd; }
.president-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; }
.president-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 22px; color: #fff; display: flex; flex-direction: column;
  background: linear-gradient(0deg, rgba(10,20,40,.85) 0%, rgba(10,20,40,.4) 60%, transparent 100%);
}
.president-card figcaption strong { font-family: var(--font-heading); font-size: 22px; }
.president-card figcaption span { font-size: 15px; opacity: .9; }

.president-preview { padding: 60px 0; background: linear-gradient(135deg, var(--cream), #fff); }
.president-preview-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.president-preview-photo { width: 100%; aspect-ratio: 4/4.8; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.president-preview-body blockquote { margin: 10px 0 18px; font-size: 21px; line-height: 1.55; color: var(--green-dark); font-family: var(--font-display); font-weight: 600; font-style: italic; }
.president-preview-name { color: var(--muted); font-size: 14px; margin-bottom: 12px; }

.section-team { padding-top: 60px; padding-bottom: 60px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.team-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.team-card h3 { font-size: 16px; margin-bottom: 2px; }
.team-card p { color: var(--muted); font-size: 13.5px; }

/* ===== Filter pills ===== */
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-pills a { text-decoration: none; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 500; transition: background .2s var(--ease-standard), color .2s var(--ease-standard), border-color .2s var(--ease-standard); }
.filter-pills a.active, .filter-pills a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.empty-state { color: var(--muted); padding: 40px 0; text-align: center; }

/* ===== Media page ===== */
.media-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; padding-bottom: 60px; }
.media-photo { margin: 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.media-photo-open { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.media-photo img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s var(--ease-smooth); }
.media-photo-open:hover img { transform: scale(1.03); }
.media-photo-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.media-photo figcaption { padding: 8px 10px; font-size: 13px; color: var(--muted); }

.media-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; padding-bottom: 60px; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.insta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; padding-bottom: 60px; align-items: start; }
.insta-card { background: #fff; border: 1px solid #e6e6e6; border-radius: var(--radius-md); overflow: hidden; max-width: 420px; width: 100%; margin: 0 auto; }
.insta-card .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
blockquote.instagram-media { display: block; min-height: 120px; padding: 16px; background: #fafafa; }
blockquote.instagram-media a { color: var(--sf-blue); }
.section-instagram { padding: 10px 12px 40px; }
/* Home: compact row — each post (header + photo/reel) fits on one screen */
.section-instagram { max-width: 1480px; }
.section-instagram .insta-grid { grid-template-columns: repeat(var(--n, 4), minmax(0, 340px)); justify-content: center; gap: 16px; padding-bottom: 6px; }
.section-instagram .insta-card { max-width: none; }
.media-video-card p { margin-top: 8px; font-size: 14px; }

.media-news-list { display: flex; flex-direction: column; gap: 14px; padding-bottom: 60px; }
.media-news-item { display: flex; gap: 16px; color: var(--text); padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.media-news-thumb { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; flex-shrink: 0; align-self: flex-start; }
.media-news-item h3 a { color: inherit; text-decoration: none; }
.media-news-item h3 a:hover { color: var(--sf-blue); }
.media-news-actions { display: flex; gap: 18px; margin-top: 6px; font-size: 14px; }
.media-news-actions a { color: var(--sf-blue); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--sf-blue); cursor: pointer; text-align: left; }
h3 .link-btn { color: inherit; }
.media-news-item:hover { border-color: var(--green); }
.media-news-item img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.media-news-item h3 { font-size: 15.5px; margin-bottom: 4px; }

/* ===== Forms (contact + donate) ===== */

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form select, .contact-form textarea,
.donate-form-wrap input, .donate-form-wrap select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); font-size: 15px; font-family: inherit; background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus,
.donate-form-wrap input:focus, .donate-form-wrap select:focus { outline: 2px solid var(--green-light); outline-offset: 1px; border-color: var(--green); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-success { background: #e5f6e8; border: 1px solid #bfe6c6; color: #1c4d2e; padding: 16px 18px; border-radius: var(--radius-md); margin-bottom: 20px; }
.form-error { background: #fdeceb; border: 1px solid #f3bdb7; color: #a52a1f; padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 20px; }
.checkbox-inline-light { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; font-size: 14px; }

.amount-presets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.amount-pill { border: 2px solid var(--border); background: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: 15px; color: var(--green-dark); transition: background .2s var(--ease-standard), color .2s var(--ease-standard), border-color .2s var(--ease-standard), transform .15s var(--ease-standard); }
.amount-pill:active { transform: scale(.96); }
.amount-pill.active, .amount-pill:hover { border-color: var(--green); background: var(--green); color: #fff; }

.faq-section { padding-top: 30px; padding-bottom: 70px; max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px 20px; background: #fff; }
.faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 15.5px; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 20px; color: var(--green); display: inline-block; transition: transform .3s var(--ease-standard); }
.faq-item[open] summary::after { content: '+'; transform: rotate(45deg); }
.faq-item .rich-content { padding-bottom: 16px; color: var(--muted); font-size: 14.5px; }



/* ===== Shared inner-page blocks ===== */
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; font-weight: 700; color: var(--gold-light); margin-bottom: 12px; }
.lead-text { font-size: 18px; color: var(--muted); max-width: 900px; }
.testimonials-section { background: var(--cream); padding: 60px 0; }
.testimonials-section .section-title.light { color: var(--ink); }
.testimonials-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testimonial-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); margin: 0; }
.testimonial-card p { font-size: 15.5px; color: var(--text); font-style: italic; }
.testimonial-card footer { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; }
.testimonial-card footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.cta-band { background: var(--sf-grad); padding: 56px 0; color: #fff; text-align: center; }
.cta-band-inner { display: flex; flex-direction: column; align-items: center; }
.cta-band-inner h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 20px; }
.cta-band-inner .btn { margin: 6px; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.muted { color: var(--muted); }

/* ===== Error page ===== */
.error-page { padding-top: 100px; padding-bottom: 100px; text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 1360px) {
  .header-inner { padding: 4px 18px; column-gap: 14px; }
  .nav-link { font-size: 16px; padding: 12px 6px; }
  .nav-link::after { left: 6px; right: 6px; }
  .btn-donate-nav { padding: 8px 16px; font-size: 18px; }
  .brand-mark { width: 64px; }
  .brand-name { font-size: 19px; }
}

@media (max-width: 1180px) {
  :root { --header-h: 74px; }
  .header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); padding: 6px 16px; }
  .site-header.scrolled .brand { transform: none; }
  .brand-mark { width: 54px; }
  .brand-name { font-size: 18px; }
  .btn-donate-mobile { display: inline-flex; margin-left: auto; padding: 8px 16px; font-size: 17px; gap: 8px; }
  .btn-donate-mobile svg { width: 20px; height: 20px; }
  .nav-toggle { display: flex; }

  /* Slide-in drawer with accordion sub-menus */
  .primary-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 195; background: #fff;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + 8px) 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: -12px 0 30px rgba(0,0,0,.15); transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease-smooth), visibility 0s linear .4s;
  }
  .primary-nav.open { transform: none; visibility: visible; transition: transform .4s var(--ease-smooth); }
  .nav-toggle { z-index: 200; }
  .site-header { z-index: 200; }
  .nav-side { display: block; }
  .nav-right .btn-donate-nav { display: flex; margin-top: 18px; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid #eee; }
  .nav-link { flex: 1; padding: 14px 4px; font-size: 19px; }
  .nav-link::after { display: none; }
  .dd-toggle { width: 44px; height: 44px; justify-content: center; align-items: center; padding: 0; }
  .dd-toggle svg { width: 14px; height: 14px; }
  .nav-item:hover > .dd-toggle svg { transform: none; }
  .nav-item.dd-open > .dd-toggle svg { transform: rotate(180deg); }
  .dropdown, .dropdown-cols {
    position: static; flex-basis: 100%; min-width: 0; columns: 1; box-shadow: none; border-top: 0; padding: 0 0 8px 8px;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .nav-item:hover > .dropdown { display: none; }
  .nav-item.dd-open > .dropdown { display: block; animation: fadeIn .25s ease; }
  .dropdown a { border-bottom: 0; padding: 7px 10px; font-size: 16px; color: #555; }
  .dd-icon { flex-basis: 22px; height: 22px; }
  .nav-right .btn-donate-nav { justify-content: center; font-size: 20px; }
  body.nav-open { overflow: hidden; }

  .hero-slide-content .container { padding-left: 76px; padding-right: 76px; }
  .home-about-grid { gap: 32px; }
  .home-about-strip { height: clamp(360px, 46vw, 480px); gap: 12px; }
  .areas-tiles { grid-template-columns: repeat(4, 1fr); }
  .counters-grid, .highlights-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .footer-grid { gap: 28px; }
  .footer-brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
  .footer-brand .footer-social { margin-top: 0; }
  .footer-grid { grid-template-columns: .9fr 1.4fr .8fr; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact ul { display: flex; flex-wrap: wrap; gap: 6px 32px; }
  .donate-grid { grid-template-columns: 1fr; }
  .donate-panel { position: static; order: -1; }
  .portfolio-dots { display: none; }
}

@media (max-width: 900px) {
  .home-about-grid { grid-template-columns: 1fr; gap: 22px; }
  .home-about-strip { width: 100%; max-width: 640px; height: clamp(340px, 70vw, 480px); margin: 6px auto 0; }
  .carousel-track { grid-auto-columns: calc((100% - 22px) / 2); }
  .areas-tiles { grid-template-columns: repeat(3, 1fr); }
  .stories-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .stories-mosaic .story-overlay:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }
  .stories-mosaic .story-overlay:nth-child(2) { grid-column: 1 / -1; grid-row: span 2; }
  .stories-mosaic .story-overlay:nth-child(1) .story-overlay-body { margin-left: 0; }
  .stories-mosaic .story-overlay:nth-child(n+3) { grid-column: auto; }
  .stories-mosaic.count-3 .story-overlay:nth-child(3) { grid-column: 1 / -1; }
  .ci-paths { grid-template-columns: repeat(2, 1fr); }
  .ci-join { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; }
  .ci-join-flip .ci-join-media { order: 0; }
  .ci-contact-grid, .vision-mission-grid { grid-template-columns: 1fr; }
  .president-preview-grid { grid-template-columns: 1fr; text-align: center; }
  .president-page-grid { grid-template-columns: 1fr; gap: 30px; }
  .president-card { position: relative; top: 0; max-width: 460px; order: -1; }
  .president-feature { padding: 44px 0; }
  .president-feature-grid { grid-template-columns: 1fr; gap: 30px; }
  .president-feature-photo { order: -1; max-width: 380px; width: 100%; margin: 0 auto; }
  .president-feature-photo img { min-height: 0; }
  .president-feature-name { margin-top: 30px; }
  .pcard-lead { flex-basis: min(560px, 88vw); }
  .stories-banner .container { padding: 0 24px; }
  .portfolio-list { padding: 0 60px 0 24px; }
  .portfolio-item { width: 120px; min-width: 120px; }
  .portfolio-next { display: none; }
  .portfolio-list { padding-right: 24px; }
  .portfolio-icon { width: 76px; height: 76px; }
  .media-type-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 600px) {
  :root { --header-h: 66px; }
  .brand-mark { width: 46px; }
  .brand-name { font-size: 15px; }
  .btn-donate-mobile { padding: 7px 12px; font-size: 15px; }
  .btn-donate-mobile svg { width: 16px; height: 16px; }
  .reveal { transform: translateY(14px); }

  /* Phones: a 16:9 box so wide banners (with text in the picture) show whole, not cut at the sides */
  .hero-track { aspect-ratio: 16 / 9; min-height: 0; }
  .hero-slide-content.has-text { background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,0) 75%); }
  .hero-slide-content { padding-bottom: 46px; }
  .hero-slide-content .container { padding-left: 20px; padding-right: 20px; }
  .hero-slide-title { font-size: 21px; }
  .hero-slide-sub { display: none; }
  /* Arrows would sit on the banner text; on phones people swipe or tap the dots */
  .hero-slider .slider-arrow { display: none; }
  .hero-tabs { padding: 0 20px 12px; gap: 7px; }
  .hero-tab { width: 28px; height: 24px; } /* big enough to tap */
  .hero-tab::before { height: 3px; margin-top: -1.5px; }
  .home-about-strip { height: 320px; gap: 10px; }
  .about-tile { margin-top: 22px; border-radius: 14px; }
  .about-tile:nth-child(2) { margin: 0 0 22px; }

  .home-about { padding: 40px 0 44px; }
  .home-about-text p { font-size: 16px; }
  .latest-section { padding: 40px 0 44px; }
  .carousel { gap: 0; }
  .carousel-arrow { position: absolute; z-index: 2; top: 32%; width: 34px; height: 34px; flex: none; background: rgba(0,0,0,.45); }
  .carousel-arrow.prev { left: -8px; }
  .carousel-arrow.next { right: -8px; }
  .carousel-track { grid-auto-columns: 86%; column-gap: 14px; }
  /* Home Instagram: one swipeable row instead of four tall posts stacked */
  .section-instagram { padding-left: 0; padding-right: 0; }
  .section-instagram .section-title, .section-instagram .stories-more { margin-left: 20px; margin-right: 20px; }
  .section-instagram .insta-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 0 20px 10px; justify-content: flex-start; scrollbar-width: none; }
  .section-instagram .insta-grid::-webkit-scrollbar { display: none; }
  .section-instagram .insta-card { flex: 0 0 82%; max-width: 300px; scroll-snap-align: center; margin: 0; }
  .counters-section { padding: 46px 0; }
  .counter-label { letter-spacing: 2px; font-size: 12px; }
  .areas-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 12px; }
  .areas-tiles .area-tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2 / 1.05; }
  .areas-tiles .area-tile:last-child:nth-child(odd) .area-tile-icon { flex-basis: 15%; }
  .area-tile-label { font-size: 13.5px; padding: 5px 8px; }
  .section-areas .areas-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0; }
  .stories-mosaic, .stories-mosaic.count-1 { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .stories-mosaic.count-1 .story-overlay:nth-child(1) { grid-template-columns: 1fr; }
  .stories-mosaic.count-1 .story-overlay > img { min-height: 0; height: 220px; border-radius: 12px 12px 0 0; }
  .stories-mosaic.count-1 .story-overlay:nth-child(1) .story-overlay-body { padding: 20px 22px 24px; }
  .stories-mosaic .story-overlay, .stories-mosaic .story-overlay:nth-child(n) { grid-column: 1; grid-row: auto; min-height: 380px; }
  .stories-mosaic .story-overlay:nth-child(n+3) p { display: -webkit-box; }
  .stories-mosaic .story-overlay:nth-child(n+3) .story-readmore { font-size: 16px; padding: 6px 14px; background: rgba(50,50,50,.9); }
  .stories-mosaic .story-overlay:nth-child(n+3) .story-overlay-body { padding: 22px 24px 24px; }
  .stories-mosaic .story-overlay:nth-child(n+3) h3 { font-size: 24px; margin-bottom: 8px; }
  .stories-overlay-grid { grid-template-columns: 1fr; }
  .stories-banner { height: auto; min-height: 70vh; max-height: none; }
  .portfolio-section { height: auto; min-height: 0; max-height: none; padding: 44px 0; }
  .portfolio-head-icon { width: 64px; height: 64px; }
  .portfolio-head p { font-size: 16px; }
  .portfolio-cards { gap: 14px; margin: 0 -20px; padding: 6px 20px 10px; }
  .portfolio-cards { justify-content: flex-start; }
  .pcard { flex-basis: 62vw; height: 200px; }
  .pcard-lead { flex-basis: 86vw; grid-template-columns: 1fr; height: auto; }
  .pcard-lead img { height: 200px; }
  .pcard-text { margin: -24px 12px 0; padding: 18px 16px; }
  .donate-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .donate-gallery img.tall { grid-column: auto; grid-row: auto; aspect-ratio: 1 / 1.1; height: auto; }
  .donate-panel { padding: 24px 16px; }
  .form-row-split { grid-template-columns: 1fr; }
  .ci-paths { grid-template-columns: 1fr; gap: 10px; }
  .ci-join-media img { height: 240px; }
  .ci-badge { width: 56px; height: 56px; right: 10px; bottom: -14px; }
  .ci-join-flip .ci-badge { left: 10px; }
  .ci-career { grid-template-columns: 1fr; text-align: left; padding: 22px 18px; }
  .ci-form-card { padding: 22px 18px; }
  .media-type-cards { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer-contact ul { display: block; }
  .footer-contact li { white-space: normal; overflow-wrap: anywhere; }
  .footer-brand { display: block; }
  .footer-brand .footer-social { margin-top: 20px; }
  .footer-contact { grid-column: 1 / -1; order: 5; }
  .footer-col-pages { order: 2; }
  .footer-col-more { order: 3; }
  .footer-col-work { order: 4; grid-column: 1 / -1; }
  .footer-col-work ul { columns: 2; column-gap: 20px; }
  .footer-col-work li { break-inside: avoid; }
  .back-to-top { right: 14px; bottom: 16px; width: 42px; height: 42px; }
  .testimonials-track { display: flex; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 12px; scrollbar-width: none; }
  .testimonials-track::-webkit-scrollbar { display: none; }
  .testimonial-card { flex: 0 0 86%; scroll-snap-align: center; }
  .about-strip-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .about-tile { opacity: 1; transform: none; transition: none; }
  .latest-marquee.is-looping { height: auto; overflow: visible; }
  .latest-marquee .latest-row[aria-hidden="true"] { display: none; }
  .about-tile img, .home-about-strip.is-visible .about-tile img { animation: none; }
  #page-loader img, .loader-spinner { animation: none; }
}

/* ===== Full-screen image viewer ===== */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,10,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; animation: fadeIn .2s ease; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 94vw; max-height: 82vh; object-fit: contain; user-select: none; }
.lightbox-caption { color: #eee; font-size: 14px; margin-top: 12px; text-align: center; padding: 0 60px; }
.lightbox-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-btn:hover, .lightbox-btn:focus-visible { background: rgba(255,255,255,.28); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-full { top: 16px; right: 74px; font-size: 20px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-thumbs { display: flex; gap: 6px; margin-top: 12px; max-width: 94vw; overflow-x: auto; padding: 2px; }
.lightbox-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; opacity: .6; flex: none; }
.lightbox-thumbs button[aria-current] { border-color: #fff; opacity: 1; }
.lightbox-thumbs img { width: 56px; height: 42px; object-fit: cover; display: block; border-radius: 2px; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
  .lightbox-img { max-height: 70vh; }
}

/* Events */
.ev-body .section-title { margin-bottom: 22px; }
.ev-past-title { margin-top: 56px; }
.ev-card .st-media { position: relative; }
.ev-datebadge { position: absolute; right: 14px; top: 14px; z-index: 1; display: grid; place-items: center; min-width: 58px; padding: 6px 8px; border-radius: 12px; background: #fff; color: #1f2a3a; font-size: 13px; font-weight: 600; line-height: 1.1; text-transform: uppercase; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.ev-datebadge strong { font-size: 24px; color: var(--c, var(--sf-blue)); }
.ev-card.is-past .st-img { filter: saturate(.85); }
.ev-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ev-actions .st-more { margin-top: 0; }
.ev-btn { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; background: var(--c, var(--sf-blue)); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.ev-btn:hover { filter: brightness(1.08); }
.ev-btn-ghost { background: transparent; color: var(--c, var(--sf-blue)); box-shadow: inset 0 0 0 2px var(--c, var(--sf-blue)); }
.ev-facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.ev-facts div { padding: 10px 16px; border-radius: 12px; background: #f4f7fa; border-left: 4px solid var(--c, var(--sf-blue)); }
.ev-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #6b7280; }
.ev-facts dd { margin: 2px 0 0; font-weight: 600; color: #1f2a3a; }
.ev-actions-top { margin: 0 0 24px; }
.ev-lead { font-size: 17px; line-height: 1.7; }
.ev-photos-title { margin: 36px 0 14px; font-family: var(--font-heading); }
.ev-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ev-photo { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: #e6ebef; }
.ev-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease-smooth); }
.ev-photo:hover img { transform: scale(1.05); }
.home-events { padding: 56px 0 30px; background: linear-gradient(180deg, #f4f8fc 0%, #fff 100%); }
.home-events-head { text-align: center; margin-bottom: 26px; }
.home-events-head .section-title { margin-bottom: 0; display: inline-block; }
.home-events-head .section-title::after { left: 50%; transform: translateX(-50%); }
.home-events .st-grid { margin-top: 8px; grid-template-columns: repeat(auto-fit, minmax(260px, 380px)); justify-content: center; }
.home-events-empty { display: flex; align-items: center; gap: 18px; max-width: 760px; margin: 0 auto 10px; padding: 22px 26px; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.06); border-left: 5px solid var(--sf-orange); }
.home-events-empty strong { font-family: var(--font-heading); font-size: 19px; color: #1f2a3a; }
.home-events-empty p { margin: 4px 0 0; color: #555; }
.home-events-icon { flex: 0 0 auto; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff3e3; color: var(--sf-orange); }
.home-events-icon svg { width: 30px; height: 30px; }
.home-events-sub { margin: 34px 0 16px; font-family: var(--font-heading); font-size: 20px; color: #1f2a3a; }
@media (max-width: 600px) { .home-events { padding: 40px 0 20px; } .home-events .st-grid { grid-template-columns: 1fr; } .home-events-empty { padding: 18px; gap: 14px; } }
