/* =========================================================
   Adarsh Sanskrit Vidyapeeth — Premium Design System v3
   Responsive Audit & Fix — July 2026
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,700;1,500&family=Noto+Serif+Devanagari:wght@500;600;700&display=swap');

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  /* Brand Colors */
  --saffron:          #E67E22;
  --saffron-dark:     #C2670F;
  --saffron-light:    #FEF0E3;
  --saffron-glow:     rgba(230,126,34,0.25);

  --green:            #1E5631;
  --green-dark:       #123A20;
  --green-mid:        #2E7047;
  --green-light:      #E7F3EC;
  --green-glow:       rgba(30,86,49,0.2);

  --gold:             #D4AF37;
  --gold-light:       #F9F0CC;
  --gold-glow:        rgba(212,175,55,0.3);

  --cream:            #FBF8F2;
  --warm-white:       #FFFCF8;
  --bg-dark:          #0D1F14;

  --text:             #1A1A1A;
  --text-muted:       #5C5C5C;
  --text-light:       rgba(255,255,255,0.88);
  --border:           rgba(30,86,49,0.12);
  --border-light:     rgba(255,255,255,0.15);

  /* Fonts */
  --font-display:     'Playfair Display', Georgia, serif;
  --font-primary:     'Raleway', sans-serif;
  --font-heading:     'Poppins', sans-serif;
  --font-body:        'Inter', sans-serif;
  --font-deva:        'Noto Serif Devanagari', serif;

  /* Fluid Typography — clamp(min, preferred, max) */
  --fs-xs:   clamp(0.72rem,  0.69rem + 0.15vw, 0.82rem);
  --fs-sm:   clamp(0.85rem,  0.82rem + 0.15vw, 0.95rem);
  --fs-base: clamp(0.95rem,  0.92rem + 0.18vw, 1.08rem);
  --fs-lg:   clamp(1.1rem,   1.04rem + 0.3vw,  1.28rem);
  --fs-xl:   clamp(1.3rem,   1.15rem + 0.7vw,  1.75rem);
  --fs-2xl:  clamp(1.65rem,  1.4rem  + 1.1vw,  2.4rem);
  --fs-3xl:  clamp(2.1rem,   1.8rem  + 1.5vw,  3.1rem);
  --fs-4xl:  clamp(2.6rem,   2.1rem  + 2.5vw,  4.2rem);

  /* Spacing */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 3.5rem;
  --sp-7: 5rem;

  /* Radii */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   36px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-sm: 0 4px 16px rgba(18,58,32,0.08);
  --shadow-md: 0 12px 40px rgba(18,58,32,0.14);
  --shadow-lg: 0 24px 80px rgba(18,58,32,0.20);
  --shadow-xl: 0 40px 100px rgba(0,0,0,0.25);

  --container:  1240px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent font-size inflation on mobile */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Prevent horizontal scrolling at root */
  max-width: 100vw;
}

/* Responsive images — global */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Tables — horizontally scrollable on mobile */
table {
  width: 100%;
  border-collapse: collapse;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-dark);
  /* Prevent text overflow */
  overflow-wrap: break-word;
  word-break: break-word;
}
p {
  font-family: var(--font-body);
  color: var(--text-muted);
  line-height: 1.75;
  overflow-wrap: break-word;
}

/* Focus styles — keyboard accessibility */
:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

/* Responsive section padding */
.section    { padding-block: clamp(1.75rem, 4vw, 3rem); }
.section-sm { padding-block: clamp(1rem, 2.5vw, 1.5rem); }
.section-lg { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-alt { background: var(--cream); }

/* =========================================================
   SKIP LINK
   ========================================================= */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green-dark); color: #fff;
  padding: 0.75rem 1.5rem; z-index: 9999;
  border-radius: 0 0 var(--r-sm) 0;
  font-size: var(--fs-sm);
  white-space: nowrap;
}
.skip-link:focus { left: 0; }

