/* ============================================================
   NHST Website — components.css
   All UI Components: Topbar, Header, Navbar, Hero, Sections,
   Timeline, Modal, CTA, Footer
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════════════════════════════ */
.topbar {
  background: linear-gradient(90deg, var(--clr-navy-dim), var(--clr-navy));
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  font-family: var(--ff-sans);
  padding: 0.3rem var(--sp-4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  max-width: var(--box-max-w);
  margin: 0 auto;
}
.topbar__contact {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.topbar__contact a {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: rgba(255,255,255,0.8);
  transition: color var(--t-fast);
}
.topbar__contact a:hover { color: var(--clr-gold); }
.topbar__contact svg { width: 13px; height: 13px; flex-shrink: 0; }

.topbar__social {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.topbar__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  transition: background var(--t-fast), color var(--t-fast), filter var(--t-fast);
}
/* Text link pill in the top bar (Contact) — overrides the round social-icon style */
.topbar__social a.topbar__link {
  width: auto;
  gap: 6px;
  padding: 0 0.8rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.topbar__social a.topbar__link.is-active { background: var(--clr-gold); color: #431407; }
.topbar__social a:hover {
  background: rgba(255, 213, 0, 0.18);
  color: var(--clr-gold);
  filter: drop-shadow(0 0 6px rgba(255,213,0,0.5));
}
.topbar__social svg { width: 14px; height: 14px; }

/* ══════════════════════════════════════════════════════════════
   MASTHEAD (sticky logo + name + nav; collapses on scroll)
   ══════════════════════════════════════════════════════════════ */
.masthead {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 251, 245, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding-bottom: 12px;            /* room for the rangoli strip below */
  transition: box-shadow var(--t-mid);
}
.masthead.is-collapsed { box-shadow: var(--shadow-nav); }

/* Rangoli strip along the header's bottom edge — same motif as the
   .rangoli-divider above the footer, tinted light orange */
.masthead::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background-image: var(--pattern-rangoli);
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
  opacity: 0.75;
  pointer-events: none;
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  max-width: var(--box-max-w);
  margin: 0 auto;
  padding: var(--sp-2) var(--sp-4);
  transition: padding var(--t-mid);
}
.masthead.is-collapsed .masthead__inner { padding-top: var(--sp-1); padding-bottom: var(--sp-1); }

.masthead__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
}
.masthead__logo {
  height: 58px;
  width: auto;
  flex-shrink: 0;
  transition: height var(--t-mid);
}
.masthead.is-collapsed .masthead__logo { height: 43px; }

/* Right-end emblem (Guru Sandipani & Shri Krishna) — same height as the logo, shrinks with it */
.masthead__emblem {
  height: 64px;
  width: auto;
  flex-shrink: 0;
  transition: height var(--t-mid);
}
.masthead.is-collapsed .masthead__emblem { height: 48px; }
@media (max-width: 479px) {
  .masthead__emblem { display: none; }   /* phones: keep room for the name + menu button */
}

.masthead__text { display: flex; flex-direction: column; min-width: 0; }
.masthead__name {
  font-family: var(--ff-serif);
  font-size: clamp(1.05rem, 1.68vw + 0.3rem, 1.35rem);
  font-weight: 700;
  color: var(--clr-navy);
  line-height: 1.3;
}
.masthead__tagline {
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.4;
  max-height: 1.4em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: max-height var(--t-mid), opacity var(--t-mid);
}
.masthead.is-collapsed .masthead__tagline { max-height: 0; opacity: 0; }

/* Language Toggle Button */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  background: var(--clr-navy);
  color: #fff;
  border-radius: var(--r-pill);
  font-family: var(--ff-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background var(--t-fast), box-shadow var(--t-fast);
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;                  /* sits in the header row — never squeezed */
  min-height: 32px;                /* comfortable tap target */
}
.lang-toggle:hover {
  background: var(--clr-primary);
  box-shadow: 0 2px 8px rgba(230,74,25,0.3);
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */
/* Mobile nav list anchors to .masthead (sticky = positioned) */
.main-nav { flex-shrink: 0; display: flex; align-items: center; }

/* Hamburger (mobile) */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--clr-navy);
  border-radius: 2px;
  transition: all var(--t-mid);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Nav List */
.main-nav__list {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--clr-border-light);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--clr-surface-card);
  box-shadow: var(--shadow-drop);
  z-index: var(--z-dropdown);
}
.main-nav__list.is-open { display: flex; }

/* Nav Items */
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.65rem var(--sp-6);
  font-family: var(--ff-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
  position: relative;
  transition: color var(--t-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--sp-6);
  right: var(--sp-6);
  height: 2px;
  background: var(--clr-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid);
  border-radius: var(--r-pill);
}
.nav-link:hover,
.nav-link.active { color: var(--clr-primary); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Dropdown arrow */
.nav-link .dropdown-arrow {
  width: 12px;
  height: 12px;
  transition: transform var(--t-mid);
  margin-left: auto;
}
.nav-item.is-open .dropdown-arrow { transform: rotate(180deg); }

/* Dropdown menu */
.dropdown-menu {
  display: none;
  flex-direction: column;
  background: var(--clr-surface-card);
  border-left: 3px solid var(--clr-primary);
  margin-left: var(--sp-6);
}
.nav-item.is-open .dropdown-menu { display: flex; }
.dropdown-link {
  display: block;
  padding: 0.5rem var(--sp-4);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color var(--t-fast), background var(--t-fast);
}
.dropdown-link:hover {
  color: var(--clr-primary);
  background: var(--clr-primary-light);
}

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 480px;
  height: 90vh;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Poster = fallback: always visible until (and unless) the video is actually playing */
  background: #FFF4E6 url("../images/hero-poster.jpg") center / cover no-repeat;
}

/* Toran/rangoli band (white wave + dots tile over a saffron gradient).
   Reusable anywhere as <div class="toran-border" aria-hidden="true"></div> */
.toran-border {
  height: 40px;
  background:
    url("../images/toran.svg") repeat-x center / auto 100%,
    linear-gradient(90deg,
      #DC4A12 0%, var(--clr-primary-vivid) 30%, var(--clr-gold-muted) 50%,
      var(--clr-primary-vivid) 70%, #DC4A12 100%);
}
@media (max-width: 479px) {
  .toran-border { height: 28px; }
}

/* YouTube iframe covers hero (iframes ignore object-fit, so size a
   16:9 box to whichever hero dimension is larger, then centre it) */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  container-type: size;
  opacity: 0;                      /* hidden until YouTube reports PLAYING (main.js) */
  transition: opacity 1.2s ease;
}
.hero__video-wrap.is-playing { opacity: 1; }
.hero__video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width:  max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%) scale(1.15); /* crop YouTube title/logo chrome */
  border: 0;
}

