/* ============================================================================
   Mundkur Sri Durgaparameshwari Temple — 2026 Design System
   Sacred · Elegant · Government-Grade · Premium · Minimal
   ============================================================================ */

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Inter:wght@400;500;600;700&family=Noto+Sans+Kannada:wght@400;600;700&display=swap');

/* Material Symbols */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,1,0');

/* ============================================================================
   1. DESIGN TOKENS
   ============================================================================ */
:root {
  /* --- Colour Palette (Approved — Preserved) --- */
  --terracotta:        #B85220;
  --terracotta-light:  #D96B32;
  --terracotta-dark:   #943A10;
  --sacred-gold:       #E6A135;
  --warm-umber:        #4A2511;
  --sandy-taupe:       #C9B39C;
  --olive-branch:      #5C6343;
  --limestone:         #F4ECE3;

  /* --- Surfaces --- */
  --surface-primary:   #FAF7F3;
  --surface-card:      #FFFFFF;
  --surface-elevated:  #FFFDFB;
  --surface-muted:     #F0EBE4;

  /* --- Text --- */
  --text-primary:      #2E170A;
  --text-secondary:    #6B4D3A;
  --text-tertiary:     #9C8575;
  --text-inverse:      #FFFDF7;

  /* --- Gradients --- */
  --gradient-brand:    linear-gradient(135deg, #D96B32 0%, #B85220 50%, #943A10 100%);
  --gradient-hero:     linear-gradient(180deg, rgba(74,37,17,0.45) 0%, rgba(46,23,10,0.75) 100%);

  /* --- Spacing (8-point grid) --- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  80px;
  --space-10: 96px;

  /* --- Typography Scale --- */
  --font-display:  clamp(2.25rem, 5vw, 3.25rem);
  --font-headline: clamp(1.5rem, 3.5vw, 1.875rem);
  --font-title:    1.25rem;
  --font-body:     1rem;
  --font-caption:  0.875rem;
  --font-label:    0.75rem;

  --leading-tight:   1.3;
  --leading-normal:  1.6;
  --leading-relaxed: 1.8;

  /* --- Elevation (Subtle) --- */
  --shadow-xs:  0 1px 2px rgba(46,23,10,0.04);
  --shadow-sm:  0 1px 3px rgba(46,23,10,0.06), 0 1px 2px rgba(46,23,10,0.04);
  --shadow-md:  0 4px 12px rgba(46,23,10,0.08);
  --shadow-lg:  0 8px 24px rgba(46,23,10,0.10);
  --shadow-xl:  0 12px 32px rgba(46,23,10,0.12);

  /* --- Border Radius --- */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  24px;
  --radius-pill: 9999px;

  /* --- Transitions --- */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;

  /* --- Z-Index Scale --- */
  --z-sticky:  100;
  --z-overlay: 200;
  --z-modal:   300;
  --z-dock:    150;
}

/* ============================================================================
   2. RESET & BASE
   ============================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Noto Sans Kannada', system-ui, sans-serif;
  font-size: var(--font-body);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--surface-primary);
  overflow-x: hidden;
  padding-bottom: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--terracotta);
  text-decoration: none;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--terracotta);
  color: var(--text-inverse);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--duration-fast) var(--ease-standard);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* 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;
  }
}

/* ============================================================================
   3. LAYOUT
   ============================================================================ */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-5);
}

.content-section {
  margin-bottom: var(--space-10);
}

/* ============================================================================
   4. TOP UTILITY BAR
   ============================================================================ */
.header-top-bar {
  background: var(--warm-umber);
  color: var(--text-inverse);
  padding: var(--space-2) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-label);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.top-bar-left span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.9;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,253,247,0.4);
  color: var(--text-inverse);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--font-label);
  font-weight: 600;
  font-family: inherit;
  transition: all var(--duration-fast) var(--ease-standard);
  min-height: 32px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  background: rgba(255,253,247,0.15);
  border-color: rgba(255,253,247,0.6);
}

.lang-btn.active {
  background: var(--sacred-gold);
  color: var(--warm-umber);
  border-color: var(--sacred-gold);
  font-weight: 700;
}

/* ============================================================================
   5. BRAND TITLE ROW
   ============================================================================ */
.brand-title-row {
  background: var(--surface-primary);
  padding: var(--space-5) var(--space-5) var(--space-3);
}

.brand-title-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-title-link {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  text-decoration: none;
  flex-wrap: wrap;
  justify-content: center;
}

.brand-text-block {
  text-align: center;
}

.brand-main-heading {
  font-family: 'Cinzel', 'Noto Serif Kannada', serif;
  font-size: clamp(1.1rem, 3.8vw, 1.875rem);
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.03em;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.brand-sub-heading {
  font-family: 'Cinzel', 'Noto Serif Kannada', serif;
  font-size: clamp(0.7rem, 2.2vw, 0.875rem);
  color: var(--warm-umber);
  letter-spacing: 0.04em;
  margin-top: var(--space-1);
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}

.brand-title-seal {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(92, 44, 22, 0.25));
}