/* =========================================================
   EYEBROW
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-dark);
  margin-bottom: var(--sp-1);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}
.eyebrow.center { justify-content: center; }

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--sp-3);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-2);
}
.section-head p {
  font-size: var(--fs-lg);
  max-width: 55ch;
  margin-inline: auto;
}

/* =========================================================
   BUTTONS — touch-friendly (min 48px height)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  /* Min 48px for touch targets */
  min-height: 48px;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  border-radius: var(--r-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  /* Prevent text overflow in buttons */
  max-width: 100%;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn:hover::after { background: rgba(255,255,255,0.12); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 24px var(--saffron-glow);
}
.btn-primary:hover { box-shadow: 0 10px 36px rgba(230,126,34,0.45); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.8); }

.btn-ghost {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}
.btn-ghost:hover { background: var(--green); color: #fff; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #B8960A 100%);
  color: #fff;
  box-shadow: 0 6px 24px var(--gold-glow);
}
.btn-gold:hover { box-shadow: 0 10px 36px rgba(212,175,55,0.5); }

.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-lg { min-height: 52px; padding: 0.9rem 2rem; font-size: var(--fs-base); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.35rem;
  gap: var(--sp-2);
  min-height: 64px;
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  text-decoration: none;
  /* Prevent brand from taking too much space on small screens */
  min-width: 0;
}
.brand-logo {
  width: clamp(48px, 7vw, 72px);
  height: clamp(48px, 7vw, 72px);
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.brand-text strong {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text span {
  font-size: clamp(0.6rem, 1vw, 0.72rem);
  color: var(--saffron-dark);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop Nav */
.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 0.2rem; flex-wrap: nowrap; }
.main-nav a {
  font-family: var(--font-heading);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--saffron-dark);
  background: var(--saffron-light);
}
.main-nav a[aria-current="page"] { font-weight: 600; }

.header-cta { display: none; }

/* Hamburger — touch-friendly 44x44 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--cream);
  cursor: pointer;
  color: var(--green-dark);
  transition: var(--transition);
  flex-shrink: 0;
  /* Touch area enhancement */
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: var(--green-light); }
.nav-toggle svg { width: 22px; height: 22px; pointer-events: none; }

@media (min-width: 1000px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* =========================================================
   MOBILE NAV DRAWER
   ========================================================= */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, var(--green-dark) 0%, #0D2E18 100%);
  z-index: 600;
  display: flex;
  flex-direction: column;
  padding: var(--sp-3) clamp(1rem, 5vw, var(--sp-4));
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  /* Safe area for notched phones */
  padding-top: max(var(--sp-3), env(safe-area-inset-top));
  padding-bottom: max(var(--sp-3), env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-4);
  flex-shrink: 0;
}
.mobile-nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.mobile-nav-logo img { width: 44px; height: 44px; object-fit: contain; }
.mobile-nav-logo span {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}
.mobile-nav-close {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.1); }
.mobile-nav-close svg { pointer-events: none; }

.mobile-nav ul { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; }
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  /* min 48px touch target */
  min-height: 48px;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] { color: var(--gold); }
.mobile-nav .btn-primary {
  margin-top: var(--sp-4);
  align-self: stretch;
  justify-content: center;
  flex-shrink: 0;
}

/* =========================================================
   TOP TICKER STRIP
   ========================================================= */
