/* ============================================
   Sri Lakshmi Hayagriva Trust — Homepage Styles
   Indianised palette: saffron, maroon, gold, cream
   ============================================ */

:root {
  --saffron: #f59e0b;
  --saffron-deep: #d97706;
  --maroon: #8a1538;
  --maroon-deep: #5c0a25;
  --gold: #c9a227;
  --gold-soft: #f4d35e;
  --cream: #fff8ec;
  --cream-2: #fdf3dd;
  --ink: #2b1810;
  --ink-soft: #5a463a;
  --muted: #8a7c6f;
  --line: #e9d9b8;
  --green: #0d7a4a;

  --shadow-sm: 0 4px 14px rgba(138, 21, 56, 0.08);
  --shadow-md: 0 12px 30px rgba(138, 21, 56, 0.12);
  --shadow-lg: 0 25px 60px rgba(138, 21, 56, 0.18);

  --radius: 14px;
  --radius-lg: 22px;

  --font-head: 'Playfair Display', 'Tiro Devanagari Sanskrit', serif;
  --font-body: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

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

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

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

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .4px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .35s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: #fff;
  box-shadow: 0 8px 22px rgba(217,119,6,.35);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(217,119,6,.45);
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
}
/* Default ghost button (for light backgrounds) */
.btn--ghost {
  background: transparent;
  color: var(--maroon);
  border-color: var(--maroon);
}
.btn--ghost:hover {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(138,21,56,.25);
}
/* Ghost button auto-light variant on dark sections */
.hero .btn--ghost,
.cta-bar .btn--ghost,
.donate .btn--ghost,
.counters .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.75);
}
.hero .btn--ghost:hover,
.cta-bar .btn--ghost:hover,
.donate .btn--ghost:hover,
.counters .btn--ghost:hover {
  background: #fff;
  color: var(--maroon);
  border-color: #fff;
}
.btn--large { padding: 16px 36px; font-size: 15px; }

/* ============== Top Strip ============== */
.top-strip {
  background: linear-gradient(90deg, var(--maroon-deep), var(--maroon));
  color: #ffe8d2;
  font-size: 13px;
}
.top-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  gap: 16px;
  flex-wrap: wrap;
}
.top-strip__left,
.top-strip__right { display: flex; align-items: center; gap: 6px; }
.top-strip__left span,
.top-strip__right span { display: inline-flex; align-items: center; gap: 6px; }
.top-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.top-strip__link:hover { color: var(--gold-soft); }
.top-strip__ico {
  width: 15px;
  height: 15px;
  color: var(--gold-soft);
  flex-shrink: 0;
}
.top-strip__email-short { display: none; }
/* Email address hidden per request — top strip, separator & drawer mailto link */
.top-strip__link--email,
.top-strip .sep,
.main-nav__contact-link[href^="mailto"] { display: none !important; }
.top-strip .sep { opacity: .5; margin: 0 10px; }
.top-strip .sanskrit { color: var(--gold-soft); font-size: 18px; }
.top-strip__right { color: var(--gold-soft); letter-spacing: 1px; }

/* ============== Header ============== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 0 rgba(217,119,6,.15);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
}
.brand__logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  padding: 3px;
  background: var(--cream-2);
  flex-shrink: 0;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  gap: 5px;
}
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--maroon);
  font-size: 20px;
  letter-spacing: .3px;
  white-space: nowrap;
}
.brand__tag {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}
.main-nav a {
  display: block;
  padding: 10px 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  position: relative;
  transition: color .25s ease;
  white-space: nowrap;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 11px; right: 11px;
  bottom: 4px;
  height: 2px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.main-nav a:hover { color: var(--maroon); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav .nav-cta {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: #fff;
  padding: 10px 22px;
  margin-left: 6px;
}
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover { background: linear-gradient(135deg, var(--maroon), var(--maroon-deep)); color: #fff; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px; height: 42px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  transition: background .2s ease;
}
.nav-toggle:hover { background: var(--cream-2); }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--maroon);
  border-radius: 2px;
  transition: .3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* In-drawer header (Menu label + close button), shown only on mobile */
.main-nav__header { display: none; }
.main-nav__title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--maroon);
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 0;
  background: var(--cream-2);
  color: var(--maroon);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  font-family: var(--font-body);
  font-weight: 300;
}
.nav-close:hover {
  background: var(--maroon);
  color: #fff;
  transform: rotate(90deg);
}