/* ============================================================================
   6. MAIN NAVIGATION
   ============================================================================ */
.main-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(250,247,243,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,179,156,0.3);
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2) var(--space-5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-1);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.mobile-menu-header {
  display: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-standard);
  display: inline-flex;
  align-items: center;
  position: relative;
}

.nav-link:hover {
  color: var(--terracotta);
  background: rgba(184,82,32,0.06);
}

.nav-link.active {
  color: var(--terracotta);
  background: rgba(184,82,32,0.08);
  font-weight: 600;
}

/* Language Toggle in Nav */
.nav-lang-group {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--space-2);
  padding-left: var(--space-2);
  border-left: 1px solid rgba(201,179,156,0.3);
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(201,179,156,0.3);
  color: var(--text-secondary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-label);
  font-weight: 600;
  font-family: inherit;
  transition: all var(--duration-fast) var(--ease-standard);
  min-height: 30px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  background: rgba(184,82,32,0.06);
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.lang-btn.active {
  background: var(--terracotta);
  color: var(--text-inverse);
  border-color: var(--terracotta);
}

.nav-install-btn {
  background: var(--terracotta);
  color: var(--text-inverse);
  border: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-standard);
  min-height: 36px;
  margin-left: var(--space-1);
}

.nav-install-btn:hover {
  background: var(--terracotta-dark);
  box-shadow: var(--shadow-sm);
}

.nav-install-btn:active {
  transform: scale(0.98);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--text-primary);
  border: 1px solid rgba(201,179,156,0.4);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-caption);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin: 0 auto;
  min-height: 48px;
  min-width: 48px;
  touch-action: manipulation;
  transition: all var(--duration-fast) var(--ease-standard);
}

.mobile-menu-toggle:hover {
  background: rgba(184,82,32,0.06);
  border-color: var(--terracotta);
  color: var(--terracotta);
}

/* ============================================================================
   7. HERO SECTION
   ============================================================================ */
.hero-section {
  position: relative;
  min-height: 600px;
  background: url('../images/real_hero_banner1.jpg') center 70% / cover no-repeat;
  background-color: var(--warm-umber);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #FFF;
  text-align: center;
  padding: var(--space-9) var(--space-5) var(--space-10);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.35rem, 5vw, 2.75rem);
  color: var(--text-inverse);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--sacred-gold);
  margin-bottom: var(--space-7);
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================================================
   8. BUTTONS
   ============================================================================ */
.btn-primary {
  background: var(--terracotta);
  color: var(--text-inverse);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-body);
  font-family: inherit;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast) var(--ease-standard);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  line-height: 1;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.98) translateY(0);
  box-shadow: var(--shadow-xs);
}

.btn-secondary {
  background: transparent;
  color: var(--text-inverse);
  border: 1px solid rgba(255,253,247,0.5);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-body);
  font-family: inherit;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  line-height: 1;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,253,247,0.8);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* On-surface button variant (used outside hero) */
.btn-primary-surface {
  background: var(--terracotta);
  color: var(--text-inverse);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-body);
  font-family: inherit;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast) var(--ease-standard);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  line-height: 1;
}

.btn-primary-surface:hover {
  background: var(--terracotta-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ============================================================================
   9. WAVE DIVIDER
   ============================================================================ */
.hero-wave-divider {
  position: relative;
  margin-top: -48px;
  z-index: 3;
  line-height: 0;
  width: 100%;
  overflow: hidden;
}

.hero-wave-divider svg {
  display: block;
  width: 100%;
  height: 48px;
}

.hero-wave-divider .shape-fill {
  fill: var(--surface-primary);
}

/* ============================================================================
   10. POOJA TICKER BAR
   ============================================================================ */
.pooja-ticker-bar {
  background: var(--surface-card);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border: 1px solid rgba(201,179,156,0.3);
  border-radius: var(--radius-lg);
  max-width: 1200px;
  margin: var(--space-5) auto var(--space-7);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  font-size: var(--font-caption);
}

.ticker-countdown {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--terracotta);
  color: var(--text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  white-space: nowrap;
  font-size: var(--font-caption);
}

.ticker-countdown .timer-display {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ============================================================================
   11. SECTION HEADERS
   ============================================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-7);
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: var(--font-headline);
  color: var(--terracotta);
  font-weight: 700;
  line-height: var(--leading-tight);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--sacred-gold);
  margin: var(--space-3) auto 0;
  border-radius: 2px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 640px;
  margin: var(--space-3) auto 0;
  font-size: var(--font-body);
  font-weight: 400;
  line-height: var(--leading-relaxed);
}

/* ============================================================================
   12. CARDS
   ============================================================================ */

/* --- History / Info Cards --- */
.history-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.history-card {
  flex: 0 0 calc(33.333% - var(--space-6));
  max-width: calc(33.333% - var(--space-6));
  background: var(--surface-card);
  border: 1px solid rgba(201,179,156,0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  box-sizing: border-box;
}

.history-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(201,179,156,0.4);
}

