/* ============================================================
   MAIN LAYOUT — container, sections, utilities, grid
   ============================================================ */

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container--narrow {
  max-width: 760px;
}

.container--wide {
  max-width: 1400px;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pure-white);
  transition: background var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default);
}

.site-header.is-scrolled {
  background: var(--surface-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: 0 1px 24px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.site-branding a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-branding__text {
  display: flex;
  flex-direction: column;
}

/* Brand icon mark (header + footer).
   The PNGs already carry rounded corners in their alpha channel; the matching
   border-radius here keeps the shape correct if the mark is ever swapped for a
   square-cornered file. The mark is never shown as a sharp square. */
.site-logo-mark,
.footer-logo-mark {
  display: block;
  border-radius: 22%;
  object-fit: contain;
  flex-shrink: 0;
}

.site-logo-mark {
  width: 44px;
  height: 44px;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.footer-logo-mark {
  width: 56px;
  height: 56px;
}

.footer-brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* .footer-brand .logo-text / .logo-tagline carry bottom margins from the older
   stacked footer layout. Inside the flex lockup that trailing space makes the
   text column taller than its visible content, so centring against the icon
   leaves the text sitting high. Drop the margins here only. */
.footer-brand__text .logo-text,
.footer-brand__text .logo-tagline {
  margin-bottom: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-primary);
  line-height: 1;
}

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.7;
  letter-spacing: 0.02em;
  line-height: 1.3;
  max-width: 200px;
}

.primary-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.primary-nav .nav-list a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-primary);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease-default),
              color var(--duration-fast) var(--ease-default);
}

.primary-nav .nav-list a:hover,
.primary-nav .nav-list .current-menu-item > a {
  background: var(--surface-tint);
  color: var(--green-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.lang-switcher a {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-default);
}

.lang-switcher a:hover,
.lang-switcher .current-lang a {
  background: var(--green-primary);
  color: var(--pure-white);
  border-color: var(--green-primary);
}

/* Hamburger / mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease-default);
}

.nav-toggle:hover {
  background: var(--surface-tint);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-primary);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-default);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 82, 56, 0.58), rgba(0, 82, 56, 0.58)),
    url('../images/hero-home.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 82, 56, 0.6);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 2rem 1.5rem;
  color: var(--pure-white);
}

.hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
}

.hero__title {
  color: var(--pure-white);
  margin-bottom: 1rem;
}

.hero__title-bn {
  font-family: var(--font-bengali);
  color: rgba(255,255,255,0.85);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: block;
}

.hero__body {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ============================================================
   SECTIONS — common spacing & background alternation
   ============================================================ */
.section {
  padding: 5rem 0;
}

.section--tint {
  background: var(--surface-tint);
}

.section--white {
  background: var(--pure-white);
}

.section--dark {
  background: var(--green-primary);
  color: var(--pure-white);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  margin-bottom: 0.5rem;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-primary);
  opacity: 0.7;
  max-width: 580px;
  margin-inline: auto;
}

.section--dark .section__title,
.section--dark .section__subtitle {
  color: var(--pure-white);
}

/* ============================================================
   MISSION STRIP
   ============================================================ */
.mission-strip {
  background: var(--surface-tint);
  padding: 4rem 1.5rem;
}

.mission-strip__inner {
  max-width: 720px;
  margin-inline: auto;
  border-left: 4px solid var(--gold-primary);
  padding-left: 2rem;
}

.mission-strip__quote {
  font-size: 1.2rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.mission-strip__quote-bn {
  font-family: var(--font-bengali);
  font-size: 1.1rem;
  color: var(--text-primary);
  opacity: 0.8;
}

/* ============================================================
   IMPACT STATS
   ============================================================ */
.impact-stats {
  padding: 5rem 0;
  background: var(--pure-white);
}

.impact-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin-inline: auto;
}

.impact-stat {
  text-align: center;
  padding: 2rem 1rem;
}

.impact-stat__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--green-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Secondary currency, shown beneath the headline figure. English leads in USD
   with BDT here; Bengali leads in BDT with USD here. */
.impact-stat__alt {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.5;
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
}

.impact-stat__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.75;
  margin-bottom: 0.2rem;
}

.impact-stat__label-bn {
  font-family: var(--font-bengali);
  font-size: 0.85rem;
  color: var(--text-primary);
  opacity: 0.6;
}

.impact-stats__note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.6;
}