.header-ticker {
  background: linear-gradient(90deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 0.45rem 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  /* Prevent height jump */
  min-height: 36px;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--saffron);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.75rem;
  border-radius: var(--r-full);
  margin-left: 1rem;
  z-index: 2;
  white-space: nowrap;
}
.ticker-track {
  display: flex;
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}
.ticker-text {
  display: inline-block;
  white-space: nowrap;
  animation: tickerScroll 25s linear infinite;
  color: #FFFFFF;
  font-size: var(--fs-sm);
  font-family: var(--font-heading);
}
.ticker-text span { color: var(--gold); font-weight: 700; }
.ticker-text .sep { color: rgba(255,255,255,0.5); margin-inline: 0.8rem; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause on hover / reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-text { animation-play-state: paused; }
}
.header-ticker:hover .ticker-text { animation-play-state: paused; }

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(70vh, 92vh, 100vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  transform: scale(1.04);
  animation: heroSlide 1.4s ease-in-out forwards;
}
.hero-slide.active {
  opacity: 1;
  animation: heroZoom 12s ease-in-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13,31,20,0.88) 0%,
    rgba(18,58,32,0.72) 40%,
    rgba(13,31,20,0.55) 70%,
    rgba(0,0,0,0.3) 100%
  );
  z-index: 1;
}
.hero-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: clamp(100px, 20vw, 220px);
  background: linear-gradient(to top, var(--warm-white) 0%, transparent 100%);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  gap: var(--sp-4);
  align-items: center;
  padding-block: clamp(1.5rem, 5vh, 4rem);
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.2fr 0.8fr; }
}

/* Hero content */
.hero-shloka {
  font-family: var(--font-deva);
  font-size: var(--fs-lg);
  color: var(--gold-light);
  margin-bottom: var(--sp-2);
  opacity: 0;
  animation: fadeUp 0.8s 0.3s ease forwards;
}
.hero h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--sp-3);
  opacity: 0;
  animation: slideFromRight 0.8s 0.5s ease forwards;
  overflow-wrap: break-word;
}
.hero h1 em { font-style: italic; color: var(--gold); }

.hero-lede {
  color: rgba(255,255,255,0.82);
  font-size: var(--fs-lg);
  max-width: 48ch;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s ease forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  opacity: 0;
  animation: fadeUp 0.8s 0.9s ease forwards;
}

/* Mobile hero content alignment */
@media (max-width: 899px) {
  .hero-shloka,
  .hero h1,
  .hero-lede {
    text-align: center;
    margin-inline: auto;
  }
  .hero-actions,
  .hero-indicators {
    justify-content: center;
  }
}

/* Slide indicators */
.hero-indicators {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--sp-3);
  opacity: 0;
  animation: fadeUp 0.8s 1.1s ease forwards;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.35);
  border: none; cursor: pointer;
  transition: var(--transition);
  padding: 0;
  /* Accessible touch target */
  position: relative;
}
.hero-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
}
.hero-dot.active {
  width: 28px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* Hero panel */
.hero-panel {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-lg);
  padding: clamp(1rem, 3vw, var(--sp-4));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  animation: fadeUp 0.8s 0.6s ease forwards;
  /* Prevent overflow on small screens */
  min-width: 0;
  width: 100%;
}
.hero-panel-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--sp-2);
  font-weight: 600;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: var(--sp-2);
}
.countdown-unit {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-sm);
  padding: clamp(0.6rem, 2vw, 1rem) 0.4rem;
  text-align: center;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}
.countdown-unit strong {
  display: block;
  font-family: 'Poppins', var(--font-heading), sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.countdown-unit span {
  font-family: 'Poppins', var(--font-heading), sans-serif;
  font-size: clamp(0.6rem, 1vw, 0.7rem);
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-top: 0.25rem;
}
.hero-panel-note {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-3);
}
.hero-panel .btn { width: 100%; justify-content: center; }

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
  /* Hide on very small screens */
}
@media (max-width: 480px) { .scroll-hint { display: none; } }
.scroll-hint svg { width: 20px; height: 20px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats-strip {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding-block: var(--sp-4);
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212,175,55,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(230,126,34,0.12) 0%, transparent 60%);
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-item {
  background: rgba(255,255,255,0.04);
  padding: clamp(1rem, 3vw, var(--sp-3)) var(--sp-2);
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease, background var(--transition);
}
.js .stat-item {
  opacity: 0;
  transform: scale(0.85) translateY(24px);
}
.js .stat-item.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.stat-item:hover { background: rgba(255,255,255,0.09); transform: translateY(-3px); }
.stat-number {
  font-family: 'Poppins', var(--font-heading), sans-serif;
  font-size: var(--fs-3xl);
  color: var(--gold);
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgba(212,175,55,0.3);
}
.stat-label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.72);
  font-family: var(--font-heading);
  font-weight: 500;
}

