/* ==========================================================================
   Work and Rural Development (WARD) — Main Stylesheet
   ========================================================================== */

:root {
  --bg-page: #ffffff;
  --bg-sage: #a5d194;
  --bg-sage-light: #e9f5e4;
  --bg-sage-soft: #f4faf1;
  --bg-slate: #f7f9f7;
  --bg-footer: #18361c;

  --brand-green: #1b5e20;
  --brand-green-dark: #124116;
  --brand-red: #e31b23;
  --brand-red-hover: #c4141b;

  --text-main: #243026;
  --text-muted: #4b5c4e;
  --text-light: #ffffff;

  --border-subtle: #dde8dc;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(18, 65, 22, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 65, 22, 0.1);

  --font-display: 'Barlow Condensed', 'Oswald', Arial Narrow, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-red {
  background-color: var(--brand-red);
  color: var(--text-light);
}

.btn-red:hover {
  background-color: var(--brand-red-hover);
  box-shadow: 0 4px 12px rgba(227, 27, 35, 0.28);
}

.btn-white {
  background-color: #ffffff;
  color: var(--text-main);
}

.btn-white:hover {
  background-color: #f2f5f2;
}

.btn-green {
  background-color: var(--brand-green);
  color: #ffffff;
}

.btn-green:hover {
  background-color: var(--brand-green-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-green);
  border: 1.5px solid var(--brand-green);
}

.btn-outline:hover {
  background-color: var(--bg-sage-soft);
}

/* ==========================================================================
   Hero Carousel Section (Two-Column 45% Content / 55% Photo)
   ========================================================================== */
.hero-section {
  padding: 20px 0 40px;
}

.hero-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-carousel {
  position: relative;
  outline: none;
}

.hero-slides-viewport {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background-color: #e4f1df;
  border: 1px solid var(--border-subtle);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 600ms ease, visibility 600ms ease;
  display: grid;
  grid-template-columns: 1fr;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.hero-content-col {
  background-color: #e4f1df;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--brand-green-dark);
  line-height: 1.15;
  margin: 0 0 14px;
}

.hero-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #243026;
  margin: 0 0 22px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media-col {
  order: -1;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #d5e6d0;
  overflow: hidden;
}

.hero-media-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tablet & Desktop Two-Column Layout (45% Left / 55% Right) */
@media (min-width: 820px) {
  .hero-slides-viewport {
    height: 520px;
  }

  .hero-slide {
    grid-template-columns: 45% 55%;
    height: 100%;
  }

  .hero-content-col {
    padding: 36px 34px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 2.5vw, 2.25rem);
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .hero-media-col {
    order: 0;
    aspect-ratio: auto;
    height: 100%;
  }
}

@media (min-width: 1120px) {
  .hero-slides-viewport {
    height: 550px;
  }

  .hero-content-col {
    padding: 44px 48px;
  }

  .hero-title {
    font-size: clamp(2rem, 2.6vw, 2.5rem);
  }

  .hero-desc {
    font-size: 1.03rem;
  }
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: #cbd5cd;
  padding: 0;
  transition: background-color 0.2s, transform 0.2s;
}

.carousel-dot:hover {
  background: #9fb3a3;
}

.carousel-dot.active {
  background: var(--brand-green);
  transform: scale(1.22);
}

.carousel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arrow-btn,
.autoplay-btn {
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-main);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, border-color 0.15s;
}

.arrow-btn {
  width: 38px;
}

.autoplay-btn {
  padding: 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  gap: 6px;
}

.arrow-btn:hover,
.autoplay-btn:hover {
  background: var(--bg-sage-soft);
  border-color: var(--brand-green);
}

/* ==========================================================================
   Our Impact Section (Full-Width Solid Primary Brand Band)
   ========================================================================== */
.our-impact-section {
  width: 100%;
  background-color: var(--brand-green);
  color: #ffffff;
  padding: 36px 0;
}

.our-impact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.our-impact-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.125rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 10px;
}

.our-impact-intro p {
  font-size: 0.97rem;
  line-height: 1.6;
  color: #ebf5ea;
  margin: 0;
}

.our-impact-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 16px;
}

.our-impact-stat {
  text-align: center;
  padding: 4px 12px;
}

.our-impact-value {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.our-impact-label {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #e4f2e2;
  margin: 0 auto;
  max-width: 185px;
}

@media (min-width: 768px) {
  .our-impact-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .our-impact-stat + .our-impact-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.24);
  }
}

@media (min-width: 1024px) {
  .our-impact-section {
    padding: 38px 0;
    min-height: 196px;
    display: flex;
    align-items: center;
  }

  .our-impact-inner {
    grid-template-columns: 32% 68%;
    gap: 24px;
  }

  .our-impact-intro {
    padding-right: 12px;
  }
}

