/* ==========================================================================
   Sri Guha Lingeswara Swamy Temple - Divine Heritage Design System
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Mandali&family=Noto+Serif+Devanagari:wght@400;600;700&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Tiro+Telugu:ital@0;1&family=Yatra+One&display=swap");

:root {
  /* =========================================================================
     Traditional & Modern Temple Color Palette
     ========================================================================= */
  --color-maroon-dark: #5a1515; /* Deep Sacred Maroon */
  --color-maroon-deep: #6b1e1e; /* Deep Maroon for Header, Footer & Sections */
  --color-maroon-primary: #8b1e1e; /* Primary Deep Maroon for Headings & Accents */
  --color-maroon-crimson: #a32222; /* Warm Maroon Accent */
  --color-maroon-glow: rgba(139, 30, 30, 0.35);

  --color-gold-deep: #b8860b; /* Antique Temple Gold */
  --color-gold-primary: #d4a017; /* Secondary Temple Gold (Borders, Icons, Logo, Active) */
  --color-gold-bright: #e5b020; /* Bright Shimmer Gold */
  --color-gold-shimmer: #f3c242; /* Light Gold Accent */
  --color-gold-glow: rgba(212, 160, 23, 0.45);

  --color-saffron-primary: #e87518; /* Accent Saffron (Primary Buttons, Highlights, Hover) */
  --color-saffron-light: #f8e2c0; /* Light Saffron (Cards/Section Subtle BG) */
  --color-saffron-glow: rgba(232, 117, 24, 0.4);

  --color-cream-bg: #fff8e7; /* Sacred Cream Main Background */
  --color-sandal-light: #fffdf8; /* Light Cream */
  --color-sandal-cream: #fff8e7; /* Cream (Alias) */
  --color-sandal-soft: #fbf1d8; /* Soft Sandal */
  --color-sandal-border: #ebd9b5; /* Warm Gold-Sandal Border */

  --color-charcoal-dark: #221411; /* Deep Brown */
  --color-charcoal-body: #3e2723; /* Warm Dark Brown Body Text */
  --color-charcoal-muted: #6d4c41; /* Muted Warm Brown */

  --color-divine-white: #ffffff; /* Pure White */
  --color-holy-kumkum: #b71c1c; /* Sacred Kumkum */

  /* Typography */
  --font-telugu: "Mandali", "Tiro Telugu", sans-serif;
  --font-devanagari: "Noto Serif Devanagari", "Yatra One", serif;
  --font-heading: "Cinzel", "Playfair Display", serif;
  --font-body:
    "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Elevation & Shadows */
  --shadow-subtle: 0 4px 12px rgba(62, 39, 35, 0.06);
  --shadow-medium: 0 8px 24px rgba(107, 30, 30, 0.1);
  --shadow-deep: 0 16px 36px rgba(107, 30, 30, 0.18);
  --shadow-divine-gold: 0 8px 30px rgba(212, 160, 23, 0.3);
  --shadow-3d-card:
    0 20px 40px -10px rgba(62, 39, 35, 0.15), 0 0 15px rgba(212, 160, 23, 0.15);

  /* Dynamic Sticky Header Height */
  --top-bar-height: 42px;

  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-bar-height, 42px) + 65px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal-body);
  background-color: var(--color-cream-bg);
  background-image:
    radial-gradient(var(--color-sandal-soft) 1px, transparent 1px),
    radial-gradient(rgba(212, 160, 23, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position:
    0 0,
    16px 16px;
  line-height: 1.7;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
}

/* Multilingual Dynamic Typography Tuning */
html[lang="te"] body {
  font-family: var(--font-telugu), var(--font-body);
}

html[lang="hi"] body {
  font-family: var(--font-devanagari), var(--font-body);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Translatable Text Crossfade */
.text-fade-out {
  opacity: 0;
  transform: translateY(-2px);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
}

.text-fade-in {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* ==========================================================================
   Top Chant Bar & Language Selector
   ========================================================================== */
.top-bar {
  background: linear-gradient(
    135deg,
    var(--color-maroon-dark) 0%,
    var(--color-maroon-primary) 100%
  );
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--color-gold-bright);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-chant {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.5px;
  color: var(--color-gold-shimmer);
  font-weight: 500;
}

.top-chant .om-symbol {
  font-size: 1.15rem;
  color: #fff;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Devotional Audio Controls */
.audio-controls {
  display: flex;
  gap: 0.4rem;
}

.audio-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-gold-shimmer);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.audio-btn:hover {
  background: var(--color-gold-bright);
  color: var(--color-maroon-dark);
  border-color: var(--color-gold-bright);
}

.audio-btn.audio-active-pulse {
  animation: bellRing 0.8s ease;
  background: var(--color-gold-bright);
  color: var(--color-maroon-dark);
}

.audio-btn.playing {
  background: #10b981;
  color: #fff;
  border-color: #059669;
}

@keyframes bellRing {
  0%,
  100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-15deg);
  }
  40% {
    transform: rotate(15deg);
  }
  60% {
    transform: rotate(-10deg);
  }
  80% {
    transform: rotate(8deg);
  }
}

/* Language Switcher Buttons */
/* ==========================================================================
   Language Modes & Bilingual (Telugu + English) Display
   ========================================================================== */
.lang-switcher {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 20px;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.lang-btn {
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition-fast);
}

.lang-btn:hover {
  color: var(--color-gold-shimmer);
}

.lang-btn.active {
  background: linear-gradient(
    135deg,
    var(--color-gold-bright) 0%,
    var(--color-gold-deep) 100%
  );
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Bilingual Block Component */
.bilingual-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--color-sandal-border);
  box-shadow: var(--shadow-medium);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.bilingual-card:hover {
  box-shadow: var(--shadow-deep);
  border-color: var(--color-gold-bright);
}

.bilingual-header {
  background: linear-gradient(90deg, #fdf8eb 0%, #fff 100%);
  border-bottom: 1px solid var(--color-sandal-border);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bilingual-header-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-maroon-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bilingual-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.bilingual-col {
  padding: 1.75rem;
  position: relative;
}

.bilingual-col.telugu-col {
  background: #ffffff;
  border-right: 1px solid var(--color-sandal-border);
  font-family: var(--font-telugu), var(--font-body);
}

.bilingual-col.english-col {
  background: #fdfdfb;
  font-family: var(--font-body);
}

.bilingual-col.hindi-col {
  background: #fffdf9;
  font-family: var(--font-devanagari), var(--font-body);
  display: none;
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  letter-spacing: 0.5px;
}

.telugu-col .lang-badge {
  background: #fef2f2;
  color: var(--color-maroon-primary);
  border: 1px solid #fecaca;
}

.english-col .lang-badge {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.hindi-col .lang-badge {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.bilingual-col h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-maroon-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.english-col h4 {
  color: var(--color-gold-deep);
}

.bilingual-col p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-charcoal-body);
  margin-bottom: 0.85rem;
}

.bilingual-col p:last-child {
  margin-bottom: 0;
}

/* Visibility Control based on active language mode */
/* 1. Default Mode: 'te_en' (Show both Telugu & English side-by-side) */
body.mode-te_en .telugu-col,
body.mode-te_en .english-col {
  display: block !important;
}
body.mode-te_en .bilingual-content-grid {
  grid-template-columns: 1fr 1fr;
}
body.mode-te_en .hindi-col {
  display: none !important;
}

/* 2. Telugu Only Mode: 'te' */
body.mode-te .telugu-col {
  display: block !important;
  border-right: none !important;
}
body.mode-te .bilingual-content-grid {
  grid-template-columns: 1fr !important;
}
body.mode-te .english-col,
body.mode-te .hindi-col {
  display: none !important;
}

/* 3. English Only Mode: 'en' */
body.mode-en .english-col {
  display: block !important;
  border-right: none !important;
}
body.mode-en .bilingual-content-grid {
  grid-template-columns: 1fr !important;
}
body.mode-en .telugu-col,
body.mode-en .hindi-col {
  display: none !important;
}

/* 4. Hindi Only Mode: 'hi' */
body.mode-hi .hindi-col {
  display: block !important;
  border-right: none !important;
}
body.mode-hi .bilingual-content-grid {
  grid-template-columns: 1fr !important;
}
body.mode-hi .telugu-col,
body.mode-hi .english-col {
  display: none !important;
}

@media (max-width: 900px) {
  body.mode-te_en .bilingual-content-grid {
    grid-template-columns: 1fr;
  }
  .bilingual-col.telugu-col {
    border-right: none;
    border-bottom: 1px solid var(--color-sandal-border);
  }
}

/* ==========================================================================
   Main Branding Header
   ========================================================================== */
.brand-header {
  background-color: var(--color-sandal-light);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-sandal-border);
  box-shadow: var(--shadow-subtle);
  position: relative;
}

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

.brand-identity {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-logo-frame {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  border: 2px solid var(--color-gold-deep);
  padding: 3px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2);
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.brand-logo-frame:hover {
  transform: translateY(-2px) scale(1.06);
  border-color: var(--color-gold-bright);
  box-shadow:
    0 8px 24px rgba(212, 160, 23, 0.45),
    0 0 12px rgba(212, 160, 23, 0.3);
}

.brand-logo-frame:active {
  transform: scale(0.97);
}

.brand-logo-frame:focus-visible {
  outline: 3px solid var(--color-gold-bright);
  outline-offset: 3px;
}

.brand-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.4s ease;
}

.brand-logo-frame:hover img {
  transform: scale(1.1);
}

.logo-preview-badge {
  position: absolute;
  inset: 0;
  background: rgba(90, 21, 21, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  border-radius: 6px;
  font-size: 1.15rem;
  color: #fff;
  transition: opacity 0.25s ease;
  pointer-events: none;
  backdrop-filter: blur(1px);
}

.brand-logo-frame:hover .logo-preview-badge {
  opacity: 1;
}

.brand-text h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-maroon-primary);
  line-height: 1.2;
  margin-bottom: 0.2rem;
  letter-spacing: 0.3px;
}

.brand-subtitle {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gold-deep);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--color-charcoal-muted);
  font-style: italic;
  letter-spacing: 0.5px;
}

