:root {
  --sage-deep:    #3D4A33;
  --sage-mid:     #6B7F5C;
  --sage-soft:    #8FA37E;
  --sage-tint:    #DDE3CD;
  --sage-mist:    #EEF1E4;

  --cream:        #FAF7F0;
  --cream-warm:   #F4EFE3;
  --ivory:        #FFFEFB;

  --gold:         #B8924F;
  --gold-soft:    #E5D5B0;

  --ink:          #1F2419;
  --ink-soft:     #4A5240;
  --ink-mute:     #7A8470;
  --line:         #D8DCC9;

  --shadow-sm: 0 2px 8px rgba(61,74,51,0.06);
  --shadow-md: 0 12px 32px rgba(61,74,51,0.10);
  --shadow-lg: 0 24px 60px rgba(61,74,51,0.14);

  --max: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Manrope', system-ui, sans-serif;
  --telugu: 'Tiro Telugu', 'Cormorant Garamond', serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--sage-mid); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--sage-deep);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 6vw, 4.25rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.eyebrow.center { justify-content: center; }

.lede { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.7; max-width: 60ch; }

.container {
  width: 100%; max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
section { padding: clamp(3.5rem, 8vw, 7rem) 0; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.0);
  backdrop-filter: saturate(140%) blur(0px);
  -webkit-backdrop-filter: saturate(140%) blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
  transition: padding 0.35s var(--ease);
}
.nav.scrolled .nav-inner { padding-top: 0.7rem; padding-bottom: 0.7rem; }

.brand { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; min-width: 0; }
.brand-logo {
  width: auto; height: 52px;
  flex-shrink: 0;
  object-fit: contain;
  transition: height 0.35s var(--ease);
}
.nav.scrolled .brand-logo { height: 44px; }

.nav-light .brand-name,
.nav-light .nav-links a { color: var(--cream); }
.nav-light .nav-toggle span,
.nav-light .nav-toggle span::before,
.nav-light .nav-toggle span::after { background: var(--cream); }

.brand-name {
  font-family: var(--sans);
  font-size: clamp(1.12rem, 1.7vw, 1.32rem);
  font-weight: 700;
  color: var(--sage-deep);
  letter-spacing: -0.015em;
  line-height: 1;
  transition: color 0.4s var(--ease);
}