.card-tag {
  font-size: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.history-card h3 {
  font-family: 'Cinzel', serif;
  color: var(--text-primary);
  font-size: var(--font-title);
  margin-bottom: var(--space-3);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.history-card p {
  color: var(--text-secondary);
  font-size: var(--font-caption);
  line-height: var(--leading-relaxed);
}

/* --- Gallery Cards (Navadurga) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-card {
  background: var(--surface-card);
  border: 1px solid rgba(201,179,156,0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-normal) var(--ease-standard);
}

.gallery-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.gallery-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-standard);
}

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

.gallery-card-info {
  padding: var(--space-4);
  text-align: center;
  background: var(--surface-card);
}

.gallery-card-info h4 {
  font-family: 'Cinzel', serif;
  font-size: var(--font-caption);
  color: var(--text-primary);
  font-weight: 700;
}

/* ============================================================================
   13. LIVE TEMPLE CHRONICLE & NEWS GRID
   ============================================================================ */
.chronicle-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: var(--space-4) auto var(--space-7);
  padding: 12px 28px;
  background: linear-gradient(135deg, #3D1C06 0%, #5C2C16 50%, #3D1C06 100%);
  border: 2px solid #D4AF37;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(61, 28, 6, 0.3);
  flex-wrap: wrap;
  gap: var(--space-4);
  color: #FFE599;
}

.chronicle-filter-bar .date-picker-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.chronicle-filter-bar .date-label {
  color: #FFE599;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: var(--font-caption);
  letter-spacing: 0.04em;
}

.chronicle-filter-bar .update-date-input {
  background: #FFFDF7;
  color: #3D1C06;
  border: 1px solid #D4AF37;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: var(--font-caption);
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
}

.chronicle-filter-bar .btn-secondary-sm {
  background: linear-gradient(135deg, #8B0000 0%, #5C2C16 100%);
  color: #FFE599;
  border: 1px solid #D4AF37;
  border-radius: 8px;
  padding: 7px 18px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: var(--font-caption);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: all 0.2s ease;
}

.chronicle-filter-bar .btn-secondary-sm:hover {
  background: linear-gradient(135deg, #CC0000 0%, #8B0000 100%);
  color: #FFFFFF;
  border-color: #FFE599;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

.chronicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 992px) {
  .chronicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .chronicle-grid {
    grid-template-columns: 1fr;
  }
}

.chronicle-card {
  background: var(--surface-card);
  border: 1px solid rgba(201, 179, 156, 0.35);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-standard), box-shadow 0.3s var(--ease-standard), border-color 0.3s ease;
  position: relative;
}

.chronicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sacred-gold);
}

.chronicle-card-img-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  background: radial-gradient(circle, #3D1C06 0%, #1A0B05 100%);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chronicle-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
  transition: transform 0.4s var(--ease-standard);
}

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

.chronicle-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #8B0000 0%, #5C2C16 100%);
  color: #FFE599;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sacred-gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  z-index: 2;
}

.chronicle-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.chronicle-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.chronicle-card-excerpt {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.chronicle-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(201, 179, 156, 0.2);
  padding-top: var(--space-3);
  margin-top: auto;
}

.chronicle-view-btn {
  background: transparent;
  color: var(--terracotta);
  border: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: color 0.2s ease;
}

.chronicle-card:hover .chronicle-view-btn {
  color: var(--primary);
}

.chronicle-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-7);
  flex-wrap: wrap;
}

.chronicle-page-btn {
  background: linear-gradient(135deg, #5C2C16 0%, #3D1C06 100%);
  color: #FFE599;
  border: 1px solid #D4AF37;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: var(--font-caption);
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(61, 28, 6, 0.25);
  transition: all 0.25s var(--ease-standard);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chronicle-page-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #8B0000 0%, #5C2C16 100%);
  color: #FFFFFF;
  border-color: #FFE599;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 0, 0, 0.4);
}

.chronicle-page-btn:disabled {
  background: linear-gradient(135deg, #3D1C06 0%, #2A1304 100%);
  color: rgba(212, 175, 55, 0.35);
  border-color: rgba(212, 175, 55, 0.2);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 1;
}

.chronicle-page-indicator {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: var(--font-caption);
  color: var(--terracotta);
  letter-spacing: 0.05em;
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed rgba(201, 179, 156, 0.5);
  border-radius: 50px;
  padding: 8px 20px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.talegari-page-indicator {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: var(--font-body);
  color: var(--warm-umber);
  background: var(--surface-card);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid rgba(201,179,156,0.3);
}

.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: var(--space-7) auto var(--space-5);
  padding: var(--space-5) 0;
}

/* Central Stem */
.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--sandy-taupe) 0%, var(--terracotta) 50%, var(--sandy-taupe) 100%);
  transform: translateX(-50%);
  border-radius: 1px;
  opacity: 0.6;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 var(--space-6) var(--space-7);
  box-sizing: border-box;
  z-index: 2;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* Timeline Node */