.brand-symbol-om {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-gold-primary);
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(217, 119, 6, 0.3));
  transition: transform 0.5s ease;
}

.brand-symbol-om:hover {
  transform: scale(1.08) rotate(3deg);
}

/* ==========================================================================
   Navigation Bar (Sticky)
   ========================================================================== */
.main-header {
  position: sticky;
  top: var(--top-bar-height, 42px);
  z-index: 999;
  background: var(--color-maroon-primary); /* Deep Maroon #8B1E1E */
  border-bottom: 2px solid var(--color-gold-primary); /* Temple Gold #D4A017 */
  box-shadow: 0 4px 18px rgba(90, 21, 21, 0.35);
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  box-shadow: 0 6px 24px rgba(90, 21, 21, 0.45);
  background: rgba(139, 30, 30, 0.98);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffffff; /* Navigation in White */
  position: relative;
  padding: 0.5rem 0.2rem;
  background: transparent !important;
  text-decoration: none;
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--color-gold-primary);
  box-shadow: 0 0 8px rgba(212, 160, 23, 0.6);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--color-gold-bright);
  background: transparent !important;
}

.nav-link:hover::after {
  width: 60%;
}

/* Active State: Temple Gold Text + Glowing Gold Underline */
.nav-link.active {
  color: var(--color-gold-primary) !important;
  font-weight: 700 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.nav-link.active::after {
  width: 100% !important;
  bottom: 0 !important;
  height: 3px !important;
  background: var(--color-gold-primary) !important;
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.85) !important;
}