/* =========================================================
   ACCREDITATION STRIP
   ========================================================= */
.accreditation-strip {
  background: var(--cream);
  border-block: 1px solid var(--border);
  padding-block: var(--sp-2);
}
.accreditation-strip .container {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: center;
}
.accreditation-strip p {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-light);
  border: 1px solid rgba(30,86,49,0.18);
  padding: 0.4rem 1rem;
  border-radius: var(--r-full);
  transition: var(--transition);
  white-space: nowrap;
}
.badge-pill:hover { background: var(--green-dark); color: #fff; }
.badge-pill svg { width: 14px; height: 14px; }

/* =========================================================
   ABOUT / FOUNDER SECTION (Home Page)
   ========================================================= */
.about-section { background: var(--warm-white); overflow: hidden; }
.about-grid {
  display: grid;
  gap: var(--sp-4);
  align-items: start;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.founder-visual { position: relative; }
.founder-img-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.founder-img-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--gold), var(--saffron), var(--green));
  border-radius: inherit;
  z-index: -1;
}
.founder-img-wrap img {
  width: 100%;
  height: clamp(340px, 50vw, 520px);
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--r-lg);
  display: block;
}
.founder-badge {
  position: absolute;
  bottom: var(--sp-2);
  left: var(--sp-2);
  right: var(--sp-2);
  background: rgba(13,31,20,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--r-md);
  padding: 0.75rem var(--sp-2);
  color: #fff;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.founder-badge-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.founder-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  color: #fff;
}
.founder-badge span { font-size: var(--fs-xs); color: var(--gold); }

/* Founder Quote */
.founder-quote {
  margin: var(--sp-3) 0 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, #0D3320 100%);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-3);
}
.founder-quote p {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-style: italic;
  line-height: 1.7;
  margin: 0 0 0.5rem;
  color: rgba(255,255,255,0.92);
}
.founder-quote footer {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Founder Milestones */
.founder-milestones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.milestone-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-1);
  text-align: center;
  transition: box-shadow var(--transition);
}
.milestone-item:hover { box-shadow: var(--shadow-md); }
.milestone-num {
  display: block;
  font-family: var(--font-deva);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.1;
}
.milestone-label {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(0.55rem, 1vw, 0.65rem);
  color: var(--saffron-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

/* Decorative dots */
.deco-dots {
  position: absolute;
  top: -30px; right: -30px;
  width: 140px; height: 140px;
  background-image: radial-gradient(circle, var(--gold) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.25;
  z-index: -1;
  pointer-events: none;
}
.deco-dots-bl {
  position: absolute;
  bottom: -20px; left: -20px;
  width: 100px; height: 100px;
  background-image: radial-gradient(circle, var(--saffron) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.2;
  z-index: -1;
}

.about-content { padding-inline: clamp(0, 2vw, var(--sp-2)); }
.about-content h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-2);
}
.about-content p { margin-bottom: var(--sp-3); font-size: var(--fs-lg); }

.feature-list { display: flex; flex-direction: column; gap: var(--sp-2); margin-block: var(--sp-3); }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--cream);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-item:hover {
  border-color: var(--saffron);
  background: var(--saffron-light);
  transform: translateX(4px);
}
.feature-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--saffron-light), var(--gold-light));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--saffron-dark);
  flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.15rem;
}
.feature-text span { font-size: var(--fs-sm); color: var(--text-muted); }

/* =========================================================
   PROGRAMS / STREAMS
   ========================================================= */
.programs-section { background: var(--cream); }
.programs-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 480px)  { .programs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .programs-grid { grid-template-columns: repeat(4, 1fr); } }

