/* ==========================================================================
   శ్రీ లక్ష్మీ గణపతి స్వామి – వినాయక చవితి ఉత్సవాలు 2026
   Sri Lakshmi Ganapathi Utsava Committee – Gandhibomma Center, Velivennu
   Devotional Design System (static/style.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Telugu:wght@300;400;500;600;700;800&family=Noto+Serif+Telugu:wght@400;600;700&display=swap');

/* --- Devotional Color Palette & Design Tokens --- */
:root {
  --primary: #520f18;          /* Sacred Temple Maroon */
  --primary-dark: #35080e;     /* Deep Sanctum Maroon */
  --secondary: #e65100;        /* Pure Saffron */
  --secondary-light: #ff7a1a;  /* Bright Festive Saffron */
  --gold: #d4af37;             /* Traditional Gold */
  --gold-light: #f7df8b;       /* Soft Light Gold */
  --gold-glow: rgba(212, 175, 55, 0.4);
  --dark: #200f07;             /* Deep Temple Wood Brown */
  --dark-surface: #2b160a;     /* Dark Surface */
  --cream: #fdfbf7;            /* Sacred Warm Ivory */
  --cream-soft: #f6eedf;       /* Warm Parchment */
  --cream-card: #ffffff;       /* Pure White Card */
  --green-sacred: #1b4332;     /* Sacred Green / Bilva leaf */
  --text-dark: #2b1408;        /* Highly readable dark text */
  --text-muted: #5e4536;       /* Subdued secondary text */
  --text-light: #fef8ee;       /* Sacred light text on dark bg */
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-subtle: rgba(184, 134, 11, 0.15);
  
  --font-telugu: 'Noto Sans Telugu', 'Segoe UI', -apple-system, sans-serif;
  --font-serif: 'Noto Serif Telugu', serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 3px 10px rgba(32, 15, 7, 0.06);
  --shadow-md: 0 8px 20px rgba(32, 15, 7, 0.10);
  --shadow-lg: 0 14px 32px rgba(32, 15, 7, 0.15);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.35);
  
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-telugu);
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: 
    linear-gradient(rgba(253, 251, 247, 0.92), rgba(253, 251, 247, 0.92)),
    url('assets/hero.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  line-height: 1.35;
  color: var(--primary-dark);
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* --- Container & Utilities --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--cream-soft);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

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

.section-icon {
  font-size: 2rem;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0.4rem 0 0.8rem 0;
}

.section-divider::before,
.section-divider::after {
  content: "";
  height: 1.5px;
  width: 50px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-divider span {
  color: var(--secondary);
  font-size: 1.1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section-committee-sub {
  font-size: 0.95rem;
  color: var(--secondary);
  font-weight: 600;
}

/* --- Committee Top Banner --- */
.top-committee-banner {
  background: linear-gradient(90deg, #37080f, #520f18, #37080f);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--gold);
  text-align: center;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.committee-title-text {
  letter-spacing: 0.2px;
}

.banner-location-badge {
  background: rgba(212, 175, 55, 0.25);
  border: 1px solid var(--gold);
  color: #ffffff;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
}

/* --- Navigation Bar --- */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--border-gold);
  box-shadow: 0 4px 16px rgba(32, 15, 7, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  max-width: 1240px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  font-size: 1.6rem;
  color: var(--secondary);
}

.nav-logo-group {
  display: flex;
  flex-direction: column;
}

.nav-logo-main {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 0.78rem;
  color: var(--secondary);
  font-weight: 600;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--gold));
  transition: width 0.25s ease;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Music Button */
.music-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff3e3;
  border: 1.5px solid var(--gold);
  color: var(--primary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.music-btn:hover {
  background: #ffe3c2;
  transform: translateY(-1px);
}

.music-btn.playing {
  background: var(--primary);
  color: var(--gold-light);
  border-color: var(--gold);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: #fff8f0;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--dark);
  color: var(--text-light);
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  filter: saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(32, 15, 7, 0.45) 0%, rgba(32, 15, 7, 0.94) 85%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.hero-om {
  font-size: 3rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.hero-committee-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.3rem;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.8vw, 1.9rem);
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}

.hero-committee-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffe6c7;
  margin-bottom: 1.2rem;
}

.hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.4rem;
}

.hero-tag-item {
  color: #fff6ea;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-quote {
  font-size: 1.05rem;
  color: #f7df8b;
  max-width: 660px;
  margin: 0 auto 2rem auto;
  line-height: 1.8;
  font-style: italic;
  border-left: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  padding: 0.3rem 1.2rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--secondary), #c43d00);
  color: #ffffff;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 5px 18px rgba(230, 81, 0, 0.4);
  transition: var(--transition);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(230, 81, 0, 0.55);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}

.hero-cta-secondary:hover {
  background: var(--gold);
  color: var(--dark);
}

/* --- Countdown Card & Visual Graphics Upgrade --- */
.countdown-section {
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
  padding: 0 1.25rem 2rem 1.25rem;
}

.countdown-card {
  max-width: 840px;
  margin: 0 auto;
  background: linear-gradient(145deg, #ffffff 0%, #fffbf2 60%, #fdf5e2 100%);
  border: 2.5px solid var(--gold);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 20px 50px rgba(114, 18, 20, 0.18), 0 0 35px rgba(212, 175, 55, 0.35);
  text-align: center;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d4af37 0%, #fef08a 50%, #b38b1f 100%);
}

.countdown-icon {
  font-size: 2.6rem;
  margin-bottom: 0.3rem;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.5));
}

.countdown-header {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.4rem;
  text-shadow: 0 1px 2px rgba(212, 175, 55, 0.2);
}

.countdown-timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin: 1.2rem 0 1.6rem 0;
}

.timer-box {
  background: linear-gradient(145deg, #721214 0%, #440709 100%);
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 1.1rem 0.5rem;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25), 0 8px 22px rgba(114, 18, 20, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.timer-box:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), 0 12px 28px rgba(114, 18, 20, 0.45);
}

.timer-number {
  font-family: 'Outfit', var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  display: block;
  text-shadow: 0 0 14px rgba(254, 240, 138, 0.75), 0 2px 5px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
}

.timer-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffd700;
  margin-top: 0.45rem;
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.countdown-footer-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(254, 240, 138, 0.3) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

/* --- Festival Introduction Card --- */
.intro-box {
  max-width: 860px;
  margin: 0 auto;
}

.intro-text-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.intro-paragraph {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-dark);
}

.announcement-pill {
  margin-top: 1.5rem;
  display: inline-block;
  background: #fff3e0;
  border: 1px solid #ffd8a8;
  color: var(--secondary);
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
}