.nav-action-btn {
  background: var(--color-gold-primary);
  color: #3e2723;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  border: 1px solid var(--color-gold-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.nav-action-btn:hover {
  background: var(--color-saffron-primary);
  color: #ffffff;
  border-color: var(--color-saffron-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(232, 117, 24, 0.4);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 26px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Mobile Drawer Header & Backdrop (Hidden on Desktop) */
.drawer-header-item {
  display: none;
}

.nav-backdrop {
  display: none;
}

/* ==========================================================================
   Hero Section with 3D Depth & Vignette
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: #000;
  overflow: hidden;
  color: #fff;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.03);
  transition: transform 12s ease-out;
  filter: brightness(0.85);
}

.hero-section:hover .hero-background img {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(107, 30, 30, 0.78) 0%,
    rgba(62, 39, 35, 0.7) 45%,
    rgba(34, 20, 17, 0.94) 100%
  );
  z-index: 2;
}

.hero-particles {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 20%,
    rgba(212, 160, 23, 0.18) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  padding: 4rem 0 7rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 160, 23, 0.22);
  border: 1px solid var(--color-gold-primary);
  color: var(--color-gold-shimmer);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 0.75rem;
  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(212, 160, 23, 0.35);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--color-gold-shimmer);
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-quote {
  font-size: 1.05rem;
  color: #fff8e7;
  font-style: italic;
  max-width: 650px;
  margin-bottom: 2.2rem;
  border-left: 3px solid var(--color-gold-primary);
  padding-left: 1rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  background: var(--color-gold-primary);
  color: #3e2723;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  border: 1px solid var(--color-gold-primary);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--color-saffron-primary);
  color: #ffffff;
  border-color: var(--color-saffron-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 117, 24, 0.5);
}

.btn-maroon {
  background: var(--color-maroon-primary);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  border: 1px solid var(--color-gold-primary);
  box-shadow: 0 4px 15px rgba(107, 30, 30, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-maroon:hover {
  background: var(--color-saffron-primary);
  color: #ffffff;
  border-color: var(--color-saffron-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 117, 24, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 2px solid var(--color-gold-primary);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: var(--color-gold-primary);
  color: #3e2723;
  border-color: var(--color-gold-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   3D Overlapping Feature Cards
   ========================================================================== */
.feature-cards-wrap {
  position: relative;
  z-index: 10;
  margin-top: -4.5rem;
  padding-bottom: 2rem;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* 3D Tilt Card Component */
.tilt-card {
  --rx: 0deg;
  --ry: 0deg;
  --glare-x: 50%;
  --glare-y: 50%;
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  border: 1px solid var(--color-sandal-border);
  box-shadow: var(--shadow-3d-card);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s ease;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.tilt-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-gold-primary),
    var(--color-maroon-primary)
  );
  opacity: 0.9;
}

.tilt-card:hover {
  box-shadow:
    0 25px 50px -12px rgba(123, 17, 19, 0.25),
    0 0 20px rgba(217, 119, 6, 0.2);
  border-color: var(--color-gold-bright);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: inline-block;
  transform: translateZ(25px);
  filter: drop-shadow(0 2px 6px rgba(217, 119, 6, 0.3));
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-maroon-primary);
  margin-bottom: 0.6rem;
  transform: translateZ(20px);
}