.program-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--saffron);
}
.program-img {
  height: clamp(160px, 20vw, 200px);
  overflow: hidden;
  position: relative;
}
.program-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.program-card:hover .program-img img { transform: scale(1.06); }
.program-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,31,20,0.6) 0%, transparent 60%);
}
.program-body { padding: var(--sp-3); }
.program-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--saffron-light), var(--gold-light));
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-2);
  color: var(--saffron-dark);
}
.program-icon svg { width: 22px; height: 22px; }
.program-body h3 { font-size: var(--fs-lg); margin-bottom: 0.5rem; }
.program-body p { font-size: var(--fs-sm); margin-bottom: 0; }
.program-tag {
  display: inline-block;
  margin-top: var(--sp-2);
  padding: 0.25rem 0.75rem;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--r-full);
  font-family: var(--font-heading);
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-section { background: var(--warm-white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 220px 220px;
  }
  .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
  .gallery-item:nth-child(4) { grid-column: 3 / 5; grid-row: 2 / 3; }
}

.gallery-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  /* Ensure image aspect ratio maintained */
  aspect-ratio: 4/3;
}
@media (min-width: 760px) {
  .gallery-item { aspect-ratio: unset; }
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-2);
  background: linear-gradient(to top, rgba(13,31,20,0.85) 0%, transparent 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* =========================================================
   MISSION / QUOTE SECTION
   ========================================================= */
.mission-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
}
.mission-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(212,175,55,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 50%, rgba(230,126,34,0.12) 0%, transparent 50%);
}
.mission-inner {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, var(--sp-7));
}
.mission-om {
  font-family: var(--font-deva);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: var(--sp-3);
  text-shadow: 0 0 40px rgba(212,175,55,0.5);
}
.mission-inner blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: #fff;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: var(--sp-3);
}
.mission-inner p {
  color: rgba(255,255,255,0.72);
  font-size: var(--fs-lg);
  max-width: 55ch;
  margin-inline: auto;
}

/* =========================================================
   NOTICE + EVENTS
   ========================================================= */
.notice-events { background: var(--cream); }
.notice-events-grid {
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 860px) {
  .notice-events-grid { grid-template-columns: 1fr 1fr; }
}

.notice-board, .events-board {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  /* Prevent overflow content */
  min-width: 0;
}
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.board-header h3 {
  font-size: var(--fs-lg);
  display: flex; align-items: center; gap: 0.5rem;
}
.board-header h3 svg { width: 18px; height: 18px; color: var(--saffron); flex-shrink: 0; }
.board-header a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--saffron-dark);
  white-space: nowrap;
}
.board-header a:hover { text-decoration: underline; }

.notice-list { padding: var(--sp-2) var(--sp-3); display: flex; flex-direction: column; }
.notice-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.notice-item:last-child { border-bottom: none; }
.notice-dot {
  width: 8px; height: 8px;
  background: var(--saffron);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(230,126,34,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(230,126,34,0); }
}
.notice-text {
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: break-word;
}
.notice-date {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  flex-shrink: 0;
  font-family: var(--font-heading);
  white-space: nowrap;
}

