/* ==========================================================================
   Sri Siddhavana Gurukula, Ujire
   Minimalist Line-Art Design System (Pure White Canvas #FFFFFF)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Noto+Sans+Kannada:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Rozha+One&display=swap');

:root {
  /* Core Color Palette Variables */
  --primary: #1E3A2F;           /* Forest Green (AA/AAA on White: 9.4:1) */
  --accent: #D97706;            /* Saffron (for lines, icons, large bold headings) */
  --highlight: #E8C547;         /* Marigold Accent */
  --ink: #13261F;               /* Deep Forest Ink for Body (13.9:1 on White) */
  --bg: #FFFFFF;                /* Pure White */
  --white: #FFFFFF;
  
  /* Backward-compatible color aliases */
  --color-white: #FFFFFF;
  --color-forest: #1E3A2F;
  --color-forest-dark: #13261F;
  --color-forest-light: #2A5243;
  --color-saffron: #D97706;
  --color-saffron-light: #F59E0B;
  --color-saffron-dark: #B45309;
  --color-marigold: #E8C547;
  --color-cream: #FFFFFF;        /* Replaced with pure white across system */
  --color-cream-dark: #FFFFFF;
  --color-ink: #13261F;
  --color-charcoal: #13261F;
  --color-muted: #52665E;
  
  /* Minimalist 1px Line Rules & Subtle Elevation */
  --rule: rgba(30, 58, 47, 0.12);
  --rule-accent: rgba(217, 119, 6, 0.28);
  --color-border: rgba(30, 58, 47, 0.12);
  --color-border-light: rgba(30, 58, 47, 0.08);
  --card-border: 1px solid rgba(30, 58, 47, 0.12);
  --card-border-accent: 1px solid rgba(217, 119, 6, 0.35);
  --card-shadow: 0 4px 20px rgba(19, 38, 31, 0.04);
  --shadow-sm: 0 2px 8px rgba(19, 38, 31, 0.03);
  --shadow-md: 0 6px 18px rgba(19, 38, 31, 0.05);
  --shadow-lg: 0 12px 30px rgba(19, 38, 31, 0.06);

  /* Typography */
  --font-display: 'Cinzel', serif, Georgia;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-kannada: 'Noto Sans Kannada', sans-serif;
  --font-sanskrit: 'Rozha One', 'Cinzel', serif;

  /* Geometry & Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --container-max: 1280px;
  --header-height: 80px;
  --header-condensed: 66px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  overflow-x: hidden;
}

body[lang="kn"] {
  font-family: var(--font-kannada), var(--font-body);
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessible Visually Hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Layout Containers & Thin Rule Sections
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

.section {
  padding: clamp(60px, 8vw, 120px) 0;
  position: relative;
  background-color: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.section:last-of-type {
  border-bottom: none;
}

.section-white {
  background-color: var(--bg) !important;
}

/* Legacy classes cleared to pure white */
.section-cream, .section-forest, .section-dark {
  background-color: var(--bg) !important;
  color: var(--ink) !important;
}

/* --------------------------------------------------------------------------
   Minimalist Typography on Pure White Canvas
   -------------------------------------------------------------------------- */
.font-display {
  font-family: var(--font-display);
}

.display-1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--primary);
}

.display-2 {
  font-size: clamp(2.0rem, 3.8vw, 3.0rem);
  line-height: 1.18;
  font-weight: 700;
  color: var(--primary);
}

