/* ==========================================================================
   BALA GANESH YOUTH - ROYAL TEMPLE & CINEMATIC FESTIVAL STYLESHEET
   Auspicious, Regal, Atmospheric, Responsive & Simple Telugu Focus
   ========================================================================== */

:root {
  /* Royal Temple & Cinematic Color System */
  --sanctum-maroon: #26030B;
  --sanctum-deep: #160105;
  --temple-burgundy: #3D0814;
  --royal-crimson: #7F1D1D;
  --vermilion-kumkum: #991B1B;
  --sacred-red: #B91C1C;
  --saffron-radiant: #EA580C;
  --saffron-deep: #C2410C;
  --marigold-gold: #F59E0B;
  
  /* Antique Brushed Gold Metallic Accents */
  --antique-gold: #D4AF37;
  --antique-gold-light: #FDE68A;
  --antique-gold-dark: #8C6D23;
  --gold-glow: rgba(212, 175, 55, 0.35);
  
  /* Sacred Ivory & Parchment Surfaces */
  --parchment-ivory: #FFFDF8;
  --parchment-warm: #FAF4E6;
  --card-white: #FFFFFF;
  --card-dark: #20040A;
  
  /* Borders & Shadows */
  --border-gold-subtle: rgba(212, 175, 55, 0.35);
  --border-gold-rich: rgba(212, 175, 55, 0.7);
  --shadow-temple: 0 10px 30px rgba(38, 3, 11, 0.15);
  --shadow-glow-gold: 0 0 25px rgba(212, 175, 55, 0.3);
  --shadow-glow-sanctum: 0 15px 40px rgba(0, 0, 0, 0.45);
  
  /* Typography */
  --text-dark: #1C1917;
  --text-muted: #57534E;
  --text-ivory: #FDF8ED;
  --text-gold: #D4AF37;
  
  --font-main: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-telugu: 'Tiro Telugu', 'Gautami', 'Segoe UI', serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-main);
  background-color: var(--parchment-ivory);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.telugu-text {
  font-family: var(--font-telugu);
}

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

/* Section Header Structure */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 52px auto;
  position: relative;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(234, 88, 12, 0.15));
  color: var(--vermilion-kumkum);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--antique-gold);
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
}

.section-title {
  font-size: 2.45rem;
  font-weight: 800;
  color: var(--royal-crimson);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-divider {
  width: 170px;
  height: 28px;
  margin: 10px auto 14px auto;
  background-image: url('../images/mandala-decor.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

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

.section-padding {
  padding: 95px 0;
}

.bg-warm-parchment {
  background: radial-gradient(circle at 50% 20%, #FFFDF8 0%, #FAF2DE 100%);
  border-top: 1px solid var(--border-gold-subtle);
  border-bottom: 1px solid var(--border-gold-subtle);
}

/* ==========================================================================
   FLOATING MODERN NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(38, 3, 11, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--antique-gold);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(22, 1, 5, 0.97);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  transition: height 0.3s ease;
}

.site-header.scrolled .nav-container {
  height: 68px;
}

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

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

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--antique-gold-light);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--saffron-radiant);
  font-weight: 700;
  letter-spacing: 1px;
}

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

.nav-link {
  text-decoration: none;
  color: #FDF8ED;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-item-icon {
  display: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--antique-gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2.5px;
  background: var(--antique-gold);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

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

.mobile-toggle {
  display: none;
  background: rgba(212, 175, 55, 0.12);
  border: 1.5px solid var(--border-gold-rich);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  color: var(--antique-gold-light);
  transition: var(--transition);
  align-items: center;
  justify-content: center;
}

.mobile-toggle:hover,
.mobile-toggle.is-open {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--antique-gold);
  color: #FFFFFF;
}

.mobile-toggle svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.3s ease;
}

.mobile-toggle.is-open svg {
  transform: rotate(90deg);
}

/* Nav Backdrop Overlay */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 1, 3, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

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

/* ==========================================================================
   1. HERO: GRAND MAKARA TORANA & CENTERPIECE VINAYAKA
   ========================================================================== */
.hero-sanctum {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 70px 20px;
  background: radial-gradient(circle at 50% 30%, #420A15 0%, #26030B 55%, #150105 100%);
  color: var(--text-ivory);
  overflow: hidden;
}

/* Background Atmosphere */
.hero-ambient-lighting {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.22) 0%, transparent 55%),
    radial-gradient(rgba(245, 158, 11, 0.08) 1.5px, transparent 1.5px);
  background-size: 100% 100%, 38px 38px;
}

.hero-composition-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* Makara Torana Temple Arch Framing */
.torana-temple-frame {
  position: relative;
  padding: 50px 30px 40px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(38, 3, 11, 0.85) 0%, rgba(22, 1, 5, 0.95) 100%);
  border: 3px solid var(--antique-gold);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 10px rgba(212, 175, 55, 0.15);
}

.torana-svg-overlay {
  position: absolute;
  top: -24px;
  left: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
  background-image: url('../images/makara-torana.svg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  opacity: 0.9;
}

/* Invocation Header */
.ceremonial-mantra {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--antique-gold-light);
  letter-spacing: 3px;
  margin-bottom: 16px;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

/* Large Centerpiece Vinayaka Artwork Frame */
.vinayaka-centerpiece-container {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 12px auto 26px auto;
}

.vinayaka-halo-radiance {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.4) 0%, rgba(245, 158, 11, 0.2) 50%, transparent 75%);
  animation: divineAuraBreath 4s ease-in-out infinite alternate;
  pointer-events: none;
}

.vinayaka-halo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed var(--antique-gold);
  opacity: 0.7;
  animation: rotateSlow 40s linear infinite;
  pointer-events: none;
}

