/* ==========================================================================
   OPCA — Organization for the Poor Community Advancement
   Design system: "Vibrant Bangladeshi Cultural"

   Palette
     --maroon         #137609  Brand green (from logo) — primary
     --marigold       #F2A31D  Festival gold    — secondary / CTA
     --marigold-bright #FFD166 Bright gold      — text/icons on green or dark backgrounds only
     --teal           #0F7A6B  Rickshaw teal    — accent
     --terra          #C1602E  Terracotta       — tertiary / hover accent
     --danger         #9C2B3A  Warning red      — errors & "closed" states only (not brand)
     --cream          #FBF3E4  Kantha cream     — background
     --ink            #221F2A  Charcoal indigo  — text

   Type
     Display : "Baloo Da 2"     (bold, rounded, Bengali-native — festival energy)
     Body    : "Hind Siliguri"  (clean humanist sans, Bengali + Latin)
     Utility : "Space Mono"     (stats, dates, labels — textured counterpoint)

   Signature motif: a scalloped rickshaw-art border strip marks every section
   transition; a shapla (national flower) glyph replaces generic numbering;
   a nakshi-kantha running stitch underlines key headings.
   ========================================================================== */

:root {
  --maroon: #137609;
  --maroon-dark: #0C4C06;
  --danger: #9C2B3A;
  --marigold-bright: #FFD166;
  --marigold: #F2A31D;
  --marigold-dark: #C97F0C;
  --teal: #0F7A6B;
  --teal-dark: #0A5A4F;
  --terra: #C1602E;
  --cream: #FBF3E4;
  --cream-deep: #F3E6CE;
  --ink: #221F2A;
  --ink-soft: #4A4552;
  --white: #FFFFFF;

  --font-display: "Baloo Da 2", "Hind Siliguri", sans-serif;
  --font-body: "Hind Siliguri", "Segoe UI", sans-serif;
  --font-mono: "Space Mono", monospace;

  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(34, 31, 42, 0.08);
  --shadow-md: 0 12px 32px rgba(34, 31, 42, 0.14);
  --shadow-maroon: 0 14px 30px rgba(19, 118, 9, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
p { margin: 0 0 1em; }

.icon { width: 1.15em; height: 1.15em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--cream { background: var(--cream); }
.section--deep { background: var(--cream-deep); }
.section--maroon { background: var(--maroon); color: var(--cream); }
.section--maroon h2, .section--maroon h3 { color: var(--white); }
.section--ink { background: var(--ink); color: var(--cream); }

.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ---------- Section heading system ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  background: rgba(19, 118, 9, 0.08);
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow .icon { width: 15px; height: 15px; }
.section--maroon .eyebrow, .section--ink .eyebrow {
  color: var(--marigold-bright);
  background: rgba(255, 255, 255, 0.12);
}

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head--center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section--maroon .section-head p, .section--ink .section-head p { color: rgba(251, 243, 228, 0.82); }

.stitch-underline {
  display: block;
  width: 92px;
  height: 8px;
  margin: 14px 0 0;
  -webkit-mask-image: url("../images/kantha-stitch-mask.svg");
  mask-image: url("../images/kantha-stitch-mask.svg");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 24px 8px;
  mask-size: 24px 8px;
  background: var(--marigold);
}
.section-head--center .stitch-underline { margin-left: auto; margin-right: auto; }

/* ---------- Scalloped divider (signature element) ---------- */
.scallop-divider {
  width: 100%;
  height: 22px;
  -webkit-mask-image: url("../images/scallop-mask.svg");
  mask-image: url("../images/scallop-mask.svg");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 40px 22px;
  mask-size: 40px 22px;
  background: var(--marigold);
}
.scallop-divider--teal { background: var(--teal); }
.scallop-divider--maroon { background: var(--maroon); }
.scallop-divider--cream { background: var(--cream); }
.scallop-divider--flip { transform: rotate(180deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }

.btn--primary { background: var(--marigold); color: var(--ink); box-shadow: 0 10px 24px rgba(242, 163, 29, 0.35); }
.btn--primary:hover { background: var(--marigold-dark); box-shadow: 0 14px 30px rgba(242, 163, 29, 0.45); }

.btn--maroon { background: var(--maroon); color: var(--white); box-shadow: var(--shadow-maroon); }
.btn--maroon:hover { background: var(--maroon-dark); }

.btn--outline { background: transparent; border-color: currentColor; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }

.section--maroon .btn--outline, .section--ink .btn--outline { color: var(--cream); }
.section--maroon .btn--outline:hover, .section--ink .btn--outline:hover { background: var(--cream); color: var(--ink); }

.btn--sm { padding: 10px 18px; font-size: 0.88rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Notice ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.ticker__label {
  flex: 0 0 auto;
  background: var(--marigold);
  color: var(--ink);
  font-weight: 700;
  padding: 8px 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ticker__track { display: flex; white-space: nowrap; animation: ticker 32s linear infinite; padding: 8px 0; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { padding: 0 40px; opacity: 0.92; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 243, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34, 31, 42, 0.08);
  transition: box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; transition: padding 0.3s var(--ease); }
.site-header.is-scrolled .site-header__inner { padding: 10px 0; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__badge {
  height: 44px; width: auto;
  display: flex; align-items: center;
  flex: 0 0 auto;
  transition: transform 0.35s var(--ease);
}
.brand__badge img { height: 100%; width: auto; display: block; }
.brand:hover .brand__badge { transform: scale(1.07); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--maroon); }
.brand__sub { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav__link:hover { color: var(--maroon); background: rgba(19, 118, 9, 0.07); }
.nav__link.active { color: var(--maroon); }
.nav__link.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: var(--marigold);
}

/* ---------- Nav dropdown (About) ---------- */
.nav__dropdown { position: relative; }
.nav__dropdown-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--maroon); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.03em;
  padding: 11px 18px; border-radius: 999px; border: none; cursor: pointer;
  transition: background 0.25s var(--ease);
}
.nav__dropdown-trigger:hover, .nav__dropdown-trigger.active { background: var(--maroon-dark); }
.nav__dropdown-chevron { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.nav__dropdown.is-open .nav__dropdown-chevron { transform: rotate(180deg); }

.nav__dropdown-panel {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 10px; min-width: 230px; z-index: 110;
}
.nav__dropdown.is-open .nav__dropdown-panel { display: block; }
.nav__dropdown-link {
  display: block; padding: 10px 14px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__dropdown-link:hover { background: rgba(19,118,9,0.08); color: var(--maroon); }

@media (max-width: 980px) {
  .nav__dropdown-trigger { width: 100%; justify-content: space-between; }
  .nav__dropdown-panel {
    position: static; box-shadow: none; padding: 4px 0 4px 10px; margin-top: 4px; border-left: 2px solid rgba(19,118,9,0.15);
  }
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: transparent; border: none; color: var(--maroon);
  width: 42px; height: 42px; align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 980px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); height: 100vh;
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 100px 28px 28px; gap: 4px;
    transform: translateX(100%); transition: transform 0.4s var(--ease);
    box-shadow: -12px 0 40px rgba(0,0,0,0.18);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { padding: 14px 16px; font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 12px; }
  .header-actions .btn .icon { width: 20px; height: 20px; }
}
.nav-scrim {
  display: none;
  position: fixed; inset: 0; background: rgba(34,31,42,0.5); z-index: 90;
}
.nav-scrim.is-open { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--maroon);
  color: var(--cream);
  overflow: hidden;
  padding: 84px 0 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../images/texture-dots-mask.svg");
  -webkit-mask-image: url("../images/texture-dots-mask.svg");
  mask-image: url("../images/texture-dots-mask.svg");
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
  -webkit-mask-size: 28px 28px; mask-size: 28px 28px;
  background-color: rgba(255,255,255,0.07);
  opacity: 1;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-bottom: 72px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(255,255,255,0.14); color: var(--marigold-bright);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--marigold-bright); }
.hero p.lead { font-size: 1.15rem; color: rgba(251,243,228,0.86); max-width: 520px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__art {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 100%;      /* 1:1 ratio fallback — always works, no CSS support needed */
  aspect-ratio: 1 / 1;    /* modern browsers use this instead and ignore padding-top height */
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-md);
}
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__slide-caption {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  background: rgba(34,31,42,0.6); backdrop-filter: blur(4px); color: var(--white);
  padding: 7px 14px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.74rem;
}
.hero__slide-dots {
  position: absolute; bottom: 18px; right: 18px; z-index: 2;
  display: flex; gap: 6px;
}
.hero__slide-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); border: none; padding: 0; cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero__slide-dot.is-active { background: var(--white); transform: scale(1.3); }
.hero__art-badge {
  position: absolute; bottom: 18px; left: 18px;
  background: var(--marigold); color: var(--ink);
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 0.78rem;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 10px;
}
.hero__art-badge strong { font-family: var(--font-display); font-size: 1.1rem; display: block; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 420px; margin: 0 auto; }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  position: relative;
  background: var(--ink);
  color: var(--cream);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 40px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat:last-child { border-right: none; }
.stat__icon {
  width: 40px; height: 40px; margin: 0 auto 14px;
  color: var(--marigold);
}
.stat__value {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--white);
}
.stat__label { font-size: 0.88rem; color: rgba(251,243,228,0.72); margin-top: 6px; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex; flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

/* Program cards */
.program-card { padding: 34px 28px; position: relative; border-top: 4px solid var(--marigold); }
.program-card:nth-child(3n+2) { border-top-color: var(--teal); }
.program-card:nth-child(3n+3) { border-top-color: var(--terra); }
.program-card__icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: rgba(19,118,9,0.08); color: var(--maroon);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.program-card__icon .icon { width: 28px; height: 28px; }
.program-card:hover .program-card__icon { background: var(--maroon); color: var(--marigold-bright); transform: rotate(-8deg) scale(1.06); }
.program-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.program-card p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.program-card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--maroon); margin-top: 14px; font-size: 0.92rem; }
.program-card__link .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.program-card:hover .program-card__link .icon { transform: translateX(4px); }