/* Backdrop behind drawer — closes on click */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 5, 10, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 85;
}
.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Lock body scroll while drawer is open */
body.nav-open { overflow: hidden; }

/* In-drawer contact section (shown on mobile/tablet only) */
.main-nav__contact { display: none; }

/* ============== Hero ============== */
.hero {
  position: relative;
  height: 86vh;
  min-height: 560px;
  overflow: hidden;
}
.hero__slider {
  position: absolute; inset: 0;
}
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 6s ease;
  display: flex;
  align-items: center;
}
.hero__slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero__overlay {
  position: absolute; inset: 0;
  /* No color tint — only a neutral dark fade on the left side for text legibility */
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 75%);
}
.hero__content {
  position: relative;
  color: #fff;
  max-width: 760px;
  z-index: 2;
}
.hero__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 22px;
  animation: fadeUp 1s .2s both;
}
.hero__content h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  margin-bottom: 18px;
  font-weight: 800;
  text-shadow: 0 4px 30px rgba(0,0,0,.3);
  animation: fadeUp 1s .4s both;
}
.hero__content p {
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 580px;
  margin-bottom: 32px;
  opacity: .95;
  animation: fadeUp 1s .6s both;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 1s .8s both;
}

.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.25);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
  transition: all .25s ease;
  backdrop-filter: blur(4px);
}
.hero__nav:hover { background: var(--saffron); border-color: var(--saffron); }
.hero__nav--prev { left: 22px; }
.hero__nav--next { right: 22px; }

.hero__dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero__dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: .25s ease;
}
.hero__dots button.active {
  background: var(--gold-soft);
  transform: scale(1.4);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============== Highlights ============== */
.highlights {
  margin-top: -60px;
  position: relative;
  z-index: 5;
  padding: 0 24px 60px;
}
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.highlight {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--saffron);
  transition: transform .35s ease, box-shadow .35s ease;
}
.highlight:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--maroon);
}
.highlight__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff3d6, #fce0a8);
  color: var(--maroon);
  border-radius: 18px;
  box-shadow: inset 0 -3px 0 rgba(217,119,6,.2);
  transition: transform .35s ease, color .35s ease, background .35s ease;
}
.highlight__icon svg { width: 32px; height: 32px; }
.highlight:hover .highlight__icon {
  transform: rotate(-6deg) scale(1.06);
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  color: #fff;
}
.highlight h4 { color: var(--maroon); font-family: var(--font-head); margin-bottom: 8px; font-size: 19px; }
.highlight p { color: var(--ink-soft); font-size: 14px; }

@media (min-width: 769px) {
  .highlight--education {
    padding-left: 42px;
    padding-right: 42px;
  }
}

/* ============== Section Generic ============== */
.section { padding: 90px 0; position: relative; }
.section--alt {
  background:
    linear-gradient(var(--cream-2), var(--cream-2)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(201,162,39,.07) 18px 19px);
  background-blend-mode: multiply;
}
.section--alt::before, .section--alt::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'><path d='M0 20 L20 0 L40 20 Z' fill='%23fdf3dd' stroke='%23c9a227' stroke-width='1'/></svg>");
  background-size: 20px 18px;
  opacity: .35;
}
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; transform: scaleY(-1); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-eyebrow {
  display: inline-block;
  color: var(--saffron-deep);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--maroon);
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-title em {
  font-style: italic;
  color: var(--saffron-deep);
  position: relative;
}
.section-sub { color: var(--ink-soft); font-size: 16px; }

/* ============== About ============== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.about__media {
  position: relative;
  padding: 30px 30px 30px 0;
}
.about__media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
  height: 460px;
  position: relative;
}
.about__media .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.about__media .frame:hover img { transform: scale(1.05); }
.about__media .frame--small {
  position: absolute;
  bottom: -10px; right: -10px;
  height: 200px;
  width: 60%;
  border-color: var(--gold-soft);
  border-width: 6px;
}
.about__stamp {
  position: absolute;
  top: 10px; left: -30px;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  color: #fff;
  width: 110px; height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--cream);
  transform: rotate(-8deg);
}
.about__since { font-size: 11px; letter-spacing: 3px; }
.about__year { font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1; }

.about__text p { color: var(--ink-soft); margin-bottom: 18px; }
.about__points {
  list-style: none;
  margin: 26px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.about__points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.about__points li span {
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

/* ============== Counters ============== */
.counters {
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 50%, #6b1530 100%);
  position: relative;
  padding: 60px 0;
  color: #fff;
  overflow: hidden;
}
.counters::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(245,158,11,.18), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(244,211,94,.15), transparent 35%);
}
.counters__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.counter__num {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 64px);
  color: var(--gold-soft);
  font-weight: 800;
  line-height: 1;
}
.counter__num::after { content: '+'; margin-left: 4px; }
.counter__label {
  margin-top: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  opacity: .85;
}