/* Light ivory overlay — densest behind the centred text for readability,
   lighter at the edges so the video still shows as a soft background */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255, 251, 245, 0.58) 0%, rgba(255, 251, 245, 0.30) 100%),
    /* warm fade rising from the bottom: saffron edge → ivory → clear by mid-height,
       easing into the orange toran border below the hero */
    linear-gradient(0deg,
      rgba(249, 115, 22, 0.42) 0%,
      rgba(251, 191, 36, 0.22) 12%,
      rgba(255, 244, 230, 0.45) 24%,
      rgba(255, 244, 230, 0) 50%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  color: var(--clr-text);
  max-width: 680px;
  margin: 0 auto;
  /* soft ivory halo keeps text readable over any dark part of the video */
  text-shadow: 0 0 14px rgba(255, 251, 245, 0.9), 0 0 2px rgba(255, 251, 245, 0.9);
}
/* Light, see-through panel framing only the slide text (not the dots or the Donate button) */
.hero__slides {
  padding: var(--sp-5) var(--sp-5) var(--sp-2);
  margin-bottom: var(--sp-4);
  background: rgba(255, 251, 245, 0.2);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--r-xl);
  box-shadow: 0 10px 28px -14px rgba(67, 20, 7, 0.18);
}
@media (min-width: 768px) {
  .hero__slides { padding: var(--sp-6) var(--sp-10) var(--sp-3); }
}
.hero__badge {
  display: inline-block;
  margin-bottom: var(--sp-4);
}
.hero__heading {
  font-family: var(--ff-serif);
  font-size: clamp(1.75rem, 5vw + 0.5rem, 3.25rem);
  font-weight: 700;
  color: var(--clr-navy);
  line-height: 1.2;
  margin-bottom: var(--sp-3);
}
.hero__motto {
  font-family: var(--ff-serif);
  font-size: clamp(0.9375rem, 2vw, 1.25rem);
  color: var(--clr-primary);
  font-style: italic;
  margin-bottom: var(--sp-3);
  letter-spacing: 0.03em;
}
.hero__sub {
  font-family: var(--ff-sans);
  font-size: clamp(0.875rem, 1.5vw, 1.0625rem);
  color: var(--clr-text);
  margin-bottom: var(--sp-8);
  line-height: 1.7;
}
/* ── Hero slider ── all slides share one grid cell, so height = tallest slide */
.hero__slides { display: grid; }
.hero__slide {
  grid-area: 1 / 1;
  visibility: hidden;
  transition: visibility 0s 0.7s;
}
.hero__slide.is-active,
.hero__slide.is-leaving { visibility: visible; transition-delay: 0s; }

/* Each element slides in from the right, staggered; leaves to the left */
.hero__slide > * {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__slide.is-active > * { opacity: 1; transform: none; }
.hero__slide.is-active > :nth-child(2) { transition-delay: 0.12s; }
.hero__slide.is-active > :nth-child(3) { transition-delay: 0.24s; }
.hero__slide.is-active > :nth-child(4) { transition-delay: 0.36s; }
.hero__slide.is-leaving > * { opacity: 0; transform: translateX(-40px); transition-delay: 0s; }

.hero__slide .hero__sub { margin-bottom: var(--sp-5); }

.hero__shloka {
  font-family: var(--ff-serif);
  font-size: clamp(1.0625rem, 1.8vw + 0.6rem, 1.75rem);
  font-weight: 600;
  line-height: 1.75;
  color: var(--clr-primary);       /* deep saffron — readable on the light overlay */
  margin-bottom: var(--sp-4);
}

.hero__dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-1);
  margin-bottom: var(--sp-6);
}
.hero__dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.hero__dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: var(--r-pill);
  background: rgba(154, 52, 18, 0.3);
  transition: width var(--t-mid), background var(--t-mid);
}
.hero__dot:hover::before { background: rgba(154, 52, 18, 0.6); }
.hero__dot.is-active::before { width: 26px; background: var(--clr-primary-vivid); }
.hero__dot:focus-visible { outline: 2px solid var(--clr-primary); outline-offset: 2px; border-radius: var(--r-pill); }

.hero__content .btn,
.hero__content .badge-estd { text-shadow: none; }   /* halo is for plain text only */

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(154, 52, 18, 0.55);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  animation: bounce 2s infinite;
}
.hero__scroll svg { width: 20px; height: 20px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════════════════════════════
   INSPIRATION & NARASAMMA (Two-column cards with portrait)
   ══════════════════════════════════════════════════════════════ */
.inspiration-section {
  background: var(--clr-surface-alt);
  padding: var(--sp-10) var(--sp-4);
}
/* Homepage sections: the section's own padding is the only vertical spacing —
   the inner .section-inner wrappers would otherwise stack another --section-py each */
.inspiration-section .section-inner,
.timeline-section .section-inner,
.projects-section .section-inner { padding-top: 0; padding-bottom: 0; }
.timeline-section .section-inner + .section-inner,
.projects-section .section-inner + .section-inner { margin-top: var(--sp-6); }
.inspiration-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  max-width: var(--box-max-w);
  margin: 0 auto;
}
.inspiration-section .inspiration-grid { padding-top: var(--sp-5); }
.inspiration-card {
  background: var(--clr-surface-card);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: var(--sp-4);
  text-align: center;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.inspiration-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-h);
}

/* Photo card — clean photo on top (no colour wash over the murtis), white text strip below.
   The photo area grows so the card matches the Narsamma card's height. */
.inspiration-card--cover {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--clr-gold-muted);
}
.inspiration-card__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  overflow: hidden;
}
.inspiration-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.8s ease;
}
.inspiration-card--cover:hover .inspiration-card__cover { transform: scale(1.04); }
.inspiration-card__photo-body { padding: var(--sp-3) var(--sp-4) var(--sp-4); background: var(--clr-surface-card); }

/* Narsamma card — rangoli band along the top and bottom edges (same motif as the header) */
.inspiration-card--rangoli {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--sp-4) + 16px);
  padding-bottom: calc(var(--sp-4) + 16px);
  background: linear-gradient(180deg, var(--clr-primary-light) 0%, var(--clr-surface-card) 30%, var(--clr-surface-card) 70%, var(--clr-primary-light) 100%);
}
.inspiration-card--rangoli::before,
.inspiration-card--rangoli::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background-image: var(--pattern-rangoli);
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
  opacity: 0.8;
  pointer-events: none;
}
.inspiration-card--rangoli::before { top: 6px; }
.inspiration-card--rangoli::after  { bottom: 6px; }

/* Passport-style portrait — cut-out photo on a warm gradient, framed */
.passport-photo {
  width: 100px;
  aspect-ratio: 35 / 45;           /* passport proportions */
  margin: 0 auto var(--sp-4);
  padding: 5px;
  background: var(--clr-surface-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(124, 45, 18, 0.15);
}
.passport-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, #FEF3C7, #FED7AA);
}
.passport-photo--modal {
  width: 110px;
  float: left;
  margin: 0 var(--sp-5) var(--sp-3) 0;
}
.inspiration-card__name {
  font-family: var(--ff-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--clr-navy);
}
.inspiration-card__role {
  font-size: 0.75rem;
  color: var(--clr-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: var(--sp-1) 0 var(--sp-3);
  text-transform: uppercase;
}
.inspiration-card__text {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

/* Intro box — framed, 80% wide on tablet+, clamped to 3 lines until "Read More" */
.intro-box {
  position: relative;
  margin: var(--sp-5) auto 0;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  background: var(--clr-surface-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  /* thin inner frame line + soft card shadow */
  box-shadow:
    inset 0 0 0 5px var(--clr-surface-card),
    inset 0 0 0 6px var(--clr-border-light),
    var(--shadow-card);
}
.intro-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary-vivid), var(--clr-gold), var(--clr-primary-vivid));
}
.intro-box__title {
  font-family: var(--ff-serif);
  font-size: clamp(1rem, 0.6vw + 0.8rem, 1.1875rem);
  font-weight: 700;
  color: var(--clr-navy);
  text-align: center;
  margin-bottom: var(--sp-3);
}
.intro-box__text {
  font-size: 0.875rem;             /* matches .inspiration-card__text above */
  line-height: 1.7;
  color: var(--clr-text-muted);
  text-align: justify;
  /* Height-based clamp (5 lines) instead of -webkit-line-clamp: line-clamp creates its own
     layout box that ignores floats, which would stop the text wrapping around the figure */
  max-height: calc(1.7em * 4);
  overflow: hidden;
}
/* fade the last line only when text is actually cut off (main.js sets .is-clamped) */
.intro-box.is-clamped:not(.is-expanded) .intro-box__text {
  -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent);
          mask-image: linear-gradient(180deg, #000 65%, transparent);
}
.intro-box.is-expanded .intro-box__text { max-height: none; }