/* ============================================================
   PROGRAM HIGHLIGHTS GRID
   ============================================================ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ============================================================
   PHOTO STRIP
   ============================================================ */
.photo-strip {
  display: flex;
  height: 260px;
  overflow: hidden;
}

.photo-strip__item {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.photo-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-default);
}

.photo-strip__item:hover img {
  transform: scale(1.05);
}

/* Placeholder colored blocks until images are uploaded */
.photo-strip__item--placeholder-1 { background: var(--green-light); }
.photo-strip__item--placeholder-2 { background: var(--green-dark); }
.photo-strip__item--placeholder-3 { background: var(--green-primary); }
.photo-strip__item--placeholder-4 { background: var(--gold-dark); }
.photo-strip__item--placeholder-5 { background: var(--green-light); }

/* ============================================================
   ACTIVITY CARDS GRID
   ============================================================ */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.activity-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.namesake-section {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
  padding: 5rem 0;
}

.namesake-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--surface-tint);
}

.namesake-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.namesake-content h2 {
  margin-bottom: 1.5rem;
}

.namesake-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.donor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.donor-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--surface-tint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-primary);
}

.geo-reach {
  background: var(--surface-tint);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 3rem;
}

/* ============================================================
   NAMESAKE PHOTOS (About page)
   ============================================================ */
.namesake-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.namesake-photo {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.namesake-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   DONATE PAGE FORM
   ============================================================ */
.donate-intro {
  margin-bottom: 2.5rem;
  max-width: 680px;
}

.donate-intro p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.donate-form-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-tint);
}

.donate-form-wrapper iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.donate-contact-list-simple {
  list-style: none;
  font-size: 0.95rem;
}

.donate-contact-list-simple li {
  padding: 0.4rem 0;
}

.donate-contact-list-simple a {
  color: var(--green-primary);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-detail-group {
  margin-bottom: 1.5rem;
}

.contact-detail-group h3 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
}

.contact-detail-group ul {
  list-style: none;
}

.contact-detail-group li {
  padding: 0.3rem 0;
  font-size: 0.95rem;
}

.contact-detail-group a {
  color: var(--text-primary);
  transition: color var(--duration-fast) var(--ease-default);
}

.contact-detail-group a:hover {
  color: var(--green-primary);
}

.contact-note {
  font-size: 0.82rem;
  font-style: italic;
  opacity: 0.65;
  margin-top: 0.75rem;
}

.map-placeholder {
  background: var(--surface-tint);
  border-radius: var(--radius-md);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  opacity: 0.5;
}

/* ============================================================
   ARCHIVE FILTER BAR
   ============================================================ */
.filter-bar {
  background: var(--pure-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-group__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  opacity: 0.55;
}

.filter-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--pure-white);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  text-align: left;
  min-width: 100px;
}

.filter-block:hover {
  border-color: var(--green-primary);
}

.filter-block.is-active {
  background: var(--green-primary);
  border-color: var(--green-primary);
}

.filter-block__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.filter-block.is-active .filter-block__label {
  color: var(--pure-white);
}

.filter-block__total {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green-primary);
  margin-top: 0.2rem;
}

.filter-block.is-active .filter-block__total {
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   SINGLE ACTIVITY RECORD
   ============================================================ */
.activity-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 1.5rem 0 2.5rem;
}

.activity-content {
  max-width: 800px;
}

.activity-content table {
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.activity-content th {
  text-align: left;
  padding: 0.65rem 1rem;
  background: var(--surface-tint);
  font-weight: 600;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.activity-content td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.activity-content tr:last-child td {
  border-bottom: none;
}

.data-notes-box {
  background: #fffbeb;
  border: 1px solid var(--gold-primary);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.data-notes-box__title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.activity-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 3rem;
}

.activity-nav a,
.activity-nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-primary);
  text-decoration: none;
}

.activity-nav__disabled {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.3;
  cursor: default;
}

/* Two-image strip at top of single activity record */
.single-record__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 200px;
  overflow: hidden;
}

.single-record__images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--green-primary);
}

.breadcrumb__sep {
  margin-inline: 0.5rem;
  opacity: 0.4;
}

/* ============================================================
   PAGE HERO (non-home)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  color: var(--pure-white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 82, 56, 0.45);
  z-index: 1;
}

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

.page-hero h1 {
  color: var(--pure-white);
  margin-bottom: 0.5rem;
}

.page-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin-inline: auto;
}

/* ============================================================
   REVEAL ANIMATION (IntersectionObserver)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-default),
              transform var(--duration-slow) var(--ease-default);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero animate-in classes */