/* Media (photo) cards: news / gallery / team */
.media-card__figure { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--maroon); }
.media-card__figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .media-card__figure img { transform: scale(1.08); }
.media-card__tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--marigold); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.media-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.media-card__meta { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-soft); margin-bottom: 10px; }
.media-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.media-card__meta .icon { width: 14px; height: 14px; }
.media-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.media-card p { color: var(--ink-soft); font-size: 0.94rem; flex: 1; }
.media-card__link { margin-top: 14px; font-weight: 700; color: var(--maroon); display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; }

/* Team cards */
.team-card { text-align: center; padding: 30px 22px; }
.team-card__photo {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 18px; overflow: hidden;
  border: 4px solid var(--cream-deep); background: var(--maroon);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card p { color: var(--maroon); font-weight: 600; font-size: 0.88rem; }

/* ---------- Photo marquee (auto-scrolling single row) ---------- */
.photo-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.photo-marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: photoMarquee 34s linear infinite;
}
.photo-marquee:hover .photo-marquee__track { animation-play-state: paused; }
.photo-marquee__item {
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--maroon);
}
.photo-marquee__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.photo-marquee__item:hover img { transform: scale(1.08); }
.photo-marquee__item .gallery-item__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(34,31,42,0.78), transparent 55%); display: flex; align-items: flex-end; padding: 14px; opacity: 0; transition: opacity 0.3s var(--ease); }
.photo-marquee__item:hover .gallery-item__overlay { opacity: 1; }
.photo-marquee__item .gallery-item__overlay span { color: var(--white); font-size: 0.84rem; font-weight: 600; }
@keyframes photoMarquee {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@media (max-width: 620px) { .photo-marquee__item { width: 190px; } }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.gallery-filter {
  padding: 9px 18px; border-radius: 999px; border: 2px solid rgba(34,31,42,0.12);
  font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); background: var(--white);
  transition: all 0.25s var(--ease);
}
.gallery-filter.is-active, .gallery-filter:hover { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in;
  background: var(--maroon);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item__overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(34,31,42,0.78), transparent 55%);
  display: flex; align-items: flex-end; padding: 14px; opacity: 0; transition: opacity 0.3s var(--ease);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay span { color: var(--white); font-size: 0.84rem; font-weight: 600; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.lightbox {
  position: fixed; inset: 0; background: rgba(34,31,42,0.94); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox__caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: var(--cream); font-size: 0.92rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,0.12); color: var(--cream); border: none;
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--marigold); color: var(--ink); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Impact / quote band ---------- */
.impact-band { position: relative; background: var(--teal); color: var(--cream); overflow: hidden; }
.impact-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../images/texture-dots-mask.svg");
  -webkit-mask-image: url("../images/texture-dots-mask.svg"); mask-image: url("../images/texture-dots-mask.svg");
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
  -webkit-mask-size: 28px 28px; mask-size: 28px 28px;
  background-color: rgba(255,255,255,0.08);
}
.impact-band__inner { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: flex-start; }
.impact-band .icon.quote-icon { width: 54px; height: 54px; color: var(--marigold); flex: 0 0 auto; }
.impact-band blockquote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 0 0 18px; line-height: 1.4; }
.impact-band cite { font-style: normal; font-family: var(--font-mono); font-size: 0.85rem; opacity: 0.85; }
@media (max-width: 700px) { .impact-band__inner { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--marigold);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 32px;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--ink); margin-bottom: 8px; }
.cta-band p { color: rgba(34,31,42,0.75); margin: 0; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; }
  .cta-band__actions { justify-content: center; }
}