/* Guru Sandipani & Shri Krishna (mirrored to face the text) — floated; text follows the
   figures' outline (transparent PNG; shape uses the same mirrored file) */
.intro-box__figure {
  float: left;
  width: 110px;
  height: auto;
  margin: 0 var(--sp-4) var(--sp-2) 0;
  shape-outside: url("../images/sandipani-flipped.png");
  shape-image-threshold: 0.4;
  shape-margin: 10px;
}
@media (max-width: 479px) {
  .intro-box__figure { width: 96px; }
}
.intro-box__actions {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

/* Vivid pill buttons (intro box) — each text/fill pair ≥ 4.5:1 */
.btn-vivid { border: 2px solid transparent; box-shadow: 0 3px 10px -2px rgba(124, 45, 18, 0.35); }
.btn-vivid:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(124, 45, 18, 0.45); filter: saturate(1.15); }
.btn-vivid:focus-visible { outline: 3px solid var(--clr-gold); outline-offset: 2px; }
.btn-vivid--founders { background: linear-gradient(135deg, #9A3412, #7C2D12); color: #fff; }
.btn-vivid--journey  { background: linear-gradient(135deg, #FCD34D, #F59E0B); color: #431407; }
.btn-vivid--brochure { background: var(--clr-surface-card); color: var(--clr-primary); border-color: var(--clr-primary-vivid); }
.btn-vivid--brochure:hover { background: var(--clr-primary-light); }

/* Founder Trustees popup */
.modal-photo--archival { aspect-ratio: auto; background: none; margin: var(--sp-3) 0 var(--sp-4); }
.modal-photo--archival img { height: auto; filter: sepia(20%); }
.founders-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-2) var(--sp-5);
}
.founders-list li {
  position: relative;
  padding-left: var(--sp-5);
  font-family: var(--ff-serif);
  font-weight: 600;
  color: var(--clr-navy);
}
.founders-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-primary-vivid);
}

/* Same width as the two cards above (fills the grid's container) */
@media (min-width: 768px) {
  .intro-box { padding: var(--sp-5) var(--sp-8) var(--sp-4); }
}

/* ══════════════════════════════════════════════════════════════
   AT A GLANCE (bento: message card + 3 tiles | tall profile card)
   ══════════════════════════════════════════════════════════════ */
.glance-section {
  padding: var(--sp-10) var(--sp-4);
  text-align: center;
}
.glance-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "message" "profile" "tiles";
  gap: var(--sp-5);
  text-align: left;
}
.glance-card {
  background: var(--clr-surface-card);
  border: 2px solid var(--clr-border);
  border-radius: var(--r-lg);
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}

/* President (left) + his message excerpt and actions (right, wider) */
.glance-message {
  grid-area: message;
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: center;
  min-width: 0;
}
.glance-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.glance-person .passport-photo { width: 101px; padding: 4px; margin-bottom: var(--sp-2); }
/* No glow in this card: hairline border instead of the 2px peach one, no photo/button shadows */
.glance-card.glance-message { border: 1px solid var(--clr-border-light); }
.glance-message .passport-photo,
.glance-message .btn { box-shadow: none; }

/* Message excerpt with a gold opening quote mark, clamped to 4 lines */
.glance-quote { position: relative; min-width: 0; padding-top: var(--sp-6); }
.glance-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.35em;
  left: -0.05em;
  font-family: var(--ff-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--clr-gold);
}
.glance-quote__text {
  font-size: 0.9375rem;
  line-height: 1.75;
  font-style: italic;
  color: var(--clr-text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.glance-quote__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }

@media (min-width: 768px) {
  .glance-message { grid-template-columns: 160px minmax(0, 1fr); }
}

/* ── Executive Trustees page (public/trustees.php) ── */
.trustee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-5);
}
.trustee-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-5) var(--sp-3);
  background: var(--clr-surface-card);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--r-lg);
}
.trustee-card .passport-photo { width: 110px; margin-bottom: var(--sp-3); box-shadow: none; }
.trustee-card__name { font-family: var(--ff-serif); font-size: 1rem; font-weight: 700; color: var(--clr-navy); line-height: 1.35; }
.trustee-card__role { font-size: 0.8125rem; font-weight: 600; color: var(--clr-primary); margin-top: var(--sp-1); }
.trustee-card__org  { font-size: 0.75rem; line-height: 1.5; color: var(--clr-text-muted); margin-top: var(--sp-2); }
.glance-person__name { font-family: var(--ff-serif); font-size: 1.0625rem; font-weight: 700; color: var(--clr-navy); line-height: 1.3; }
.glance-person__role { font-size: 0.8125rem; font-weight: 600; color: var(--clr-primary); margin-top: var(--sp-1); }

/* Logo shown in a passport frame until the real photo is added */
.passport-photo img.is-placeholder { object-fit: contain; padding: 18% 12%; }

/* Link tiles — a compact fixed-height card (logo / photo / icon) with the caption below it */
/* Tiles stretch to the row height, so their bottom edge lines up with the tall card on the right */
.glance-tiles { grid-area: tiles; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); align-items: stretch; }
.glance-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-2);
  text-align: center;
  color: var(--clr-text);
}
.glance-tile__box {
  flex: 1 1 auto;                  /* grow to fill the tile, caption stays at the bottom */
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  overflow: hidden;
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}
.glance-tile__caption { font-size: 0.8125rem; font-weight: 600; line-height: 1.4; }
.glance-tile:hover .glance-tile__box { border-color: var(--clr-primary-vivid); box-shadow: var(--shadow-card-h); }
.glance-tile:hover .glance-tile__caption { color: var(--clr-primary); }
.glance-tile:focus-visible { outline: 3px solid var(--clr-primary); outline-offset: 3px; border-radius: var(--r-lg); }

.glance-tile__box svg { width: 36px; height: 36px; color: var(--clr-primary); transition: color var(--t-mid); }
.glance-tile:hover .glance-tile__box svg { color: var(--clr-primary-vivid); }
/* Logo inside the box (Navbharat Gurukulam) — whole logo always visible */
.glance-tile--logo { position: relative; }
.glance-tile--logo img {
  position: absolute;
  inset: var(--sp-3);
  width: calc(100% - 2 * var(--sp-3));
  height: calc(100% - 2 * var(--sp-3));
  object-fit: contain;              /* whole logo always visible */
  transition: transform var(--t-mid);
}
/* Photo filling the box edge to edge (Saraswati Shishuvatika) — crop anchored near the top (signboard) */
.glance-tile--photo { padding: 0; }
.glance-tile--photo { position: relative; }
.glance-tile--photo img {
  position: absolute;               /* fill the (stretched) box exactly */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 25%;         /* keep the signboard in view at any box shape */
  transition: transform var(--t-mid);
}
.glance-tile:hover .glance-tile--logo img,
.glance-tile:hover .glance-tile--photo img { transform: scale(1.04); }

/* Tall card (right column) — upcoming auditorium */
.glance-profile { grid-area: profile; text-align: center; display: flex; flex-direction: column; overflow: hidden; }
.glance-profile__name { font-family: var(--ff-serif); font-size: 1.125rem; font-weight: 700; color: var(--clr-navy); line-height: 1.35; }