.nav-links {
  display: flex; gap: 1.85rem; align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
  transition: color 0.4s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-light .nav-links a:hover { color: var(--gold-soft); }
.nav.scrolled .nav-links a:hover { color: var(--sage-deep); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--sage-deep);
  color: var(--cream);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
  border: 1.5px solid var(--sage-deep);
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.2;
}
.nav-cta svg, .nav-cta::after { width: 0.85em; height: 0.85em; }
.nav-light .nav-cta {
  background: var(--gold);
  color: var(--sage-deep);
  border-color: var(--gold);
}
.nav-cta:hover {
  background: var(--sage-mid);
  border-color: var(--sage-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.nav-light .nav-cta:hover {
  background: var(--gold-soft); border-color: var(--gold-soft);
}
.nav-cta svg { width: 14px; height: 14px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  margin-right: -8px;
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-toggle span {
  display: block; width: 22px; height: 1.8px; background: var(--sage-deep);
  position: relative; transition: all 0.3s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 1.8px; background: var(--sage-deep);
  transition: all 0.3s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after  { top: 0; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 1rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--sage-deep);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-mobile a::after {
  content: '→'; color: var(--ink-mute); font-size: 1rem; opacity: 0.5;
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile .nav-cta-mobile {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 1.2rem;
  background: var(--sage-deep);
  color: var(--cream);
  padding: 1rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: none;
}
.nav-mobile .nav-cta-mobile::after { display: none; }

/* ---------- Hero (Full-bleed slideshow) ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 900px;
  width: 100%;
  overflow: hidden;
}
.hero-slideshow {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2.4s var(--ease);
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(20,25,15,0.86) 0%, rgba(20,25,15,0.66) 45%, rgba(20,25,15,0.42) 100%),
    linear-gradient(180deg, rgba(20,25,15,0.5) 0%, transparent 25%, rgba(20,25,15,0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex; align-items: center;
}
.hero-content .container { width: 100%; }
.hero-text { max-width: 720px; color: #FFFFFF; }
.hero-text .eyebrow {
  color: #F4EFE3;
  margin-bottom: 1.6rem;
  font-weight: 600;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero-text h1 {
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  text-shadow: 0 2px 24px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
}
.hero-text h1 .hero-stat { color: #F0CB6E; }
.hero-text h1 .num {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  font-size: 1.18em;
  letter-spacing: -0.01em;
  color: #F0CB6E;
  margin-right: 0.06em;
  display: inline-block;
  line-height: 1;
  vertical-align: baseline;
  font-feature-settings: "lnum" 1, "kern" 1;
}
.hero-text h1 em {
  font-style: italic;
  font-weight: 400;
  color: #FFFFFF;
}
.hero-lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: #FAF7F0;
  max-width: 56ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 16px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.35);
}
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease);
  border: 1.5px solid transparent;
  min-height: 48px;
  text-align: center;
}
.btn-primary { background: var(--sage-deep); color: var(--cream); border-color: var(--sage-deep); }
.btn-primary:hover { background: var(--sage-mid); border-color: var(--sage-mid); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { color: var(--sage-deep); border-color: var(--sage-deep); background: transparent; }
.btn-ghost:hover { background: var(--sage-deep); color: var(--cream); transform: translateY(-2px); }
.btn svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* Hero variants of buttons */
.hero .btn-primary {
  background: var(--gold); color: var(--sage-deep); border-color: var(--gold);
}
.hero .btn-primary:hover {
  background: var(--gold-soft); border-color: var(--gold-soft);
}
.hero .btn-ghost {
  color: var(--cream); border-color: rgba(250, 247, 240, 0.7); background: transparent;
}
.hero .btn-ghost:hover {
  background: var(--cream); color: var(--sage-deep); border-color: var(--cream);
}

/* Slide indicator dots */
.hero-dots {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.6rem;
  z-index: 3;
}
.hero-dots button {
  width: 38px; height: 3px;
  background: rgba(250,247,240,0.35);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: background 0.4s var(--ease), width 0.4s var(--ease);
}
.hero-dots button.active {
  background: var(--gold);
  width: 56px;
}

/* ---------- Stats Strip ---------- */
.stats {
  background: var(--sage-deep);
  color: var(--cream);
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(184,146,79,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 2;
}
.stat { text-align: center; padding: 0.75rem 0.5rem; position: relative; min-width: 0; }
.stat:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(238, 241, 228, 0.18);
}
.stat-num {
  font-family: var(--sans);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-block;
  font-feature-settings: "tnum" on, "lnum" on;
}
.stat-num .suffix { color: var(--gold); font-weight: 600; }
.stat-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 0.85rem;
}

/* ---------- Section Header ---------- */
.section-head { margin-bottom: 3rem; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }

/* ---------- Welcome (with logo emblem) ---------- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.welcome-emblem-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.welcome-emblem {
  position: relative;
  background: linear-gradient(160deg, var(--cream-warm) 0%, var(--ivory) 70%);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 3vw, 2.5rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  width: 100%;
  max-width: 460px;
}
.welcome-emblem::before,
.welcome-emblem::after {
  content: '';
  position: absolute;
  width: 60px; height: 60px;
  border: 1.5px solid var(--gold);
  opacity: 0.4;
}
.welcome-emblem::before {
  top: 1rem; left: 1rem;
  border-right: none; border-bottom: none;
  border-top-left-radius: var(--radius-md);
}
.welcome-emblem::after {
  bottom: 1rem; right: 1rem;
  border-left: none; border-top: none;
  border-bottom-right-radius: var(--radius-md);
}
.welcome-emblem img {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 6px 14px rgba(61,74,51,0.15));
}
.welcome-emblem-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
  position: relative;
}
.welcome-emblem-divider::before,
.welcome-emblem-divider::after {
  content: '';
  position: absolute; top: 50%;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
}
.welcome-emblem-divider::before { left: -10px; }
.welcome-emblem-divider::after { right: -10px; }
.welcome-emblem-motto .telugu {
  font-family: var(--telugu);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--sage-deep);
  font-weight: 400;
  display: block;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}
.welcome-emblem-motto .trans {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.02em;
  display: block;
  line-height: 1.4;
}

.welcome-text h2 {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.25;
}
.welcome-text h2 em { font-style: italic; color: var(--gold); white-space: nowrap; }
.welcome-text h2 .nowrap { white-space: nowrap; }
.welcome-text .lede { margin: 1.5rem 0 1.2rem; }
.welcome-text p { margin-bottom: 1.2rem; }
.welcome-text p:last-of-type { margin-bottom: 1.8rem; }
.signature {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.signature-name {
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--sage-deep);
  font-weight: 600;
}
.signature-role {
  font-size: 0.82rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ---------- Pillars ---------- */
.pillars { background: var(--sage-mist); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
.pillar {
  background: var(--ivory);
  padding: 1.85rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sage-soft));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--sage-soft); }
.pillar:hover::before { transform: scaleX(1); }
.pillar-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sage-mist);
  border-radius: var(--radius-sm);
  margin-bottom: 1.3rem;
  color: var(--sage-deep);
}
.pillar-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.pillar h4 {
  font-family: var(--sans);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--sage-deep);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}