.hero-fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp var(--duration-slow) var(--ease-default) forwards;
}

.hero-fade-in--delay-1 { animation-delay: 200ms; }
.hero-fade-in--delay-2 { animation-delay: 400ms; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   PROGRAMS DETAIL PAGE
   ============================================================ */
.programs-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.program-detail-card {
  background: var(--pure-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default);
}

.program-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
}

.program-detail-card__top {
  height: 6px;
}

.program-detail-card__body {
  padding: 1.75rem;
}

.program-detail-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
}

.program-detail-card__status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.program-detail-card__status--active {
  background: rgba(0, 103, 71, 0.1);
  color: var(--green-primary);
}

.program-detail-card__status--coming-soon {
  background: rgba(244, 195, 0, 0.15);
  color: var(--gold-dark);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
}

.error-404__code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  color: var(--border-subtle);
  line-height: 1;
  margin-bottom: 1rem;
}

/* ============================================================
   DONATE PAGE
   ============================================================ */
.donate-hero {
  min-height: 100svh;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
  /* TODO: replace with photo "photo-of-a-man-standing-beside-boy-2382889" (Kelly) */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  position: relative;
}

.donate-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface-glass-dark);
  z-index: 1;
}

.donate-card {
  position: relative;
  z-index: 2;
  max-width: 580px;
  width: 100%;
}

.donate-contact-list {
  list-style: none;
  margin: 1.5rem 0;
}

.donate-contact-list li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.donate-contact-list li:last-child {
  border-bottom: none;
}

.donate-contact-list a {
  color: var(--pure-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.donate-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.donate-divider::before,
.donate-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

/* ============================================================
   PHOTO CREDITS PAGE
   ============================================================ */
.credits-list {
  max-width: 720px;
  margin-inline: auto;
}

.credits-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.credits-list li:last-child {
  border-bottom: none;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-default);
  border: 1px solid var(--border-subtle);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--green-primary);
  color: var(--pure-white);
  border-color: var(--green-primary);
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }

  .programs-detail-grid {
    grid-template-columns: 1fr;
  }

  .impact-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .namesake-section {
    grid-template-columns: 1fr;
  }

  .namesake-image {
    order: -1;
    aspect-ratio: 16/7;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .activity-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — TABLET (≤768px additions)
   ============================================================ */
@media (max-width: 768px) {
  .namesake-photos {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  /* Header gets crowded once the donate button and hamburger appear —
     drop the long-form name and keep the mark plus the short name. */
  .site-branding .logo-tagline {
    display: none;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--surface-glass);
    backdrop-filter: var(--blur-heavy);
    -webkit-backdrop-filter: var(--blur-heavy);
    border-left: 1px solid rgba(0, 103, 71, 0.15);
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--ease-default);
    z-index: 200;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .primary-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .primary-nav .nav-list a {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .impact-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .activity-grid,
  .activity-grid--3col {
    grid-template-columns: 1fr;
  }

  .photo-strip {
    height: 180px;
  }

  .section {
    padding: 3rem 0;
  }

  .filter-blocks {
    gap: 0.4rem;
  }

  .filter-block {
    min-width: 80px;
    padding: 0.5rem 0.75rem;
  }

  .namesake-photos {
    grid-template-columns: 1fr;
  }

  .single-record__images {
    height: 140px;
  }

  .activity-card__images {
    height: 90px;
  }

  .activity-nav {
    flex-direction: column;
  }

  .activity-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .impact-stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-inner {
    height: 60px;
  }

  .site-logo-mark {
    width: 36px;
    height: 36px;
  }

  .site-branding .logo-text {
    font-size: 1.15rem;
  }
}

/* ============================================================
   HIDDEN ATTRIBUTE FIX
   Components (.activity-card, .const-article) set their own
   `display`, which overrides the [hidden] user-agent rule. This
   restores the expected behaviour so JS filters/search can hide
   elements by toggling the `hidden` attribute.
   ============================================================ */
[hidden] {
  display: none !important;
}

/* ============================================================
   MATIUR RAHMAN PHOTOS — on-hover descriptions
   ============================================================ */
.namesake-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: help;
}

.namesake-photo__caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--pure-white);
  background: linear-gradient(to top, rgba(0, 82, 56, 0.94) 0%, rgba(0, 82, 56, 0.7) 55%, rgba(0, 82, 56, 0) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration-base) var(--ease-default),
              transform var(--duration-base) var(--ease-default);
}