.glance-audi__media { position: relative; }
/* 4:3 crop of the square render, anchored high so the roofline is never cut (only road/sky trimmed) */
.glance-audi__media img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center 35%; display: block; }
.glance-audi__badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  padding: 0.2rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--clr-gold);
  color: #431407;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(67, 20, 7, 0.25);
}
.glance-audi__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.glance-audi__sub { font-size: 0.8125rem; line-height: 1.55; color: var(--clr-text-muted); margin-top: var(--sp-2); }

.glance-profile__rows { margin-top: auto; padding-top: var(--sp-4); text-align: left; }
.glance-profile__rows > div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--clr-border-light);
  font-size: 0.8125rem;
}
.glance-profile__rows dt { color: var(--clr-text-muted); }
.glance-profile__rows dd { font-weight: 600; color: var(--clr-text); text-align: right; }

@media (min-width: 768px) {
  .glance-section { padding: var(--sp-12) var(--sp-8); }
  .glance-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-areas: "message profile" "tiles profile";
  }
}

/* ══════════════════════════════════════════════════════════════
   MISSION / VISION / VALUES (4-col grid cards)
   ══════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════
   PARTNERS — सहयोगी संगठन (scrolling logo strip)
   ══════════════════════════════════════════════════════════════ */
.partners-section {
  padding: var(--section-py) 0;
  text-align: center;
  background: var(--clr-surface-alt);
}
.partners {
  margin-top: var(--sp-6);
  overflow: hidden;
  /* soft fade at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners__track {
  display: flex;
  width: max-content;
  animation: partners-scroll 40s linear infinite;
}
.partners:hover .partners__track,
.partners:focus-within .partners__track { animation-play-state: paused; }
@keyframes partners-scroll { to { transform: translateX(-50%); } }   /* -50% = 2 of the 4 copies */

/* padding-right = gap, so each copy meets the next with even spacing */
.partners__list { display: flex; gap: var(--sp-5); padding-right: var(--sp-5); }
.partners__item { flex-shrink: 0; width: 180px; }
.partners__item > a,
.partners__item { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); color: inherit; }
.partners__logo {
  height: 96px;
  width: 100%;
  display: grid;
  place-items: center;
  padding: var(--sp-3);
  background: var(--clr-surface-card);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--r-md);
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}
.partners__logo img { max-height: 64px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.partners__item:hover .partners__logo { border-color: var(--clr-primary-vivid); box-shadow: var(--shadow-card); }
.partners__name { font-size: 0.75rem; line-height: 1.4; color: var(--clr-text-muted); text-align: center; }

/* Reduced motion: no auto-scroll — show one static, centred set that wraps.
   (Must be "none": the global 0.01ms duration would make an infinite loop flicker.) */
@media (prefers-reduced-motion: reduce) {
  .partners { -webkit-mask-image: none; mask-image: none; }
  .partners__track { animation: none !important; width: auto; justify-content: center; }
  .partners__list { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .partners__list[aria-hidden="true"] { display: none; }
}

/* Mission / Vision / Values block — sits inside the Inspiration (trust) section */
.mvv-block {
  margin-top: var(--sp-5);
  text-align: center;
}
.mvv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.mvv-card {
  background: var(--clr-surface-card);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
  position: relative;
  overflow: hidden;
}
.mvv-card::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary-vivid) 0%, var(--clr-gold) 50%, var(--clr-navy) 100%);
  position: absolute;
  top: 0; left: 0; right: 0;
}
.mvv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-h); }
.mvv-card__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--clr-primary-light), rgba(255,213,0,0.1));
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-3);
}
.mvv-card__icon svg { width: 22px; height: 22px; color: var(--clr-primary); }
.mvv-card__title { font-family: var(--ff-serif); font-size: 1rem; font-weight: 700; color: var(--clr-navy); margin-bottom: var(--sp-2); }
.mvv-card__text { font-size: 0.875rem; color: var(--clr-text-muted); line-height: 1.65; }

/* ══════════════════════════════════════════════════════════════
   TIMELINE (1963–2024)
   ══════════════════════════════════════════════════════════════ */
.timeline-section {
  background: var(--clr-surface-alt);
  padding: var(--section-py) var(--sp-4);
}
.timeline {
  position: relative;
  max-width: 700px;
  margin: var(--sp-8) auto 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-primary-vivid), var(--clr-gold), var(--clr-navy));
}
.timeline-item {
  display: flex;
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
  position: relative;
}
.timeline-item__dot {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--clr-gold);
  border-radius: 50%;
  border: 3px solid var(--clr-surface-card);
  box-shadow: 0 0 0 2px var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--clr-navy);
  position: relative;
  z-index: 1;
}
.timeline-item__body {
  background: var(--clr-surface-card);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-card);
  flex: 1;
}
.timeline-item__year {
  font-family: var(--ff-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: var(--sp-1);
}
.timeline-item__title {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: var(--sp-2);
}
.timeline-item__text { font-size: 0.9rem; color: var(--clr-text-muted); line-height: 1.65; }

/* ══════════════════════════════════════════════════════════════
   PROJECTS (2-column grid)
   ══════════════════════════════════════════════════════════════ */
.projects-section { padding: var(--section-py) var(--sp-4); }
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}
.project-card {
  background: var(--clr-surface-card);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-h); }