.card-desc {
  font-size: 0.92rem;
  color: var(--color-charcoal-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  transform: translateZ(15px);
}

.card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transform: translateZ(22px);
  transition: var(--transition-fast);
}

.card-link:hover {
  color: var(--color-maroon-primary);
  transform: translateZ(22px) translateX(4px);
}

/* ==========================================================================
   Notice Marquee Banner
   ========================================================================== */
.notice-banner {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
  padding: 0.85rem 0;
  margin: 1.5rem 0 3rem;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08);
}

.notice-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.notice-badge {
  background: var(--color-maroon-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.notice-text {
  color: #78350f;
  font-weight: 500;
}

/* ==========================================================================
   Section Layout & Typography
   ========================================================================== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section.alt-bg {
  background-color: var(--color-sandal-light);
  border-top: 1px solid var(--color-sandal-border);
  border-bottom: 1px solid var(--color-sandal-border);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(123, 17, 19, 0.08);
  color: var(--color-maroon-primary);
  border: 1px solid rgba(123, 17, 19, 0.2);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--color-maroon-primary);
  line-height: 1.25;
  margin-bottom: 0.8rem;
  letter-spacing: 0.2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-gold-deep);
  font-weight: 600;
}

.devotional-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem auto 0;
  max-width: 260px;
}

.divider-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-gold-primary),
    transparent
  );
}

.divider-icon {
  color: var(--color-gold-deep);
  font-size: 1.2rem;
}

/* ==========================================================================
   Two-Column Story Layout (Sthalapuranam)
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.story-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  color: var(--color-charcoal-body);
}

.story-highlight-box {
  background: #fff;
  border-left: 4px solid var(--color-gold-primary);
  border-radius: 0 8px 8px 0;
  padding: 1.4rem 1.6rem;
  margin: 1.8rem 0;
  box-shadow: var(--shadow-subtle);
}

.story-highlight-box h4 {
  font-size: 1.15rem;
  color: var(--color-maroon-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.story-media {
  position: relative;
}

.image-frame-3d {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border: 4px solid #fff;
  transition: transform 0.4s ease;
}

.image-frame-3d:hover {
  transform: translateY(-4px);
}

.image-frame-3d img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-frame-3d:hover img {
  transform: scale(1.04);
}

.image-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.decorative-frame-accent {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-gold-primary);
  border-radius: 16px;
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   Interactive 3D Sanctum / Shrine Explorer Tabs
   ========================================================================== */
.sanctum-explorer-wrap {
  margin-top: 2rem;
}

.sanctum-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.sanctum-tab {
  background: #fff;
  border: 1px solid var(--color-sandal-border);
  color: var(--color-charcoal-muted);
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-fast);
}

.sanctum-tab:hover {
  color: var(--color-maroon-primary);
  border-color: var(--color-gold-bright);
}

.sanctum-tab.active {
  background: linear-gradient(
    135deg,
    var(--color-maroon-primary) 0%,
    var(--color-maroon-dark) 100%
  );
  color: #fff;
  border-color: var(--color-maroon-dark);
  box-shadow: var(--shadow-medium);
}

.sanctum-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.sanctum-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

/* ==========================================================================
   Sacred Shloka Banner
   ========================================================================== */
.shloka-banner {
  background: linear-gradient(
    135deg,
    var(--color-maroon-dark) 0%,
    #350406 100%
  );
  color: #fff;
  border-radius: 14px;
  padding: 3rem 2.5rem;
  margin: 3.5rem 0 2rem;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--color-gold-primary);
  box-shadow: var(--shadow-deep);
  text-align: center;
}