.timeline-node {
  position: absolute;
  top: var(--space-5);
  width: 14px;
  height: 14px;
  background: var(--terracotta);
  border: 3px solid var(--surface-primary);
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 0 0 3px rgba(184,82,32,0.15);
  transition: all var(--duration-normal) var(--ease-standard);
}

.timeline-item.left .timeline-node {
  right: -7px;
}

.timeline-item.right .timeline-node {
  left: -7px;
}

.timeline-item:hover .timeline-node {
  background: var(--sacred-gold);
  box-shadow: 0 0 0 4px rgba(230,161,53,0.2);
  transform: scale(1.2);
}

/* Timeline Card */
.timeline-card {
  background: var(--surface-card);
  border: 1px solid rgba(201,179,156,0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-normal) var(--ease-standard);
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-standard);
}

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

.timeline-body {
  padding: var(--space-4);
  background: var(--surface-card);
}

.timeline-date-badge {
  display: inline-block;
  background: rgba(184,82,32,0.08);
  color: var(--terracotta);
  font-size: var(--font-label);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

.timeline-body h4 {
  font-size: var(--font-caption);
  color: var(--text-primary);
  font-weight: 600;
  line-height: var(--leading-normal);
}

/* ============================================================================
   14. SHRINE SHOWCASE
   ============================================================================ */
.shrine-showcase-box {
  margin: var(--space-9) 0;
  background: var(--surface-card);
  border: 1px solid rgba(201,179,156,0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-sm);
}

.shrine-showcase-layout {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-7);
  flex-wrap: wrap;
}

.shrine-showcase-img {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-slow) var(--ease-standard);
}

.shrine-showcase-img:hover {
  transform: scale(1.02);
}

.shrine-showcase-content {
  flex: 1;
  text-align: left;
  min-width: 280px;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(184,82,32,0.08);
  color: var(--terracotta);
  font-size: var(--font-label);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shrine-showcase-content h2 {
  font-family: 'Cinzel', serif;
  color: var(--text-primary);
  margin: var(--space-4) 0;
  font-size: var(--font-headline);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.shrine-showcase-content p {
  color: var(--text-secondary);
  font-size: var(--font-body);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

/* ============================================================================
   15. SEVA TABLE
   ============================================================================ */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,179,156,0.25);
}

.seva-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 480px;
}

.seva-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.seva-table th {
  background: var(--terracotta);
  color: var(--text-inverse);
  padding: var(--space-4);
  font-size: var(--font-caption);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.seva-table th:last-child {
  text-align: right;
}

.seva-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-caption);
  border-bottom: 1px solid rgba(201,179,156,0.15);
}

.seva-table td:first-child {
  font-weight: 600;
  color: var(--text-tertiary);
  width: 48px;
}

.seva-table td:nth-child(2) {
  font-weight: 500;
  color: var(--text-primary);
}

.seva-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--terracotta);
  font-variant-numeric: tabular-nums;
}

.seva-table tbody tr:nth-child(even) {
  background: rgba(244,236,227,0.3);
}

.seva-table tbody tr:hover {
  background: rgba(184,82,32,0.04);
}

/* ============================================================================
   16. E-HUNDI / BANK DETAILS
   ============================================================================ */
.ehundi-container {
  background: var(--surface-card);
  border: 1px solid rgba(201,179,156,0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-7) var(--space-5);
  max-width: 840px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.ehundi-heading {
  font-family: 'Cinzel', serif;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  font-size: var(--font-title);
  font-weight: 700;
  text-align: center;
}

.ehundi-intro {
  color: var(--text-secondary);
  font-size: var(--font-caption);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  text-align: center;
}

.bank-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  text-align: left;
  margin-bottom: var(--space-6);
}

.bank-card {
  background: var(--surface-primary);
  border: 1px solid rgba(201,179,156,0.25);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}

.bank-card h4 {
  color: var(--terracotta);
  margin-bottom: var(--space-3);
  font-size: var(--font-body);
  font-weight: 700;
}