.project-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--clr-navy-light), var(--clr-primary));
}
.project-card__body { padding: var(--sp-5); }
.project-card__title { font-family: var(--ff-serif); font-size: 1.25rem; font-weight: 700; color: var(--clr-navy); margin-bottom: var(--sp-3); }
.project-card__text { font-size: 0.9375rem; color: var(--clr-text-muted); line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════
   COURSES TABLE SECTION
   ══════════════════════════════════════════════════════════════ */
.courses-section {
  background: var(--clr-surface-alt);
  padding: var(--section-py) var(--sp-4);
}
.courses-tabs {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin: var(--sp-6) 0 var(--sp-4);
}
.courses-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-pill);
  font-family: var(--ff-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--clr-border);
  background: var(--clr-surface-card);
  color: var(--clr-text-muted);
  transition: all var(--t-fast);
}
.courses-tab.active,
.courses-tab:hover { background: var(--clr-navy); color: #fff; border-color: var(--clr-navy); }

/* ══════════════════════════════════════════════════════════════
   MODAL (Read More — Inspiration / General)
   ══════════════════════════════════════════════════════════════ */
.nhst-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(67, 20, 7, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}
.nhst-modal.is-open { display: flex; }

.modal-panel {
  background: var(--clr-surface-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-modal);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-panel::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary-vivid), var(--clr-gold), var(--clr-navy));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-surface-alt);
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
  cursor: pointer;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
}
.modal-close:hover { background: var(--clr-error-bg); color: var(--clr-error); }
.modal-body { padding: var(--sp-6); }
/* Wide modal with a full-bleed cover photo (Ram Panchayatan) */
.modal-panel--wide { max-width: 760px; }
.modal-cover { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.modal-close--on-photo { top: calc(var(--sp-4) + 4px); z-index: 2; background: rgba(255, 255, 255, 0.92); }
.modal-panel--wide .modal-text + .modal-text { margin-top: var(--sp-3); }
.modal-signature {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--clr-border-light);
  text-align: right;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--clr-text-muted);
}
.modal-signature strong { font-family: var(--ff-serif); font-size: 1rem; color: var(--clr-navy); }
.modal-title {
  font-family: var(--ff-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: var(--sp-1);
}
.modal-role { color: var(--clr-primary); font-size: 0.875rem; font-weight: 600; margin-bottom: var(--sp-4); }
.modal-text { font-size: 0.9375rem; color: var(--clr-text-muted); line-height: 1.8; clear: both; }

/* Modal brand header + wide photo (feature-section modals) */
.modal-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 var(--sp-10) var(--sp-3) 0;   /* right: clear the close button */
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--clr-border-light);
}
.modal-brand__logo { height: 36px; width: auto; flex-shrink: 0; }
.modal-brand__name { font-family: var(--ff-serif); font-size: 0.9375rem; font-weight: 700; color: var(--clr-navy); line-height: 1.3; }
.modal-photo {
  aspect-ratio: 16 / 9;
  margin: var(--sp-4) 0;
  border-radius: var(--r-md);
  overflow: hidden;
  /* branded placeholder, covered by the <img> once a photo exists */
  background:
    url("../images/logo.png") center / 30% auto no-repeat,
    linear-gradient(135deg, var(--clr-primary-light), #FDE68A);
}
.modal-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════════════════════════════
   FEATURE SECTIONS (tinted panel: photo card left | heading, text, buttons right)
   ══════════════════════════════════════════════════════════════ */
.feature-section {
  padding: var(--sp-4);
}
.feature-section--gold  { --fs-panel: #FEF3C7; --fs-card: #FFFBEB; --fs-shape: #FCD34D; --fs-plus: #FDE68A; }
.feature-section--peach { --fs-panel: #FFEDD5; --fs-card: #FFF7ED; --fs-shape: #FDBA74; --fs-plus: #FED7AA; }

/* Mobile: one column (photo, then content). Tablet+: two columns — see media query below */
.feature-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
  background: var(--fs-panel);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
}
.feature-panel__media { padding: 0 var(--sp-4) var(--sp-4) 0; }   /* room for the offset shape */

/* Photo card with a tinted offset shape behind */
.feature-panel__photo {
  position: relative;
  isolation: isolate;
  width: min(100%, 345px);
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  border-radius: 28px 28px 28px 90px;
}
/* ::before = tinted offset shape; ::after = branded placeholder (covered by the <img>) */
.feature-panel__photo::before,
.feature-panel__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
}
.feature-panel__photo::before {
  background: var(--fs-shape);
  transform: translate(16px, 14px) rotate(3deg);
}
.feature-panel__photo::after {
  background:
    url("../images/logo.png") center / 34% auto no-repeat,
    linear-gradient(135deg, var(--clr-surface-card), var(--fs-card));
  box-shadow: var(--shadow-card);
}
.feature-panel__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
/* Portrait frame for upright subjects (e.g. Bharat Mata) */
.feature-panel__photo--portrait {
  width: min(100%, 225px);
  aspect-ratio: 3 / 4;
}
.feature-panel__photo--portrait img { object-position: center top; }

.feature-panel__title {
  font-family: var(--ff-serif);
  font-size: calc(clamp(1.375rem, 2.5vw + 0.5rem, 2.25rem) - 3px);
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: var(--sp-3);
}
.feature-panel__text {
  max-width: 60ch;
  margin: 0 auto var(--sp-5);
  color: var(--clr-text-muted);
  font-size: clamp(0.9375rem, 1vw + 0.5rem, 1.0625rem);
}

.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-width: 220px;
  margin: 0 auto;               /* centred on mobile; left-aligned on tablet+ (below) */
}
.feature-card {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px var(--sp-2);
  background: var(--fs-card);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  text-align: left;
  color: var(--clr-text);
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}
.feature-card:hover { box-shadow: var(--shadow-card-h); border-color: var(--fs-shape); }
.feature-card:focus-visible { outline: 3px solid var(--clr-primary); outline-offset: 2px; }