/* ============== VMV ============== */
.vmv__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vmv__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: all .35s ease;
  position: relative;
}
.vmv__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, var(--gold), transparent 50%, var(--saffron));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
}
.vmv__card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.vmv__card:hover::before { opacity: 1; }
.vmv__card--hl {
  background: linear-gradient(155deg, var(--maroon), var(--maroon-deep));
  color: #fff;
  border: 0;
  transform: scale(1.03);
}
.vmv__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff3d6, #fce0a8);
  color: var(--maroon);
  border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(217,119,6,.2);
  transition: transform .35s ease;
}
.vmv__icon svg { width: 36px; height: 36px; }
.vmv__card:hover .vmv__icon { transform: rotate(-6deg) scale(1.06); }
.vmv__card h3 { font-family: var(--font-head); color: var(--maroon); font-size: 24px; margin-bottom: 10px; }
.vmv__card p { color: var(--ink-soft); font-size: 14.5px; }

/* Highlighted (Mission) card — must come AFTER .vmv__card h3/p to win source-order */
.vmv__card--hl h3,
.vmv__card--hl p { color: #fff; }
.vmv__card--hl .vmv__icon {
  background: rgba(255,255,255,.16);
  color: var(--gold-soft);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
}

/* ============== Focus / Facilities Card Grid ============== */
.focus__grid, .facilities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.facilities__grid { grid-template-columns: repeat(4, 1fr); }
.focus__card, .facility {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--line);
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}
.focus__card::before, .facility::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 4px; width: 0;
  background: linear-gradient(90deg, var(--saffron), var(--maroon));
  transition: width .4s ease;
}
.focus__card:hover, .facility:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.focus__card:hover::before, .facility:hover::before { width: 100%; }
.focus__ico, .facility__ico {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff3d6, #fce0a8);
  color: var(--maroon);
  border-radius: 16px;
  box-shadow: inset 0 -3px 0 rgba(217,119,6,.2);
  transition: transform .35s ease, color .35s ease, background .35s ease;
}
.focus__ico svg, .facility__ico svg { width: 30px; height: 30px; }
.focus__card:hover .focus__ico,
.facility:hover .facility__ico {
  transform: rotate(-6deg) scale(1.06);
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  color: #fff;
}
.focus__card h4, .facility h4 {
  font-family: var(--font-head);
  color: var(--maroon);
  font-size: 18px;
  margin-bottom: 8px;
}
.focus__card p, .facility p {
  color: var(--ink-soft);
  font-size: 14px;
}

/* ============== School Section ============== */
.school__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.school__text p { color: var(--ink-soft); margin-bottom: 22px; }
.school__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-bottom: 28px;
}
.school__features div {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
}
.school__features span {
  color: var(--saffron-deep);
  font-size: 16px;
}
.school__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.school__media {
  display: grid;
  gap: 18px;
}
.school__img-big {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
  height: 380px;
}
.school__img-big img { width: 100%; height: 100%; object-fit: cover; }
.school__img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.school__img-row img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
}

/* ============== Activities ============== */
.activities__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.activity {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 220px 1fr;
  transition: all .35s ease;
  border: 1px solid var(--line);
}
.activity:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.activity__img { overflow: hidden; }
.activity__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.activity:hover .activity__img img { transform: scale(1.08); }
.activity__body { padding: 26px 24px; }
.chip {
  display: inline-block;
  background: var(--cream-2);
  color: var(--saffron-deep);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}
.activity h3 {
  font-family: var(--font-head);
  color: var(--maroon);
  font-size: 22px;
  margin-bottom: 8px;
}
.activity p { color: var(--ink-soft); font-size: 14px; }