.pillar p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; }

/* ---------- Secretary ---------- */
.secretary { background: var(--cream-warm); position: relative; overflow: hidden; }
.secretary-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.secretary blockquote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.95rem);
  line-height: 1.5;
  color: var(--sage-deep);
  font-weight: 400;
  font-style: italic;
  margin: 2rem 0;
  letter-spacing: -0.005em;
}
.secretary blockquote span { color: var(--gold); font-weight: 500; }
.secretary-attr { display: inline-flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.secretary-attr .name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sage-deep);
}
.secretary-attr .role {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.secretary-attr .divider {
  width: 32px; height: 1.5px; background: var(--gold); margin: 0.4rem 0;
}

/* ---------- Campus Glimpse (Gallery) ---------- */
.campus-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 1rem;
  margin-top: 1rem;
}
.campus-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--sage-tint);
}
.campus-item:nth-child(1) { grid-row: span 2; }
.campus-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.campus-item:hover img { transform: scale(1.05); }
.campus-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(31,36,25,0.7) 100%);
  display: flex; align-items: flex-end;
  padding: 1.2rem;
  color: var(--cream);
}
.campus-item-overlay span {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
}
.campus-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- CTA Band ---------- */
.cta-band { background: var(--sage-deep); color: var(--cream); position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(229,213,176,0.15);
  pointer-events: none;
}
.cta-band::after {
  content: ''; position: absolute; bottom: -150px; left: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(229,213,176,0.1);
  pointer-events: none;
}
.cta-band .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.cta-band h2 {
  color: var(--cream);
  margin-top: 1rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-wrap: balance;
  white-space: nowrap;
}
.cta-band h2 em { color: var(--gold); font-style: italic; }
.cta-band p { color: var(--sage-tint); font-size: 1.02rem; margin-top: 1rem; max-width: 50ch; line-height: 1.7; }
.cta-band-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: flex-end; }
.cta-band-actions .btn { min-width: 220px; padding-left: 1.5rem; padding-right: 1.5rem; }
.cta-band .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--sage-deep); }
.cta-band .btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.cta-band .btn-ghost { color: var(--cream); border-color: var(--cream); }
.cta-band .btn-ghost:hover { background: var(--cream); color: var(--sage-deep); }