.feature-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card__icon--1 { background: #FFEDD5; color: var(--clr-primary); }
.feature-card__icon--2 { background: #FEF3C7; color: var(--clr-gold-dim); }
.feature-card__icon--3 { background: #FEE2E2; color: #B91C1C; }

.feature-card__label {
  flex: 1;
  font-family: var(--ff-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
}
.feature-card__plus {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--fs-plus);
  color: var(--clr-navy);
  transition: background var(--t-mid), color var(--t-mid);
}
.feature-card__plus svg { width: 18px; height: 18px; }
.feature-card:hover .feature-card__plus { background: var(--clr-primary); color: #fff; }

@media (min-width: 768px) {
  .feature-section { padding: var(--sp-5) var(--sp-8); }
  /* Image column hugs the photo card; text/buttons take the rest */
  .feature-panel {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: var(--sp-8);
    padding: var(--sp-8);
    text-align: left;
  }
  .feature-panel__photo           { width: 345px; }
  .feature-panel__photo--portrait { width: 225px; }
  .feature-panel__text,
  .feature-cards { margin-left: 0; }
}

/* ══════════════════════════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-navy) 100%);
  padding: var(--sp-12) var(--sp-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: 'प्रज्वलितो ज्ञानमयः';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-serif);
  font-size: 8rem;
  color: rgba(255,255,255,0.035);
  white-space: nowrap;
  pointer-events: none;
  font-weight: 700;
}
.cta-section__title {
  font-family: var(--ff-serif);
  font-size: calc(clamp(1.5rem, 3vw + 0.5rem, 2.5rem) - 3px);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-3);
}
.cta-section__sub { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: var(--sp-8); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-section__btns { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  /* deep warm maroon-brown (darker than the rust #7C2D12, still in the orange family) */
  background: linear-gradient(180deg, #5A1E09 0%, #3A1205 100%);
  color: rgba(255,255,255,0.75);
  padding: var(--sp-12) var(--sp-4) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-10);
}
.footer-col__title {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid rgba(255,213,0,0.2);
}
.footer-col p,
.footer-col address {
  font-size: 0.875rem;
  line-height: 1.8;
  font-style: normal;
  color: rgba(255,255,255,0.7);
}
.footer-links { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--t-fast), padding-left var(--t-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.footer-links a:hover { color: var(--clr-gold); padding-left: var(--sp-2); }
.footer-links a::before { content: '›'; color: var(--clr-primary); font-weight: 700; }

.footer-contact-item {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: 0.875rem;
  line-height: 1.6;
}
.footer-contact-item svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; color: var(--clr-gold-muted); }

.footer-bank-row {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.footer-bank-row strong { color: rgba(255,255,255,0.5); min-width: 96px; flex-shrink: 0; font-weight: 500; }
.footer-bank-row span { color: rgba(255,255,255,0.85); overflow-wrap: anywhere; }   /* long A/c & registration numbers wrap */
.footer-donate { margin-top: var(--sp-4); background: var(--clr-gold); color: #431407; }
.footer-donate:hover { background: #fff; }

/* Footer bottom bar */
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--sp-4) 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}
.footer-bar a { color: var(--clr-gold-muted); }
.footer-bar a:hover { color: var(--clr-gold); }

/* ══════════════════════════════════════════════════════════════
   DNYAN MOTIF — faint gold watermarks scattered across sections.
   dnyan-faint.png (~16%) for small accents; dnyan-faint-lg.png (800px, ~13%)
   for the big ones that cover about half a section (sized by % of height).
   Longhand background properties only, so each section keeps its own colour.
   ══════════════════════════════════════════════════════════════ */
/* BIG: half the section, top-right (partly off-edge) + small bottom-left */
.inspiration-section {
  background-image: url("../images/dnyan-faint-lg.png"), url("../images/dnyan-faint.png");
  background-repeat: no-repeat, no-repeat;
  background-position: right -6% top -4%, left 16px bottom 24px;
  background-size: auto 50%, 100px auto;
}
/* medium: left edge (half hidden) + small top-right */
.glance-section {
  background-image: url("../images/dnyan-faint.png"), url("../images/dnyan-faint.png");
  background-repeat: no-repeat, no-repeat;
  background-position: left -50px center, right 24px top 12px;
  background-size: 170px auto, 80px auto;
}
/* BIG: most of the panel height, bottom-right corner */
/* Feature 1 (Panch Parivartan): soft tricolour — saffron top, white middle, green bottom —
   kept light so text stays readable; motif watermark layered on top */
.feature-section--gold .feature-panel {
  background-color: #fff;
  background-image:
    url("../images/dnyan-faint-lg.png"),
    linear-gradient(180deg,
      #FFB066 0%,      /* saffron (#FF9933), deeper */
      #FFD3A6 24%,
      #FFFFFF 42%,     /* white band */
      #FFFFFF 58%,
      #C4E6BC 76%,
      #8FCB84 100%);   /* India green (#138808), deeper */
  background-repeat: no-repeat, no-repeat;
  background-position: right -4% bottom -12%, center;
  background-size: auto 75%, 100% 100%;
}
/* cards & icon circles: crisp white on the tricolour so they don't blend into a band */
.feature-section--gold { --fs-card: rgba(255, 255, 255, 0.92); --fs-plus: #FFE7CC; }
/* small top-left + medium bottom-right */
/* Feature 2 (Campus Highlights): diagonal sky blue → light yellow → white, motifs layered on top */
.feature-section--peach .feature-panel {
  background-color: #fff;
  background-image:
    url("../images/dnyan-faint.png"), url("../images/dnyan-faint.png"),
    linear-gradient(135deg,
      #BFDDF7 0%,      /* sky blue */
      #DCEBF8 22%,
      #FFF4C7 50%,     /* light yellow */
      #FFFBEA 72%,
      #FFFFFF 100%);   /* white */
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: left 16px top 14px, right -30px bottom -30px, center;
  background-size: 90px auto, 200px auto, 100% 100%;
}
/* matching accents: blue offset shape behind the photo, sunny "+" circles, crisp white cards */
.feature-section--peach { --fs-card: rgba(255, 255, 255, 0.9); --fs-shape: #93C5FD; --fs-plus: #FDE68A; }
/* BIG: centred behind the logo strip, covering the section height */
.partners-section {
  background-image: url("../images/dnyan-faint-lg.png"), url("../images/dnyan-faint.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center center, left 20px bottom 16px;
  background-size: auto 95%, 90px auto;
}
@media (max-width: 767px) {
  .inspiration-section { background-size: auto 30%, 70px auto; }
  .glance-section      { background-size: 110px auto, 60px auto; }
  .feature-section--gold .feature-panel { background-size: auto 45%, 100% 100%; }
  .feature-section--peach .feature-panel { background-size: 70px auto, 130px auto, 100% 100%; }
}

/* ── Master Plan page (public/masterplan.php) ── */
.plan-figure { margin: 0; text-align: center; }
.plan-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--clr-border-light);
  box-shadow: var(--shadow-card);
}
.plan-figure figcaption { margin-top: var(--sp-2); font-size: 0.8125rem; color: var(--clr-primary); font-weight: 600; }
.plan-legend { margin-top: var(--sp-6); }
.plan-legend > p { margin-bottom: var(--sp-3); color: var(--clr-text-muted); }
/* CTA banner holding a full paragraph (Master Plan page) — wider, comfortable reading */
.cta-section--text .cta-section__sub { max-width: 72ch; line-height: 1.8; text-align: justify; text-align-last: center; }
/* Future Roadmap (Master Plan page) — reuses .mvv-card; longer text reads better left-aligned */
.roadmap { text-align: center; padding-top: 0; }
.roadmap__grid { margin-top: var(--sp-6); text-align: left; }
.roadmap__grid .mvv-card__icon { margin-left: 0; }
/* Master Plan facilities list — icon per item instead of a bullet */
.plan-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-3) var(--sp-5);
}
.plan-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--ff-serif);
  font-weight: 600;
  color: var(--clr-navy);
  line-height: 1.4;
}
.plan-list__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--clr-primary-light), #FEF3C7);
  color: var(--clr-primary);
}
.plan-list__icon svg { width: 22px; height: 22px; }

/* Caption band on a feature photo (Feature 2: GAIL solar donor) — bottom-right,
   clear of the photo's large rounded bottom-left corner */
.feature-panel__caption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  display: flex;
  flex-direction: column;
  padding: 6px 12px;
  border-radius: var(--r);
  background: rgba(124, 45, 18, 0.9);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: right;
  box-shadow: 0 4px 12px rgba(67, 20, 7, 0.25);
}
.feature-panel__caption strong { font-size: 0.8125rem; color: var(--clr-gold); letter-spacing: 0.02em; }

/* ── Feature accordion (Feature 2) — native <details>/<summary> ──
   Each item is one card: the button row (summary) + the expanding panel below it. */
.feature-cards--accordion { max-width: none; gap: var(--sp-3); }
.feature-acc {
  background: var(--fs-card);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}
.feature-acc[open] { border-color: var(--fs-shape); box-shadow: var(--shadow-card); }
.feature-acc > summary { list-style: none; cursor: pointer; background: transparent; border: 0; border-radius: 0; }
.feature-acc > summary::-webkit-details-marker { display: none; }
.feature-acc > summary:hover { box-shadow: none; }
.feature-acc > summary:focus-visible { outline: 3px solid var(--clr-primary); outline-offset: -3px; }
/* "+" turns into "×" when open */
.feature-acc .feature-card__plus svg { transition: transform var(--t-mid); }
.feature-acc[open] .feature-card__plus { background: var(--clr-primary); color: #fff; }
.feature-acc[open] .feature-card__plus svg { transform: rotate(45deg); }

.feature-acc__panel {
  padding: 0 var(--sp-4) var(--sp-4);
  text-align: left;
  animation: acc-open 0.35s var(--ease-spring);
}
.feature-acc__panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
}
.feature-acc__panel p { font-size: 0.875rem; line-height: 1.75; color: var(--clr-text-muted); }
@keyframes acc-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── Annual Programs page (public/programs.php) ── */
.program-list { display: grid; gap: var(--sp-5); }
.program-card {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  padding: var(--sp-5);
  background: var(--clr-surface-card);
  border: 1px solid var(--clr-border-light);
  border-left: 4px solid var(--clr-primary-vivid);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.program-card__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--clr-primary-light), #FEF3C7);
  color: var(--clr-primary);
}
.program-card__icon svg { width: 28px; height: 28px; }
.program-card__title { font-family: var(--ff-serif); font-size: 1.25rem; font-weight: 700; color: var(--clr-navy); line-height: 1.3; }
.program-card__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-2) 0 var(--sp-3);
  padding: 0.15rem 0.7rem;
  border-radius: var(--r-pill);
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.8125rem;
  font-weight: 600;
}
.program-card__meta svg { width: 14px; height: 14px; }
.program-card__text { font-size: 0.9375rem; line-height: 1.75; color: var(--clr-text-muted); }
@media (max-width: 479px) {
  .program-card { flex-direction: column; gap: var(--sp-3); }
}