/* --- Today's Pooja Highlight Card --- */
.today-pooja-card {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid var(--secondary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.today-pooja-badge {
  display: inline-block;
  background: var(--secondary);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.today-pooja-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.today-pooja-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.today-pooja-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

.highlight-pill {
  background: #fff4e5;
  color: var(--secondary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid #ffe0b8;
}

/* --- Quick Navigation Cards (4 cards) --- */
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.quick-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.quick-card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.quick-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.quick-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.quick-card-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--secondary);
}

/* --- Subpages Header Banner --- */
.page-header {
  position: relative;
  background: linear-gradient(rgba(32, 15, 7, 0.74), rgba(32, 15, 7, 0.88)), url('assets/hero.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 4.2rem 1.25rem 3.2rem 1.25rem;
  text-align: center;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.page-header-icon {
  font-size: 2.5rem;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.page-title {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--gold-light);
  max-width: 700px;
  margin: 0 auto 0.8rem auto;
}

.page-committee-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold);
  color: #fff9ed;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Daily Pooja Schedule Table --- */
.featured-pooja-card {
  background: #ffffff;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.featured-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.featured-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
}

.featured-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  background: #fff9ee;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.meta-val.highlight {
  color: var(--secondary);
  font-weight: 700;
}

.featured-desc {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.8;
}

.schedule-table-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.devotional-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.devotional-table th {
  background: #4a0d15;
  color: var(--gold-light);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.devotional-table td {
  padding: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.devotional-table tr:hover {
  background-color: #fffbf2;
}

.devotional-table tr.today-row {
  background-color: #fff6e8;
  border-left: 4px solid var(--secondary);
}

.date-badge {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}

.time-text {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.9rem;
}

.today-tag {
  display: inline-block;
  background: var(--secondary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
  margin-top: 0.3rem;
}

.program-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.program-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.special-info-pill {
  display: inline-block;
  background: #fff2e0;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-top: 0.4rem;
}

.pandiri-notice-box {
  margin-top: 2rem;
  background: #fff8eb;
  border: 1px dashed var(--gold);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--primary);
}

/* --- Pooja Vidhanam Layout --- */
.vidhanam-intro-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.intro-icon {
  font-size: 2.6rem;
  color: var(--secondary);
}

.intro-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.intro-desc {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.vidhanam-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
}

.materials-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.card-header-ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
  border-bottom: 1.5px solid var(--border-gold);
  padding-bottom: 0.6rem;
}

.ornament-icon {
  font-size: 1.5rem;
}

.card-title-telugu {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.materials-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.materials-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.materials-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.check-bullet {
  color: #2e7d32;
  font-weight: 800;
  font-size: 1.05rem;
}

.patri-note {
  margin-top: 1.5rem;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: #1b5e20;
  line-height: 1.6;
}

.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateX(4px);
  border-color: var(--gold);
}

.step-number-badge {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

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

.vidhanam-blessing-note {
  margin-top: 2rem;
  background: #fff8ee;
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Year-Wise Gallery Styles --- */
.year-tabs-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 3rem;
  background: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.year-tabs-label {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.year-tabs-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.year-tab-btn {
  background: #fdf8ee;
  border: 1px solid var(--border-gold);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.year-tab-btn.active,
.year-tab-btn:hover {
  background: var(--primary);
  color: var(--gold-light);
  border-color: var(--primary);
}

.year-gallery-section {
  margin-bottom: 4rem;
}

.year-section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2rem;
}

.year-badge-lg {
  background: var(--secondary);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 800;
  padding: 0.3rem 1.2rem;
  border-radius: var(--radius-full);
}

.year-title-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.year-line {
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  flex-grow: 1;
}

.media-sub-block {
  margin-bottom: 2rem;
}

.media-sub-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.2rem;
}

.media-sub-icon {
  font-size: 1.4rem;
}

.media-sub-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-gold);
  background: #ffffff;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

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

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(32, 15, 7, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  color: #ffffff;
}

.gallery-item-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(230, 81, 0, 0.85);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
  margin-bottom: 0.3rem;
}

.gallery-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.no-media-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 1rem 0;
}

/* Video Items Grid */
.videos-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}

.video-item-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-gold);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.video-media-wrap {
  width: 100%;
  height: 220px;
  background: #000;
  position: relative;
}

.native-video-player,
.iframe-video-player {
  width: 100%;
  height: 100%;
  border: none;
}

.external-video-link-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2b1408, #4e1119);
  color: #ffffff;
  gap: 10px;
}

.external-btn {
  background: var(--secondary);
  color: #ffffff;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
}

.video-item-body {
  padding: 1.2rem;
}

.video-year-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  background: var(--primary);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.video-item-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

.video-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(18, 8, 4, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.lightbox-container {
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-img-wrap {
  max-width: 100%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold);
}

.lightbox-caption-bar {
  margin-top: 1rem;
  text-align: center;
  color: var(--gold-light);
}

.lightbox-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.lightbox-category {
  font-size: 0.9rem;
  color: var(--gold-light);
}

.lightbox-btn {
  position: absolute;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2010;
}

.lightbox-btn:hover {
  background: var(--secondary);
}

.lightbox-close {
  top: -15px;
  right: 0;
}

.lightbox-prev {
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
}

/* --- Hindu Dharma & Samskruthi Styles --- */
.dharma-intro-banner {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2.2rem;
  margin-bottom: 3rem;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--primary);
  font-weight: 500;
}

.dharma-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.dharma-article-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.article-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.article-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(32, 15, 7, 0.85);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
}

.article-category-badge-inline {
  display: inline-block;
  background: #fff2e0;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.article-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.article-divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 0.8rem;
}

.article-content {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex-grow: 1;
}