/* ============== Awards ============== */
.awards__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.award {
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--cream-2));
  border-radius: var(--radius);
  padding: 30px 20px;
  border: 1px dashed var(--gold);
  transition: all .35s ease;
}
.award:hover { border-style: solid; transform: translateY(-6px); box-shadow: var(--shadow-md); }
.award__ico { font-size: 42px; margin-bottom: 8px; }
.award h4 { color: var(--maroon); font-family: var(--font-head); font-size: 17px; margin-bottom: 6px; }
.award p { font-size: 13px; color: var(--ink-soft); }

/* ============== CTA Bar ============== */
.cta-bar {
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  position: relative;
  overflow: hidden;
}
.cta-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 50%, rgba(255,255,255,.15), transparent 30%);
}
.cta-bar__inner {
  padding-top: 50px;
  padding-bottom: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-bar h3 {
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 6px;
}
.cta-bar p { color: rgba(255,255,255,.9); font-size: 14px; }
.cta-bar__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============== Curriculum ============== */
.curriculum__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.curriculum__text p { color: var(--ink-soft); margin-bottom: 22px; }
.curriculum__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.curriculum__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: all .25s ease;
}
.curriculum__list li:hover { border-color: var(--saffron); transform: translateX(4px); }
.curriculum__list li span {
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.curriculum__media img {
  border-radius: var(--radius-lg);
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* ============== Gallery ============== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 220px;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.gallery__item::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(138,21,56,.85), rgba(217,119,6,.6));
  color: #fff;
  font-size: 48px;
  font-weight: 300;
  opacity: 0;
  transition: opacity .35s ease;
}
.gallery__item:hover img { transform: scale(1.1); }
.gallery__item:hover::after { opacity: 1; }