.event-list { padding: var(--sp-2) var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.event-item {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  padding: var(--sp-2);
  border-radius: var(--r-sm);
  transition: background var(--transition);
  min-width: 0;
}
.event-item:hover { background: var(--cream); }
.event-date-box {
  min-width: 50px; height: 54px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  border-radius: var(--r-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.event-day {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.event-month {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-heading);
  font-weight: 600;
}
.event-info { min-width: 0; }
.event-info strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.2rem;
  overflow-wrap: break-word;
}
.event-info span { font-size: var(--fs-xs); color: var(--text-muted); }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--green-dark) 0%, var(--green-mid) 50%, var(--saffron-dark) 130%);
  padding-block: clamp(2.5rem, 5vw, var(--sp-7));
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(212,175,55,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(230,126,34,0.15) 0%, transparent 50%);
}
.cta-banner-inner { position: relative; max-width: 700px; margin-inline: auto; }
.cta-banner .eyebrow { justify-content: center; color: var(--gold-light); }
.cta-banner .eyebrow::before { background: var(--gold); }
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: #fff;
  margin-bottom: var(--sp-2);
}
.cta-banner p { color: rgba(255,255,255,0.78); font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.cta-banner .btn-group {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials-section { background: var(--warm-white); }
.testimonials-grid {
  display: grid;
  gap: var(--sp-3);
}
@media (min-width: 640px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
  /* Prevent overflow */
  min-width: 0;
  overflow: hidden;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--sp-2); right: var(--sp-3);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--saffron-light);
  line-height: 1;
}
.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: var(--sp-2);
}
.testimonial-stars svg { width: 16px; height: 16px; fill: var(--gold); color: var(--gold); }
.testimonial-card p {
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
  overflow-wrap: break-word;
}
.testimonial-author { display: flex; align-items: center; gap: var(--sp-2); }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--saffron-light);
  flex-shrink: 0;
}
.testimonial-author-info strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--green-dark);
}
.testimonial-author-info span { font-size: var(--fs-xs); color: var(--text-muted); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.78);
  padding-top: var(--sp-5);
}
.footer-top {
  display: grid;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* Mobile: single column, Tablet: 2 cols, Desktop: 4 cols */
@media (min-width: 560px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--sp-2);
}
.footer-logo-wrap img {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.05);
  padding: 4px;
  flex-shrink: 0;
}
.footer-logo-name strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
}
.footer-logo-name span { font-size: 0.72rem; color: var(--gold); }
.footer-desc { font-size: var(--fs-sm); line-height: 1.7; margin-bottom: var(--sp-3); }

.social-links { display: flex; flex-direction: row; gap: 0.6rem; flex-wrap: wrap; }
.social-links a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  flex-shrink: 0;
}
.social-links a:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
  transform: translateY(-2px);
}
.social-links svg { width: 16px; height: 16px; pointer-events: none; }

.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-2);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  /* Touch-friendly */
  min-height: 36px;
}
.footer-col a::before {
  content: '›';
  color: var(--saffron);
  font-size: 1rem;
  flex-shrink: 0;
}
.footer-col a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: var(--sp-2);
  min-width: 0;
}
.footer-contact-item svg {
  width: 16px; height: 16px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.footer-contact-item span {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.68);
  line-height: 1.5;
  overflow-wrap: break-word;
  min-width: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  padding-block: var(--sp-3);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.45);
  text-align: center;
}
/* Stack footer-bottom on mobile */
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: center; }
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--gold); }

/* =========================================================
   GENERIC CARDS
   ========================================================= */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  min-width: 0;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--saffron-light), var(--gold-light));
  color: var(--saffron-dark);
  margin-bottom: var(--sp-2);
  flex-shrink: 0;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--fs-lg); margin-bottom: 0.4rem; }
.card p { margin-bottom: 0; font-size: var(--fs-sm); }

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding-block: clamp(2rem, 5vw, var(--sp-5));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(212,175,55,0.15) 0%, transparent 60%);
}
.page-hero h1 {
  font-size: var(--fs-2xl);
  color: #fff;
  position: relative;
}
.page-hero .eyebrow { justify-content: center; }
.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  margin-top: var(--sp-1);
  position: relative;
}
.breadcrumbs a { color: var(--gold); font-weight: 600; }

/* =========================================================
   FORMS
   ========================================================= */