.bank-card p {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.bank-card strong {
  color: var(--text-primary);
}

.important-notes-card {
  background: var(--surface-card);
  border: 1px solid rgba(201,179,156,0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: left;
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.important-notes-card h4 {
  color: var(--terracotta);
  margin-bottom: var(--space-3);
  font-size: var(--font-body);
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

.important-notes-card ul {
  list-style: disc;
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.important-notes-card li {
  font-size: var(--font-caption);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
}

.notice-card {
  background: rgba(184,82,32,0.04);
  border: 1px solid rgba(184,82,32,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: left;
  margin-bottom: var(--space-5);
}

.notice-card h4 {
  color: var(--terracotta);
  margin-bottom: var(--space-2);
  font-size: var(--font-body);
  font-weight: 700;
}

.notice-card p {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.qr-preview-box {
  background: var(--surface-card);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: var(--space-5) auto var(--space-3);
  border: 2px solid var(--sacred-gold);
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 380px;
}

.qr-preview-box h5 {
  font-size: var(--font-h3);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: var(--space-4);
}

.official-qr-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201,179,156,0.3);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

.upi-details-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
}

.qr-upi-id-badge {
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.qr-upi-id-highlight {
  background: var(--warm-umber);
  color: var(--sacred-gold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.copy-upi-btn {
  background: var(--terracotta);
  color: var(--text-inverse);
  border: none;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-caption);
  font-family: inherit;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.copy-upi-btn:hover {
  background: var(--terracotta-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.upi-supported-apps {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* ============================================================================
   17. PANCHANGAM CARDS
   ============================================================================ */
.panchangam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-5);
}

.panchangam-card {
  background: var(--surface-card);
  border: 1px solid rgba(201,179,156,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-normal) var(--ease-standard);
}

.panchangam-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.panchangam-card .card-tag {
  margin-bottom: var(--space-2);
}

.panchangam-card h4 {
  color: var(--text-primary);
  margin-top: var(--space-2);
  font-size: var(--font-caption);
  font-weight: 600;
}

.panchangam-card .panchangam-value {
  font-weight: 700;
  font-size: var(--font-body);
  color: var(--terracotta);
  margin-top: var(--space-2);
}

/* ============================================================================
   18. VIRTUAL TOUR (YouTube Video Embed)
   ============================================================================ */
.video-embed-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: var(--warm-umber);
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.facade-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-normal) var(--ease-standard);
}

.video-facade:hover .facade-img {
  transform: scale(1.03);
}

.facade-play-btn {
  position: absolute;
  z-index: 2;
  background: rgba(46, 23, 10, 0.82);
  backdrop-filter: blur(8px);
  color: var(--text-inverse);
  border: 2px solid var(--sacred-gold);
  border-radius: 50px;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: inherit;
  font-weight: 600;
  font-size: var(--font-body);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: all var(--duration-fast) var(--ease-standard);
}

.video-facade:hover .facade-play-btn {
  background: var(--terracotta);
  border-color: #fff;
  transform: scale(1.08);
}

.play-icon-circle {
  width: 40px;
  height: 40px;
  background: var(--sacred-gold);
  color: var(--warm-umber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================================
   19. FORMS
   ============================================================================ */
.form-card {
  max-width: 600px;
  margin: var(--space-7) auto 0;
  background: var(--surface-card);
  border: 1px solid rgba(201,179,156,0.2);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.form-card h3 {
  font-family: 'Cinzel', serif;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  text-align: center;
  font-size: var(--font-title);
  font-weight: 700;
}

.form-group {
  margin-bottom: var(--space-5);
  text-align: left;
}

.form-group label {
  display: block;
  font-size: var(--font-caption);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(201,179,156,0.4);
  border-radius: var(--radius-md);
  background: var(--surface-primary);
  color: var(--text-primary);
  font-size: var(--font-body);
  font-family: inherit;
  font-weight: 400;
  transition: all var(--duration-fast) var(--ease-standard);
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

.form-control:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184,82,32,0.1);
  background: var(--surface-card);
}

textarea.form-control {
  border-radius: var(--radius-md);
  resize: vertical;
  min-height: 100px;
}

/* ============================================================================
   20. AUDIO PLAYER DOCK
   ============================================================================ */
.audio-player-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-dock);
  background: var(--warm-umber);
  color: var(--text-inverse);
  border-top: 1px solid rgba(201,179,156,0.2);
  padding: var(--space-1) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  box-shadow: 0 -2px 12px rgba(46,23,10,0.12);
}

.audio-track-info {
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-track-info h4 {
  font-size: var(--font-label);
  color: var(--text-inverse);
  font-weight: 600;
}

.audio-track-info p {
  font-size: 0.65rem;
  color: var(--sacred-gold);
  font-weight: 500;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.audio-btn {
  background: transparent;
  border: 1px solid rgba(255,253,247,0.25);
  color: var(--text-inverse);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  font-size: var(--font-caption);
  transition: all var(--duration-fast) var(--ease-standard);
  touch-action: manipulation;
  min-width: 48px;
  min-height: 48px;
}

.audio-btn:hover {
  background: rgba(255,253,247,0.1);
  border-color: rgba(255,253,247,0.4);
}

.audio-play-btn {
  width: 44px;
  height: 44px;
  background: var(--terracotta);
  border: none;
  border-radius: 50%;
}

.audio-play-btn:hover {
  background: var(--terracotta-light);
}

/* ============================================================================
   21. MODALS
   ============================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(46,23,10,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-standard);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--surface-card);
  border: 1px solid rgba(201,179,156,0.15);
  border-radius: var(--radius-2xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-6);
  position: relative;
  box-shadow: var(--shadow-xl);
}

.modal-card h3 {
  font-family: 'Cinzel', serif;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-size: var(--font-title);
  font-weight: 700;
}

.modal-card > p {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.modal-close-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--surface-muted);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  transition: all var(--duration-fast) var(--ease-standard);
}

.modal-close-btn:hover {
  background: rgba(184,82,32,0.1);
  color: var(--terracotta);
}

/* Playlist items */
.playlist-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-card);
  border: 1px solid rgba(201,179,156,0.15);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  gap: var(--space-3);
}

.playlist-item-row:hover {
  background: var(--surface-primary);
  border-color: rgba(201,179,156,0.3);
}

.playlist-item-row.active {
  background: rgba(184,82,32,0.06);
  border-color: var(--terracotta);
}

.playlist-item-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.playlist-item-num {
  font-weight: 600;
  color: var(--text-tertiary);
  font-size: var(--font-caption);
  width: 24px;
  flex-shrink: 0;
}

.playlist-item-title {
  font-size: var(--font-caption);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.playlist-item-artist {
  font-size: var(--font-label);
  color: var(--text-tertiary);
  font-weight: 500;
}

.playlist-play-btn {
  background: var(--terracotta);
  color: var(--text-inverse);
  border: none;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--font-label);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  min-height: 32px;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-standard);
  flex-shrink: 0;
}

.playlist-play-btn:hover {
  background: var(--terracotta-dark);
}

/* Playlist container */
.playlist-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 60vh;
  overflow-y: auto;
  padding-right: var(--space-2);
}

/* ============================================================================
   22. PWA INSTALL BANNER
   ============================================================================ */
.pwa-install-banner {
  position: fixed;
  bottom: 68px;
  left: var(--space-4);
  right: var(--space-4);
  max-width: 420px;
  margin: 0 auto;
  z-index: var(--z-overlay);
  background: var(--warm-umber);
  color: var(--text-inverse);
  border: 1px solid rgba(201,179,156,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  transform: translateY(160%);
  transition: transform var(--duration-slow) var(--ease-standard);
}

.pwa-install-banner.show {
  transform: translateY(0);
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pwa-banner-content img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.pwa-banner-text h5 {
  font-size: var(--font-caption);
  color: var(--text-inverse);
  font-weight: 600;
}

.pwa-banner-text p {
  font-size: var(--font-label);
  color: var(--sacred-gold);
  font-weight: 500;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pwa-install-now-btn {
  background: var(--terracotta);
  color: var(--text-inverse);
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-label);
  font-family: inherit;
  cursor: pointer;
  min-height: 36px;
  transition: all var(--duration-fast) var(--ease-standard);
}

.pwa-install-now-btn:hover {
  background: var(--terracotta-dark);
}

.pwa-dismiss-btn {
  background: none;
  border: none;
  color: var(--text-inverse);
  font-size: 1.1rem;
  cursor: pointer;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--duration-fast);
}

.pwa-dismiss-btn:hover {
  opacity: 1;
}

/* ============================================================================
   23. DEVOTEE STORIES
   ============================================================================ */
.story-card {
  background: var(--surface-card);
  border: 1px solid rgba(201,179,156,0.2);
  border-left: 3px solid var(--sacred-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-normal) var(--ease-standard);
}

.story-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.story-text {
  font-style: italic;
  margin-bottom: var(--space-4);
  font-size: var(--font-caption);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
}

.story-author {
  font-weight: 600;
  color: var(--terracotta);
  font-size: var(--font-caption);
}

.story-date {
  font-size: var(--font-label);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* ============================================================================
   24. FOOTER
   ============================================================================ */
/* ==========================================================================
   Map Directions & Contact
   ========================================================================== */
.directions-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.directions-card {
  background: var(--surface-primary);
  border: 1px solid rgba(201,179,156,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.directions-card-title {
  font-family: 'Cinzel', serif;
  font-size: var(--font-h3);
  color: var(--terracotta);
  margin-bottom: var(--space-5);
  font-weight: 700;
}

.direction-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(201,179,156,0.15);
}

.direction-item:last-child {
  border-bottom: none;
}

.direction-item p {
  font-size: var(--font-body);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2);
}

.direction-link {
  display: inline-block;
  color: var(--terracotta);
  font-weight: 600;
  font-size: var(--font-caption);
  text-decoration: none;
  margin-top: var(--space-1);
  transition: color var(--duration-fast) var(--ease-standard);
}

.direction-link:hover {
  color: var(--terracotta-dark);
  text-decoration: underline;
}

.directions-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.map-embed-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(201,179,156,0.2);
}

.map-embed-container iframe {
  display: block;
  width: 100%;
  min-height: 300px;
}

.contact-card {
  background: var(--surface-primary);
  border: 1px solid rgba(201,179,156,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.contact-card-title {
  font-family: 'Cinzel', serif;
  font-size: var(--font-h3);
  color: var(--terracotta);
  margin-bottom: var(--space-4);
  font-weight: 700;
}

.contact-timings {
  margin-bottom: var(--space-5);
}

.contact-timings p {
  font-size: var(--font-body);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-body);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-standard);
  text-align: center;
}

.call-btn {
  background: var(--terracotta);
  color: var(--text-inverse);
  border: none;
}

.call-btn:hover {
  background: var(--terracotta-dark);
  box-shadow: var(--shadow-sm);
}

.whatsapp-btn {
  background: #25D366;
  color: #fff;
  border: none;
}

.whatsapp-btn:hover {
  background: #1da851;
  box-shadow: var(--shadow-sm);
}

.site-footer {
  background: var(--warm-umber);
  color: var(--text-inverse);
  padding: var(--space-7) var(--space-5) var(--space-5);
  margin-top: var(--space-10);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

.footer-section h4 {
  font-family: 'Cinzel', serif;
  color: var(--sacred-gold);
  font-size: var(--font-body);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.footer-section p,
.footer-section li {
  font-size: var(--font-caption);
  color: rgba(255,253,247,0.75);
  line-height: var(--leading-relaxed);
  list-style: none;
}

.footer-section a {
  color: rgba(255,253,247,0.75);
  transition: color var(--duration-fast);
}

.footer-section a:hover {
  color: var(--sacred-gold);
}

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-6) auto 0;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,253,247,0.1);
  text-align: center;
  font-size: var(--font-label);
  color: rgba(255,253,247,0.5);
}

.footer-credit-link {
  color: var(--sacred-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--duration-fast);
}

.footer-credit-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ============================================================================
   25. SCROLL REVEAL ANIMATION
   ============================================================================ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease-standard), transform 0.5s var(--ease-standard);
}

/* ============================================================================
   26. RESPONSIVE — TABLET (≤1024px)
   ============================================================================ */
@media (max-width: 1024px) {
  .header-top-bar {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
    padding: var(--space-2) var(--space-4);
  }

  .top-bar-left {
    flex-direction: column;
    gap: var(--space-1);
  }

  .main-header {
    border-radius: 0;
  }

  .nav-container {
    padding: var(--space-2) var(--space-4);
    display: flex;
    justify-content: center;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: var(--terracotta);
    color: var(--text-inverse);
    border: none;
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    min-height: 42px;
  }

  .mobile-menu-toggle:hover {
    background: var(--terracotta-dark);
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-3);
    border-bottom: 2px solid rgba(184,82,32,0.15);
  }

  .mobile-menu-title {
    font-family: 'Cinzel', 'Noto Serif Kannada', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--terracotta);
  }

  .mobile-menu-close-btn {
    background: rgba(184,82,32,0.1);
    color: var(--terracotta);
    border: 1px solid rgba(184,82,32,0.25);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-standard);
  }

  .mobile-menu-close-btn:hover {
    background: var(--terracotta);
    color: var(--text-inverse);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: var(--surface-primary);
    flex-direction: column;
    padding: var(--space-5) var(--space-5) var(--space-8);
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99999;
    gap: var(--space-2);
    align-items: stretch;
    box-sizing: border-box;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    padding: var(--space-3) var(--space-4);
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    text-align: left;
    background: var(--surface-card);
    border: 1px solid rgba(201,179,156,0.35);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-xs);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(184,82,32,0.08);
    border-color: var(--terracotta);
    color: var(--terracotta);
  }

  .nav-lang-group {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    justify-content: center;
    margin-top: var(--space-3);
    gap: var(--space-3);
    width: 100%;
  }

  .nav-lang-group .lang-btn {
    flex: 1;
    min-height: 44px;
    font-size: 0.95rem;
  }

  .nav-install-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    margin-left: 0;
    margin-top: var(--space-2);
    font-size: 0.95rem;
  }

  .pooja-ticker-bar {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
    margin: var(--space-3) var(--space-4) var(--space-6);
  }

  .ticker-countdown {
    width: 100%;
    justify-content: center;
  }

  .shrine-showcase-layout {
    flex-direction: column;
    text-align: center;
  }

  .shrine-showcase-content {
    text-align: center;
  }

  .shrine-showcase-img {
    max-width: 300px;
    margin: 0 auto;
  }

  .directions-layout {
    grid-template-columns: 1fr;
  }

  .talegari-spread {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .talegari-spread::before {
    display: none;
  }
}