.vinayaka-masterpiece-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--antique-gold);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.5);
  display: block;
}

/* Hero Ceremonial Typography */
.hero-brand-name {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #FFF7D6 0%, #D4AF37 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.hero-invitation-badge {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--antique-gold-light);
  background: rgba(212, 175, 55, 0.16);
  padding: 8px 30px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--antique-gold);
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.hero-invitation-message {
  font-size: 1.2rem;
  color: #FDF8ED;
  max-width: 760px;
  margin: 0 auto 34px auto;
  line-height: 1.85;
}

/* Event Information Pills Grid */
.hero-details-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 38px;
}

.hero-detail-card {
  background: rgba(42, 4, 14, 0.85);
  border: 1.5px solid var(--border-gold-rich);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.hero-detail-card:hover {
  transform: translateY(-3px);
  border-color: var(--antique-gold-light);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.25);
  background: rgba(56, 6, 19, 0.95);
}

.hero-detail-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(234, 88, 12, 0.25));
  border: 1.5px solid var(--antique-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-detail-icon svg {
  width: 24px;
  height: 24px;
  color: var(--antique-gold-light);
}

.hero-detail-content {
  display: flex;
  flex-direction: column;
}

.hero-detail-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--antique-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-detail-val {
  font-size: 1.08rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.4;
}

/* Enter Celebration CTA */
.btn-enter-ceremony {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #B91C1C 0%, #EA580C 50%, #B45309 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 800;
  padding: 18px 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--antique-gold-light);
  box-shadow: 0 10px 30px rgba(185, 28, 28, 0.5), 0 0 20px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-enter-ceremony:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 40px rgba(185, 28, 28, 0.65), 0 0 30px rgba(212, 175, 55, 0.5);
}

.btn-enter-ceremony svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

.btn-enter-ceremony:hover svg {
  transform: translateY(3px);
}

/* ==========================================================================
   2. HOME SECTION: SACRED STORYTELLING & HIGHLIGHTS
   ========================================================================== */
.home-story-card {
  background: var(--card-white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-gold-subtle);
  box-shadow: var(--shadow-temple);
  padding: 44px 38px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 38px;
}

.home-story-text h3 {
  font-size: 2.1rem;
  margin-bottom: 16px;
  color: var(--royal-crimson);
}

.home-story-text p {
  color: var(--text-dark);
  font-size: 1.12rem;
  line-height: 1.85;
  margin-bottom: 14px;
}

.home-story-seal {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, #FEF3C7 0%, #FDE68A 70%, #D4AF37 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--royal-crimson);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.home-story-seal img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* Highlights Grid */
.highlights-sculpted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.sculpted-card {
  background: var(--card-white);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-gold-subtle);
  box-shadow: var(--shadow-temple);
  padding: 32px 26px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.sculpted-card:hover {
  transform: translateY(-6px);
  border-color: var(--antique-gold);
  box-shadow: 0 14px 34px rgba(38, 3, 11, 0.12);
}

.sculpted-icon-badge {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #FEF3C7, #FFEDD5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 2px solid var(--antique-gold);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.sculpted-card h4 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--royal-crimson);
}

.sculpted-card p {
  font-size: 1.04rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   3. FESTIVAL SCHEDULE: ROYAL TEMPLE FESTIVAL ARCHITECTURE
   ========================================================================== */
.schedule-royal-section {
  background: radial-gradient(circle at 50% 20%, #360511 0%, #200208 60%, #120104 100%);
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--antique-gold);
  border-bottom: 3px solid var(--antique-gold);
}

.schedule-container-relative {
  position: relative;
  z-index: 2;
}

/* Temple Pillars on Side Flanks */
.temple-pillar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background: repeating-linear-gradient(
    90deg,
    #D4AF37 0px,
    #92400E 8px,
    #FDE68A 14px,
    #78350F 22px
  );
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.temple-pillar-left {
  left: 0;
  border-right: 2px solid var(--antique-gold);
}

.temple-pillar-right {
  right: 0;
  border-left: 2px solid var(--antique-gold);
}

.schedule-header-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: radial-gradient(circle, #FEF3C7 0%, #F59E0B 80%, #B45309 100%);
  border: 3px solid var(--antique-gold-light);
  border-radius: 50%;
  margin: 0 auto 12px auto;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
}

.schedule-calendar-icon {
  font-size: 1.9rem;
}

.text-gold-glow {
  color: #FDE68A !important;
  text-shadow: 0 0 16px rgba(253, 230, 138, 0.4);
}

.text-cream-muted {
  color: #F3E8E2 !important;
}

/* Schedule Top Toolbar */
.schedule-top-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
  padding: 14px 22px;
  background: rgba(30, 3, 9, 0.85);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-gold-subtle);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.schedule-notice-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FDE68A;
  background: rgba(245, 158, 11, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.schedule-toolbar-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-schedule-action {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-add-new-prog {
  background: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
  color: #FFFFFF;
  border: 1.5px solid var(--antique-gold);
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.5);
}

.btn-add-new-prog:hover {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.6);
}

.btn-reset-prog {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #E5E7EB;
}

.btn-reset-prog:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #F87171;
  color: #FCA5A5;
}