/* ============== Donate ============== */
.donate {
  padding: 100px 0;
  background:
    linear-gradient(135deg, rgba(92,10,37,.92), rgba(217,119,6,.85)),
    url('IMAGES/lord-hayagriva.jpg') center/cover fixed;
  color: #fff;
  position: relative;
}
.donate__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.donate__eyebrow { color: var(--gold-soft); }
.donate .section-title { color: #fff; }
.donate__text p { margin-bottom: 24px; opacity: .95; }
.donate__bank {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-size: 14px;
  backdrop-filter: blur(6px);
}
.donate__bank small { opacity: .8; }
.donate__cta { text-align: center; }
.donate__ring {
  width: 200px; height: 200px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 6px dashed var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 25s linear infinite;
}
.donate__omg {
  font-size: 110px;
  color: var(--gold-soft);
  animation: spin 25s linear infinite reverse;
  font-family: var(--font-head);
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.donate__note {
  font-size: 13px;
  margin-top: 14px;
  opacity: .8;
}

/* ============== Get Involved ============== */
.involve__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.involve__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--line);
  text-align: center;
  transition: all .35s ease;
}
.involve__card:hover {
  background: linear-gradient(160deg, #fff, var(--cream-2));
  border-color: var(--saffron);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.involve__card h4 {
  font-family: var(--font-head);
  color: var(--maroon);
  font-size: 19px;
  margin-bottom: 10px;
}
.involve__card p { color: var(--ink-soft); font-size: 14px; }

/* ============== Contact ============== */
.contact { overflow-x: clip; }

/* Embedded Zoho forms — completely strip any card/wrapper styling
   so only the iframe is visible. !important needed because the base
   .contact__form rule sets background/border/shadow on the same el. */
.contact__form--embed,
.form-embed {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.contact__form--embed {
  display: block;
}
.form-embed {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  box-sizing: border-box;
}
.contact__form--embed iframe,
.form-embed iframe {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: block;
  max-width: 100%;
}

/* Heights — generous enough that the full Zoho form fits without
   triggering the iframe's internal scrollbar */
.form-embed--admission iframe { height: 1500px; }
.form-embed--career iframe { height: 1100px; }
@media (max-width: 1024px) {
  .form-embed--admission iframe { height: 1700px; }
  .form-embed--career iframe { height: 1280px; }
}
@media (max-width: 768px) {
  .form-embed--admission iframe { height: 1900px; }
  .form-embed--career iframe { height: 1480px; }
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
/* Grid children must be allowed to shrink below their intrinsic content width,
   otherwise an unbreakable string (long email) forces the column wider than viewport */
.contact__grid > * { min-width: 0; }

.contact__list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.contact__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
  transition: all .3s ease;
  min-width: 0;
}
.contact__list li > div {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact__list li:hover { border-color: var(--saffron); transform: translateX(6px); }
.contact__list li strong { color: var(--maroon); font-family: var(--font-head); }
.contact__ico {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact__form {
  background: #fff;
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.contact__form h3 {
  font-family: var(--font-head);
  color: var(--maroon);
  margin-bottom: 22px;
  font-size: 24px;
}
.contact__form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; }
.contact__form input,
.contact__form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 14px;
  background: var(--cream);
  transition: border-color .25s ease, background .25s ease;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--saffron);
  background: #fff;
}
.contact__form textarea { resize: vertical; }
.contact__formnote {
  font-size: 13px;
  color: var(--green);
  margin-top: 10px;
  min-height: 18px;
}

/* ============== Footer ============== */
.footer {
  background: linear-gradient(180deg, #2a0f1a 0%, #1a0810 100%);
  color: #d8c4a8;
  padding-top: 70px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.footer__brand img {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--cream-2);
  padding: 4px;
  border: 2px solid var(--gold);
}
.footer__brand strong {
  display: block;
  color: var(--gold-soft);
  font-family: var(--font-head);
  font-size: 18px;
}
.footer__brand span {
  display: block;
  font-size: 12px;
  opacity: .7;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer__col h5 {
  color: var(--gold-soft);
  font-family: var(--font-head);
  margin-bottom: 18px;
  font-size: 17px;
  position: relative;
  padding-bottom: 10px;
}
.footer__col h5::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 2px;
  background: var(--saffron);
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 8px; font-size: 14px; }
.footer__col a {
  color: #d8c4a8;
  transition: color .25s ease, padding .25s ease;
}
.footer__col a:hover { color: var(--gold-soft); padding-left: 4px; }
.footer__col p { font-size: 14px; line-height: 1.7; margin-bottom: 12px; opacity: .85; }
.footer__bottom {
  background: rgba(0,0,0,.3);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__om { color: var(--gold-soft); letter-spacing: 2px; }

/* ============== Back to top ============== */
.back-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all .35s ease;
  z-index: 99;
  font-size: 14px;
}
.back-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-top:hover { transform: translateY(-4px); }

/* ============== Reveal Animation (pure CSS — no JS dependency) ============== */
@keyframes revealIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: revealIn 0.9s ease both;
}
/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ============== Responsive ============== */

/* Tablet & smaller — switch nav to hamburger drawer */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }

  /* Hide the cramped top strip entirely — contact info is now inside the drawer */
  .top-strip { display: none; }

  /* In-drawer Reach Us block */
  .main-nav__contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    min-width: 0;
  }
  .main-nav__contact-title {
    color: var(--saffron-deep);
    font-size: 10.5px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4px;
  }
  .main-nav__contact-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    line-height: 1.3;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .main-nav__contact-link span {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 11.5px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    color: inherit;
  }
  .main-nav__contact-link svg {
    width: 14px;
    height: 14px;
    color: var(--maroon);
    flex-shrink: 0;
    transition: color .25s ease;
  }
  /* Hover only on devices that actually support hover (skip touch — prevents sticky maroon state) */
  @media (hover: hover) {
    .main-nav__contact-link:hover {
      background: var(--maroon);
      color: #fff;
      border-color: var(--maroon);
    }
    .main-nav__contact-link:hover svg { color: var(--gold-soft); }
  }
  /* Brief tap feedback on touch */
  .main-nav__contact-link:active {
    background: var(--maroon);
    color: #fff;
    border-color: var(--maroon);
  }
  .main-nav__contact-link:active svg { color: var(--gold-soft); }
  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    left: auto;
    width: min(340px, 90vw);
    background: #fff;
    padding: 0 18px 24px;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: var(--shadow-lg);
    z-index: 90;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    margin: 0 -18px 8px;
    padding-left: 22px;
    padding-right: 16px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, var(--cream));
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 2px;
  }
  .main-nav a {
    padding: 9px 14px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
  }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta {
    margin-top: 12px;
    padding: 11px 14px;
    text-align: center;
    border-radius: 999px;
    border-bottom: 0;
  }

  /* Layout grids — collapse two-column sections */
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
  .vmv__grid { grid-template-columns: 1fr; }
  .vmv__card--hl { transform: none; }
  .about__grid, .school__grid, .curriculum__grid, .contact__grid, .donate__inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about__media .frame { height: 360px; }
  .focus__grid, .facilities__grid { grid-template-columns: repeat(2, 1fr); }
  .activities__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .awards__grid { grid-template-columns: repeat(2, 1fr); }
  .involve__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .counters__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* Mobile portrait */