.article-footer {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dharma-quote-box {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, #35080e, #520f18);
  color: #ffffff;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  text-align: center;
}

.quote-symbol {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.quote-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}

.quote-meaning {
  font-size: 1rem;
  color: #f7eedf;
  max-width: 680px;
  margin: 0 auto;
}

/* --- Devotional Footer --- */
.devotional-footer {
  background: linear-gradient(180deg, #271005 0%, #140501 100%);
  color: #fff9ee;
  padding: 4rem 1.25rem 2rem 1.25rem;
  border-top: 3px solid var(--gold);
}

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

.footer-om {
  font-size: 2.6rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.footer-title {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.footer-committee {
  font-size: 1.15rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.footer-location {
  font-size: 0.95rem;
  color: #ffd8a8;
  margin-bottom: 0.8rem;
}

.footer-values {
  font-size: 0.95rem;
  color: #f7df8b;
  margin-bottom: 1.8rem;
}

.footer-blessing-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  margin-bottom: 2.2rem;
}

.footer-blessing-title {
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.footer-blessing-text {
  font-size: 1.05rem;
  color: #ebdcd0;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.footer-slogan {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #bfa99b;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.subtle-admin-link {
  font-size: 0.82rem;
  color: #cfb39f;
  text-decoration: underline;
  transition: var(--transition);
}

.subtle-admin-link:hover {
  color: var(--gold-light);
}

.back-to-top {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--dark);
}

/* Flash Alerts */
.flash-container {
  margin: 1rem auto;
}

.alert {
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.alert-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}

.alert-danger {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #b71c1c;
}

.alert-warning {
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #e65100;
}

.alert-info {
  background: #e1f5fe;
  border: 1px solid #81d4fa;
  color: #01579b;
}

/* --- ADMIN PANEL STYLES --- */
.admin-body {
  background-color: #f7f4ed;
}

.admin-header {
  background: #37080f;
  border-bottom: 2px solid var(--gold);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.admin-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.admin-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-icon {
  font-size: 1.6rem;
}

.admin-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-light);
}

.admin-sub {
  display: block;
  font-size: 0.75rem;
  color: #e2c0a8;
}

.admin-nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-nav-item {
  color: #f2e2d5;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background: rgba(212, 175, 55, 0.25);
  color: var(--gold-light);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-preview-site {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-logout {
  background: #c62828;
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-container {
  max-width: 1180px;
  margin: 2rem auto;
  padding: 0 1.25rem;
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-page-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.admin-page-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.admin-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.admin-card-subhead {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.4rem;
  border-bottom: 1.5px solid var(--border-subtle);
  padding-bottom: 0.6rem;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.metric-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.metric-val {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.metric-lbl {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0.3rem 0 1rem 0;
}

.metric-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
}

/* Admin Shortcuts Grid */
.admin-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.shortcut-box {
  background: #fffcf6;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.shortcut-box:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.sc-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.sc-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

.sc-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Admin Forms */
.form-section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1.5px solid var(--border-gold);
  padding-bottom: 0.4rem;
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d4c7b8;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #ffffff;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.15);
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.form-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.form-group.half {
  flex: 1 1 calc(50% - 1.25rem);
}

.form-group.third {
  flex: 1 1 calc(33.333% - 1.25rem);
}

.form-group.two-thirds {
  flex: 2 1 calc(66.666% - 1.25rem);
}

.form-check-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-save-primary {
  background: var(--primary);
  color: var(--gold-light);
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-save-primary:hover {
  background: #731723;
  transform: translateY(-1px);
}

/* Admin Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th {
  background: #f6efe4;
  color: var(--primary);
  padding: 0.85rem 1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  text-align: left;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.badge-today {
  display: inline-block;
  background: var(--secondary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
}

.badge-category {
  display: inline-block;
  background: #fff3e0;
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.status-pill.published {
  background: #e8f5e9;
  color: #1b5e20;
}

.status-pill.draft {
  background: #efebe9;
  color: #4e342e;
}

.btn-action-delete {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-action-delete:hover {
  background: #c62828;
  color: #ffffff;
}

.step-badge {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--gold-light);
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: 700;
}

/* Admin Gallery Management */
.admin-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.admin-year-box {
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: #fffdfa;
}

.admin-year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border-gold);
  padding-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-year {
  background: var(--secondary);
  color: #ffffff;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  margin-right: 8px;
}

.admin-media-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}

.thumb-card {
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
}

.thumb-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.thumb-info {
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thumb-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-thumb-del {
  color: #c62828;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
}

.admin-videos-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.admin-vid-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

/* Login Page Styling */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #35080e 0%, #150305 100%);
  padding: 1.5rem;
}

.login-box-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), var(--shadow-gold);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-om {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.login-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.login-sub {
  font-size: 0.95rem;
  color: var(--secondary);
  font-weight: 700;
}

.login-loc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-submit-login {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #731723);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
}

.btn-submit-login:hover {
  background: #731723;
  transform: translateY(-1px);
}

.login-default-hint {
  margin-top: 1.5rem;
  background: #fff8e1;
  border: 1px solid #ffe082;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #795548;
  line-height: 1.5;
}

.login-footer {
  text-align: center;
  margin-top: 1.8rem;
}

.back-home-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.back-home-link:hover {
  color: var(--primary);
}

.admin-footer {
  background: #2b060b;
  color: #e2c0a8;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid var(--border-gold);
  margin-top: 3rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #fdfbf7;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.25rem;
    gap: 0.75rem;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: none;
  }

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

  .nav-link {
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
  }

  .mobile-toggle {
    display: flex;
  }

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

  .admin-two-col-grid {
    grid-template-columns: 1fr;
  }

  .admin-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #37080f;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 2px solid var(--gold);
  }

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

@media (max-width: 640px) {
  .hero {
    padding: 4rem 1rem 3rem 1rem;
  }

  .countdown-timer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .timer-number {
    font-size: 2.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   SUPPLEMENTARY DEVOTIONAL STYLES (Vidhanam, Lightbox, Dharma)
   ========================================================================== */

/* Vidhanam Intro & Materials */
.vidhanam-intro-card {
  background: linear-gradient(135deg, #fffcf5, #fff8ee);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.intro-icon {
  font-size: 3rem;
  background: #fef3c7;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

.intro-title {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.intro-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.materials-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--border-gold);
  padding-bottom: 0.6rem;
}

.materials-icon {
  font-size: 1.6rem;
}

.materials-title {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
}

.materials-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.materials-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
}

.materials-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--text-dark);
}

.patri-info-box {
  margin-top: 1.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #166534;
}

.patri-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.pooja-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.katha-highlight-card {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}

.katha-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.katha-title {
  color: var(--primary-dark);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mantra-highlight {
  margin-top: 1rem;
  background: rgba(128, 0, 0, 0.08);
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Lightbox Enhancements */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 6, 3, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.lightbox-content {
  max-width: 920px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  color: #ffffff;
}

.lightbox-caption h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.lightbox-category-tag {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10000;
}

.lightbox-close:hover {
  background: #dc2626;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10000;
}

.lightbox-nav-btn:hover {
  background: var(--secondary);
}

.lightbox-nav-btn.prev {
  left: 25px;
}

.lightbox-nav-btn.next {
  right: 25px;
}

/* Hindu Dharma & Samskruthi */
.dharma-hero-quote-card {
  background: linear-gradient(135deg, #fffcf5, #fff7ed);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-sm);
}

.quote-om {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.dharma-sanskrit-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  font-style: normal;
}

.quote-meaning {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  max-width: 820px;
  margin: 0 auto;
}

.dharma-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.dharma-article-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.article-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-category-badge-inline {
  display: inline-block;
  background: var(--gold-light);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
  align-self: flex-start;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.article-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 0.9rem;
}

.article-content {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-dark);
  flex: 1;
  margin-bottom: 1rem;
}

.article-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.three-pillars-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
}

.pillars-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.pillar-item {
  text-align: center;
  padding: 1rem;
  background: #fffdfa;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.pillar-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 0.75rem;
}

.pillar-item h4 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pillar-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   SINGLE SCROLLING DEVOTIONAL EXPERIENCE STYLES
   ========================================================================== */

/* Target Scroll Offset for Sticky Header */
section, [id] {
  scroll-margin-top: 80px;
}

/* Header Official Committee Logo */
.header-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
  flex-shrink: 0;
  background: #ffffff;
}

/* Home Section Foreground Committee Logo (Explicitly NOT Background) */
.home-hero-logo {
  width: 140px;
  height: 140px;
  max-width: 150px;
  max-height: 150px;
  margin: 0 auto 1.4rem auto;
  display: block;
  border-radius: 50%;
  border: 3.5px solid var(--gold);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
  background: #ffffff;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-hero-logo:hover {
  transform: scale(1.03);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.7), 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Scroll Down Cue & Button */
.scroll-down-cue {
  text-align: center;
  margin: 2.8rem auto 1rem auto;
  position: relative;
  z-index: 5;
}

.scroll-down-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff8eb;
  color: var(--primary);
  border: 2px solid var(--gold);
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
  cursor: pointer;
}

.scroll-down-btn:hover {
  background: #fef3c7;
  color: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.scroll-arrow {
  font-size: 1.25rem;
  color: var(--secondary);
  display: inline-block;
  animation: gentleBounce 2s infinite ease-in-out;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ==========================================================================
   POOJA VIDHANAM PROMINENT HIGHLIGHT BANNER ON HOME
   ========================================================================== */
.pooja-highlight-section {
  background: var(--cream-soft);
  border-top: 2px solid var(--border-gold);
  border-bottom: 2px solid var(--border-gold);
  padding: 4.5rem 0;
}

.pooja-feature-banner {
  background: linear-gradient(135deg, #ffffff, #fffaf0);
  border: 2.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 3rem 2.2rem;
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.18), 0 4px 14px rgba(32, 15, 7, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
}

.pooja-feature-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary), var(--gold), var(--secondary));
}

.pooja-banner-icon {
  font-size: 3.4rem;
  margin-bottom: 0.85rem;
  display: inline-block;
  animation: gentlePulse 3s infinite ease-in-out;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.pooja-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid #f59e0b;
}

.pooja-banner-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 1.1rem;
  line-height: 1.35;
}

.pooja-banner-desc {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-dark);
  max-width: 760px;
  margin: 0 auto 2.2rem auto;
}

.highlight-pooja-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), #38070d);
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(82, 15, 24, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
}

.highlight-pooja-btn:hover {
  background: linear-gradient(135deg, var(--secondary), #c43d00);
  border-color: #ffd166;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(230, 81, 0, 0.5);
}

/* ==========================================================================
   INSTAGRAM FOLLOW BUTTON IN FOOTER
   ========================================================================== */
.footer-instagram-wrap {
  margin: 1.75rem auto 1.5rem auto;
  text-align: center;
}

.footer-instagram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
}

.footer-instagram-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 9px 24px rgba(220, 39, 67, 0.5);
  filter: brightness(1.08);
}

.footer-instagram-btn svg {
  flex-shrink: 0;
}

/* Navigation Instagram Link */
.nav-insta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 10px rgba(220, 39, 67, 0.25);
  transition: all 0.25s ease;
  text-decoration: none;
}

.nav-insta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(220, 39, 67, 0.45);
  filter: brightness(1.1);
}