.display-3 {
  font-size: clamp(1.4rem, 2.4vw, 2.0rem);
  line-height: 1.25;
  font-weight: 600;
  color: var(--primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 14px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.eyebrow.gold {
  color: var(--primary);
}
.eyebrow.gold::before,
.eyebrow.gold::after {
  background: var(--accent);
}

.sanskrit-shloka {
  font-family: var(--font-sanskrit);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  color: var(--accent);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(40px, 6vw, 70px) auto;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Minimalist Line Art Buttons & Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: #13261F;
  border-color: #13261F;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(30, 58, 47, 0.18);
}

.btn-outline {
  background: #FFFFFF;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-accent {
  background: #FFFFFF;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-accent:hover {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   LINE-ART IMAGERY & MOTION REVEALS
   -------------------------------------------------------------------------- */
img.line-art,
.line-art-image,
.facility-card-img img,
.routine-illustration img,
.vignette-card-media img,
.gallery-grid-item img,
.hero-media-wrapper img,
.vignette-card img,
.facility-img img,
.routine-img img,
.gallery-item img {
  display: block;
  max-width: 100%;
  height: auto;
  background-color: transparent;
  filter: contrast(1.02);
}

/* Line-art Draw-on Clip Reveal (Safe, fully visible by default) */
.draw-on-reveal {
  opacity: 1;
  clip-path: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.draw-on-reveal.is-revealed {
  opacity: 1;
  clip-path: none;
}

/* Subtle line-art frame without heavy photo borders */
.line-art-frame {
  position: relative;
  border: 1px solid var(--rule);
  background: #FFFFFF;
  overflow: hidden;
}

.line-art-frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(217, 119, 6, 0.15);
  pointer-events: none;
  z-index: 2;
}

/* General Reveal for text/cards (Safe, fully visible by default) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   HERO: Full-Screen Cinematic Video (Fit to Screen, Loop, Pure White Architecture)
   -------------------------------------------------------------------------- */
.hero-cinema-section,
.hero-slider-section,
.hero-cinema {
  position: relative;
  width: 100%;
  height: calc(100vh - 110px);
  min-height: 560px;
  max-height: 940px;
  background-color: #FFFFFF;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 4vw, 48px);
}

.hero-media-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  overflow: hidden;
  z-index: 0;
}

.hero-media-wrapper video,
.hero-media-wrapper .hero-video,
.hero-slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background-color: #FFFFFF;
}

/* Subtle corner line-art framing */
.hero-cinema-section::after,
.hero-slider-section::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  pointer-events: none;
  z-index: 10;
}

.hero-cinema-section::before,
.hero-slider-section::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  pointer-events: none;
  z-index: 10;
}

/* Non-distracting Floating Caption Dock in Lower-Left Area */
.hero-floating-dock {
  position: absolute;
  bottom: clamp(16px, 3vw, 36px);
  left: clamp(16px, 3vw, 40px);
  z-index: 15;
  width: auto;
  max-width: calc(100% - 32px);
  pointer-events: none;
}

.hero-caption-card {
  pointer-events: auto;
  width: 410px;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(217, 119, 6, 0.32);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 10px 28px rgba(19, 38, 31, 0.08);
  transform: translateY(0);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.hero-caption-card:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(217, 119, 6, 0.50);
  box-shadow: 0 14px 34px rgba(19, 38, 31, 0.12);
}

.hero-caption-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0;
}

/* Minimize Toggle Button */
.hero-caption-minimize-btn {
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(30, 58, 47, 0.20);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.hero-caption-minimize-btn:hover {
  background: #FFFFFF;
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.1);
}

.hero-title {
  font-size: clamp(1.12rem, 1.8vw, 1.4rem);
  line-height: 1.25;
  color: var(--primary);
  margin: 0 0 6px 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-subtext {
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--ink);
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-cta-group .btn {
  padding: 6px 14px;
  font-size: 0.78rem;
}

/* Minimized State (Ultra-Compact Sleek Pill for 100% Unobstructed Video) */
.hero-caption-card.is-minimized {
  width: auto;
  max-width: max-content;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--accent);
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(19, 38, 31, 0.12);
}

.hero-caption-card.is-minimized .hero-caption-body {
  display: none !important;
}

.hero-caption-card.is-minimized .hero-caption-header {
  margin-bottom: 0;
  gap: 12px;
}

.hero-caption-card.is-minimized .hero-caption-minimize-btn i {
  transform: rotate(180deg);
}

/* Floating Video Play/Pause Control (Lower-Right Corner) */
.hero-video-controls {
  position: absolute;
  bottom: clamp(16px, 3vw, 36px);
  right: clamp(16px, 3vw, 40px);
  z-index: 20;
}

.hero-video-controls .hero-video-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(217, 119, 6, 0.32);
  padding: 7px 15px;
  border-radius: 30px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(19, 38, 31, 0.08);
  transition: all 0.2s ease;
}

.hero-video-controls .hero-video-toggle:hover {
  background: #FFFFFF;
  border-color: var(--primary);
  color: var(--accent);
  box-shadow: 0 6px 20px rgba(19, 38, 31, 0.14);
}