@media (max-width: 768px) {
  .container { padding: 0 18px; }

  /* Top strip mobile — smaller text */
  .top-strip__inner {
    font-size: 12.5px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  /* Header — more breathing room, prominent logo */
  .site-header { box-shadow: 0 2px 12px rgba(138,21,56,.08); }
  .header-inner { padding-top: 14px; padding-bottom: 14px; gap: 14px; }
  .brand { gap: 12px; }
  .brand__name { font-size: 17px; }
  .brand__tag { font-size: 10.5px; letter-spacing: 1.2px; }
  .brand__logo { width: 52px; height: 52px; }

  .hero { height: auto; min-height: 540px; padding: 80px 0 100px; }
  .hero__nav { display: none; }
  .hero__content h1 { font-size: 32px; }
  .hero__dots { bottom: 18px; }

  .highlights { margin-top: 30px; padding-bottom: 40px; }
  .highlights__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .highlight { padding: 22px 16px; }
  .highlight__icon { width: 56px; height: 56px; }
  .highlight__icon svg { width: 26px; height: 26px; }

  .section { padding: 60px 0; }
  .section__head { margin-bottom: 40px; }
  .about__media { padding: 0; }
  .about__media .frame--small { display: none; }
  .about__media .frame { height: 320px; }
  .about__stamp { width: 86px; height: 86px; top: 14px; left: 14px; }
  .about__year { font-size: 26px; }
  .about__points { grid-template-columns: 1fr; }

  .focus__grid, .facilities__grid, .involve__grid, .awards__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery__item { height: 160px; }
  .focus__card, .facility, .involve__card, .award { padding: 22px 16px; }
  .focus__ico, .facility__ico { width: 54px; height: 54px; }
  .focus__ico svg, .facility__ico svg { width: 26px; height: 26px; }

  .counters__grid { grid-template-columns: repeat(2, 1fr); }
  .counter__num { font-size: 38px; }

  .school__features, .curriculum__list { grid-template-columns: 1fr; }
  .activity { grid-template-columns: 1fr; }
  .activity__img { height: 220px; }
  .donate__bank { grid-template-columns: 1fr; }
  .donate__ring { width: 160px; height: 160px; }
  .donate__omg { font-size: 80px; }
  .school__img-big { height: 240px; }
  .school__img-row img, .curriculum__media img { height: 180px; }

  /* Contact form — stack two-column row + slimmer padding to prevent overflow */
  .contact__form { padding: 28px 20px; }
  .contact__form .row { grid-template-columns: 1fr; gap: 0; }
  .contact__list li { padding: 14px 16px; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* Small phones */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__content h1 { font-size: 26px; line-height: 1.15; }
  .hero__content p { font-size: 14.5px; }
  .hero__eyebrow { font-size: 10.5px; letter-spacing: 2px; padding: 6px 14px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .btn { padding: 11px 20px; font-size: 12px; }
  .btn--large { padding: 14px 26px; font-size: 13px; }
  .section-title { font-size: 24px; }
  .section-sub { font-size: 14px; }
  .counter__num { font-size: 32px; }

  /* Single column on very small screens */
  .highlights__grid,
  .focus__grid,
  .facilities__grid,
  .involve__grid,
  .awards__grid,
  .gallery__grid { grid-template-columns: 1fr; }
  .counters__grid { grid-template-columns: 1fr; gap: 24px; }

  .brand__name { font-size: 15.5px; }
  .brand__tag { display: none; }
  .brand__logo { width: 46px; height: 46px; }
  .header-inner { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .top-strip__inner { font-size: 12px; padding-top: 7px; padding-bottom: 7px; }

  /* On tiny phones, fall back to envelope icon only (no "Email Us" label) */
  .top-strip__email-short { display: none; }
  .top-strip__link--email {
    padding: 0;
    width: 30px;
    height: 30px;
    justify-content: center;
    border-radius: 50%;
  }
  .top-strip__link--email .top-strip__ico { width: 14px; height: 14px; }

  .cta-bar__inner { padding-top: 36px; padding-bottom: 36px; }
  .cta-bar h3 { font-size: 20px; }
  .cta-bar__btns { width: 100%; }
  .cta-bar__btns .btn { flex: 1 1 auto; }

  .activity__img { height: 180px; }
  .gallery__item { height: 200px; }

  .contact__form { padding: 20px 14px; }
  .contact__form input,
  .contact__form textarea { padding: 12px 12px; font-size: 14px; }
  .contact__list li { padding: 12px 14px; font-size: 13.5px; gap: 12px; }
  .contact__ico { width: 38px; height: 38px; font-size: 17px; }

  .back-top { width: 38px; height: 38px; right: 10px; bottom: 10px; font-size: 12px; }
}

/* Universal safety — nothing should overflow the viewport horizontally */
img, svg, video, iframe, form, input, textarea {
  max-width: 100%;
}

/* ==========================================================================
   SUBPAGE COMPONENTS
   ========================================================================== */

/* ----- Page Banner ----- */
.page-banner {
  position: relative;
  padding: 88px 0 72px;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.page-banner__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(40,7,16,.78), rgba(92,10,37,.82)),
    radial-gradient(circle at 80% 120%, rgba(217,119,6,.35), transparent 55%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner__eyebrow {
  display: inline-block;
  color: var(--gold-soft);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.page-banner h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 4px 26px rgba(0,0,0,.35);
}
.breadcrumb {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gold-soft); transition: color .2s ease; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .6; }

.main-nav a.is-current { color: var(--maroon); }
.main-nav a.is-current::after { transform: scaleX(1); }

/* ----- Prose / lead ----- */
.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 820px;
  margin: 0 auto 10px;
  text-align: center;
}
.rich p { color: var(--ink-soft); margin-bottom: 16px; }
.rich h3 {
  font-family: var(--font-head);
  color: var(--maroon);
  font-size: 22px;
  margin: 26px 0 12px;
}
.rich ul { list-style: none; margin: 14px 0 20px; display: grid; gap: 10px; }
.rich ul li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 15px; }
.rich ul li::before { content: "\2756"; position: absolute; left: 0; top: 0; color: var(--saffron-deep); }

/* ----- Split (image + text) ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img {
  width: 100%; height: 420px; object-fit: cover;
  border-radius: var(--radius-lg); border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.split__text h2 { margin-bottom: 14px; }

/* ----- Fact cards ----- */
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--saffron);
  border-radius: 12px; padding: 22px;
}
.fact strong { display: block; color: var(--maroon); font-family: var(--font-head); font-size: 15px; margin-bottom: 4px; }
.fact span { font-size: 14px; color: var(--ink-soft); }