.nav-insta-btn svg {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .nav-insta-btn .nav-insta-label {
    display: none;
  }
  .nav-insta-btn {
    padding: 0.45rem;
    border-radius: 50%;
  }
}


/* Section Separation on Long Scroll */
.scrolling-section {
  padding: 4.5rem 0;
  position: relative;
  border-bottom: 2px solid var(--border-gold);
}

.scrolling-section:nth-of-type(even) {
  background-color: var(--cream-soft);
}

.scrolling-section:nth-of-type(odd) {
  background-color: var(--cream);
}

/* Pooja Vidhanam Components & Layout */
.pooja-container {
  max-width: 960px;
  margin: 0 auto;
}

.print-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: #92400e;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-print {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.btn-print:hover {
  opacity: 0.9;
}

.toc-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.6rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

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

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-grid a {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.toc-grid a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.pooja-article-section {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2.2rem;
  box-shadow: var(--shadow-sm);
}

.pooja-section-heading {
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 700;
  border-bottom: 2px solid #fef3c7;
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pooja-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.pooja-mantra-box {
  background: #fff8ee;
  border-left: 4.5px solid var(--primary);
  padding: 1.1rem 1.4rem;
  margin: 1.25rem 0;
  border-radius: 0 8px 8px 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--primary-dark);
  font-weight: 600;
}

.devotional-details {
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  margin-bottom: 1.6rem;
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.devotional-details summary {
  background: #fffcf5;
  padding: 1.1rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: background 0.2s;
}

.devotional-details[open] summary {
  border-bottom-color: var(--border-gold);
  background: #fff8ee;
}

.devotional-details summary:hover {
  background: #fef3c7;
}

.devotional-details .details-body {
  padding: 1.6rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-dark);
}

.ashtothara-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.6rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ashtothara-grid li {
  padding: 0.35rem 0.6rem;
  background: #fffaf0;
  border-radius: 4px;
  font-size: 0.98rem;
  color: #4a1d1d;
  border-left: 3px solid var(--gold);
}

.patri-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.6rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.patri-list-grid li {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: 0.96rem;
  color: #14532d;
}

.anga-pooja-grid, .durva-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.anga-pooja-grid li {
  background: #fdf4ff;
  border-left: 3px solid #c026d3;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #701a75;
}

.durva-list-grid li {
  background: #f0fdf4;
  border-left: 3px solid #15803d;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #166534;
}

/* Announcements Section */
.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.6rem;
}

.announcement-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

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

.announcement-card.important {
  border-left: 5px solid var(--secondary);
  background: #fffdf9;
}

.announcement-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.announcement-category-tag {
  background: #fef3c7;
  color: #92400e;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.announcement-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.announcement-desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-dark);
}

/* Mobile Responsiveness & Polish */
@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: #fffdfa;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .nav-links.active {
    transform: translateY(0);
  }
  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    padding: 0.6rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  .home-hero-logo {
    width: 110px;
    height: 110px;
  }
  .header-logo-img {
    width: 36px;
    height: 36px;
  }
  .nav-logo-main {
    font-size: 1rem;
  }
  .nav-logo-sub {
    font-size: 0.72rem;
  }
  .scrolling-section {
    padding: 3rem 0;
  }
  .pooja-article-section {
    padding: 1.25rem 1rem;
  }
  .devotional-details .details-body {
    padding: 1.2rem 1rem;
  }
  .toc-card {
    padding: 1.2rem 1rem;
  }
  .scroll-down-btn {
    font-size: 0.98rem;
    padding: 0.65rem 1.4rem;
  }
}

/* Print Stylesheet */
@media print {
  .top-committee-banner,
  .header-nav,
  .print-actions-bar,
  .devotional-footer,
  .back-to-top,
  .scroll-down-cue,
  #musicBtn,
  #mobileToggle,
  .year-tabs-container,
  .gallery-search-container {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }
  .devotional-details {
    border: none !important;
    box-shadow: none !important;
  }
  .devotional-details summary {
    display: none !important;
  }
  .devotional-details .details-body {
    display: block !important;
    padding: 0 !important;
  }
  .pooja-article-section {
    border: none !important;
    box-shadow: none !important;
    padding: 0.5rem 0 !important;
    page-break-inside: avoid;
  }
  .pooja-mantra-box {
    border-left: 2px solid #000000 !important;
    background: #f5f5f5 !important;
  }
}

/* ==========================================================================
   FOOTER LOGO & COUNTDOWN SPACING & DAILY POOJA TWO TIMES
   ========================================================================== */

/* Footer Official Committee Logo Image */
.footer-logo-img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: contain;
  border: 2.5px solid var(--gold);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
  background: #ffffff;
  margin: 0 auto 1.25rem auto;
  display: block;
  transition: transform 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.06);
}

/* Generous gap above and below countdown */
.hero-countdown-wrap {
  margin: 3.8rem auto 3.5rem auto !important;
  padding: 0 1rem;
  max-width: 860px;
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero-countdown-wrap .countdown-section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

@media (max-width: 768px) {
  .hero-countdown-wrap {
    margin: 2.8rem auto 2.8rem auto !important;
  }
}


/* Daily Pooja Two Times Cards */
.daily-two-times-container {
  margin: 2.5rem 0 3rem 0;
}

.daily-two-times-header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.daily-two-times-title {
  font-size: 1.45rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.daily-two-times-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.daily-two-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.daily-two-card {
  background: #ffffff;
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.daily-two-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.daily-two-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--gold));
}

.daily-two-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.35rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid #f59e0b;
}