.shloka-banner::before {
  content: "ॐ";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16rem;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  font-family: serif;
}

.shloka-title {
  color: var(--color-gold-shimmer);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.shloka-verse {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.shloka-meaning {
  font-size: 1.05rem;
  color: #f3f4f6;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================================================
   Secret Underground Tunnel Section (5000 Years Mystery)
   ========================================================================== */
.mystery-tunnel-card {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 16px;
  padding: 3rem;
  color: #fff;
  box-shadow: var(--shadow-deep);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.mystery-tunnel-card .image-frame-3d img {
  height: 380px;
}

.mystery-badge {
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid var(--color-gold-bright);
  color: var(--color-gold-shimmer);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}

.mystery-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.mystery-subtitle {
  color: var(--color-gold-bright);
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  font-weight: 600;
}

.mystery-tunnel-card p {
  color: #d1d5db;
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* ==========================================================================
   South Gate - East Facing Lingam (Karma to Jnana)
   ========================================================================== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.philosophy-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.2rem;
  border: 1px solid var(--color-sandal-border);
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.philosophy-card.south-gate {
  border-top: 4px solid var(--color-maroon-primary);
}

.philosophy-card.east-lingam {
  border-top: 4px solid var(--color-gold-bright);
}

.direction-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
}

.south-gate .direction-indicator {
  color: var(--color-maroon-primary);
}

.east-lingam .direction-indicator {
  color: var(--color-gold-deep);
}

.phil-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-charcoal-dark);
  margin-bottom: 0.8rem;
}

.phil-desc {
  font-size: 0.98rem;
  color: var(--color-charcoal-muted);
  line-height: 1.7;
}

/* The Spiritual Transition Roadmap */
.journey-roadmap {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--color-sandal-border);
  box-shadow: var(--shadow-subtle);
  margin-top: 1.5rem;
}

.journey-header {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-maroon-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.roadmap-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.roadmap-step {
  background: var(--color-sandal-cream);
  padding: 1.4rem;
  border-radius: 8px;
  text-align: center;
  border: 1px dashed var(--color-gold-primary);
  position: relative;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--color-gold-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 auto 0.75rem;
}

.step-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-charcoal-dark);
}

/* ==========================================================================
   Tattvasaram (4 Pillar Cards)
   ========================================================================== */
.tattva-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tattva-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  border: 1px solid var(--color-sandal-border);
  box-shadow: var(--shadow-medium);
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.tattva-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold-primary);
  box-shadow: var(--shadow-divine-gold);
}

.tattva-card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.tattva-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-maroon-primary);
  margin-bottom: 0.35rem;
}

.tattva-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.85rem;
}

.tattva-desc {
  font-size: 0.9rem;
  color: var(--color-charcoal-muted);
  line-height: 1.65;
}

.tattva-summary-card {
  background: linear-gradient(
    135deg,
    var(--color-maroon-primary) 0%,
    var(--color-maroon-dark) 100%
  );
  color: #fff;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin-top: 2.5rem;
  text-align: center;
  border: 1px solid var(--color-gold-bright);
  box-shadow: var(--shadow-deep);
}

.tattva-summary-card p {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.8;
  color: #fff;
}

/* ==========================================================================
   Festivals (Utsavalu) Section
   ========================================================================== */
.festivals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.festival-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--color-sandal-border);
  transition: var(--transition-smooth);
}

.festival-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-deep);
  border-color: var(--color-gold-primary);
}

.festival-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.festival-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.festival-card:hover .festival-card-img img {
  transform: scale(1.06);
}

.festival-card-body {
  padding: 1.75rem;
}

.fest-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.fest-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-maroon-primary);
  margin-bottom: 0.6rem;
}

.fest-desc {
  font-size: 0.92rem;
  color: var(--color-charcoal-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Darshan Timings Showcase - Small Card & Full Width
   ========================================================================== */
.timings-card {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #fffdf8 100%);
  border-radius: 14px;
  padding: 1.25rem 2rem;
  border: 1.5px solid var(--color-gold-primary);
  box-shadow:
    var(--shadow-subtle),
    0 6px 24px rgba(217, 119, 6, 0.08);
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.timings-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-maroon-primary),
    var(--color-gold-primary),
    var(--color-maroon-primary)
  );
}

.timings-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.timings-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
}

.clock-icon-compact {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(
    135deg,
    var(--color-gold-primary),
    var(--color-maroon-primary)
  );
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.timings-header-text {
  text-align: left;
}

.timings-header-text .section-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.25rem;
  display: inline-block;
}