/* ============================================================================
   27. RESPONSIVE — MOBILE (≤640px)
   ============================================================================ */
@media (max-width: 640px) {
  body {
    padding-bottom: 72px;
  }

  .hero-section {
    min-height: 440px;
    padding: var(--space-8) var(--space-4) var(--space-8);
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .main-container {
    padding: var(--space-5) var(--space-4);
  }

  .shrine-showcase-box {
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-lg);
    margin: var(--space-7) 0;
  }

  .ehundi-container {
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-lg);
  }

  .form-card {
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-lg);
  }

  .audio-player-dock {
    padding: var(--space-3) var(--space-4);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-3);
  }

  .gallery-card-img {
    height: 200px;
  }

  .history-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Timeline mobile */
  .timeline-wrapper::before {
    left: 16px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 44px;
    padding-right: var(--space-4);
    text-align: left !important;
  }

  .timeline-item.right,
  .timeline-item.left {
    left: 0;
  }

  .timeline-item.left .timeline-node,
  .timeline-item.right .timeline-node {
    left: 9px;
    right: auto;
  }
}

/* ============================================================================
   28. TABLET LANDSCAPE (768–1024px)
   ============================================================================ */
@media (min-width: 641px) and (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .history-card {
    flex: 0 0 calc(50% - var(--space-4));
    max-width: calc(50% - var(--space-4));
  }

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

/* ============================================================================
   29. PWA GUIDE MODAL CONTENT
   ============================================================================ */
.pwa-guide-content {
  font-size: var(--font-caption);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.pwa-guide-content p {
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.pwa-guide-content ol {
  margin-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.pwa-guide-content li {
  margin-bottom: var(--space-2);
}

/* ============================================================================
   30. FULL SCREEN IMAGE LIGHTBOX MODAL
   ============================================================================ */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 6, 2, 0.94);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 2px solid var(--sacred-gold);
  box-shadow: 0 12px 50px rgba(0,0,0,0.85);
  display: block;
  margin: 0 auto;
}

.lightbox-caption {
  margin-top: var(--space-4);
  color: var(--sacred-gold);
  font-family: 'Cinzel', serif;
  font-size: var(--font-title);
  text-align: center;
  max-width: 800px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.lightbox-close-btn {
  position: absolute;
  top: -20px;
  right: -20px;
  background: linear-gradient(135deg, #8B0000 0%, #5C2C16 100%);
  color: #FFE599;
  border: 2px solid var(--sacred-gold);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close-btn:hover {
  transform: scale(1.15);
  background: linear-gradient(135deg, #CC0000 0%, #8B0000 100%);
}

/* ============================================================================
   31. PHOTO BOOK 3D ALBUM & PAGE FLIP ANIMATIONS
   ============================================================================ */
.photobook-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: var(--space-6) 0;
  user-select: none;
}

.book-stage {
  perspective: 1800px;
  width: 100%;
  max-width: 820px;
  min-height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-4) 0;
}

.book-wrapper {
  position: relative;
  width: 760px;
  height: 460px;
  transform-style: preserve-3d;
  transition: transform var(--duration-slow) var(--ease-standard);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(25, 10, 5, 0.45), 0 2px 10px rgba(0,0,0,0.3);
}

/* Central Book Spine Shadow */
.book-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.25) 100%);
  z-index: 50;
  pointer-events: none;
}

/* Individual Book Pages */
.book-page {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 460px;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
}

/* Turned (flipped left) state */
.book-page.turned {
  transform: rotateY(-180deg);
}

.page-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 0 10px 10px 0;
  background: #FAF5EB;
  box-shadow: inset 0 0 15px rgba(184, 111, 74, 0.08);
  border: 1px solid rgba(201, 179, 156, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  box-sizing: border-box;
}

.page-face.back {
  transform: rotateY(180deg);
  border-radius: 10px 0 0 10px;
}

/* Leather Gold Book Cover */
.book-cover {
  background: linear-gradient(135deg, #4A170F 0%, #7A261A 50%, #3D100A 100%);
  border: 3px solid var(--sacred-gold);
  color: var(--sacred-gold);
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.cover-seal-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.cover-title-main {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFE599;
  letter-spacing: 1px;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.cover-title-sub {
  font-size: 0.9rem;
  color: var(--sacred-gold);
  margin-top: 4px;
}

.cover-badge {
  background: rgba(201, 160, 74, 0.15);
  border: 1px solid var(--sacred-gold);
  color: #FFE599;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Inner Page Photo Slot */
.page-photo-card {
  width: 100%;
  height: 82%;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #EFE8DA;
  border: 4px solid #FFF;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.page-photo-card:hover {
  transform: scale(1.02);
}

.page-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-photo-zoom-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 6, 2, 0.75);
  color: var(--sacred-gold);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.page-photo-card:hover .page-photo-zoom-icon {
  opacity: 1;
}

.page-photo-title {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
}

.page-number-footer {
  position: absolute;
  bottom: 8px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 600;
}
.page-face:not(.back) .page-number-footer { right: 16px; }
.page-face.back .page-number-footer { left: 16px; }

/* Book Navigation Controls Bar */
.book-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.book-nav-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--terracotta);
  color: var(--text-inverse);
  border: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-caption);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast) var(--ease-standard);
}

.book-nav-btn:hover:not(:disabled) {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.book-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.book-page-indicator {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: var(--font-body);
  color: var(--terracotta);
  background: var(--surface-card);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(201,179,156,0.3);
  box-shadow: var(--shadow-xs);
}

.book-hint {
  font-size: var(--font-label);
  color: var(--text-tertiary);
  margin-top: var(--space-3);
  text-align: center;
}

/* Mobile Responsive Adjustments for Photo Book */
@media (max-width: 820px) {
  .book-stage {
    min-height: 380px;
    perspective: 1200px;
  }

  .book-wrapper {
    width: 95vw;
    max-width: 360px;
    height: 420px;
  }

  .book-wrapper::after {
    display: none;
  }

  .book-page {
    width: 100%;
    height: 100%;
  }

  .page-face {
    border-radius: 12px !important;
  }
}