/* ---------- Footer ---------- */
.footer { background: #1A1F15; color: #B8C0AC; padding: 4rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.4fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-block { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img {
  width: 64px; height: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand-text .name {
  font-family: var(--sans);
  font-size: 1.18rem;
  color: var(--cream);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.footer-brand-text .since {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 600;
}
.footer-tagline { font-size: 0.92rem; line-height: 1.65; margin-top: 0.4rem; }
.footer-motto {
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  margin-top: 0.8rem;
}
.footer-motto .telugu {
  font-family: var(--telugu);
  font-size: 1rem;
  color: var(--cream);
  display: block;
  margin-bottom: 4px;
  line-height: 1.5;
}
.footer-motto .trans { font-size: 0.8rem; font-style: italic; color: #8A9580; }
.footer h5 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.2rem;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.7rem; font-size: 0.92rem; }
.footer a:hover { color: var(--gold); }
.footer-contact p { font-size: 0.92rem; line-height: 1.7; margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(184,192,172,0.12);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem;
  color: #6E7868;
}

/* ---------- Reveal Animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.reveal-stagger.visible > *:nth-child(n+7) { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .hero-slide { transition: opacity 0.001ms !important; transform: none !important; }
}

/* ============================================ */
/* ============= RESPONSIVE ================== */
/* ============================================ */

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 980px) {
  .welcome-grid { grid-template-columns: 1fr; gap: 4rem; }
  .welcome-emblem-wrap { padding: 0; }
  .welcome-emblem { max-width: 420px; margin: 0 auto; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 0; }
  .stat:nth-child(odd)::after { content: ''; display: block; }
  .stat:nth-child(even)::after { display: none; }

  .campus-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }
  .campus-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }

  .cta-band .container { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band-actions { justify-content: flex-start; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand-block { grid-column: span 2; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .nav-inner { padding: 0.85rem 1.25rem; }
  .brand-name { font-size: 1rem; }
  .brand-logo { height: 44px; }
  .nav.scrolled .brand-logo { height: 38px; }

  .hero { min-height: 600px; height: 92vh; }
  .hero-text { padding-right: 0.5rem; }
  /* Mobile-tuned crop positions for each background image */
  .hero-slide:nth-child(1) { background-position: 60% center; }
  .hero-slide:nth-child(2) { background-position: center 35%; }
  .hero-slide::after {
    background:
      linear-gradient(180deg, rgba(20,25,15,0.55) 0%, rgba(20,25,15,0.7) 45%, rgba(20,25,15,0.92) 100%);
  }
  .hero-text h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-actions .btn { flex: 1; min-width: 140px; }
  .hero-dots { bottom: 1.75rem; }
  .hero-dots button { width: 30px; }
  .hero-dots button.active { width: 44px; }

  .stats-grid { gap: 2rem 1rem; }
  .stat { padding: 0.5rem 0.25rem; }
  .stat:nth-child(odd)::after { display: none; }
  .stat-label { font-size: 0.66rem; letter-spacing: 0.12em; }

  .pillars-grid { grid-template-columns: 1fr; gap: 1rem; }

  .campus-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 220px);
  }
  .campus-item:nth-child(1) { grid-column: span 1; grid-row: span 1; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-brand-block { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

  .cta-band-actions { width: 100%; }
  .cta-band-actions .btn { flex: 1; min-width: 0; width: 100%; }

  .welcome-emblem img { max-width: 220px; }

  .signature-name { font-size: 1.22rem; }
  .secretary-attr .name { font-size: 1.25rem; }
}

@media (max-width: 380px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-band-actions { flex-direction: column; align-items: stretch; }
  .cta-band-actions .btn { width: 100%; }
}
/* ============================================ */
/* ============= INNER PAGES ================= */
/* ============================================ */

/* Compact page hero (used on all non-home pages) */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--sage-deep) 0%, #2A3322 60%, #1F2A18 100%);
  color: var(--cream);
  padding: clamp(7rem, 14vw, 10rem) 0 clamp(3.5rem, 7vw, 5rem);
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 88% 30%, rgba(184,146,79,0.18) 0%, transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(143,163,126,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .breadcrumb {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.page-hero .breadcrumb a { color: var(--gold-soft); transition: color 0.25s var(--ease); }
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero .breadcrumb .sep { opacity: 0.45; }
.page-hero h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  max-width: 22ch;
  margin-bottom: 1.25rem;
}
.page-hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.page-hero h1 .num {
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  color: inherit;
  font-feature-settings: "lnum" 1, "kern" 1;
}
.page-hero .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: rgba(250, 247, 240, 0.86);
  max-width: 60ch;
  line-height: 1.65;
}

/* Section: editorial two-column with rule */
.section-rule { border-top: 1px solid var(--line); }
.split-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.split-grid .label-col { position: sticky; top: 100px; }
.split-grid .label-col .eyebrow { margin-bottom: 0.75rem; }
.split-grid .label-col h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.split-grid p { margin-bottom: 1.25rem; }
.split-grid p:last-child { margin-bottom: 0; }

/* Info cards (about / facilities / etc.) */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.info-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.85rem 1.6rem;
  transition: all 0.35s var(--ease);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-soft);
}
.info-card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sage-mist);
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  color: var(--sage-deep);
}
.info-card-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.info-card h4 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  color: var(--sage-deep);
}
.info-card p { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.6; }