/* Side-by-Side Dual Column Grid */
.schedule-dual-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: start;
}

.schedule-panel-card {
  background: #FFFDF9;
  border-radius: var(--radius-lg);
  border: 3px solid var(--antique-gold);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
}

.panel-header-band {
  background: linear-gradient(135deg, #3A0512 0%, #5B0C1E 100%);
  color: #FFFFFF;
  padding: 16px 24px;
  border-bottom: 2px solid var(--antique-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FDE68A;
}

.panel-header-icon {
  font-size: 1.3rem;
}

.panel-header-subtag {
  font-size: 0.84rem;
  background: rgba(254, 240, 138, 0.15);
  border: 1px solid var(--antique-gold);
  color: #FDE68A;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Left Panel: Vertical Timeline Track */
.royal-timeline-track {
  position: relative;
  padding: 24px 20px 24px 54px;
  max-height: 560px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--antique-gold) #FDF8ED;
}

/* Golden Vertical Cord */
.royal-timeline-track::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 28px;
  width: 3.5px;
  background: linear-gradient(180deg, #D4AF37 0%, #F59E0B 50%, #D4AF37 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.timeline-row-item {
  position: relative;
  margin-bottom: 20px;
}

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

/* Timeline Node Marker (Bell Icon) */
.timeline-node-marker {
  position: absolute;
  left: -44px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  z-index: 2;
  transition: var(--transition);
}

.timeline-row-item:hover .timeline-node-marker {
  transform: scale(1.15) rotate(10deg);
}

.timeline-node-marker img {
  width: 100%;
  height: 100%;
}

.timeline-row-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-gold-subtle);
  padding: 16px 20px;
  box-shadow: 0 3px 12px rgba(42, 4, 14, 0.06);
  transition: var(--transition);
}

.timeline-row-item:hover .timeline-row-card {
  border-color: var(--antique-gold);
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(42, 4, 14, 0.12);
}

.timeline-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.badge-timeline-day {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--antique-gold);
}

.badge-timeline-time {
  background: #FEF2F2;
  color: #991B1B;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  border: 1px solid #FCA5A5;
}

.timeline-row-actions {
  display: flex;
  gap: 8px;
}

.btn-action-edit,
.btn-action-delete {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid;
  transition: var(--transition);
}

.btn-action-edit {
  background: #FFFBEB;
  border-color: #F59E0B;
  color: #B45309;
}

.btn-action-edit:hover {
  background: #FDE68A;
  color: #92400E;
}

.btn-action-delete {
  background: #FEF2F2;
  border-color: #F87171;
  color: #991B1B;
}

.btn-action-delete:hover {
  background: #FEE2E2;
  color: #7F1D1D;
}

.timeline-program-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--royal-crimson);
  margin-bottom: 6px;
}

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

.empty-schedule-box {
  padding: 40px 20px;
  text-align: center;
}

.empty-schedule-box .empty-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 12px;
}

/* Right Panel: Royal Festival Form */
.royal-festival-form {
  padding: 24px;
}

.form-highlight-pulse {
  animation: pulseGoldBorder 1.2s ease-in-out 2;
}

@keyframes pulseGoldBorder {
  0%, 100% {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 15px rgba(234, 88, 12, 0.5);
  }
}

.form-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.form-field-group {
  margin-bottom: 14px;
}

.form-field-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #4A0E17;
  margin-bottom: 6px;
}

.form-label-icon {
  margin-right: 4px;
}

.form-field-group input,
.form-field-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #D8C3A5;
  background: #FFFDF7;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-field-group input:focus,