/* ----- Timeline ----- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--saffron), var(--maroon)); }
.timeline__item { position: relative; padding-bottom: 30px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -34px; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--saffron); border: 4px solid var(--cream); box-shadow: 0 0 0 2px var(--gold);
}
.timeline__year { font-family: var(--font-head); color: var(--saffron-deep); font-weight: 700; font-size: 15px; }
.timeline__item h4 { color: var(--maroon); font-family: var(--font-head); font-size: 19px; margin: 4px 0 6px; }
.timeline__item p { color: var(--ink-soft); font-size: 14.5px; }

/* ----- Trustees ----- */
.trustees__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trustee { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 24px; text-align: center; transition: all .35s ease; }
.trustee:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.trustee__avatar {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--maroon)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 30px; font-weight: 700; box-shadow: var(--shadow-sm);
}
.trustee h4 { font-family: var(--font-head); color: var(--maroon); font-size: 19px; margin-bottom: 4px; }
.trustee__role { color: var(--saffron-deep); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.trustee p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }
.trustee--founder .trustee__avatar { background: linear-gradient(135deg, var(--maroon), var(--maroon-deep)); }

/* ----- Steps ----- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px 24px; position: relative; transition: all .35s ease; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--maroon)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; box-shadow: var(--shadow-sm);
}
.step h4 { font-family: var(--font-head); color: var(--maroon); font-size: 18px; margin: 12px 0 8px; }
.step p { color: var(--ink-soft); font-size: 14px; }

/* ----- Gallery filter + grid ----- */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.gallery-filter button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 500; transition: all .25s ease;
}
.gallery-filter button:hover { border-color: var(--saffron); color: var(--maroon); }
.gallery-filter button.active { background: linear-gradient(135deg, var(--saffron), var(--maroon)); color: #fff; border-color: transparent; }
.gallery-page__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-page__item { position: relative; border-radius: var(--radius); overflow: hidden; height: 220px; border: 3px solid #fff; box-shadow: var(--shadow-sm); cursor: pointer; }
.gallery-page__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery-page__item::after {
  content: "\2295"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(138,21,56,.82), rgba(217,119,6,.6)); color: #fff; font-size: 40px; opacity: 0; transition: opacity .3s ease;
}
.gallery-page__item:hover img { transform: scale(1.1); }
.gallery-page__item:hover::after { opacity: 1; }
.gallery-page__item.is-hidden { display: none; }

/* ----- Lightbox ----- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(20,5,10,.92); padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer;
  border-radius: 50%; width: 50px; height: 50px; font-size: 22px; display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--saffron); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ----- Contact map ----- */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); height: 100%; min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ----- Subpage responsive ----- */