.namesake-photo:hover .namesake-photo__caption,
.namesake-photo:focus .namesake-photo__caption,
.namesake-photo:focus-within .namesake-photo__caption {
  opacity: 1;
  transform: translateY(0);
}

.namesake-photo:focus-visible {
  outline: 3px solid var(--gold-primary);
  outline-offset: 2px;
}

/* ============================================================
   EXPANDABLE PHOTO CREDITS (<details>)
   ============================================================ */
.credits-details {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--pure-white);
  padding: 0 1.5rem;
}

.credits-details__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green-primary);
  cursor: pointer;
  list-style: none;
}

.credits-details__summary::-webkit-details-marker { display: none; }

.credits-details__icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--green-primary);
  border-bottom: 2px solid var(--green-primary);
  transform: rotate(45deg);
  transition: transform var(--duration-base) var(--ease-default);
  flex-shrink: 0;
}

.credits-details[open] .credits-details__icon {
  transform: rotate(-135deg);
}

.credits-details[open] {
  padding-bottom: 1.25rem;
}

/* ============================================================
   FOCUS ACCORDIONS (Focuses page)
   ============================================================ */
.focus-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.focus-accordion {
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--focus-accent, var(--green-primary));
  border-radius: var(--radius-md);
  background: var(--pure-white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.focus-accordion__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
}

.focus-accordion__summary::-webkit-details-marker { display: none; }

.focus-accordion__summary:hover {
  background: var(--surface-tint);
}

.focus-accordion__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--focus-accent, var(--green-primary));
  background: color-mix(in srgb, var(--focus-accent, var(--green-primary)) 12%, white);
}

.focus-accordion__icon svg { width: 24px; height: 24px; }

.focus-accordion__titles {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.focus-accordion__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.focus-accordion__title-bn {
  font-size: 0.85rem;
  opacity: 0.6;
}

.focus-accordion__total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--focus-accent, var(--green-primary));
  white-space: nowrap;
  text-align: right;
  line-height: 1.2;
}

/* Secondary currency under the accordion total. */
.focus-accordion__total-alt {
  display: block;
  font-family: var(--font-body, inherit);
  font-weight: 500;
  font-size: 0.72rem;
  opacity: 0.6;
}

.focus-accordion__chevron {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--text-primary);
  border-bottom: 2px solid var(--text-primary);
  opacity: 0.55;
  transform: rotate(45deg);
  transition: transform var(--duration-base) var(--ease-default);
}

.focus-accordion[open] .focus-accordion__chevron {
  transform: rotate(-135deg);
}

.focus-accordion__body {
  padding: 0 1.5rem 1.5rem;
  /* align with the text column, past the icon */
  padding-left: calc(1.5rem + 44px + 1rem);
}

.focus-accordion__stat {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--focus-accent, var(--green-primary));
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .focus-accordion__total { display: none; }
  .focus-accordion__body { padding-left: 1.5rem; }
}

/* ============================================================
   ACTIVITY RECORD CONTENT TABLES (single record)
   ============================================================ */
.entry-content .activity-table,
.entry-content figure.wp-block-table {
  margin: 1.5rem 0;
  overflow-x: auto;
}

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

.entry-content th,
.entry-content td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.entry-content thead th {
  background: var(--surface-tint);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--green-dark);
  white-space: nowrap;
}

.entry-content td.num,
.entry-content th.num {
  text-align: right;
  white-space: nowrap;
}

.entry-content tfoot th {
  background: var(--surface-tint);
  font-weight: 700;
  color: var(--green-dark);
}

/* ============================================================
   CONSTITUTION PAGE
   ============================================================ */
.const-search {
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.const-search__input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--pure-white);
  box-shadow: var(--shadow-card);
  transition: border-color var(--duration-fast) var(--ease-default),
              box-shadow var(--duration-fast) var(--ease-default);
}

.const-search__input:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(0, 103, 71, 0.15);
}

.const-search__status {
  margin: 0.6rem 0.4rem 0;
  font-size: 0.85rem;
  color: var(--green-dark);
  opacity: 0.8;
}

.const-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

.const-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  font-size: 0.88rem;
  padding-right: 0.5rem;
}