/* ==========================================================================
   Inner Page Hero Banner (Used on all subpages)
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  color: #ffffff;
  padding: 48px 0;
}

.page-breadcrumb {
  font-size: 0.82rem;
  color: #cde8c7;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-breadcrumb a:hover {
  text-decoration: underline;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 10px;
  line-height: 1.1;
}

.page-banner p {
  max-width: 720px;
  margin: 0;
  color: #e6f4e2;
  font-size: 1rem;
}

.page-content-wrap {
  padding: 56px 0;
}

.info-panel {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.info-panel h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--brand-green-dark);
  margin: 0 0 12px;
}

.notice-box {
  background: var(--bg-sage-soft);
  border-left: 4px solid var(--brand-green);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-top: 16px;
}

/* ==========================================================================
   Shared Sections
   ========================================================================== */
.section {
  padding: 64px 0;
}

.section-alt {
  background-color: var(--bg-slate);
}

.section-sage {
  background-color: var(--bg-sage-soft);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brand-red);
  margin-bottom: 6px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--brand-green-dark);
  line-height: 1.12;
  margin: 0;
}

.section-subtitle {
  max-width: 680px;
  color: var(--text-muted);
  margin: 10px 0 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.impact-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.impact-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--brand-green);
  line-height: 1;
  margin-bottom: 8px;
}

.impact-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.impact-note {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.vm-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (min-width: 640px) {
  .vm-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.vm-card {
  background: var(--bg-sage-soft);
  border-left: 4px solid var(--brand-green);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.vm-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brand-green-dark);
  margin: 0 0 8px;
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}

.values-list li {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-green-dark);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-box {
  background: var(--bg-sage-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-subtle);
}

.gallery-main {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 320px;
  background: #d5e6d0;
  margin-bottom: 12px;
}

@media (min-width: 900px) {
  .gallery-main {
    height: 410px;
  }
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity 280ms ease;
}

.gallery-main img.is-fading {
  opacity: 0.25;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-main img {
    transition: none;
  }
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-thumb {
  border: 2.5px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 0;
  background: #d5e6d0;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb.active {
  border-color: var(--brand-green);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(27, 94, 32, 0.22);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .leadership-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.director-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.director-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.director-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--bg-sage);
  border: 2px solid var(--brand-green);
  overflow: hidden;
  flex-shrink: 0;
}

.director-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.director-quote {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.18;
  color: var(--brand-green-dark);
  margin: 0 0 16px;
}

.where-card {
  background: var(--bg-sage);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #1a2a1c;
}

.where-card h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--brand-green-dark);
  margin: 0 0 12px;
}

.union-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.union-badge {
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand-green-dark);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
}

.legend-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.legend-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.program-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.program-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-sage-light);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brand-green-dark);
  margin: 0 0 8px;
}

.program-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.program-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.report-card,
.news-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.card-thumb {
  height: 190px;
  background: var(--bg-sage-light);
  position: relative;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-green-dark);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brand-green-dark);
  margin: 0 0 10px;
}

.card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 18px;
  flex: 1;
}

.card-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-link:hover {
  text-decoration: underline;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.partner-tile {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand-green-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.partner-tile span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.donate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: var(--bg-sage);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}

@media (min-width: 900px) {
  .donate-grid {
    grid-template-columns: 1fr 1fr;
    padding: 48px;
    align-items: center;
  }
}

.donate-form {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd8ca;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.form-feedback {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-sage-light);
  color: var(--brand-green-dark);
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}

.form-feedback.show {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--bg-footer);
  color: #e2ede3;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: #cde0cf;
}

.footer-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  font-size: 0.84rem;
  color: #b4cbb6;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(12, 28, 14, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  padding: 28px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.modal-close {
  border: none;
  background: var(--bg-sage-soft);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--text-main);
}

.reg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.reg-table th,
.reg-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.reg-table th {
  color: var(--brand-green-dark);
  width: 42%;
}

/* ==========================================================================
   Leadership & Team Directory Page
   ========================================================================== */
.top-leaders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 820px) {
  .top-leaders-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.leader-feature-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--brand-green);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 560px) {
  .leader-feature-card {
    flex-direction: row;
  }
}

.leader-feature-photo {
  width: 100%;
  height: 240px;
  flex-shrink: 0;
  background: var(--bg-sage-soft);
}

@media (min-width: 560px) {
  .leader-feature-photo {
    width: 190px;
    height: auto;
    min-height: 240px;
  }
}