/* ---------- Timeline (about page) ---------- */
.timeline { position: relative; padding-left: 32px; border-left: 3px dashed rgba(19,118,9,0.3); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -41px; top: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--marigold); border: 3px solid var(--maroon);
}
.timeline-item h4 { font-family: var(--font-mono); color: var(--maroon); font-size: 0.95rem; margin-bottom: 4px; }

/* ---------- Content / detail pages ---------- */
.page-header {
  background: var(--maroon); color: var(--cream); padding: 130px 0 60px; position: relative; overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../images/texture-dots-mask.svg");
  -webkit-mask-image: url("../images/texture-dots-mask.svg"); mask-image: url("../images/texture-dots-mask.svg");
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
  -webkit-mask-size: 28px 28px; mask-size: 28px 28px;
  background-color: rgba(255,255,255,0.07);
}
.page-header__inner { position: relative; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.82rem; color: rgba(251,243,228,0.7); margin-bottom: 14px; }
.breadcrumb a { color: var(--marigold-bright); }
.breadcrumb span { margin: 0 8px; }
.page-header h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-header p { color: rgba(251,243,228,0.82); max-width: 640px; margin: 0; }

.prose { font-size: 1.05rem; color: var(--ink-soft); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; margin-bottom: 0.6em; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.22rem; }
.prose p { margin-bottom: 1.3em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--ink); }
.prose img { border-radius: var(--radius-md); margin: 1.5em 0; }