.form-grid { display: grid; gap: var(--sp-2); }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--green-dark);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  /* Min 44px height for touch */
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  /* Prevent text overflow */
  overflow: hidden;
  text-overflow: ellipsis;
}
.field textarea { min-height: 120px; resize: vertical; overflow: auto; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(230,126,34,0.12);
  outline: none;
}
.field-hint { font-size: var(--fs-xs); color: var(--text-muted); }
.field.has-error input,
.field.has-error textarea { border-color: #C0392B; }
.field-error { font-size: var(--fs-xs); color: #C0392B; display: none; }
.field.has-error .field-error { display: block; }

.form-note {
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
  color: var(--green-dark);
}

/* =========================================================
   UTILITIES
   ========================================================= */
.text-center  { text-align: center; }
.text-white   { color: #fff; }

/* Responsive grids */
.grid { display: grid; gap: var(--sp-3); }
/* grid-2: single col on mobile, 2 cols on tablet+ */
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
/* grid-3: single col on mobile, 2 cols on tablet, 3 cols on desktop */
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 540px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal,
.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* Photo placeholder */
.photo-placeholder {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--green-light), var(--gold-light));
  border: 1px dashed rgba(30,86,49,0.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; color: var(--green-dark); text-align: center;
  padding: var(--sp-2);
  font-size: var(--fs-sm);
  /* Ensure it renders properly on mobile */
  width: 100%;
  min-height: 180px;
}
.photo-placeholder svg { width: 48px; height: 48px; opacity: 0.5; }

/* =========================================================
   MOTIF DIVIDER
   ========================================================= */
.motif-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; color: var(--gold); margin-block: var(--sp-3);
  flex-wrap: nowrap;
}
.motif-divider::before, .motif-divider::after {
  content: ''; height: 1px; flex: 1;
  max-width: 80px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.motif-divider svg { width: 22px; height: 22px; flex-shrink: 0; }

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline {
  border-left: 2px solid var(--border);
  padding-left: var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-3) - 6px); top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--saffron); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--saffron);
}
.timeline-item h4 { margin-bottom: 0.25rem; }

/* =========================================================
   INFO LIST
   ========================================================= */
.info-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.info-item { display: flex; gap: 0.9rem; align-items: flex-start; min-width: 0; }
.info-item .icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--green-light); color: var(--green-dark);
}
.info-item .icon svg { width: 20px; height: 20px; }
.info-item h4 { margin-bottom: 0.15rem; font-size: 1rem; }
.info-item p { margin-bottom: 0; font-size: var(--fs-sm); overflow-wrap: break-word; }

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* =========================================================
   ABOUT PAGE STYLES
   ========================================================= */

/* Intro Section */
.about-intro-section { background: var(--warm-white); }
.about-intro-grid {
  display: grid;
  gap: var(--sp-4);
  align-items: start;
}
@media (min-width: 860px) {
  .about-intro-grid { grid-template-columns: 0.85fr 1.15fr; }
}

/* About Image */
.about-img-col { position: relative; }
.about-img-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img {
  width: 100%;
  height: clamp(340px, 50vw, 520px);
  object-fit: cover;
  object-position: center 25%;
  display: block;
  border-radius: var(--r-lg);
}
.about-img-badge {
  position: absolute;
  bottom: var(--sp-2); left: var(--sp-2); right: var(--sp-2);
  background: rgba(13,31,20,0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: var(--r-md);
  padding: 0.75rem var(--sp-2);
  color: #fff;
  display: flex; align-items: center; gap: var(--sp-2);
}
.about-img-badge-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.about-img-badge strong { display: block; font-family: var(--font-heading); font-size: var(--fs-sm); color: #fff; }
.about-img-badge span { font-size: var(--fs-xs); color: var(--gold); }

/* About Intro Text */
.about-intro-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--green-dark);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}
.about-intro-text p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
  line-height: 1.75;
}

/* About Stats Row */
.about-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
@media (min-width: 480px) {
  .about-stats-row { grid-template-columns: repeat(4, 1fr); }
}
.about-stat { text-align: center; }
.about-stat-num {
  display: block;
  font-family: var(--font-deva);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}
.about-stat-label {
  display: block;
  font-size: clamp(0.6rem, 1vw, 0.68rem);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--saffron-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

/* Philosophy Grid */
.section-head.centered { text-align: center; margin-bottom: var(--sp-3); }
.philosophy-grid { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .philosophy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .philosophy-grid { grid-template-columns: repeat(3, 1fr); } }
.philosophy-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, var(--sp-4));
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
  min-width: 0;
}
.philosophy-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.philosophy-icon { font-size: 2.2rem; margin-bottom: var(--sp-2); display: block; }
.philosophy-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--green-dark);
  margin-bottom: var(--sp-2);
}
.philosophy-card p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.75; margin: 0; }