.form-field-group textarea:focus {
  outline: none;
  border-color: var(--antique-gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.form-submit-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 16px;
}

.btn-form-save {
  flex: 1.4;
  background: linear-gradient(135deg, #8B1117 0%, #A3161C 50%, #700B10 100%);
  color: #FFFFFF;
  border: 1.5px solid var(--antique-gold);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(139, 17, 23, 0.4);
  transition: var(--transition);
}

.btn-form-save:hover {
  background: linear-gradient(135deg, #A3161C 0%, #B91C1C 50%, #8B1117 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(163, 22, 28, 0.5);
}

.btn-form-cancel {
  flex: 0.8;
  background: #F3F4F6;
  border: 1.5px solid #D1D5DB;
  color: #4B5563;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-form-cancel:hover {
  background: #E5E7EB;
  color: #1F2937;
}

.form-device-notice {
  background: #FEF3C7;
  border: 1px solid var(--antique-gold);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #92400E;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   4. TELUGU VINAYAKA STORIES: SACRED POTHI MANUSCRIPT
   ========================================================================== */
.pothi-manuscript-container {
  background: #FFFDF8;
  border-radius: var(--radius-lg);
  border: 3px solid var(--antique-gold);
  box-shadow: 0 20px 50px rgba(38, 3, 11, 0.15), 0 0 0 10px rgba(212, 175, 55, 0.1);
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Pothi Top Brass Band */
.pothi-top-header {
  background: linear-gradient(135deg, var(--sanctum-maroon), var(--royal-crimson));
  color: #FFFFFF;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--antique-gold);
}

.pothi-header-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--antique-gold-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pothi-font-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-font-size {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid var(--antique-gold);
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-font-size:hover {
  background: var(--antique-gold);
  color: var(--sanctum-maroon);
}

/* Stories Chapter Tab Bar */
.pothi-tabs-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 24px;
  background: #FAF3E0;
  border-bottom: 1.5px solid var(--border-gold-subtle);
}

.pothi-tab-btn {
  background: #FFFFFF;
  border: 1.5px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.pothi-tab-btn:hover {
  background: #FEF3C7;
  border-color: var(--antique-gold);
}

.pothi-tab-btn.active {
  background: linear-gradient(135deg, #8B1117, #5C0B12);
  color: #FFFFFF;
  border-color: var(--antique-gold);
  box-shadow: 0 4px 14px rgba(139, 17, 23, 0.35);
}

.pothi-tab-stamp {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.pothi-tab-btn.active .pothi-tab-stamp {
  background: var(--antique-gold);
  color: var(--sanctum-maroon);
}

.pothi-tab-label {
  font-weight: 800;
  font-size: 0.98rem;
}

/* Pothi Story Reading Canvas */
.pothi-reading-canvas {
  padding: 40px 38px;
}

.pothi-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pothi-chapter-badge {
  background: #FEF3C7;
  color: #92400E;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--antique-gold);
}

.pothi-reading-time {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pothi-story-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--royal-crimson);
  line-height: 1.3;
  margin-bottom: 6px;
}

.pothi-story-sub {
  font-size: 1.15rem;
  color: var(--saffron-deep);
  font-weight: 800;
  margin-bottom: 22px;
}

.pothi-moral-box {
  background: #FEF2F2;
  border-left: 5px solid var(--sacred-red);
  padding: 16px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 28px;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.pothi-moral-tag {
  font-weight: 900;
  color: var(--royal-crimson);
  margin-right: 8px;
}

.pothi-moral-text {
  color: var(--text-dark);
  font-weight: 700;
}

.pothi-story-body {
  font-size: 1.18rem;
  line-height: 2.05;
  color: #292524;
}

.pothi-story-body p {
  margin-bottom: 20px;
  text-indent: 1.8em;
}

/* Story Pagination Controls */
.pothi-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--border-gold-subtle);
  padding-top: 24px;
  margin-top: 32px;
}

.btn-pothi-nav {
  background: #FFFFFF;
  border: 2px solid var(--antique-gold);
  color: var(--royal-crimson);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-pothi-nav:hover {
  background: var(--royal-crimson);
  color: #FFFFFF;
  border-color: var(--royal-crimson);
}

/* ==========================================================================
   5. COMMITTEE: ROYAL OVAL-RECTANGULAR PORTRAIT CARDS
   ========================================================================== */
.committee-medallion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  justify-content: center;
}

@media (min-width: 1024px) {
  .committee-medallion-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.medallion-card {
  background: var(--card-white);
  border-radius: 28px;
  border: 1.5px solid var(--border-gold-subtle);
  box-shadow: 0 8px 24px rgba(38, 3, 11, 0.08), 0 2px 8px rgba(212, 175, 55, 0.1);
  padding: 14px 14px 18px 14px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.medallion-card:hover {
  transform: translateY(-6px);
  border-color: var(--antique-gold);
  box-shadow: 0 16px 32px rgba(38, 3, 11, 0.14), 0 0 22px rgba(212, 175, 55, 0.28);
}

.medallion-frame-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  border-radius: 26px;
  border: 3px solid var(--antique-gold);
  box-shadow: 0 6px 18px rgba(38, 3, 11, 0.12), inset 0 0 0 1px rgba(254, 243, 199, 0.4);
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #FFFDF8 0%, #FEF3C7 100%);
}

.medallion-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.medallion-card:hover .medallion-photo {
  transform: scale(1.05);
}

.medallion-name {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--royal-crimson);
  margin: 0;
  padding: 4px 0 0 0;
  letter-spacing: 0.3px;
  line-height: 1.25;
  transition: color 0.3s ease;
}

.medallion-card:hover .medallion-name {
  color: var(--vermilion-kumkum);
}

/* ==========================================================================
   6. PREPARATION CHECKLIST: ROYAL COMMUNITY TASK METER
   ========================================================================== */
.checklist-royal-section {
  background: linear-gradient(180deg, #FDF8ED 0%, #FFFDF8 50%, #FAF1DE 100%);
  position: relative;
  border-top: 3px solid var(--border-gold-subtle);
  border-bottom: 3px solid var(--border-gold-subtle);
}

.checklist-grand-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}

/* Left Column: Seated Lord Vinayaka Centerpiece */
.checklist-deity-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.deity-halo-composition {
  position: relative;
  text-align: center;
}

.deity-radiance-aura {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.7) 0%, rgba(245, 158, 11, 0.3) 60%, transparent 100%);
  filter: blur(12px);
  z-index: 0;
  animation: divineAuraBreath 4s ease-in-out infinite alternate;
}

.deity-arch-frame {
  position: relative;
  z-index: 1;
  width: 290px;
  height: 350px;
  border-radius: 145px 145px 24px 24px;
  border: 5px solid var(--antique-gold);
  box-shadow: 0 16px 36px rgba(42, 4, 14, 0.25), 0 0 20px rgba(212, 175, 55, 0.3);
  overflow: hidden;
  background: #360511;
}

.deity-arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s ease;
}

.deity-arch-frame:hover .deity-arch-img {
  transform: scale(1.05);
}

.deity-hanging-bell {
  position: absolute;
  top: 10px;
  width: 32px;
  height: 32px;
  z-index: 2;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.deity-bell-left {
  left: 12px;
}

.deity-bell-right {
  right: 12px;
}

.deity-hanging-bell img {
  width: 100%;
  height: 100%;
}

.deity-blessing-caption {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sanskrit-blessing {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--royal-crimson);
  letter-spacing: 0.5px;
}

.telugu-sub-blessing {
  font-size: 0.9rem;
  color: #78350F;
  font-weight: 700;
}

/* Right Column: Royal Parchment Card */
.checklist-card-box {
  background: #FFFDF9;
  border-radius: var(--radius-lg);
  border: 3px solid var(--antique-gold);
  box-shadow: 0 12px 34px rgba(42, 4, 14, 0.1);
  padding: 30px 32px;
}

.checklist-header-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--border-gold-subtle);
  margin-bottom: 24px;
}

.checklist-title-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.checklist-emblem-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B1117, #A3161C);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  border: 2px solid var(--antique-gold);
  box-shadow: 0 4px 12px rgba(139, 17, 23, 0.35);
  flex-shrink: 0;
}

.checklist-main-heading {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--royal-crimson);
  line-height: 1.2;
}