.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }

.sidebar-box { background: var(--white); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.sidebar-box h4 { font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--maroon); margin-bottom: 16px; }
.sidebar-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cream-deep); font-size: 0.92rem; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a:hover { color: var(--maroon); }

/* ---------- Tables (careers detail meta, etc.) ---------- */
.meta-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.meta-table td { padding: 10px 0; border-bottom: 1px solid var(--cream-deep); }
.meta-table td:first-child { color: var(--ink-soft); width: 40%; }
.meta-table td:last-child { font-weight: 600; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.badge--open { background: rgba(15,122,107,0.12); color: var(--teal-dark); }
.badge--closed { background: rgba(156,43,58,0.12); color: var(--danger); }
.badge--notice { background: rgba(242,163,29,0.16); color: var(--marigold-dark); }

/* ---------- Page sub-navigation (sticky dropdown toggle) ---------- */
.section-dropdown-bar {
  position: sticky;
  top: 68px; /* sits just below the shrunk sticky site header */
  z-index: 60;
  background: rgba(251,243,228,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(34,31,42,0.08);
  padding: 14px 0;
}
.section-dropdown { position: relative; display: inline-block; }
.section-dropdown__toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--marigold); color: var(--ink); border: none;
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.03em; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 8px 20px rgba(242,163,29,0.32);
  transition: background 0.25s var(--ease);
}
.section-dropdown__toggle:hover { background: var(--marigold-dark); }
.section-dropdown__toggle .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.section-dropdown.is-open .section-dropdown__toggle .icon { transform: rotate(180deg); }
.section-dropdown__menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 10px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 61;
}
.section-dropdown.is-open .section-dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.section-dropdown__menu a {
  padding: 11px 14px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.section-dropdown__menu a:hover, .section-dropdown__menu a.is-active { background: rgba(19,118,9,0.09); color: var(--maroon); }

/* ---------- Partners / donors ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 780px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .partner-grid { grid-template-columns: 1fr; } }
.partner-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.partner-card__logo {
  width: 100%; height: 90px; display: flex; align-items: center; justify-content: center;
}
.partner-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-card h3 { font-size: 1rem; margin: 0; }
.partner-card a.partner-card__link { font-size: 0.84rem; color: var(--maroon); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Organization dashboard widget ---------- */
.org-dashboard {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  border-top: 6px solid var(--maroon);
}
.org-dashboard__head { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.org-dashboard__head .icon { width: 20px; height: 20px; color: var(--maroon); }
.org-dashboard__head span { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.org-dashboard__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.org-dashboard__item {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.org-dashboard__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.org-dashboard__icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(19,118,9,0.1); color: var(--maroon);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.org-dashboard__icon .icon { width: 18px; height: 18px; }
.org-dashboard__value { font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; color: var(--ink); line-height: 1.2; }
.org-dashboard__label { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 520px) { .org-dashboard__grid { grid-template-columns: 1fr; } }

/* ---------- Map embed ---------- */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--cream-deep);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .map-embed { aspect-ratio: 4 / 5; } }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 2px solid rgba(34,31,42,0.14); background: var(--white); color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-control:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(19,118,9,0.12); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.alert--success { background: rgba(15,122,107,0.12); color: var(--teal-dark); }
.alert--error { background: rgba(156,43,58,0.1); color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(251,243,228,0.78); position: relative; }
.footer-top { padding: 72px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand__name { color: var(--marigold); }
.footer-brand .brand__badge { height: 58px; }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-social a:hover { background: var(--marigold); color: var(--ink); transform: translateY(-3px); }
.footer-social .icon { width: 17px; height: 17px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--marigold); margin-bottom: 18px; }
.footer-col li { margin-bottom: 11px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; color: var(--marigold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; flex-wrap: wrap; gap: 10px;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.11s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.17s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.23s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.29s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.41s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.47s; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 0.53s; }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 0.59s; }
.reveal-stagger.is-visible > *:nth-child(11) { transition-delay: 0.65s; }
.reveal-stagger.is-visible > *:nth-child(12) { transition-delay: 0.71s; }
.reveal-stagger.is-visible > *:nth-child(13) { transition-delay: 0.77s; }
.reveal-stagger.is-visible > *:nth-child(14) { transition-delay: 0.83s; }
.reveal-stagger.is-visible > *:nth-child(15) { transition-delay: 0.89s; }
.reveal-stagger.is-visible > *:nth-child(n+16) { transition-delay: 0.95s; }

/* Hero load-in sequence */
.hero__eyebrow, .hero h1, .hero p.lead, .hero__actions, .hero__art {
  opacity: 0; transform: translateY(20px);
  animation: heroIn 0.8s var(--ease) forwards;
}
.hero__eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.18s; }
.hero p.lead { animation-delay: 0.32s; }
.hero__actions { animation-delay: 0.46s; }
.hero__art { animation-delay: 0.3s; transform: translateY(20px) scale(0.96); }
@keyframes heroIn { to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 48px; height: 48px; border-radius: 50%; background: var(--maroon); color: var(--marigold-bright);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  border: none;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top .icon { width: 20px; height: 20px; transform: rotate(-90deg); }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state .icon { width: 48px; height: 48px; color: var(--maroon); opacity: 0.5; margin-bottom: 16px; }

.pager { display: flex; justify-content: center; margin-top: 20px; }
.pager__list { display: flex; gap: 8px; }
.pager__link {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; background: var(--white); box-shadow: var(--shadow-sm); color: var(--ink-soft);
  transition: all 0.25s var(--ease);
}
.pager__link.is-active, .pager__link:hover { background: var(--maroon); color: var(--white); }