@media (max-width: 1024px) {
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .trustees__grid { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .split__media img { height: 320px; }
  .gallery-page__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .page-banner { padding: 64px 0 52px; }
  .fact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery-page__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-page__item { height: 150px; }
  .lead { font-size: 16px; }
}
@media (max-width: 480px) {
  .gallery-page__grid { grid-template-columns: 1fr; }
  .gallery-page__item { height: 210px; }
  .split__media img { height: 240px; }
}

/* ==========================================================================
   MEDIA CARDS (image + floating icon badge)
   ========================================================================== */
.media-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.media-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.media-card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.media-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.media-card:hover .media-card__img img { transform: scale(1.08); }
.media-card__img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(40,7,16,.55), rgba(40,7,16,0) 55%);
}
.media-card__icon {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
  border: 2px solid rgba(255,255,255,.85);
  transition: transform .4s ease;
}
.media-card:hover .media-card__icon { transform: translateY(-3px) rotate(-6deg); }
.media-card__icon svg { width: 24px; height: 24px; }
.media-card__body { padding: 22px 24px 26px; }
.media-card__body h4 { font-family: var(--font-head); color: var(--maroon); font-size: 20px; margin-bottom: 8px; }
.media-card__body p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.media-card__chip {
  display: inline-block;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  color: #fff; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600; padding: 4px 11px; border-radius: 999px; margin-bottom: 8px;
}

/* ==========================================================================
   CARD POLISH — richer icon cards across the site
   ========================================================================== */
.highlight,
.focus__card,
.facility,
.involve__card,
.award,
.step,
.fact,
.trustee {
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(244,211,94,.12), rgba(255,255,255,0) 45%),
    #fff;
}
.highlight:hover,
.focus__card:hover,
.facility:hover,
.involve__card:hover,
.award:hover,
.step:hover,
.fact:hover,
.trustee:hover {
  box-shadow: 0 22px 48px rgba(138,21,56,.16);
}
/* Decorative floral watermark on icon cards */
.focus__card, .facility, .involve__card { position: relative; overflow: hidden; }
.focus__card::after,
.facility::after,
.involve__card::after {
  content: '\2756';
  position: absolute;
  right: 14px; top: 10px;
  font-size: 26px;
  color: var(--gold-soft);
  opacity: .25;
  transition: transform .5s ease, opacity .4s ease;
  pointer-events: none;
}
.focus__card:hover::after,
.facility:hover::after,
.involve__card:hover::after {
  transform: rotate(90deg) scale(1.15);
  opacity: .5;
}
/* Bolder icon badge with soft glow */
.focus__ico, .facility__ico, .highlight__icon {
  box-shadow: inset 0 -3px 0 rgba(217,119,6,.2), 0 6px 16px rgba(217,119,6,.18);
}

/* Involve card with image becomes a media-card; plain involve cards get an icon row */
.involve__card { padding-top: 30px; }

@media (max-width: 1024px) {
  .media-card__body { padding: 36px 20px 24px; }
}
@media (max-width: 768px) {
  .media-card__img { aspect-ratio: 16 / 9; }
}