/* ── Our Institutions page (public/projects.php) ── */
.inst-intro { max-width: 70ch; margin: 0 auto var(--sp-8); text-align: center; font-size: 1rem; }
.inst-group + .inst-group { margin-top: var(--sp-10); }
.inst-group .section-title { margin-bottom: var(--sp-5); }
.inst-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.inst-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface-card);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.inst-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--clr-primary-light); }
.inst-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inst-card__media--icon {
  display: grid;
  place-items: center;
  color: var(--clr-primary);
  background:
    url("../images/dnyan-faint.png") right 12px bottom 10px / 70px auto no-repeat,
    linear-gradient(135deg, var(--clr-primary-light), #FEF3C7);
}
.inst-card__media--icon svg { width: 72px; height: 72px; }
.inst-card__badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  padding: 0.2rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--clr-gold);
  color: #431407;
  font-size: 0.75rem;
  font-weight: 700;
}
.inst-card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.inst-card__name { font-family: var(--ff-serif); font-size: 1.1875rem; font-weight: 700; color: var(--clr-navy); line-height: 1.35; }
.inst-card__tag { margin: var(--sp-1) 0 var(--sp-3); font-size: 0.8125rem; font-weight: 600; color: var(--clr-primary); }
.inst-card__text { font-size: 0.9375rem; line-height: 1.75; color: var(--clr-text-muted); }
.inst-card__link { align-self: flex-start; margin-top: var(--sp-4); }

/* College: courses (3 streams) + research centre */
.inst-sub { font-family: var(--ff-serif); font-size: 1.0625rem; font-weight: 700; color: var(--clr-navy); margin: var(--sp-5) 0 var(--sp-3); }
.inst-courses { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
.inst-courses__col {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--clr-surface-alt);
  border-top: 3px solid var(--clr-primary-vivid);
}
.inst-courses__col h5 { font-family: var(--ff-sans); font-size: 0.9375rem; font-weight: 700; color: var(--clr-primary); margin-bottom: var(--sp-2); }
.inst-courses__col li { position: relative; padding-left: var(--sp-4); font-size: 0.875rem; line-height: 1.6; color: var(--clr-text); }
.inst-courses__col li + li { margin-top: var(--sp-1); }
.inst-courses__col li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--clr-gold-muted); }
.inst-research { margin-top: var(--sp-2); }
.inst-research p { font-size: 0.9375rem; line-height: 1.7; color: var(--clr-text-muted); }

@media (min-width: 768px) {
  .inst-grid { grid-template-columns: repeat(2, 1fr); }
  .inst-card--wide { grid-column: 1 / -1; flex-direction: row; }
  .inst-card--wide .inst-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 260px; }
  .inst-courses { grid-template-columns: repeat(3, 1fr); }
}

/* ── Vidya Bharati emblem badge (Navbharat & Shishuvatika: homepage tiles + institution cards) ──
   Overrides the broad tile/card image rules (.glance-tile--logo img, .inst-card__media img…) */
.vb-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 3px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--clr-border);
  box-shadow: 0 2px 6px rgba(67, 20, 7, 0.18);
}
.vb-badge--lg { top: var(--sp-3); right: var(--sp-3); width: 48px; height: 48px; padding: 4px; }
.glance-tile__box .vb-badge img,
.inst-card__media .vb-badge img,
.glance-tile:hover .glance-tile__box .vb-badge img {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  transform: none;
}

/* ── In Press page (public/press.php) ── */
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-5); }
.press-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--clr-surface-card);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}
.press-card__link:hover { border-color: var(--clr-primary-vivid); box-shadow: var(--shadow-card-h); }
.press-card__link:focus-visible { outline: 3px solid var(--clr-primary); outline-offset: 2px; }
.press-card__img { display: block; aspect-ratio: 3 / 4; background: #f5f1ea; overflow: hidden; }
.press-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform var(--t-mid); }
.press-card__link:hover .press-card__img img { transform: scale(1.03); }
.press-card__meta { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-3) var(--sp-4); border-top: 3px solid var(--clr-primary-vivid); }
.press-card__meta strong { font-family: var(--ff-serif); color: var(--clr-navy); font-size: 1rem; line-height: 1.3; }
.press-card__meta time { font-size: 0.8125rem; color: var(--clr-primary); font-weight: 600; }

/* Viewer: the clipping at readable size, scrolls if very tall */
.press-viewer { max-width: 900px; padding: var(--sp-4); }
.press-viewer__img { width: 100%; height: auto; border-radius: var(--r); margin-top: var(--sp-8); }
.press-viewer__caption { margin-top: var(--sp-3); text-align: center; font-weight: 600; color: var(--clr-navy); }

/* ── Feature "points" (Feature 1: Panch Parivartan) — text shown directly, no popups ── */
.feature-points { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); text-align: left; }
.feature-point {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3) var(--sp-4);
  background: var(--fs-card);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}
.feature-point:hover { border-color: var(--fs-shape); box-shadow: var(--shadow-card); }
.feature-point__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fs-plus);
  color: var(--clr-primary);
}
.feature-point__icon svg { width: 21px; height: 21px; }
.feature-point__body { font-size: 0.8125rem; line-height: 1.6; color: var(--clr-text-muted); }
.feature-point__body strong { display: block; margin-bottom: 2px; font-family: var(--ff-serif); font-size: 0.9375rem; color: var(--clr-navy); }
@media (min-width: 900px) {
  .feature-points { grid-template-columns: repeat(2, 1fr); }
  .feature-point:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* 5th card spans the row */
}

/* ── Contact page info list (public/contact.php) ── */
.contact-info { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-5); }
.contact-info li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-info__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--clr-primary-light);
  color: var(--clr-primary);
}
.contact-info strong { display: block; color: var(--clr-navy); font-family: var(--ff-serif); }
.contact-info address,
.contact-info a { font-style: normal; color: var(--clr-text-muted); font-size: 0.9375rem; line-height: 1.6; }
.contact-info a:hover { color: var(--clr-primary); }

/* Shared info box — legal / registration numbers (Contact & Donate pages) */
.info-box {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  background: var(--clr-surface-alt);
  border: 1px solid var(--clr-border-light);
  border-left: 4px solid var(--clr-primary-vivid);
  border-radius: var(--r-md);
}
.info-box h3 { font-family: var(--ff-serif); font-size: 1.0625rem; color: var(--clr-navy); margin-bottom: var(--sp-3); }
.info-box dl > div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-2) 0; border-bottom: 1px dashed var(--clr-border); font-size: 0.875rem; }
.info-box dt { color: var(--clr-text-muted); }
.info-box dd { font-weight: 600; color: var(--clr-text); font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.02em; text-align: right; overflow-wrap: anywhere; }
.info-box .btn { margin-top: var(--sp-4); }

/* ── Donate page (public/donate.php) ── */
.donate-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); align-items: start; }
.donate-side { display: flex; flex-direction: column; gap: var(--sp-5); }
.donate-side .info-box { margin-top: 0; }
.donate-card {
  padding: var(--sp-6);
  background: var(--clr-surface-card);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.donate-card h2 { font-family: var(--ff-serif); font-size: 1.25rem; color: var(--clr-navy); margin-bottom: var(--sp-3); }
.donate-card p { font-size: 0.9375rem; line-height: 1.75; }
.donate-card--bank { border-top: 4px solid var(--clr-primary-vivid); }
.donate-dl > div { padding: var(--sp-3) 0; border-bottom: 1px solid var(--clr-border-light); }
.donate-dl > div:last-child { border-bottom: 0; }
.donate-dl dt { font-size: 0.8125rem; color: var(--clr-text-muted); }
.donate-dl dd { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: 2px; }
.donate-val { font-size: 1.0625rem; font-weight: 700; color: var(--clr-navy); letter-spacing: 0.02em; overflow-wrap: anywhere; }
.copy-btn {
  flex-shrink: 0;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--clr-primary-vivid);
  color: var(--clr-primary);
  font-size: 0.75rem;
  font-weight: 600;
  transition: background var(--t-fast), color var(--t-fast);
}
.copy-btn:hover { background: var(--clr-primary-light); }
.copy-btn.is-copied { background: var(--clr-success); border-color: var(--clr-success); color: #fff; }
.donate-contact { display: flex; flex-direction: column; gap: 4px; margin-top: var(--sp-3); font-weight: 600; }
.donate-contact a { color: var(--clr-primary); }
@media (min-width: 900px) {
  .donate-grid { grid-template-columns: 1.1fr 1fr; }
}

/* ── Inner-page title (all pages except the homepage) ──
   Compact, on the page's own background, with the title in an orange pill */
.page-banner {
  padding: var(--sp-6) var(--sp-4) var(--sp-1);
  text-align: center;
  background: transparent;
}
.page-banner__title {
  display: inline-block;
  padding: 0.4rem 1.75rem;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #EA580C, var(--clr-primary));
  color: #fff;
  font-family: var(--ff-serif);
  font-size: clamp(1.25rem, 1.2vw + 0.9rem, 1.625rem);   /* large bold text: white on orange ≥ 3:1 */
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 4px 14px -4px rgba(194, 65, 12, 0.45);
}
.page-banner__sub {
  max-width: 62ch;
  margin: var(--sp-3) auto 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--clr-text-muted);
}