.timings-header-text .timings-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-maroon-primary);
  margin: 0;
  line-height: 1.3;
}

.timings-header-text .timings-subtitle {
  font-size: 0.82rem;
  color: var(--color-charcoal-muted);
  margin-top: 0.15rem;
  line-height: 1.4;
}

.timing-hours-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 1 auto;
  justify-content: flex-end;
  margin: 0;
}

.time-slot {
  background: var(--color-sandal-cream);
  border: 1px solid var(--color-sandal-border);
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 200px;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.time-slot:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold-primary);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.time-slot .slot-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.time-slot .time-slot-content {
  display: flex;
  flex-direction: column;
}

.time-slot .time-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-maroon-primary);
  line-height: 1.35;
}

.timing-note-box {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(217, 119, 6, 0.3);
  color: #78350f;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.5;
  width: 100%;
}

.timing-note-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Photo Gallery Grid & Lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  height: 260px;
  border: 3px solid #fff;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-deep);
  border-color: var(--color-gold-bright);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Gallery Video Item Special Styling */
.gallery-item.gallery-video-item {
  border-color: rgba(255, 215, 0, 0.7);
}

.gallery-item.gallery-video-item:hover {
  border-color: var(--color-gold-bright);
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
}

.gallery-video-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(18, 12, 5, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.65);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 3;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.gallery-video-tag .video-tag-icon {
  color: #ff3b30;
  font-size: 0.72rem;
  line-height: 1;
}

.gallery-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 64px;
  height: 64px;
  background: radial-gradient(circle, #e6b800 0%, #b8860b 80%, #7d5900 100%);
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65), 0 0 22px rgba(255, 215, 0, 0.6);
  transition:
    transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background 0.3s ease,
    box-shadow 0.35s ease;
  z-index: 3;
  pointer-events: none;
}

.gallery-video-play-btn svg {
  margin-left: 3px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.gallery-item:hover .gallery-video-play-btn {
  transform: translate(-50%, -50%) scale(1.18);
  background: radial-gradient(circle, #ff5722 0%, #d84315 80%, #bf360c 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 87, 34, 0.85);
}

/* Extra Gallery Items (Revealed when Show More is clicked) */
.gallery-item.gallery-extra {
  display: none;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
}

.gallery-item.gallery-extra.show {
  display: block;
  animation: galleryFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gallery-item.gallery-extra:nth-child(7).show {
  animation-delay: 0.04s;
}
.gallery-item.gallery-extra:nth-child(8).show {
  animation-delay: 0.1s;
}
.gallery-item.gallery-extra:nth-child(9).show {
  animation-delay: 0.16s;
}
.gallery-item.gallery-extra:nth-child(10).show {
  animation-delay: 0.22s;
}
.gallery-item.gallery-extra:nth-child(11).show {
  animation-delay: 0.28s;
}

/* Show More Action Container & Sacred Button */
.gallery-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
}

.gallery-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(
    135deg,
    var(--color-maroon-dark) 0%,
    var(--color-maroon-primary) 100%
  );
  color: #ffffff;
  border: 1.5px solid var(--color-gold-bright);
  border-radius: 50px;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 6px 20px rgba(107, 30, 30, 0.25),
    0 0 12px rgba(212, 160, 23, 0.2);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.gallery-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.6s ease;
}

.gallery-more-btn:hover::before {
  left: 100%;
}

.gallery-more-btn:hover {
  background: linear-gradient(
    135deg,
    var(--color-gold-bright) 0%,
    var(--color-gold-deep) 100%
  );
  color: var(--color-maroon-dark);
  border-color: var(--color-gold-shimmer);
  box-shadow:
    0 8px 25px rgba(212, 160, 23, 0.45),
    0 0 18px rgba(212, 160, 23, 0.3);
  transform: translateY(-2px);
}

.gallery-more-btn .btn-camera-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.gallery-more-btn:hover .btn-camera-icon {
  transform: scale(1.15) rotate(-8deg);
}

.gallery-more-btn .btn-chevron {
  font-size: 1.15rem;
  font-weight: 800;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-more-btn.expanded .btn-chevron {
  transform: rotate(180deg);
}

/* Modal Lightbox */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gallery-modal.active {
  display: flex;
}

.modal-content-wrap {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.modal-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.modal-close-btn:hover {
  color: var(--color-gold-bright);
  transform: scale(1.15);
}

.modal-img-element {
  max-height: 75vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  border: 2px solid var(--color-gold-bright);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* Modal Video Player */
.modal-video-container {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--color-gold-bright);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.95);
  background: #000;
}

.modal-video-player {
  width: 100%;
  height: auto;
  max-height: 72vh;
  display: block;
  background: #000;
  outline: none;
}

.modal-caption-text {
  color: #fff;
  font-size: 1.1rem;
  margin-top: 1rem;
  font-weight: 600;
}

.modal-video-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.9rem;
}

.modal-yt-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ff0000;
  color: #ffffff !important;
  padding: 0.55rem 1.35rem;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease;
}