.checklist-sub-heading {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Metrics Cluster (Circular Ring + Linear Bar + Reset Button) */
.checklist-metrics-cluster {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Circular SVG Progress Widget */
.circular-progress-widget {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.progress-ring-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.ring-bg-circle {
  fill: none;
  stroke: #F3E8E2;
  stroke-width: 6.5;
}

.ring-indicator-circle {
  fill: none;
  stroke: #D4AF37;
  stroke-width: 6.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.ring-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ring-count-val {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--royal-crimson);
  line-height: 1.1;
}

.ring-completed-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Linear Progress Bar Widget */
.linear-progress-widget {
  min-width: 140px;
}

.progress-percent-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #92400E;
  margin-bottom: 6px;
}

.checklist-track-bar {
  width: 100%;
  height: 12px;
  background: #F3F4F6;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.checklist-fill-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #F59E0B 0%, #EA580C 50%, #059669 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Reset Button */
.btn-festive-reset {
  background: #4A0E17;
  color: #FDE68A;
  border: 1.5px solid var(--antique-gold);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(74, 14, 23, 0.25);
}

.btn-festive-reset:hover {
  background: #6A1422;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(74, 14, 23, 0.35);
}

/* Completion Grand Banner */
.completion-grand-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 2px solid #059669;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 22px;
  color: #065F46;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.2);
  animation: bannerPop 0.5s ease-out;
}

@keyframes bannerPop {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.banner-diya-sparkle {
  font-size: 1.4rem;
}

/* 2-Column Festival Task Cards Grid */
.checklist-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

/* Individual Festival Task Card */
.festival-task-card {
  background: #FFFDF9;
  border: 1.5px solid #E5D5BA;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.festival-task-card:hover {
  background: #FEF9EB;
  border-color: var(--antique-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.festival-task-card.task-completed {
  background: #F0FDF4;
  border-color: #86EFAC;
}

/* Checkbox Box */
.task-checkbox-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--antique-gold);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.festival-task-card.task-completed .task-checkbox-box {
  background: #059669;
  border-color: #059669;
}

.task-check-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.4);
  transition: var(--transition);
}

.festival-task-card.task-completed .task-check-icon {
  opacity: 1;
  transform: scale(1);
}

/* Task Badge Icon */
.task-badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FEF3C7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.festival-task-card.task-completed .task-badge-icon {
  background: #DCFCE7;
  border-color: #86EFAC;
}

.task-title-wrap {
  flex: 1;
}

.task-title-label {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  display: block;
}

.festival-task-card.task-completed .task-title-label {
  color: #047857;
  text-decoration: line-through;
}

/* Bottom Device Notice */
.checklist-device-notice {
  background: #FEF3C7;
  border: 1px solid var(--antique-gold);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #92400E;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   7. GALLERY: ASYMMETRIC FESTIVAL PHOTO EXHIBITION
   ========================================================================== */
.section-dark-velvet {
  background: radial-gradient(circle at 50% 20%, #2A040E 0%, #150105 100%);
  color: var(--text-ivory);
  border-top: 3px solid var(--antique-gold);
  border-bottom: 3px solid var(--antique-gold);
}

.section-dark-velvet .section-title {
  color: var(--antique-gold-light);
}

.section-dark-velvet .section-subtitle {
  color: #E7E5E4;
}

.asymmetric-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.asymmetric-photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-gold-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  background: #000000;
  min-height: 280px;
}

/* Asymmetric Span Variations */
.asymmetric-photo-card.span-large {
  grid-column: span 7;
}

.asymmetric-photo-card.span-medium {
  grid-column: span 5;
}

.asymmetric-photo-card.span-wide {
  grid-column: span 6;
}

.asymmetric-photo-card.span-tall {
  grid-column: span 6;
}

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

.asymmetric-photo-card:hover .gallery-photo-img {
  transform: scale(1.07);
}

.gallery-photo-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: var(--transition);
}

.gallery-title-text {
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.gallery-sub-text {
  color: var(--antique-gold-light);
  font-size: 0.92rem;
}

.gallery-zoom-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(6px);
  border: 1px solid var(--antique-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.asymmetric-photo-card:hover .gallery-zoom-badge {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox Modal & Fullscreen Photo Viewer */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 0, 3, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1E0308;
  border-radius: var(--radius-lg);
  border: 2.5px solid var(--antique-gold);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.25);
  overflow: hidden;
}

.lightbox-img-wrapper {
  width: 100%;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0D0104;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #2A040E, #180206);
  border-top: 1.5px solid var(--border-gold-subtle);
  text-align: center;
}

.lightbox-title {
  color: var(--antique-gold-light);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.lightbox-sub {
  color: #E7E5E4;
  font-size: 0.95rem;
}

.lightbox-btn {
  position: absolute;
  background: rgba(30, 3, 8, 0.85);
  border: 1.5px solid var(--antique-gold);
  color: var(--antique-gold-light);
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  transition: var(--transition);
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.lightbox-btn:hover {
  background: var(--antique-gold);
  color: var(--sanctum-maroon);
}

.lightbox-close {
  top: 14px;
  right: 14px;
  font-size: 1.8rem;
}

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

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

/* ==========================================================================
   8. ABOUT US SECTION: 6 PILLARS
   ========================================================================== */
.pillars-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 26px;
}

.pillar-royal-card {
  background: var(--card-white);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-gold-subtle);
  box-shadow: var(--shadow-temple);
  padding: 32px 26px;
  transition: var(--transition);
}

.pillar-royal-card:hover {
  transform: translateY(-5px);
  border-color: var(--antique-gold);
  box-shadow: 0 12px 30px rgba(38, 3, 11, 0.12);
}

.pillar-icon-medallion {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #FEF3C7, #FFEDD5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 18px;
  border: 1.5px solid var(--antique-gold);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.pillar-royal-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--royal-crimson);
  margin-bottom: 10px;
}

.pillar-royal-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ==========================================================================
   9. ROYAL TEMPLE FOOTER
   ========================================================================== */
.temple-royal-footer {
  background: linear-gradient(180deg, #1A0207 0%, #0D0104 100%);
  color: #E7E5E4;
  padding: 70px 0 35px 0;
  border-top: 4px solid var(--antique-gold);
  position: relative;
}

.footer-inner-box {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand-heading {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--antique-gold-light);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-sacred-chant {
  font-size: 1.3rem;
  color: var(--antique-gold);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 26px;
}

.footer-venue-sanctum {
  background: rgba(212, 175, 55, 0.06);
  border: 1.5px solid var(--border-gold-rich);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 34px;
}

.footer-venue-label {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.footer-venue-address {
  font-size: 1.15rem;
  color: var(--antique-gold-light);
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-celebration-details {
  font-size: 1.02rem;
  color: #D6D3D1;
  line-height: 1.75;
}

.footer-separator {
  width: 100%;
  height: 1px;
  background: rgba(212, 175, 55, 0.25);
  margin: 28px 0;
}

.footer-copyright-statement {
  font-size: 0.94rem;
  color: #A8A29E;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   Desktop (1920/1366), Tablet (768), Mobile (430/390/360)
   ========================================================================== */

/* 1. TABLETS & SMALL LAPTOPS (<= 992px) */
@media (max-width: 992px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(22, 1, 5, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 20px 24px 20px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
    border-bottom: 3px solid var(--antique-gold);
    border-top: 1px solid var(--border-gold-subtle);
    display: none;
    gap: 4px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 999;
  }

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

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    display: flex;
    align-items: center;
    min-height: 48px;
  }

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

  .mobile-toggle {
    display: flex;
  }

  .hero-brand-name {
    font-size: clamp(2.2rem, 6.5vw, 3rem);
  }

  .asymmetric-photo-card.span-large,
  .asymmetric-photo-card.span-medium,
  .asymmetric-photo-card.span-wide,
  .asymmetric-photo-card.span-tall {
    grid-column: span 12;
    min-height: 260px;
  }

  .home-story-card {
    flex-direction: column;
    text-align: center;
  }

  .schedule-dual-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .checklist-grand-wrapper {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .deity-arch-frame {
    width: 240px;
    height: 300px;
    margin: 0 auto;
  }
}

/* 2. TABLET SCREENS (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    font-size: clamp(1.7rem, 5.5vw, 2.3rem);
  }

  /* Hero Section */
  .hero-sanctum {
    padding: 100px 16px 50px 16px;
    min-height: auto;
  }

  .torana-temple-frame {
    padding: 38px 20px 30px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  }

  .vinayaka-centerpiece-container {
    width: 240px;
    height: 240px;
  }

  .hero-brand-name {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .hero-invitation-badge {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    padding: 8px 20px;
  }

  .hero-details-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }

  .hero-detail-card {
    padding: 14px 18px;
  }

  .btn-enter-ceremony {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.05rem;
    min-height: 50px;
  }

  /* Schedule */
  .schedule-top-toolbar {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    gap: 12px;
  }

  .schedule-toolbar-btns {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn-schedule-action {
    flex: 1 1 auto;
    min-height: 44px;
    justify-content: center;
  }

  .royal-timeline-track {
    padding: 20px 14px 20px 48px;
    max-height: 480px;
  }

  .timeline-row-card {
    padding: 14px 16px;
  }

  .timeline-row-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .timeline-row-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .btn-action-edit,
  .btn-action-delete {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 0.84rem;
  }

  .royal-festival-form {
    padding: 18px 16px;
  }

  .form-row-dual {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-submit-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-form-save,
  .btn-form-cancel {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  /* Pothi Stories */
  .pothi-top-header {
    padding: 14px 18px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .pothi-tabs-bar {
    padding: 12px 16px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .pothi-tab-btn {
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .pothi-reading-canvas {
    padding: 24px 18px;
  }

  .pothi-story-title {
    font-size: 1.65rem;
  }

  .pothi-story-body {
    font-size: 1.05rem;
    line-height: 1.9;
  }

  .pothi-nav-footer {
    flex-direction: column;
    gap: 12px;
  }

  .btn-pothi-nav {
    width: 100%;
    text-align: center;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Preparation Checklist */
  .checklist-card-box {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .checklist-header-ribbon {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding-bottom: 18px;
  }

  .checklist-metrics-cluster {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .circular-progress-widget {
    align-self: center;
  }

  .linear-progress-widget {
    width: 100%;
    min-width: unset;
  }

  .btn-festive-reset {
    width: 100%;
    text-align: center;
    min-height: 44px;
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .checklist-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .festival-task-card {
    padding: 14px 16px;
    min-height: 48px;
  }

  .task-checkbox-box {
    width: 26px;
    height: 26px;
  }

  /* Committee 2-Column Mobile Grid */
  .committee-medallion-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .medallion-card {
    padding: 10px 10px 14px 10px;
    border-radius: 22px;
  }

  .medallion-frame-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.15;
    border-radius: 20px;
    border-width: 2.5px;
    margin-bottom: 8px;
  }

  .medallion-name {
    font-size: 1.05rem;
  }

  /* About Pillars */
  .pillars-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pillar-royal-card {
    padding: 24px 20px;
  }

  /* Footer */
  .footer-venue-sanctum {
    padding: 20px 16px;
  }

  .footer-brand-heading {
    font-size: 2rem;
  }
}

/* 3. COMPACT PHONES & NARROW DEVICES (<= 480px, covers 360px - 430px) */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  /* Prevent iOS Safari font zoom on input focus */
  input[type="text"],
  input[type="password"],
  input[type="email"],
  textarea,
  select {
    font-size: 16px !important;
  }

  .brand-logo {
    gap: 8px;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-subtitle {
    font-size: 0.72rem;
  }

  .hero-sanctum {
    padding: 90px 12px 40px 12px;
  }

  .torana-temple-frame {
    padding: 32px 14px 24px 14px;
  }

  .ceremonial-mantra {
    font-size: 1.35rem;
    letter-spacing: 1.5px;
  }

  .vinayaka-centerpiece-container {
    width: 210px;
    height: 210px;
    margin: 8px auto 18px auto;
  }

  .hero-brand-name {
    font-size: 1.95rem;
  }

  .hero-invitation-badge {
    font-size: 1.02rem;
    padding: 6px 14px;
    line-height: 1.35;
  }

  .hero-invitation-message {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-detail-card {
    padding: 12px 14px;
    gap: 12px;
  }

  .hero-detail-val {
    font-size: 0.94rem;
  }

  .btn-enter-ceremony {
    padding: 14px 16px;
    font-size: 1rem;
    min-height: 48px;
  }

  /* Schedule */
  .royal-timeline-track {
    padding: 16px 10px 16px 42px;
  }

  .timeline-node-marker {
    left: -38px;
    width: 32px;
    height: 32px;
  }

  .timeline-program-title {
    font-size: 1.08rem;
  }

  .timeline-program-desc {
    font-size: 0.9rem;
  }

  /* Pothi Stories */
  .pothi-top-header {
    padding: 12px 14px;
  }

  .pothi-header-title {
    font-size: 1rem;
  }

  .pothi-reading-canvas {
    padding: 18px 14px;
  }

  .pothi-story-title {
    font-size: 1.45rem;
  }

  .pothi-story-sub {
    font-size: 1rem;
  }

  .pothi-moral-box {
    padding: 12px 14px;
    font-size: 0.94rem;
  }

  .pothi-story-body {
    font-size: 1rem;
    line-height: 1.85;
  }

  .pothi-story-body p {
    margin-bottom: 14px;
    text-indent: 1em;
  }

  /* Committee (Maintains rectangular rounded oval-style) */
  .committee-medallion-grid {
    gap: 10px;
  }

  .medallion-card {
    padding: 8px 8px 12px 8px;
    border-radius: 18px;
  }

  .medallion-frame-wrap {
    border-radius: 16px;
    border-width: 2px;
  }

  .medallion-name {
    font-size: 0.95rem;
    margin-top: 8px;
  }

  /* Checklist */
  .checklist-card-box {
    padding: 16px 12px;
  }

  .checklist-main-heading {
    font-size: 1.4rem;
  }

  .festival-task-card {
    padding: 12px 14px;
  }

  .task-title-label {
    font-size: 0.92rem;
  }

  /* Gallery */
  .asymmetric-photo-card {
    min-height: 220px;
  }

  .gallery-photo-caption {
    padding: 16px;
  }

  .gallery-title-text {
    font-size: 1.1rem;
  }

  /* Footer */
  .footer-brand-heading {
    font-size: 1.8rem;
  }

  .footer-sacred-chant {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .footer-venue-address {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   DESKTOP VS MOBILE APP SYSTEM RULES
   ========================================================================== */

/* 1. Desktop Mode (> 768px): Hide mobile bottom dock and return buttons */
@media (min-width: 769px) {
  .mobile-bottom-appbar,
  .mobile-subview-return-bar {
    display: none !important;
  }
}

/* 2. Mobile Single-View App System (<= 768px) */
@media (max-width: 768px) {
  body.mobile-app-mode {
    padding-bottom: 74px; /* Ensure content is never obscured by bottom bar */
  }

  /* In mobile app mode, hide all view sections by default */
  body.mobile-app-mode [data-mobile-view] {
    display: none !important;
  }

  /* Show only the active view sections with smooth entrance animation */
  body.mobile-app-mode [data-mobile-view].mobile-active-section {
    display: block !important;
    animation: mobileViewEnter 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes mobileViewEnter {
    0% {
      opacity: 0;
      transform: translateY(14px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Mobile Sub-view Return Button Bar */
  .mobile-subview-return-bar {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    padding-top: 4px;
  }

  .btn-subview-return {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--royal-crimson);
    border: 1.5px solid var(--antique-gold);
    border-radius: var(--radius-full);
    padding: 9px 18px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  }

  .section-dark-velvet .btn-subview-return,
  .schedule-royal-section .btn-subview-return,
  .temple-royal-footer .btn-subview-return {
    background: rgba(212, 175, 55, 0.16);
    color: var(--antique-gold-light);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  }

  .btn-subview-return:hover,
  .btn-subview-return:active {
    background: var(--antique-gold);
    color: var(--sanctum-maroon);
    transform: translateX(-3px);
  }

  .btn-subview-return .return-arrow {
    font-size: 1.15rem;
    line-height: 1;
  }

  /* Mobile Bottom App Bar (Sticky Dock) */
  .mobile-bottom-appbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(22, 1, 5, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 2.5px solid var(--antique-gold);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    z-index: 1005;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.65);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .bottom-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: #D6D3D1;
    font-family: inherit;
    cursor: pointer;
    padding: 6px 2px;
    transition: all 0.2s ease;
    min-width: 0;
    position: relative;
  }

  .bottom-tab-btn .tab-icon {
    font-size: 1.25rem;
    line-height: 1;
  }

  .bottom-tab-btn .tab-label {
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .bottom-tab-btn:hover,
  .bottom-tab-btn:focus-visible {
    color: #FFFFFF;
  }

  .bottom-tab-btn.active {
    color: var(--antique-gold-light);
    background: rgba(212, 175, 55, 0.14);
    font-weight: 800;
  }

  .bottom-tab-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    background: var(--antique-gold);
    border-radius: var(--radius-full);
  }

  /* Enhancements for Mobile Menu Drawer (the 8 buttons requested) */
  .nav-menu {
    border-top: 2px solid var(--antique-gold);
    padding: 18px 16px 28px 16px;
    gap: 6px;
  }

  .nav-link {
    min-height: 52px;
    padding: 12px 18px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.18);
    color: #FDF8ED;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
  }

  .nav-link .nav-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  .nav-link:hover,
  .nav-link:active {
    background: rgba(212, 175, 55, 0.18);
    border-color: var(--antique-gold);
    color: #FFFFFF;
    transform: translateX(4px);
  }

  .nav-link.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(234, 88, 12, 0.22));
    border-color: var(--antique-gold);
    color: var(--antique-gold-light);
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  }

  .nav-link::after {
    display: none;
  }
}