/* Definition / fact list */
.fact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.fact-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.fact-row:first-child { border-top: none; padding-top: 0; }
.fact-key {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.fact-val {
  font-family: var(--sans);
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.55;
  font-weight: 500;
}
.fact-val.serif {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
}

/* Process / steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: ''; position: absolute;
  top: 26px; left: 5%; right: 5%;
  height: 1px; background: var(--line);
  z-index: 0;
}
.step {
  position: relative; z-index: 1;
  text-align: center;
  padding: 0 0.5rem;
}
.step-num {
  width: 52px; height: 52px;
  margin: 0 auto 1.2rem;
  background: var(--ivory);
  border: 1.5px solid var(--sage-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sage-deep);
}
.step h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--sage-deep);
}
.step p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  border-left: 1.5px solid var(--line);
  margin-left: 0.5rem;
}
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute;
  left: -3.07rem; top: 0.4rem;
  width: 12px; height: 12px;
  background: var(--gold);
  border: 2.5px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--gold);
}
.timeline-year {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.timeline-item h4 {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--sage-deep);
  margin-bottom: 0.5rem;
}
.timeline-item p { color: var(--ink-soft); line-height: 1.65; }

/* Document list (mandatory disclosure) */
.docs-section {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.docs-section-head {
  background: var(--sage-mist);
  padding: 1.25rem 1.75rem;
  display: flex; align-items: baseline; gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.docs-section-head .num {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.docs-section-head h3 {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--sage-deep);
  margin: 0;
}
.docs-list { padding: 0.5rem 0; }
.doc-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}
.doc-row:last-child { border-bottom: none; }
.doc-row:hover { background: var(--sage-mist); }
.doc-num {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.doc-title {
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.4;
  font-weight: 500;
}
.doc-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-deep);
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}
.doc-link:hover {
  background: var(--sage-deep); color: var(--cream); border-color: var(--sage-deep);
}
.doc-link svg { width: 12px; height: 12px; }
.doc-link.unset {
  color: var(--ink-mute);
  border-style: dashed;
}
.doc-link.unset:hover {
  background: var(--cream-warm); color: var(--ink); border-color: var(--ink-mute);
}

/* Disclosure top general info */
.disclosure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2.5rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
}

/* Gallery grid (Gallery page) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 1rem;
}
.gallery-grid .gx-tall { grid-row: span 2; }
.gallery-grid .gx-wide { grid-column: span 2; }
.gallery-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--sage-tint);
  cursor: pointer;
}
.gallery-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.gallery-tile:hover img { transform: scale(1.06); filter: saturate(1.05); }
.gallery-tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(31,36,25,0.78));
  color: var(--cream);
}
.gallery-tile-cap span {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-block h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.contact-block p, .contact-block a {
  font-family: var(--sans);
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.65;
  font-weight: 500;
}
.contact-block a { display: inline-block; transition: color 0.25s var(--ease); }
.contact-block a:hover { color: var(--gold); }
.contact-map {
  width: 100%; aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--sage-mist);
  border: 1px solid var(--line);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Generic prose / body */
.prose h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
  color: var(--sage-deep);
}
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.1rem; line-height: 1.75; }
.prose ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.prose ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  line-height: 1.65;
}
.prose ul li::before {
  content: ''; position: absolute;
  left: 0; top: 0.7em;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.prose strong { color: var(--sage-deep); font-weight: 600; }

/* Subject badges */
.subjects {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1rem;
}
.subject {
  display: inline-flex; align-items: center;
  background: var(--cream-warm);
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--sage-deep);
}