/* ── Cookie consent pop-up (footer.php) — bottom bar, non-blocking ── */
.consent {
  position: fixed;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: var(--z-toast);
  max-width: 960px;
  margin: 0 auto;
  background: var(--clr-surface-card);
  border: 1px solid var(--clr-border);
  border-top: 4px solid var(--clr-primary-vivid);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 40px -12px rgba(67, 20, 7, 0.35);
  animation: consent-in 0.4s var(--ease-spring);
}
.consent[hidden] { display: none; }
.consent__inner { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); }
.consent__text strong { font-family: var(--ff-serif); color: var(--clr-navy); font-size: 1.0625rem; }
.consent__text p { margin-top: var(--sp-1); font-size: 0.875rem; line-height: 1.6; color: var(--clr-text-muted); }
.consent__text a { color: var(--clr-primary); font-weight: 600; text-decoration: underline; }
.consent__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
@media (min-width: 768px) {
  .consent__inner { flex-direction: row; align-items: center; }
  .consent__actions { flex-shrink: 0; }
}
@keyframes consent-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Buttons styled as links (footer "Cookie settings", policy page) */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.footer-legal { margin-top: var(--sp-2); font-size: 0.8125rem; }
.footer-legal a, .footer-legal .link-btn { color: rgba(255, 255, 255, 0.75); }
.footer-legal a:hover, .footer-legal .link-btn:hover { color: var(--clr-gold); }

/* Google Map placeholder (Contact page) */
.map-embed {
  margin-top: var(--sp-6);
  height: 220px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--clr-border-light);
  box-shadow: var(--shadow-card);
  background: var(--clr-surface-alt) url("../images/dnyan-faint.png") center / 90px auto no-repeat;
}
.map-embed__placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); padding: var(--sp-4); text-align: center; }
.map-embed__placeholder p { font-size: 0.8125rem; color: var(--clr-text-muted); max-width: 32ch; }

/* Contact form consent checkbox */
.form-consent label { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: 0.8125rem; line-height: 1.55; color: var(--clr-text-muted); cursor: pointer; }
.form-consent input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--clr-primary); }
.form-consent a { color: var(--clr-primary); text-decoration: underline; }

/* ── Policy pages (privacy.php, cookies.php) ── */
.policy { max-width: 820px; margin: 0 auto; }
.policy__intro { font-size: 1rem; line-height: 1.8; margin-bottom: var(--sp-6); }
.policy__section + .policy__section { margin-top: var(--sp-6); }
.policy h2 { font-family: var(--ff-serif); font-size: 1.1875rem; color: var(--clr-navy); margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 2px solid var(--clr-border-light); }
.policy p, .policy li { font-size: 0.9375rem; line-height: 1.8; color: var(--clr-text-muted); }
.policy p + p, .policy ul + p, .policy p + ul { margin-top: var(--sp-3); }
.policy ul { padding-left: var(--sp-5); list-style: disc; }
.policy li + li { margin-top: var(--sp-2); }
.policy a { color: var(--clr-primary); text-decoration: underline; }
.policy strong { color: var(--clr-text); }
.policy__links { margin-top: var(--sp-10); padding-top: var(--sp-4); border-top: 1px solid var(--clr-border-light); text-align: center; font-size: 0.875rem; }
.policy__links .link-btn { color: var(--clr-primary); }

/* ── Top bar in the Indian tricolour: saffron band · white band (content) · green band ──
   Content sits on the white band, so text/icons switch to dark warm tones. */
.topbar {
  background: #FFFFFF;
  color: #431407;
  border-top: 8px solid #FF9933;     /* saffron */
  border-bottom: 8px solid #138808;  /* India green */
}
.topbar__contact a,
.topbar__contact span { color: #431407; font-weight: 500; }
.topbar__contact a:hover { color: var(--clr-primary); }
.topbar__social a { background: #FFF1E2; color: var(--clr-primary); }
.topbar__social a:hover { background: #FF9933; color: #fff; filter: none; }
.topbar__social a.topbar__link { background: var(--clr-primary); color: #fff; }
.topbar__social a.topbar__link:hover { background: #A8380B; color: #fff; }
.topbar__social a.topbar__link.is-active { background: #138808; color: #fff; }
.topbar__social a:hover .yt-play { fill: #FF9933; }   /* keep YouTube's play triangle visible on hover */

/* Hero slide pause / play (next to the dots) */
.hero__dots { align-items: center; }
.hero__pause {
  width: 28px; height: 28px; margin-left: var(--sp-2);
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--clr-primary);
  border: 1px solid var(--clr-border);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.hero__pause:hover { background: var(--clr-primary); color: #fff; }
.hero__pause:focus-visible { outline: 2px solid var(--clr-primary); outline-offset: 2px; }
.hero__pause svg { width: 14px; height: 14px; }
.hero__play-icon { display: none; }
.hero__pause.is-paused .hero__pause-icon { display: none; }
.hero__pause.is-paused .hero__play-icon { display: block; }

/* "Play video" button — shown when the hero video doesn't autoplay (bottom-right of the hero) */
.hero__play-video {
  position: absolute;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.45rem 1rem 0.45rem 0.6rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--clr-navy);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--clr-border);
  box-shadow: 0 6px 18px -6px rgba(67, 20, 7, 0.35);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.hero__play-video[hidden] { display: none; }
.hero__play-video svg {
  width: 26px; height: 26px; padding: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
}
.hero__play-video:hover { background: var(--clr-primary); color: #fff; }
.hero__play-video:hover svg { background: #fff; color: var(--clr-primary); }
.hero__play-video:focus-visible { outline: 3px solid var(--clr-primary); outline-offset: 3px; }

/* ── "Join Our Journey" banner in the tricolour (like the top bar):
   saffron band · white middle with a faint saffron→green wash · green band ── */
.cta-section {
  background: linear-gradient(180deg,
    #FFC48A 0%,      /* saffron, stronger */
    #FFE2C2 28%,
    #FFFFFF 44%,     /* narrow white band */
    #FFFFFF 56%,
    #D4EECF 72%,
    #A9DBA0 100%);   /* green, stronger */
  border-top: 10px solid #FF9933;     /* saffron */
  border-bottom: 10px solid #138808;  /* India green */
}
.cta-section::before { color: rgba(255, 153, 51, 0.07); }   /* motto watermark, faint saffron */
.cta-section__title { color: var(--clr-navy); }
.cta-section__sub { color: var(--clr-text-muted); }