.daily-two-time {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  font-family: var(--font-serif);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.daily-two-name {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.daily-two-desc {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.65;
}

/* Committee Contact Banner */
.committee-contact-banner {
  background: linear-gradient(135deg, #fff9ee, #fef3c7);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.8rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.committee-contact-banner span.contact-icon {
  font-size: 1.4rem;
  margin-right: 8px;
}

/* ==========================================================================
   Gallery Primary & Static Fallback Styles
   ========================================================================== */
.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-gold);
  background: #ffffff;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.gallery-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fdfaf3;
  cursor: pointer;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.gallery-overlay-hover {
  position: absolute;
  inset: 0;
  background: rgba(32, 15, 7, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.zoom-icon {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold);
}

.gallery-info {
  padding: 1rem 1.2rem;
  background: #ffffff;
  border-top: 1px solid var(--border-gold);
  flex-grow: 1;
}

.gallery-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.gallery-item-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.gallery-year-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(230, 81, 0, 0.1);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.gallery-img-wrap.image-unavailable {
  background: #fdfaf3;
  border: 1px dashed var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.media-fallback-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.media-fallback-box .fallback-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.media-fallback-box .fallback-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  line-height: 1.5;
}

.gallery-card.backup-enabled {
  position: relative;
}

.static-backup-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(27, 67, 50, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  z-index: 5;
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   SECTION: శ్రీ లక్ష్మీ గణపతి స్వామివారి వైభవం & మహత్యం
   ========================================================================== */
.vaibhavam-section {
  background: linear-gradient(180deg, #fdfbf7 0%, #fff9ee 100%);
}

.vaibhavam-invocation-tag {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.vaibhavam-content-wrapper {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.vaibhavam-lead-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdf7ec 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-md), var(--shadow-gold);
  position: relative;
}

.lead-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #520f18, #37080f);
  color: var(--gold-light);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.lead-badge-pill .badge-icon {
  font-size: 1.1rem;
}

.vaibhavam-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.vaibhavam-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.vaibhavam-subheading {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.35);
  padding-bottom: 0.6rem;
}

.vaibhavam-subheading .subhead-icon {
  font-size: 1.4rem;
}

.vaibhavam-text {
  font-size: 1.08rem;
  line-height: 1.95;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  text-align: justify;
}

.vaibhavam-text:last-child {
  margin-bottom: 0;
}

.vaibhavam-text.lead-text {
  font-size: 1.14rem;
  line-height: 2.05;
  color: #2b1704;
}

.alankaram-gratitude-box {
  margin-top: 1.6rem;
  background: #fff8eb;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gratitude-symbol {
  font-size: 1.6rem;
  line-height: 1;
}

.gratitude-quote {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--primary-dark);
  font-weight: 600;
  margin: 0;
}

.mahimalu-card {
  border-color: #e5b95a;
  background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
}

.mahimalu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.4rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.8rem;
}

.mahimalu-icon {
  font-size: 1.8rem;
}

.mahimalu-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.mahima-item {
  position: relative;
  padding-left: 1.4rem;
  border-left: 3px solid rgba(230, 81, 0, 0.35);
  margin-bottom: 1.4rem;
}

.mahima-item:last-child {
  margin-bottom: 0;
}

.mahima-lead {
  font-weight: 600;
  color: var(--primary-dark);
}

.highlight-ratham {
  background: rgba(212, 175, 55, 0.15);
  border-left: 3px solid var(--secondary);
  padding: 0.6rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 700;
  color: var(--primary-dark);
}

.conclusion-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-top: 1.5rem;
}

/* --- Procession Date Highlight Banner --- */
.procession-date-highlight-banner {
  background: linear-gradient(135deg, #4a0d15 0%, #7a1523 50%, #4a0d15 100%);
  border: 2.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  box-shadow: 0 10px 30px rgba(74, 13, 21, 0.35), var(--shadow-gold);
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.date-highlight-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.procession-bell-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  animation: bellGlow 2.5s infinite alternate ease-in-out;
}

@keyframes bellGlow {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8)); }
}

.date-highlight-content {
  flex-grow: 1;
}