.leader-feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.leader-feature-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leader-role-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-green-dark);
  background: var(--bg-sage-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.leader-feature-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brand-green-dark);
  margin: 0 0 8px;
}

.team-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-bottom: 44px;
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.team-card-photo {
  height: 260px;
  background: var(--bg-sage-soft);
  overflow: hidden;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card-body {
  padding: 20px;
  flex: 1;
}

.team-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.38rem;
  color: var(--brand-green-dark);
  margin: 0 0 4px;
}

.team-card-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: block;
}

.team-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.staff-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.staff-row-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.staff-initials {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-sage-light);
  color: var(--brand-green-dark);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   History Page — Intro, Highlights, Alternating Timeline, Placeholders, Refs
   ========================================================================== */
.history-hero-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

.history-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .history-intro-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.upload-placeholder {
  background: var(--bg-sage-soft);
  border: 1.5px dashed #9fc29b;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
}

.upload-placeholder-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  margin-bottom: 6px;
}

.upload-placeholder-note {
  font-size: 0.84rem;
  max-width: 260px;
}

.history-highlights-band {
  background: var(--brand-green);
  color: #ffffff;
  padding: 36px 0;
}

.history-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 14px;
}

@media (min-width: 768px) {
  .history-highlights-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .history-highlight-item + .history-highlight-item {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }
}

.history-highlight-item {
  text-align: center;
  padding: 6px 14px;
}

.history-highlight-val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.55rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 6px;
}

.history-highlight-lbl {
  font-size: 0.9rem;
  color: #e4f2e2;
  max-width: 200px;
  margin: 0 auto;
}

/* Vertical Alternating Timeline */
.timeline-wrap {
  position: relative;
  max-width: 1020px;
  margin: 32px auto 0;
  padding: 8px 0;
}

.timeline-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: #c8dcc5;
}

.timeline-item {
  position: relative;
  padding-left: 52px;
  margin-bottom: 28px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 12px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-green);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--brand-green);
  z-index: 2;
}

.timeline-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--brand-green);
  padding: 3px 12px;
  border-radius: 999px;
}

.timeline-cat {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-green-dark);
  background: var(--bg-sage-light);
  padding: 4px 10px;
  border-radius: 999px;
}

.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.48rem;
  color: var(--brand-green-dark);
  margin: 0 0 10px;
}

.timeline-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin: 0 0 10px;
  max-width: 65ch;
}

.timeline-card p:last-child {
  margin-bottom: 0;
}

.timeline-source {
  font-size: 0.84rem;
  color: var(--brand-green);
  font-weight: 600;
  margin-top: 10px;
  display: inline-block;
}

@media (min-width: 900px) {
  .timeline-wrap::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 36px;
  }

  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 36px;
  }

  .timeline-marker {
    left: auto;
    right: -9px;
  }

  .timeline-item:nth-child(even) .timeline-marker {
    right: auto;
    left: -9px;
  }
}

.identity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 860px) {
  .identity-grid {
    grid-template-columns: 1fr 1.25fr;
  }
}

.footprint-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.footprint-list li {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-green);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
}

.history-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.ref-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.ref-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.ref-item h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--brand-green-dark);
  margin: 0 0 6px;
}

.ref-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.ref-item a {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-green);
  word-break: break-all;
}

.ref-item a:hover {
  text-decoration: underline;
}

.history-cta-band {
  background: var(--bg-sage);
  padding: 52px 0;
  text-align: center;
}

.history-cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  color: var(--brand-green-dark);
  margin: 0 0 12px;
}

.history-cta-band p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: #1e2d20;
}

/* ==========================================================================
   Our Partners — 14 Logo Grid (anando-bd.org style)
   ========================================================================== */
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .partner-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .partner-logo-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.partner-logo-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 104px;
  box-shadow: 0 2px 6px rgba(18, 65, 22, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.partner-logo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #b7d6b3;
}

.partner-logo-svg {
  width: 100%;
  max-width: 170px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-svg svg {
  width: 100%;
  height: 100%;
}

.partner-logo-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ==========================================================================
   Homepage Photo-Backed Priority Cards
   ========================================================================== */
.priority-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.priority-photo-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.priority-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #b7d6b3;
}

.priority-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-sage-light);
}

.priority-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.priority-photo-card:hover .priority-card-media img {
  transform: scale(1.04);
}

.priority-card-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(18, 65, 22, 0.88);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
}

.priority-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.priority-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--brand-green-dark);
  margin: 0 0 10px;
  line-height: 1.15;
}

.priority-card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 18px;
  flex: 1;
}

.priority-card-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.priority-card-link:hover {
  color: var(--brand-red);
}