.modal-yt-watch-btn:hover {
  background: #cc0000;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 22px rgba(255, 0, 0, 0.65);
}

/* ==========================================================================
   How to Reach / Travel Guide
   ========================================================================== */
.travel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.travel-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.2rem;
  border: 1px solid var(--color-sandal-border);
  box-shadow: var(--shadow-medium);
}

.travel-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.travel-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--color-sandal-cream);
  border: 1px solid var(--color-gold-primary);
  color: var(--color-gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.travel-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-maroon-primary);
}

.travel-card p {
  font-size: 0.96rem;
  color: var(--color-charcoal-body);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.rail-stops-list {
  list-style: none;
  margin-top: 1rem;
}

.rail-stops-list li {
  padding: 0.75rem 1rem;
  background: var(--color-sandal-cream);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--color-gold-primary);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-charcoal-dark);
}

/* ==========================================================================
   Footer & Devotional Sub-footer (Deep Maroon & Temple Gold)
   ========================================================================== */
.main-footer {
  background: linear-gradient(180deg, #6b1e1e 0%, #5a1515 100%);
  border-top: 3px solid var(--color-gold-primary);
  padding: 4rem 0 2rem;
  color: #fff8e7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold-primary); /* Temple Gold #D4A017 */
  margin-bottom: 1.25rem;
  letter-spacing: 0.3px;
}

.footer-col p {
  font-size: 0.92rem;
  color: #f8e2c0; /* Light Saffron */
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.footer-links-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  gap: 10px 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0rem;
}

.footer-links-list a {
  font-size: 0.92rem;
  color: #ffffff;
  transition: var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--color-gold-bright);
  padding-left: 4px;
}

.sub-footer {
  background: linear-gradient(
    135deg,
    var(--color-maroon-dark) 0%,
    var(--color-maroon-primary) 100%
  );
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.88rem;
  border-top: 2px solid var(--color-gold-bright);
}