.date-highlight-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.25);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-highlight-main {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #ffe89e;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.date-highlight-sub {
  font-size: 0.98rem;
  color: #f7e1c8;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}

@media (max-width: 680px) {
  .date-highlight-inner {
    flex-direction: column;
    gap: 0.8rem;
  }
  .procession-bell-icon {
    font-size: 1.8rem;
  }
  .vaibhavam-card,
  .vaibhavam-lead-card {
    padding: 1.5rem 1.2rem;
  }
}

/* --- Dedicated Homepage Gallery Invitation Styles --- */
.gallery-portal-section {
  padding: 3.5rem 1rem;
  background: linear-gradient(180deg, #fbf7ee 0%, #ffffff 100%);
}

.gallery-invite-card {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid var(--border-gold, #dfc688);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(114, 18, 20, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-invite-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(114, 18, 20, 0.12);
}

.gallery-invite-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold, #d4af37), var(--maroon, #721214), var(--gold, #d4af37));
}

.invite-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem auto;
  background: linear-gradient(135deg, #fff9e6 0%, #f7e8ba 100%);
  border: 2px solid var(--gold, #d4af37);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.invite-camera-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.invite-title {
  font-size: clamp(1.4rem, 3.5vw, 1.95rem);
  font-weight: 800;
  color: var(--maroon, #721214);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.invite-ornament {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.invite-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: var(--text-dark, #3b2c21);
  margin-bottom: 1.75rem;
  line-height: 1.6;
  font-weight: 500;
}

.invite-btn-wrap {
  margin-bottom: 1rem;
}

.gallery-portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 2rem;
  background: linear-gradient(135deg, var(--maroon, #721214) 0%, #4d0b0d 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid var(--gold, #d4af37);
  box-shadow: 0 4px 15px rgba(114, 18, 20, 0.25);
  transition: all 0.25s ease;
  min-height: 52px;
}

.gallery-portal-btn:hover {
  background: linear-gradient(135deg, var(--gold, #d4af37) 0%, var(--gold-dark, #a37c16) 100%);
  color: var(--maroon-dark, #490b0c);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.4);
}

.gallery-portal-btn .btn-arrow {
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.gallery-portal-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.invite-note {
  font-size: 0.85rem;
  color: var(--text-muted, #777);
  margin: 0.75rem 0 0 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .gallery-portal-section {
    padding: 2.5rem 0.75rem;
  }
  .gallery-invite-card {
    padding: 1.8rem 1.25rem;
  }
  .gallery-portal-btn {
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 0.98rem;
  }
}

/* --- Highlighting Sri Lakshmi Ganapathi Swamy Photos on Homepage --- */
.featured-photos-highlight {
  background: linear-gradient(135deg, #ffffff 0%, #fffdf7 100%);
  border: 3px solid var(--gold, #d4af37);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.25), 0 4px 15px rgba(114, 18, 20, 0.15);
  position: relative;
  transition: all 0.3s ease;
}

.featured-photos-highlight:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 18px 45px rgba(212, 175, 55, 0.35), 0 8px 25px rgba(114, 18, 20, 0.2);
  border-color: var(--maroon, #721214);
}

.highlight-badge-ribbon {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37 0%, #b38b1f 100%);
  color: #ffffff;
  padding: 0.35rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  box-shadow: 0 3px 8px rgba(179, 139, 31, 0.4);
}

.highlighted-title {
  color: var(--maroon, #721214);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.highlight-gold-btn {
  background: linear-gradient(135deg, #721214 0%, #400708 100%) !important;
  border: 2.5px solid #d4af37 !important;
  color: #ffffff !important;
  padding: 1.1rem 2.2rem !important;
  font-size: 1.12rem !important;
  box-shadow: 0 6px 20px rgba(114, 18, 20, 0.35) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.highlight-gold-btn:hover {
  background: linear-gradient(135deg, #d4af37 0%, #a87e14 100%) !important;
  color: #3b0507 !important;
  border-color: #721214 !important;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5) !important;
  transform: translateY(-3px) scale(1.02);
}

.highlight-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.4rem;
}

.feat-tag {
  background: #fbf5e6;
  border: 1px solid #e0ce9f;
  color: #5c3c0a;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* --- Full Length & Width Background Image Styles for Individual Pages --- */
.individual-page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center top;
  z-index: -2;
  pointer-events: none;
}

.individual-page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(180deg, rgba(253, 251, 247, 0.84) 0%, rgba(254, 243, 199, 0.76) 50%, rgba(253, 251, 247, 0.90) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}

/* ==========================================================================
   HIGH REFRESH RATE & ADVANCED GRAPHICS OPTIMIZATION (60Hz / 90Hz / 120Hz)
   ========================================================================== */

/* 1. Hardware GPU Layer Promotion for Butter-Smooth 60/120fps Transitions */
.hero-countdown-wrap,
.countdown-card,
.timer-box,
.featured-photos-highlight,
.gallery-photo-card,
.photo-thumb-wrap img,
.header-nav,
.music-btn,
.back-to-top,
.daily-two-card,
.featured-pooja-card,
.dharma-article-card,
.devotional-details summary {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 2. Optimized Transitions using High-Performance Cubic-Bezier Curves */
.countdown-card,
.timer-box,
.gallery-photo-card,
.gallery-portal-btn,
.nav-link,
.btn-primary,
.music-btn {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, opacity 0.2s ease;
}

/* 3. Ultra-Crisp Typography & Image Contrast */
body, h1, h2, h3, h4, p, span, button {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  image-rendering: -webkit-optimize-contrast;
}

/* 4. Enhanced Atmospheric Devotional Graphics */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.4);
}

.hero-subtitle {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* 5. Smooth Native Momentum Scrolling */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   UNIFIED 3-PILLAR HIGHLIGHT CARD PORTAL SYSTEM
   (Vaibhavam & Mahatyam, Gallery, Pooja Vidhanam)
   ========================================================================== */
.portal-highlight-section {
  padding: 3.5rem 1rem;
  position: relative;
  background: linear-gradient(180deg, #fdfbf7 0%, #fff9ee 100%);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.3);
}

.portal-highlight-card {
  max-width: 960px;
  margin: 0 auto;
  background: linear-gradient(145deg, #ffffff 0%, #fffdf8 55%, #fcf7ec 100%);
  border: 2.5px solid var(--gold, #d4af37);
  border-radius: 24px;
  padding: 3.2rem 2.2rem 2.6rem 2.2rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 14px 40px rgba(114, 18, 20, 0.08), 0 4px 18px rgba(212, 175, 55, 0.16);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #d4af37, #f59e0b, #721214, #f59e0b, #d4af37);
}

.portal-highlight-card:hover {
  transform: translateY(-6px) scale(1.008);
  border-color: var(--maroon, #721214);
  box-shadow: 0 22px 55px rgba(212, 175, 55, 0.32), 0 8px 24px rgba(114, 18, 20, 0.2);
}

.portal-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #d4af37 0%, #b38b1f 100%);
  color: #ffffff;
  padding: 0.4rem 1.4rem;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 1.1rem;
  box-shadow: 0 3px 10px rgba(179, 139, 31, 0.35);
}

.portal-icon-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.2rem auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff7dc 0%, #fdefcb 100%);
  border: 2px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
  animation: gentlePulse 3s infinite ease-in-out;
}

.portal-card-title {
  font-size: clamp(1.75rem, 3.8vw, 2.35rem);
  font-weight: 800;
  color: var(--maroon, #721214);
  margin-bottom: 0.75rem;
  line-height: 1.32;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.portal-ornament {
  margin: 0.5rem 0 1.1rem 0;
  font-size: 1.1rem;
  letter-spacing: 8px;
  color: var(--gold, #d4af37);
}

.portal-card-desc {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-dark, #2b1810);
  max-width: 760px;
  margin: 0 auto 1.8rem auto;
}

.portal-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #721214 0%, #400708 100%);
  border: 2.5px solid #d4af37;
  color: #ffffff !important;
  padding: 1.05rem 2.4rem;
  font-size: 1.12rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(114, 18, 20, 0.35);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-action-btn:hover {
  background: linear-gradient(135deg, #d4af37 0%, #a87e14 100%);
  color: #3b0507 !important;
  border-color: #721214;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.5);
  transform: translateY(-3px) scale(1.02);
}

.portal-action-btn .btn-arrow {
  transition: transform 0.25s ease;
}

.portal-action-btn:hover .btn-arrow {
  transform: translateX(5px);
}

.portal-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.portal-tag {
  background: #fbf5e6;
  border: 1px solid #e0ce9f;
  color: #5c3c0a;
  padding: 0.35rem 0.95rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* --- Dedicated Vaibhavam Page Specific Enhancements --- */
.vaibhavam-jump-nav {
  max-width: 920px;
  margin: 1.5rem auto 2.5rem auto;
  background: #ffffff;
  border: 2px solid var(--border-gold);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.jump-nav-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.jump-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.jump-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdfaf2;
  border: 1.5px solid var(--gold);
  color: var(--primary-dark);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.jump-pill-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(114, 18, 20, 0.25);
  transform: translateY(-2px);
}

.vaibhavam-explore-footer {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, #fffcf5 0%, #fdf5e2 100%);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.explore-footer-title {
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.explore-footer-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 1.4rem auto;
}

.explore-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.explore-btn.primary {
  background: var(--primary);
  color: #ffffff;
  border: 1.5px solid var(--primary);
}

.explore-btn.primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(114, 18, 20, 0.3);
  transform: translateY(-2px);
}

.explore-btn.secondary {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--gold);
}

.explore-btn.secondary:hover {
  background: var(--gold);
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .portal-highlight-card {
    padding: 2.2rem 1.25rem 2rem 1.25rem;
    border-radius: 18px;
  }
  .portal-action-btn {
    width: 100%;
    padding: 0.95rem 1.2rem;
    font-size: 1.02rem;
  }
  .portal-icon-wrap {
    width: 70px;
    height: 70px;
    font-size: 2.3rem;
  }
}

/* ==========================================================================
   GANESH AGAMAN PERMANENT HERO & TEMPLE SANCTUM COMPONENT
   ========================================================================== */
/* =========================================================
   CINEMATIC TEMPLE REVEAL & PERMANENT HERO SCENE (REFERENCE)
========================================================= */

.hero-initial-wrap {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem 4rem 1.25rem;
  overflow: hidden;
}

.scene {
  display: none;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  perspective: 1600px;
  background: radial-gradient(circle at 50% 42%, #3d1806 0%, #170602 34%, #060100 75%);
}

.scene.fullscreen-mode {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
}

.scene.permanent-hero {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  min-height: calc(100vh - 70px) !important;
  height: calc(100vh - 70px) !important;
  z-index: 10 !important;
}

/* Cinematic vignette */
.scene:after {
  content: "";
  position: absolute;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.18) 58%, rgba(0,0,0,.72) 100%);
}

/* Temple background */
.scene .temple {
  position: absolute;
  inset: -5%;
  z-index: 1;
  transform: scale(1);
  transition: transform 8s cubic-bezier(.12,.7,.1,1);
  background:
    radial-gradient(
      ellipse at 50% 43%,
      rgba(255,203,94,.22) 0%,
      rgba(173,74,10,.12) 20%,
      transparent 48%
    ),
    linear-gradient(
      90deg,
      #090201 0%,
      #210804 13%,
      #461506 26%,
      #160402 50%,
      #461506 74%,
      #210804 87%,
      #090201 100%
    );
}

.scene.playing .temple,
.scene.permanent-hero .temple {
  transform: scale(1.045);
}

/* Temple stone texture */
.scene .temple:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 90px,
      rgba(255,190,70,.15) 91px,
      transparent 94px 180px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 55px,
      rgba(255,180,60,.08) 56px,
      transparent 58px 110px
    );
}

/* Central arch */
.scene .arch {
  position: absolute;
  left: 50%;
  top: -22%;
  width: min(94vw, 1100px);
  height: 120%;
  transform: translateX(-50%);
  border: 38px solid #3a1406;
  border-bottom: 0;
  border-radius: 52% 52% 0 0;
  box-shadow:
    inset 0 0 0 8px #8b5015,
    inset 0 0 0 15px #241005,
    inset 0 0 65px #030100,
    0 0 90px #000;
}

.scene .arch:before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 5px solid #d6a13b;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  opacity: .75;
}

.scene .arch:after {
  content: "";
  position: absolute;
  inset: 36px;
  border: 2px solid rgba(255,210,110,.35);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

/* Side pillars */
.scene .pillar {
  position: absolute;
  top: 0;
  width: 10%;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      #120302,
      #512009 25%,
      #8e4813 42%,
      #3c1306 70%,
      #100201
    );
  box-shadow:
    inset 0 0 30px #000,
    0 0 35px #000;
}

.scene .pillar.left-pillar { left: 0; }
.scene .pillar.right-pillar { right: 0; }

.scene .pillar:before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  right: -10%;
  height: 14%;
  background: linear-gradient(#d69b36, #542107 45%, #1b0702);
  border-bottom: 3px solid #c99030;
  box-shadow: 0 8px 30px #000;
}

.scene .pillar:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -12%;
  right: -12%;
  height: 12%;
  background: linear-gradient(#5a250b, #bd7c22 45%, #210903);
  border-top: 3px solid #c99030;
}

/* Floor */
.scene .floor {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -16%;
  height: 40%;
  transform: perspective(500px) rotateX(55deg);
  transform-origin: top;
  border-top: 2px solid #b97822;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(220,150,45,.14) 0 2px,
      transparent 2px 100px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(220,150,45,.1) 0 2px,
      transparent 2px 70px
    ),
    linear-gradient(#270b03, #050100 75%);
}

/* Temple Ornament */
.scene .ornament {
  position: absolute;
  z-index: 28;
  left: 50%;
  top: 14px;
  width: min(60vw, 560px);
  height: 52px;
  transform: translateX(-50%);
  opacity: .85;
  pointer-events: none;
}

.scene .ornament:before,
.scene .ornament:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e0a940, #ffe7a0);
}

.scene .ornament:before { left: 0; }
.scene .ornament:after { right: 0; transform: rotate(180deg); }

.scene .ornament span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 2px solid #e1ad48;
  box-shadow: 0 0 20px rgba(255, 190, 60, .35);
  background: rgba(35, 9, 3, 0.7);
}

.scene .ornament span:after {
  content: "ॐ";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotate(-45deg);
  color: #ffd86e;
  font: 26px serif;
}

/* Divine Glow */
.scene .glow {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 46%;
  width: min(72vw, 820px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      #fffbd7 0%,
      #ffe48b 7%,
      #ffc04a 18%,
      rgba(255,161,30,.35) 37%,
      rgba(255,100,0,.08) 55%,
      transparent 70%
    );
  filter: blur(18px);
  opacity: 0;
  transition: opacity 2s;
}

.scene.playing .glow {
  opacity: .72;
  animation: pulseGlow 4s ease-in-out infinite;
}

.scene.revealed .glow,
.scene.permanent-hero .glow {
  opacity: 1;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(.92); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}

/* Halo */
.scene .halo {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 45%;
  width: min(62vw, 650px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(.65);
  border-radius: 50%;
  opacity: 0;
  background:
    radial-gradient(
      circle,
      transparent 42%,
      rgba(255,220,125,.2) 43%,
      rgba(255,196,65,.8) 44%,
      transparent 47%,
      rgba(255,215,105,.45) 52%,
      transparent 54%,
      rgba(255,191,53,.25) 62%,
      transparent 66%
    );
  filter: drop-shadow(0 0 25px #ffb52e);
  transition: opacity 2s, transform 4s cubic-bezier(.15,.8,.1,1);
}

.scene.revealed .halo,
.scene.permanent-hero .halo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: haloSpin 35s linear infinite;
}

@keyframes haloSpin {
  to { transform: translate(-50%, -50%) scale(1) rotate(360deg); }
}

/* Rays */
.scene .rays {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 44%;
  width: 170vmax;
  height: 170vmax;
  transform: translate(-50%, -50%);
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(255,239,176,.28) 0deg 2deg,
      transparent 2deg 11deg
    );
  mask-image: radial-gradient(circle, #000 0 18%, transparent 67%);
  -webkit-mask-image: radial-gradient(circle, #000 0 18%, transparent 67%);
  opacity: 0;
}

.scene.revealed .rays,
.scene.permanent-hero .rays {
  opacity: .9;
  animation: spin 45s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Central Light Shaft */
.scene .lightshaft {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: -15%;
  width: 30%;
  height: 130%;
  transform: translateX(-50%);
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,219,130,.06),
      rgba(255,241,186,.27),
      rgba(255,219,130,.06),
      transparent
    );
  filter: blur(22px);
  opacity: 0;
  transition: opacity 2s;
}

.scene.playing .lightshaft,
.scene.permanent-hero .lightshaft {
  opacity: 1;
  animation: shaft 5s ease-in-out infinite alternate;
}

@keyframes shaft {
  from { transform: translateX(-50%) scaleX(.7); }
  to { transform: translateX(-50%) scaleX(1.15); }
}

/* Mandala */
.scene .mandala {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 46%;
  width: min(55vw, 570px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 2s;
}

.scene.revealed .mandala,
.scene.permanent-hero .mandala {
  opacity: .65;
  animation: mandalaRotate 70s linear infinite;
}

.scene .mandala i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,214,119,.55);
  border-radius: 50%;
}

.scene .mandala i:nth-child(1) { transform: rotate(15deg) scale(.96); }
.scene .mandala i:nth-child(2) { transform: rotate(30deg) scale(.86); }
.scene .mandala i:nth-child(3) { transform: rotate(45deg) scale(.76); }
.scene .mandala i:nth-child(4) { transform: rotate(60deg) scale(.66); }
.scene .mandala i:nth-child(5) { transform: rotate(75deg) scale(.56); }

@keyframes mandalaRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Idol */
.scene .idol {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 48%;
  width: min(72vw, 560px);
  height: min(54vh, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(.76);
  opacity: 0;
  filter: brightness(.08) saturate(.6) contrast(1.1) drop-shadow(0 30px 50px rgba(0,0,0,.9));
  transition: opacity 2.5s, transform 5s cubic-bezier(.12,.78,.08,1), filter 3s;
}

.scene .idol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(255, 186, 58, 0.2);
  filter: drop-shadow(0 15px 20px rgba(0,0,0,.9)) drop-shadow(0 0 30px rgba(255,186,58,.3));
}

.scene.opening .idol {
  opacity: .48;
  filter: brightness(.42) saturate(.8) contrast(1.15);
}

.scene.revealed .idol,
.scene.permanent-hero .idol {
  opacity: 1;
  transform: translate(-50%, -50%) scale(.99);
  filter: brightness(1.06) saturate(1.14) contrast(1.06) drop-shadow(0 25px 45px rgba(0,0,0,.85)) drop-shadow(0 0 32px rgba(255,190,65,.45));
}

/* Doors */
.scene .door {
  position: absolute;
  z-index: 20;
  top: -6%;
  height: 112%;
  width: 51%;
  background:
    linear-gradient(
      90deg,
      #0b0201 0%,
      #260704 12%,
      #5e1c07 26%,
      #a84d10 43%,
      #d47a22 49%,
      #8a320a 58%,
      #481006 76%,
      #160302 100%
    );
  border: 5px solid #c99030;
  box-shadow:
    inset 0 0 0 10px #321005,
    inset 0 0 60px #030100,
    0 0 90px #000;
  transition: transform 4.5s cubic-bezier(.1,.72,.06,1), filter 3s;
}

.scene .door.left {
  left: -1%;
  transform-origin: 7% 50%;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.scene .door.right {
  right: -1%;
  transform-origin: 93% 50%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%);
}

.scene.opening .door.left,
.scene.permanent-hero .door.left {
  transform: perspective(1300px) rotateY(-82deg) translateX(-4%);
  filter: brightness(.62);
}

.scene.opening .door.right,
.scene.permanent-hero .door.right {
  transform: perspective(1300px) rotateY(82deg) translateX(4%);
  filter: brightness(.62);
}

/* Door Panels */
.scene .panel {
  position: absolute;
  inset: 7% 9%;
  border: 5px solid #d9a741;
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 8px rgba(48,15,2,.85),
    inset 0 0 35px rgba(255,196,75,.18),
    0 0 12px rgba(255,190,60,.2);
}

.scene .panel:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 5px solid #d8a641;
  border-radius: 10px;
  box-shadow: 0 0 0 8px #421407, 0 0 0 12px #bd842b;
}

.scene .panel:after {
  content: "ॐ";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #e6b650;
  font: clamp(50px, 8vw, 100px) serif;
  text-shadow: 0 2px 5px #1b0501, 0 0 18px rgba(255,200,80,.3);
}

/* Handles */
.scene .handle {
  position: absolute;
  top: 48%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0b0, #d3932d 42%, #5c2c08 75%);
  border: 3px solid #f0c35c;
  box-shadow: 0 4px 12px #000, 0 0 15px rgba(255,190,65,.3);
}

.scene .door.left .handle { right: 7%; }
.scene .door.right .handle { left: 7%; }

/* Header */
.scene .header {
  position: absolute;
  z-index: 30;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  text-align: center;
  opacity: 0;
  transition: opacity 1.5s;
  text-shadow: 0 2px 15px #000, 0 0 20px rgba(255,180,50,.25);
  pointer-events: none;
}

.scene.playing .header,
.scene.permanent-hero .header {
  opacity: 1;
}

.scene .header .om {
  display: none;
}

.scene .header h1 {
  font-size: clamp(17px, 2.8vw, 26px);
  margin: 0;
  color: #ffe5a2;
  font-family: var(--font-serif, "Noto Sans Telugu", serif);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.scene .header p {
  font-size: clamp(11px, 1.6vw, 13px);
  margin: 2px 0 0 0;
  color: #e8bb60;
  font-weight: 600;
}

/* Particle Effects Layer */
.scene .effects {
  position: absolute;
  z-index: 25;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene .effects .spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff4c7;
  box-shadow: 0 0 7px #fff, 0 0 16px #ffd35a, 0 0 28px #ff9d1c;
  animation: spark var(--d) ease-in-out infinite;
}

.scene .effects .spark.big {
  width: 7px;
  height: 7px;
}

.scene .effects .petal {
  position: absolute;
  top: -40px;
  width: 11px;
  height: 18px;
  border-radius: 70% 30% 70% 30%;
  background: linear-gradient(135deg, #ffd0b0, #e2194e 55%, #7d0525);
  filter: drop-shadow(0 3px 4px #0008);
  animation: fall var(--d) linear forwards;
}

.scene .effects .gold {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffd66b;
  box-shadow: 0 0 8px #ffc33c;
  opacity: 0;
  animation: goldFloat var(--d) ease-out forwards;
}

@keyframes spark {
  0%, 100% { opacity: 0; transform: translateY(15vh) scale(.3); }
  30% { opacity: 1; }
  70% { opacity: .7; }
  100% { transform: translateY(-18vh) scale(1.1); }
}

@keyframes fall {
  to { transform: translate3d(var(--drift), 110vh, 0) rotate(800deg); }
}

@keyframes goldFloat {
  0% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(.2); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--sx) * .15), calc(var(--sy) * .15)) scale(1.5); }
}

/* Smoke / Atmosphere */
.scene .smoke {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: -15%;
  width: 70%;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255,225,170,.12), transparent 68%);
  filter: blur(35px);
  opacity: 0;
  animation: smokeMove 8s ease-in-out infinite;
}

.scene.playing .smoke,
.scene.permanent-hero .smoke {
  opacity: .7;
}

@keyframes smokeMove {
  0%, 100% { transform: translateX(-50%) scale(.85) translateY(20px); }
  50% { transform: translateX(-50%) scale(1.15) translateY(-30px); }
}

/* Divine Light Flash */
.scene .flash {
  position: absolute;
  z-index: 70;
  inset: 0;
  background: #fff6c7;
  opacity: 0;
  pointer-events: none;
}

.scene.revealed .flash {
  animation: divineFlash 1.6s ease-out forwards;
}

@keyframes divineFlash {
  0% { opacity: 0; }
  12% { opacity: .65; }
  30% { opacity: .08; }
  100% { opacity: 0; }
}

/* Devotional Message Plaque */
.scene .message {
  position: absolute;
  z-index: 35;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(90%, 740px);
  transform: translate(-50%, 45px) scale(.96);
  text-align: center;
  padding: 14px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(43,6,2,.97), rgba(103,19,5,.95));
  border: 2px solid #dfb44f;
  box-shadow: 0 0 45px rgba(255,184,52,.3), 0 10px 35px #000, inset 0 0 25px rgba(255,215,120,.1);
  opacity: 0;
  transition: opacity 1.3s 1s, transform 1.3s 1s;
}

.scene.revealed .message,
.scene.permanent-hero .message {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.scene .message small {
  display: block;
  font-size: clamp(12px, 2.2vw, 16px);
  color: #f5d68c;
  margin-bottom: 2px;
}

.scene .message strong {
  display: block;
  font-size: clamp(22px, 4.2vw, 36px);
  color: #ffe5a1;
  margin: 1px 0;
  font-family: var(--font-serif, "Noto Sans Telugu", serif);
  text-shadow: 0 0 14px rgba(255,200,80,.3);
  line-height: 1.25;
}

.scene .message span {
  display: block;
  font-size: clamp(13px, 2.4vw, 18px);
  color: #f5cf7d;
  font-weight: 700;
  margin-bottom: 3px;
}

.scene .message .committee-subtext {
  margin: 2px 0 6px 0;
  font-size: clamp(10px, 1.8vw, 13px);
  color: #ebd5b3;
}

.scene .message .ganesh-agaman-scroll-cue .scroll-down-btn {
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid #dfb44f;
  color: #ffe8a0;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.scene .message .ganesh-agaman-scroll-cue .scroll-down-btn:hover {
  background: var(--gold, #dfb44f);
  color: #200508;
  transform: translateY(-1px);
}

/* Diyas / Lamps */
.scene .lamps {
  position: absolute;
  z-index: 36;
  left: 5%;
  right: 5%;
  bottom: 7%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.scene .lamp {
  position: relative;
  width: 56px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(#e09a32, #6a3509);
  border-bottom: 2px solid #f0bd51;
  box-shadow: 0 0 20px rgba(255,182,55,.55), 0 8px 15px #000;
}

.scene .lamp:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -43px;
  width: 20px;
  height: 40px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at bottom, #fffbd0 0%, #ffd75c 40%, #ff7b00 67%, transparent 73%);
  border-radius: 50%;
  filter: drop-shadow(0 0 10px #ff9e21);
  animation: flame .55s ease-in-out infinite alternate;
}

@keyframes flame {
  to { transform: translateX(-50%) scale(1.15) rotate(3deg); }
}

/* Responsive Mobile Rules */
@media(max-width: 600px) {
  .scene .arch {
    width: 130vw;
    border-width: 24px;
  }
  .scene .pillar {
    width: 8%;
  }
  .scene .ornament {
    top: 10px;
    height: 42px;
  }
  .scene .ornament span {
    width: 32px;
    height: 32px;
  }
  .scene .ornament span:after {
    font-size: 19px;
  }
  .scene .header {
    top: 54px;
  }
  .scene .header h1 {
    font-size: 18px;
  }
  .scene .header p {
    font-size: 11px;
  }
  .scene .idol {
    width: 96vw;
    height: 52vh;
    top: 48%;
  }
  .scene .message {
    width: 94%;
    bottom: 16px;
    padding: 10px 12px;
  }
  .scene .message strong {
    font-size: 20px;
  }
  .scene .lamps {
    bottom: 24px;
  }
  .scene .lamp {
    width: 42px;
    height: 18px;
  }
  .scene .mandala {
    width: 90vw;
  }
  .scene .halo {
    width: 88vw;
  }
}

/* Reduced motion support */
@media(prefers-reduced-motion: reduce) {
  .scene *,
  .scene *:before,
  .scene *:after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .scene .door {
    transition-duration: .7s;
  }
}