@media (max-width: 768px) {
  .hero-cinema-section,
  .hero-slider-section,
  .hero-cinema {
    height: 100vh;
    min-height: 520px;
    max-height: 100vh;
    padding: 0;
  }
  .hero-floating-dock {
    bottom: 12px;
    left: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    width: auto;
  }
  .hero-caption-card {
    width: 100%;
    max-width: 100%;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 0;
  }
  .hero-title {
    font-size: 1.05rem;
    margin-bottom: 4px;
    line-height: 1.22;
  }
  .hero-subtext {
    display: none; /* Hide 3-line paragraph on mobile to keep central video figure completely visible */
  }
  .hero-cta-group {
    gap: 6px;
    margin-top: 4px;
  }
  .hero-cta-group .btn {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
  /* On mobile, place video toggle at top-right to avoid any bottom conflict */
  .hero-video-controls {
    top: 12px;
    bottom: auto;
    right: 12px;
    z-index: 25;
  }
  .hero-video-controls .hero-video-toggle {
    padding: 5px 10px;
    font-size: 0.70rem;
  }
}

/* --------------------------------------------------------------------------
   CINEMATIC ADMISSIONS GATEWAY (Pure White Canvas with Forest Green & Saffron)
   -------------------------------------------------------------------------- */
.admissions-gateway-scene {
  position: relative;
  background: #FFFFFF;
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.admissions-gateway-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.admissions-media-column {
  position: relative;
}

.admissions-frame {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  aspect-ratio: 16 / 11;
}

.admissions-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  background: #FFFFFF;
}

/* Brass corner ticks */
.admissions-frame::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  pointer-events: none;
}

.admissions-frame::before {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  pointer-events: none;
}

.admissions-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(30, 58, 47, 0.16);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(19, 38, 31, 0.08);
}

.admissions-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.admissions-steps-stream {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.admission-step-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: all 0.25s ease;
  position: relative;
}

.admission-step-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.admission-step-num {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admission-step-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.admission-step-desc {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 992px) {
  .admissions-gateway-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .admissions-steps-stream {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   STICKY HEADER (Pure White with 1px Line Rule)
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  z-index: 1000;
  transition: height 0.3s ease, border-color 0.3s ease;
}

.header.is-condensed {
  height: var(--header-condensed);
  border-bottom-color: rgba(30, 58, 47, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.header-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.header-brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  line-height: 1.15;
}

.header-brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  padding: 6px 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Language Switcher */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: #FFFFFF;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.lang-toggle-btn:hover {
  border-color: var(--primary);
  background: #FFFFFF;
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
}

/* Mobile Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.is-active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   CINEMATIC 21:9 BANNERS ON PURE WHITE
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  background: #FFFFFF;
  border-bottom: 1px solid var(--rule);
  padding: clamp(50px, 7vw, 90px) 0;
}

.banner-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.banner-content h1 {
  margin-bottom: 14px;
}

.banner-content p {
  font-size: 1.15rem;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   CARDS & GRIDS (Pure White with 1px Line Borders)
   -------------------------------------------------------------------------- */
.card-white {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--card-shadow);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card-white:hover {
  border-color: rgba(30, 58, 47, 0.28);
  transform: translateY(-2px);
}

/* 4 Counters Strip */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.counter-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  box-shadow: var(--card-shadow);
}

.counter-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent);
}

.counter-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.counter-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.counter-sub {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* 5 Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.pillar-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
}

.pillar-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.35;
}

/* Patron Quote Strip (Pure White with thin saffron rules) */
.quote-strip {
  background: #FFFFFF;
  border-top: 1px solid var(--rule-accent);
  border-bottom: 1px solid var(--rule-accent);
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
}

.quote-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.45;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  position: relative;
}

.quote-author {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.quote-role {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 4px;
}

/* ==========================================================================
   PATRON BENEDICTION CINEMATIC SHOWCASE (Dr. D. Veerendra Heggade)
   ========================================================================== */
.patron-benediction-scene {
  background: #FFFFFF;
  border-top: 1px solid var(--rule-accent);
  border-bottom: 1px solid var(--rule-accent);
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
}

.patron-quote-cinema-card {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(36px, 6vw, 70px);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}

.patron-portrait-col {
  position: relative;
}

.patron-portrait-frame {
  position: relative;
  border: 1px solid var(--rule-accent);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(19, 38, 31, 0.06);
}

.patron-portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius-sm) - 4px);
  display: block;
}

.patron-frame-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  pointer-events: none;
}

.corner-tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.corner-tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.corner-bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.corner-br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.patron-floating-tag {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rule-accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.patron-floating-tag i {
  color: var(--accent);
  font-size: 0.85rem;
}

.patron-quote-col {
  position: relative;
}

.patron-quote-icon {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
  opacity: 0.9;
}

.patron-quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  line-height: 1.55;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

.patron-meta-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.patron-divider-line {
  flex: 1;
  height: 1px;
  background: var(--rule-accent);
}

.patron-divider-symbol {
  color: var(--accent);
  font-size: 0.8rem;
}

.patron-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patron-name {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.patron-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.patron-subtitle {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 500;
}

@media (max-width: 860px) {
  .patron-quote-cinema-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .patron-portrait-frame {
    max-width: 320px;
    margin: 0 auto;
  }
  .patron-meta-divider {
    justify-content: center;
  }
}

/* 6 Facilities Cards (Pure White with Line-art imagery) */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.facility-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.facility-card:hover {
  border-color: rgba(30, 58, 47, 0.3);
  transform: translateY(-3px);
}

.facility-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #FFFFFF;
  border-bottom: 1px solid var(--rule);
}

.facility-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 0.5s ease;
}