/* Tablet adjustments */
@media (max-width: 980px) {
  .split-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .split-grid .label-col { position: static; }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .steps::before { display: none; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }
  .gallery-grid .gx-wide { grid-column: span 2; }
  .gallery-grid .gx-tall { grid-row: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .disclosure-grid { grid-template-columns: 1fr; gap: 0; padding: 1.5rem 1.75rem; }
}

/* Phone adjustments */
@media (max-width: 640px) {
  .page-hero { padding-top: 6.5rem; }
  .info-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery-grid .gx-wide, .gallery-grid .gx-tall { grid-column: span 1; grid-row: span 1; }
  .doc-row {
    grid-template-columns: 40px 1fr;
    gap: 0.8rem;
    padding: 1rem 1.25rem;
  }
  .doc-link {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.4rem;
  }
  .docs-section-head { padding: 1rem 1.25rem; }
  .fact-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .timeline { padding-left: 1.8rem; }
  .timeline-item::before { left: -2.4rem; }
}

/* ============================================ */
/* ============= NUMERAL SYSTEM =============== */
/* ============================================ */
/* Space Grotesk — modern geometric sans with high-quality tabular figures, */
/* slashed zero, and lining numerals. Applied wherever a number appears as  */
/* a discrete data point (stats, tables, dates, IDs, currency, years).      */
/* Prose numbers continue to use Manrope with OpenType features enabled.    */

:root {
  --num: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
}

/* Apply tabular figures + slashed zero to all numerals across the site, */
/* so any inline number in prose renders cleanly. */
body {
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1, "kern" 1;
  font-variant-numeric: lining-nums slashed-zero;
}

/* Universal .num class: wrap any prominent numeric token */
.num {
  font-family: var(--num);
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1;
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
  letter-spacing: -0.01em;
}

/* Hero stat numbers (homepage counters) */
.stat-num {
  font-family: var(--num);
  font-weight: 600;
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1;
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
  letter-spacing: -0.015em;
}

/* The big "24" in the hero headline */
h1 .num {
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Disclosure doc-num (the "1" through "8" badges in document rows) */
.doc-num {
  font-family: var(--num);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1;
  letter-spacing: 0;
}

/* Disclosure section badges ("A", "B", "C"…) — keep these in Manrope */
/* but the .num column-numbers in fact-rows (1, 2, 3...) need the num font */
.docs-section-head .num {
  font-family: var(--num);
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1;
}

/* Timeline year markers ("2002", "2005", "2026") */
.timeline-year {
  font-family: var(--num);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1;
  letter-spacing: 0.12em;
}

/* All fact-list rows: numeric values use Space Grotesk for clarity */
.fact-val {
  font-family: var(--num);
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1;
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
}
.fact-val.serif { font-family: var(--serif); }  /* override for serif variant */

.fact-key {
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1;
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
}

/* Table cells inside disclosure and fee-table sections */
.disclosure-grid table td,
table.num-table td,
table.num-table th {
  font-family: var(--num);
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1;
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
}

/* Footer brand sub-line ("Estd. 2002 · CBSE Since 2005") and copyright */
.footer-brand-text .since,
.footer-bottom {
  font-family: var(--num);
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1;
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
  letter-spacing: 0.02em;
}

/* Phone numbers and other tel links — they're already styled, just refine */
a[href^="tel:"] {
  font-family: var(--num);
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1;
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
}

/* The Affiliation No. / School Code hero subline on disclosure */
.page-hero .lede {
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1;
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
}

/* Eyebrow text that contains numbers (e.g. "Admissions 2026 — 27") */
.eyebrow {
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1;
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
}

/* ============================================ */
/* ========== PHOTO CARDS (Facilities) ======= */
/* ============================================ */
.photo-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.photo-cards.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}
.photo-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.photo-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sage-tint);
}
.photo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.photo-card:hover .photo-card-image img {
  transform: scale(1.05);
}
.photo-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  flex: 1;
}
.photo-card-body h4 {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--sage-deep);
  margin-bottom: 0.5rem;
}
.photo-card-body p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 980px) {
  .photo-cards,
  .photo-cards.cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .photo-cards,
  .photo-cards.cards-3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================ */
/* ===== LOGO WATERMARK (Principal Note) ===== */
/* ============================================ */
.note-from-principal { position: relative; overflow: hidden; }
/* ===== Library placeholder (no real library photo) ===== */
.library-placeholder {
  background: linear-gradient(135deg, var(--sage-deep) 0%, var(--sage-mid) 100%);
  display: flex; align-items: center; justify-content: center;
}
.library-placeholder svg {
  width: 90px; height: 90px;
  color: var(--gold-soft);
  opacity: 0.7;
}

/* ============================================ */
/* ===== Calendar list (Year at a glance) ===== */
/* ============================================ */
.cal-list .fact-row { align-items: flex-start; }
.cal-list .fact-key {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cal-list .cal-year {
  font-family: var(--num);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  font-weight: 500;
  text-transform: uppercase;
}
.cal-list .cal-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  line-height: 1.45;
}
.cal-list .cal-line + .cal-line {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(31, 36, 25, 0.08);
}
.cal-list .cal-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  width: 7rem;
  flex-shrink: 0;
}
.cal-list .cal-meta {
  color: var(--ink-mute);
  font-weight: 400;
  font-size: 0.92em;
}
@media (max-width: 580px) {
  .cal-list .cal-label { width: auto; flex-basis: 100%; }
}
.note-from-principal::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  background-image: url('images/logo.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 720px) {
  .note-from-principal::before { width: 320px; height: 320px; }
}

/* Glimpse grid (Facilities — Around the School) */
.glimpse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px;
  gap: 1rem;
  margin-top: 1.5rem;
}
.glimpse-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--sage-tint);
}
.glimpse-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.glimpse-item:hover img { transform: scale(1.05); }
.glimpse-cap {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(31,36,25,0.78) 100%);
  display: flex; align-items: flex-end;
  padding: 1.2rem;
  color: var(--cream);
}
.glimpse-cap span {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
}
@media (max-width: 880px) {
  .glimpse-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; }
  .glimpse-item:nth-child(3) { grid-column: auto; }
}
@media (max-width: 580px) {
  .glimpse-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 220px); }
  .glimpse-item:nth-child(3) { grid-column: span 1; }
}