/* Journey Section */
.about-journey-grid { display: grid; gap: var(--sp-4); align-items: center; }
@media (min-width: 860px) { .about-journey-grid { grid-template-columns: 1fr 1fr; } }
.journey-image img {
  width: 100%; border-radius: var(--r-lg);
  object-fit: cover;
  height: clamp(240px, 40vw, 420px);
  box-shadow: var(--shadow-lg); display: block;
}
.journey-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  color: var(--green-dark);
  margin-bottom: var(--sp-3);
}
.journey-content p { font-size: var(--fs-base); color: var(--text-muted); line-height: 1.75; margin-bottom: var(--sp-2); }
.journey-steps { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.journey-step {
  display: flex; gap: var(--sp-2); align-items: flex-start;
  background: var(--green-light); border-radius: var(--r-md);
  padding: 0.65rem var(--sp-2);
  min-width: 0;
}
.step-dot {
  width: 10px; height: 10px; flex-shrink: 0;
  background: var(--gold); border-radius: 50%;
  margin-top: 4px;
}
.journey-step strong { display: block; font-family: var(--font-heading); color: var(--green-dark); font-size: var(--fs-sm); }
.journey-step span { font-size: var(--fs-xs); color: var(--text-muted); }

/* Pillars Grid */
.pillars-grid { display: grid; gap: var(--sp-3); }
@media (min-width: 480px)  { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }
.pillar-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: clamp(1rem, 3vw, var(--sp-4));
  transition: box-shadow var(--transition), transform var(--transition);
  border-top: 4px solid var(--gold);
  min-width: 0;
}
.pillar-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pillar-icon { font-size: 1.8rem; margin-bottom: var(--sp-2); display: block; }
.pillar-card h3 { font-family: var(--font-heading); font-size: var(--fs-base); color: var(--green-dark); margin-bottom: var(--sp-2); font-weight: 700; }
.pillar-card p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.7; margin: 0; }

/* Campus Gallery */
.campus-gallery { display: grid; gap: var(--sp-3); margin-top: var(--sp-3); }
@media (min-width: 760px) { .campus-gallery { grid-template-columns: 1.4fr 1fr; } }
.campus-img-main img {
  width: 100%; height: clamp(200px, 35vw, 380px);
  object-fit: cover; border-radius: var(--r-lg);
  display: block; box-shadow: var(--shadow-md);
}
.campus-img-side { display: flex; flex-direction: column; gap: var(--sp-3); }
@media (max-width: 759px) {
  .campus-img-side { flex-direction: row; }
  .campus-img-side img { flex: 1; }
}
.campus-img-side img {
  width: 100%;
  height: clamp(90px, 16vw, 175px);
  object-fit: cover; border-radius: var(--r-lg);
  display: block; box-shadow: var(--shadow-md);
}

/* About CTA Section */
.about-cta-section { background: var(--warm-white); }
.about-cta-box {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0D3A1E 100%);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.about-cta-content { position: relative; z-index: 1; }
.about-cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: #fff;
  margin: var(--sp-2) 0 var(--sp-3);
}
.about-cta-content p {
  color: rgba(255,255,255,0.82);
  font-size: var(--fs-base);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto var(--sp-4);
}
.cta-buttons { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }

/* =========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: var(--r-full);
  padding: 0.75rem 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 990;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.65);
  color: #FFFFFF;
}
.whatsapp-float svg {
  flex-shrink: 0;
}
@media (max-width: 580px) {
  .whatsapp-float {
    padding: 0.75rem;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    justify-content: center;
  }
  .whatsapp-float span {
    display: none;
  }
}

/* =========================================================
   REDUCED MOTION — must come LAST
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .ticker-text { animation: none; }
  .hero-slide  { animation: none; }
}

/* =========================================================
   PRINT STYLES
   ========================================================= */
@media print {
  .site-header,
  .mobile-nav,
  .hero-indicators,
  .scroll-hint,
  .header-ticker,
  .cta-banner { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a::after { content: " (" attr(href) ")"; }
}