.facility-card:hover .facility-card-img img {
  transform: scale(1.03);
}

.facility-card-body {
  padding: 26px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.facility-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.facility-card-summary {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

/* Vignettes Grid (1000x1250 Line Art) */
.vignettes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.vignette-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.vignette-card-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #FFFFFF;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.vignette-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.vignette-card-info {
  padding: 20px 22px;
}

.vignette-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  display: block;
}

.vignette-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.vignette-card-caption {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   DINACHARYA: DAWN TO DUSK SCROLL SCENE (Sticky Line Art + Sun Arc)
   -------------------------------------------------------------------------- */
.dinacharya-scene {
  position: relative;
  background: #FFFFFF;
  padding: clamp(40px, 6vw, 80px) 0;
}

.dinacharya-sticky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.dinacharya-visual-pane {
  position: sticky;
  top: 110px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

/* Sun/Moon Arc Progress Indicator */
.celestial-arc-wrapper {
  position: relative;
  width: 100%;
  height: 90px;
  margin-bottom: 20px;
}

.celestial-arc-svg {
  width: 100%;
  height: 100%;
}

.celestial-body {
  transition: transform 0.3s ease;
}

.dinacharya-illustration-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule);
  overflow: hidden;
  background: #FFFFFF;
}

.dinacharya-illustration-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: #FFFFFF;
}

.dinacharya-illustration-slide.is-active {
  opacity: 1;
}

.dinacharya-illustration-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Timeline Cards on the right */
.dinacharya-slots-pane {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.phase-pill-btn {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.phase-pill-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.phase-pill-btn.active {
  background: var(--primary) !important;
  color: #FFFFFF !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 8px rgba(30, 58, 47, 0.2);
}

.timeline-slot-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 30px 28px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.timeline-slot-card.is-active {
  border-color: var(--primary);
  border-left: 4px solid var(--accent);
}

.timeline-slot-time {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.timeline-slot-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.25;
}

.timeline-slot-desc {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 16px;
}

.timeline-skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(30, 58, 47, 0.05);
  border: 1px solid var(--rule);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   GALLERY: Pure White Masonry with Minimalist Frames & Lightbox
   -------------------------------------------------------------------------- */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-pill {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.gallery-grid {
  columns: 3 320px;
  column-gap: 24px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 24px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.gallery-caption {
  padding: 14px 18px;
  border-top: 1px solid var(--rule);
  background: #FFFFFF;
}

.gallery-caption h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

/* Accessible Lightbox */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lightbox-modal.is-active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap {
  border: 1px solid var(--rule);
  background: #FFFFFF;
  max-height: 75vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox-img-wrap img {
  max-height: 75vh;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.lightbox-caption-text {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  color: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   FOOTER (Pure White Architecture with Forest Green & Saffron Balance)
   -------------------------------------------------------------------------- */
.footer {
  background-color: #FFFFFF;
  border-top: 1px solid var(--rule);
  padding: clamp(50px, 7vw, 80px) 0 32px 0;
  color: var(--ink);
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 0.95fr) minmax(230px, 1.35fr) minmax(250px, 1.3fr);
  gap: clamp(24px, 3.5vw, 48px);
  margin-bottom: 48px;
  align-items: start;
}

.footer-col {
  min-width: 0;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  position: relative;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col h3::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  margin-top: 8px;
  border-radius: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 11px;
  line-height: 1.45;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* 5 Pillars Links */
.footer-pillars li {
  margin-bottom: 12px;
}

.footer-pillars a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 0.88rem;
  color: var(--ink);
}

.footer-pillars a i {
  color: var(--accent);
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.footer-pillars a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* Contact List */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.footer-contact-item strong {
  color: var(--ink);
  font-weight: 700;
  margin-right: 4px;
}

.footer-contact-item a {
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Tradition Badge */
.footer-tradition-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(217, 119, 6, 0.05);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.footer-bottom-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--primary);
}

.footer-bottom-badge .dot {
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY: PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .draw-on-reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .dinacharya-visual-pane {
    position: static !important;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-visual-col {
    order: -1;
  }
  .dinacharya-sticky-grid {
    grid-template-columns: 1fr;
  }
  .dinacharya-visual-pane {
    position: static;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-lineage-bar.hide-mobile {
    display: none !important;
  }
  .d-none-mobile {
    display: none !important;
  }
  .nav-desktop {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