.const-toc__heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.const-toc__group { margin-bottom: 1.1rem; }

.const-toc__part {
  display: block;
  font-weight: 600;
  color: var(--green-primary);
  margin-bottom: 0.4rem;
}

.const-toc__list li { margin-bottom: 0.25rem; }

.const-toc__list a {
  color: var(--text-primary);
  opacity: 0.75;
}

.const-toc__list a:hover { opacity: 1; color: var(--green-dark); }

.const-intro {
  font-size: 1.05rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0.85;
}

.const-part { margin-bottom: 2.5rem; scroll-margin-top: 96px; }

.const-part__title {
  font-size: 1.5rem;
  color: var(--green-dark);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border-subtle);
}

.const-article {
  margin-bottom: 1.75rem;
  scroll-margin-top: 96px;
}

.const-article__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.const-article__num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pure-white);
  background: var(--green-primary);
  border-radius: var(--radius-pill);
}

.const-article__body p { margin-bottom: 0.85rem; }

.const-list {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 0.85rem;
}

.const-notes .const-list { list-style: decimal; }
.const-list li { margin-bottom: 0.5rem; }

.const-editnote {
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-left: 3px solid var(--gold-primary);
  background: rgba(244, 195, 0, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  opacity: 0.95;
}

.const-no-results {
  font-size: 1.05rem;
  padding: 2rem 0;
  text-align: center;
  color: var(--green-dark);
}

@media (max-width: 900px) {
  .const-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .const-toc {
    position: static;
    max-height: none;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    background: var(--surface-tint);
  }
}

/* ============================================================
   v1.0.2 ADDITIONS
   ============================================================ */

/* Header Donate button — match the language-switcher pill size */
.header-actions .header-donate-btn {
  padding: 0.25rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-width: 1px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}

/* Hero Bangla title — break lines more evenly */
.hero__title-bn {
  text-wrap: balance;
}

/* About → Our Mission: clickable Constitution tile */
.program-detail-card--link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.program-detail-card--link:hover { text-decoration: none; }
.program-detail-card--link .card__cta { margin-top: 0.5rem; }

/* About → Contact: details spread evenly across the row (map removed) */
.contact-spread {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) { .contact-spread { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .contact-spread { grid-template-columns: 1fr; } }

/* Records → collapsible filter section (pill toggle, no double box) */
.filter-controls { margin-bottom: 2.5rem; }
.filter-details { margin-bottom: 0; }
.filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red-primary);
  background: transparent;
  border: 1px solid var(--red-primary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-default),
              color var(--duration-fast) var(--ease-default);
}
.filter-reset:hover {
  background: var(--red-primary);
  color: var(--pure-white);
}
.filter-details__summary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--pure-white);
  box-shadow: var(--shadow-card);
  font-weight: 600;
  color: var(--green-primary);
  cursor: pointer;
  list-style: none;
}
.filter-details__summary::-webkit-details-marker { display: none; }
.filter-details__summary:hover { background: var(--surface-tint); }
.filter-details__label { display: inline-flex; align-items: center; gap: 0.6rem; }
.filter-details__chevron {
  width: 10px; height: 10px;
  border-right: 2px solid var(--green-primary);
  border-bottom: 2px solid var(--green-primary);
  transform: rotate(45deg);
  transition: transform var(--duration-base) var(--ease-default);
}
.filter-details[open] .filter-details__chevron { transform: rotate(-135deg); }
.filter-details .filter-bar { margin: 1rem 0 0; }

/* Focuses → disbursement matrix (focus × year) */
.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--pure-white);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}
.matrix-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.matrix-table th,
.matrix-table td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  white-space: nowrap;
}
.matrix-table thead th {
  background: var(--surface-tint);
  color: var(--green-dark);
  font-family: var(--font-body);
  font-weight: 600;
  position: sticky;
  top: 0;
}
.matrix-table tbody th[scope="row"] {
  font-weight: 600;
  color: var(--text-primary);
}
.matrix-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.matrix-table__swatch {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.matrix-table__empty { color: var(--text-primary); opacity: 0.3; }
.matrix-table__total-col { background: var(--surface-tint); font-weight: 700; }
.matrix-table tfoot th,
.matrix-table tfoot td {
  background: var(--surface-tint);
  font-weight: 700;
  color: var(--green-dark);
  border-top: 2px solid var(--border-subtle);
}