.sub-footer-text {
  color: var(--color-gold-shimmer);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.sub-footer-copy {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

/* Back to top floating button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-gold-bright),
    var(--color-gold-deep)
  );
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--color-maroon-primary);
  transform: translateY(-3px);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tattva-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .festivals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .roadmap-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 70px;
  }

  /* In mobile: Top Chant Bar and Brand Header scroll away naturally */
  .top-bar {
    position: relative !important;
    top: auto !important;
    z-index: 10;
    box-shadow: none;
  }

  .brand-header {
    position: relative;
    z-index: 5;
  }

  /* In mobile: Only the Hamburger Nav Card fixes on the top when scrolling */
  .main-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000;
  }

  .story-grid,
  .mystery-tunnel-card,
  .sanctum-panel.active,
  .travel-grid,
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .brand-identity {
    gap: 0.85rem;
  }

  .brand-text h1 {
    font-size: 1.45rem;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .hero-background img {
    transform: none !important;
  }

  .main-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--color-maroon-primary);
  }

  /* Mobile Navigation Drawer */
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    flex-direction: column;
    padding: 0 0 2rem;
    box-shadow: -8px 0 35px rgba(0, 0, 0, 0.35);
    z-index: 10010;
    align-items: stretch;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-left: 3px solid var(--color-gold-primary);
  }

  .nav-menu.open {
    display: flex !important;
    animation: drawerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .nav-menu.closing {
    display: flex !important;
    animation: drawerSlideOut 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes drawerSlideIn {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }

  @keyframes drawerSlideOut {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(100%);
    }
  }

  /* Drawer Top Branding Header */
  .drawer-header-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.25rem 1rem;
    background: linear-gradient(
      135deg,
      var(--color-maroon-dark) 0%,
      var(--color-maroon-primary) 100%
    );
    border-bottom: 2px solid var(--color-gold-primary);
    color: #ffffff;
    margin-bottom: 0.5rem;
  }

  .drawer-title-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .drawer-om {
    font-size: 1.3rem;
    color: var(--color-gold-bright);
  }

  .drawer-temple-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
  }

  .drawer-close-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(212, 160, 23, 0.5);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
  }

  .drawer-close-btn:hover {
    background: var(--color-gold-bright);
    color: var(--color-maroon-dark);
  }

  /* Mobile Nav Links Styling & Explicit Text Color */
  .nav-menu li:not(.drawer-header-item) {
    width: 100%;
    border-bottom: 1px solid var(--color-sandal-border);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.9rem 1.35rem;
    color: var(--color-maroon-primary) !important; /* Deep Sacred Maroon */
    font-size: 1.02rem;
    font-weight: 600;
    text-decoration: none;
    background: transparent !important;
    transition: all 0.25s ease;
    white-space: normal;
  }

  .nav-menu .nav-link::after,
  .nav-menu .nav-link.active::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
  }

  .nav-menu .nav-link:hover {
    color: var(--color-saffron-primary) !important;
    background: rgba(232, 117, 24, 0.08) !important;
    padding-left: 1.6rem;
  }

  /* Active State in Mobile Menu: Highlighted in Divine Temple Gold & Deep Maroon */
  .nav-menu .nav-link.active {
    color: var(--color-maroon-dark) !important;
    font-weight: 700 !important;
    background: linear-gradient(
      90deg,
      rgba(212, 160, 23, 0.22) 0%,
      rgba(212, 160, 23, 0.05) 100%
    ) !important;
    border-left: 4px solid var(--color-gold-primary);
    padding-left: 1.25rem;
    box-shadow: none !important;
  }

  /* Backdrop Overlay */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.35s ease,
      visibility 0.35s ease;
  }

  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Raise header above everything while mobile menu is open */
  body.nav-menu-open .main-header {
    z-index: 10005 !important;
  }

  /* Prevent body scrolling when mobile menu is open */
  body.nav-menu-open {
    overflow: hidden !important;
  }

  .mobile-toggle {
    display: flex;
    z-index: 103;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .top-bar-inner {
    justify-content: center;
  }
  .hero-title {
    font-size: 1.9rem;
  }
  .feature-cards-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .tattva-grid {
    grid-template-columns: 1fr;
  }
  .festivals-grid {
    grid-template-columns: 1fr;
  }
  .timings-card {
    padding: 0.9rem 1rem;
    margin-bottom: 2rem;
    border-radius: 12px;
  }
  .timings-card-main {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .timings-card-header {
    flex: none;
    width: 100%;
    gap: 0.75rem;
  }
  .clock-icon-compact {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.2rem;
    border-radius: 10px;
  }
  .timings-header-text .timings-title {
    font-size: 1.08rem;
  }
  .timings-header-text .timings-subtitle {
    font-size: 0.78rem;
  }
  .timing-hours-box {
    flex: none;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
    height: auto;
  }
  .time-slot {
    flex: none;
    height: auto;
    min-height: unset;
    min-width: unset;
    padding: 0.55rem 0.85rem;
    width: 100%;
    border-radius: 8px;
    box-sizing: border-box;
    gap: 0.6rem;
  }
  .time-slot .slot-icon {
    font-size: 1.15rem;
  }
  .time-slot .time-val {
    font-size: 0.84rem;
    line-height: 1.3;
  }
  .timing-note-box {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .brand-logo-frame {
    width: 56px;
    height: 56px;
  }

  .brand-text h1 {
    font-size: 1.3rem;
  }

  .brand-tagline {
    font-size: 0.74rem;
  }

  .brand-symbol-om {
    font-size: 2.2rem;
  }

  .nav-action-btn {
    font-size: 0.82rem;
    padding: 0.38rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-action-btn {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
    gap: 0.3rem;
  }
}

@media (max-width: 380px) {
  .brand-symbol-om {
    display: none;
  }

  .brand-text h1 {
    font-size: 1.15rem;
  }
}

/* Devotional Welcome Toast Notification */
.devotional-welcome-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(
    135deg,
    var(--color-maroon-dark) 0%,
    var(--color-maroon-primary) 100%
  );
  color: #fff;
  border: 1.5px solid var(--color-gold-primary);
  border-radius: 50px;
  padding: 0.75rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow:
    0 10px 30px rgba(74, 7, 9, 0.4),
    0 0 15px rgba(217, 119, 6, 0.35);
  z-index: 9999;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-telugu), var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  pointer-events: none;
}

.devotional-welcome-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.devotional-welcome-toast .toast-icon {
  font-size: 1.35rem;
  animation: toastBellRing 0.8s ease infinite alternate;
}

@keyframes toastBellRing {
  0% {
    transform: rotate(-15deg);
  }
  100% {
    transform: rotate(15deg);
  }
}

@media (max-width: 600px) {
  .devotional-welcome-toast {
    width: 90%;
    font-size: 0.88rem;
    padding: 0.65rem 1.2rem;
    border-radius: 25px;
    text-align: center;
    justify-content: center;
  }
}
