/* ============================================================
   SRI SHIVA BALAJI TEMPLE — Authentic Hindu Emotional Theme
   Color Story:
   - Kumkum Red     : sacred offerings, tilak, shakti
   - Turmeric Gold  : purity, auspiciousness, vitality
   - Ghee Amber     : deepam lamp flame, warmth, prayer
   - Temple Ochre   : ancient stone, gopuram, earth
   - Lotus Pink     : devotion, Vishnu, Lakshmi grace
   - Sacred Smoke   : blue-grey of incense & divine mystery
   - Jasmine Cream  : purity, prasad, sacred white
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Nunito:wght@300;400;600&display=swap');

/* ============================================================
   BACKGROUND SVG PATTERNS (inline data URIs)
   - kolam-dot   : fine repeating dot grid (kolam/rangoli feel)
   - lotus-tile  : subtle lotus outline tile
   - diamond-geo : temple floor diamond geometry
   - wave-bg     : curved wave like gopuram arch
   ============================================================ */

/* Kolam dot grid — 24x24 tile, gold dots on transparent */
@property --bg-kolam {
  syntax: "<image>";
  inherits: false;
  initial-value: none;
}

:root {
  --pat-kolam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='1.2' fill='%23D4A017' opacity='0.18'/%3E%3C/svg%3E");
  --pat-om: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='50%25' y='50%25' font-size='30' fill='%23D42F2F' fill-opacity='0.2' text-anchor='middle' dominant-baseline='middle' font-family='serif'%3E%E0%A5%90%3C/text%3E%3C/svg%3E");
  --pat-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23C0392B' opacity='0.1'/%3E%3Ccircle cx='0' cy='0' r='1' fill='%23D4A017' opacity='0.1'/%3E%3Ccircle cx='40' cy='0' r='1' fill='%23D4A017' opacity='0.1'/%3E%3Ccircle cx='0' cy='40' r='1' fill='%23D4A017' opacity='0.1'/%3E%3Ccircle cx='40' cy='40' r='1' fill='%23D4A017' opacity='0.1'/%3E%3C/svg%3E");
  --pat-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M24 2 L46 24 L24 46 L2 24 Z' fill='none' stroke='%23D4A017' stroke-width='0.6' opacity='0.12'/%3E%3C/svg%3E");
  --pat-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20'%3E%3Cpath d='M0 10 Q20 0 40 10 Q60 20 80 10' fill='none' stroke='%23D4A017' stroke-width='1' opacity='0.12'/%3E%3C/svg%3E");
  --pat-lotus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cellipse cx='30' cy='30' rx='5' ry='10' fill='none' stroke='%23C0392B' stroke-width='0.5' opacity='0.1' transform='rotate(0 30 30)'/%3E%3Cellipse cx='30' cy='30' rx='5' ry='10' fill='none' stroke='%23C0392B' stroke-width='0.5' opacity='0.1' transform='rotate(45 30 30)'/%3E%3Cellipse cx='30' cy='30' rx='5' ry='10' fill='none' stroke='%23C0392B' stroke-width='0.5' opacity='0.1' transform='rotate(90 30 30)'/%3E%3Cellipse cx='30' cy='30' rx='5' ry='10' fill='none' stroke='%23C0392B' stroke-width='0.5' opacity='0.1' transform='rotate(135 30 30)'/%3E%3C/svg%3E");
}

:root {
  /* === PRIMARY PALETTE === */
  --kumkum:          #C0392B;   /* Kumkum red, sindoor, sacred offering */
  --kumkum-deep:     #7B1818;   /* Deep red of vermillion, temple tulsi */
  --kumkum-soft:     #FDECEA;   /* Soft blush, the petal of a red lotus */

  --turmeric:        #D4A017;   /* Pure Haldi — auspicious & vital */
  --turmeric-bright: #F5C842;   /* Sun-touched turmeric paste, wedding gold */
  --turmeric-pale:   #FEF9E7;   /* Diluted haldi water, sacred morning */

  --ghee-amber:      #E8820C;   /* Burning ghee lamp (deepam) */
  --ghee-glow:       #FDB347;   /* Flame-tip orange, festival light */
  --ghee-pale:       #FFF4E5;   /* The warm air near a burning diya */

  --ochre:           #8B5E3C;   /* Temple stone, ancient gopuram mud */
  --ochre-deep:      #4A2C10;   /* Sacred earth, sanctum floor */
  --ochre-light:     #F5DEB3;   /* Wheat, dry marigold petals, haldi dust */

  --lotus-pink:      #C0577A;   /* Lotus flower, Lakshmi symbol */
  --lotus-light:     #F8D7E3;   /* Lotus petal, the softest devotion */

  --smoke-blue:      #2C3E6B;   /* Incense smoke, sacred blue — Lord Shiva & Vishnu */
  --smoke-mid:       #3D6B9A;   /* Twilight at temple, sandhya aarti sky */

  --jasmine:         #FDFAF0;   /* Jasmine white — purity, prasad, milk abhishekam */
  --jasmine-warm:    #F5EDD5;   /* Warm jasmine, camphor-lit cream */
  --jasmine-border:  #E8D8A0;   /* Dry marigold border */

  /* === TEXT === */
  --text-dark:       #2C1504;   /* Darkest — like burnt incense ash */
  --text-medium:     #5C3A1E;   /* Medium — sandalwood brown */
  --text-soft:       #9A7050;   /* Soft — ochre dust on stone */

  /* === FUNCTIONAL === */
  --shadow-warm:     rgba(139, 94, 60, 0.25);
  --shadow-deep:     rgba(44, 21, 4, 0.35);
  --gold-glow:       rgba(212, 160, 23, 0.45);
  --white:           #ffffff;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== PRE-HEADER TICKER ===== */
.preheader-bar {
  background: linear-gradient(90deg, var(--kumkum-deep) 0%, #4A0A0A 40%, #3A0808 60%, var(--kumkum-deep) 100%);
  border-bottom: 2px solid var(--turmeric);
  overflow: hidden;
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(123, 24, 24, 0.4);
  z-index: 1001; /* above sticky nav */
}

/* Fade edges for cinematic look */
.preheader-bar::before,
.preheader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.preheader-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--kumkum-deep), transparent);
}
.preheader-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--kumkum-deep), transparent);
}

.preheader-inner {
  width: 100%;
  overflow: hidden;
}

/* The scrolling track */
.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 120s linear infinite;
  gap: 0;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-family: "Nunito", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--turmeric-bright);
  padding: 0 1.2rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ticker-item i {
  color: var(--ghee-glow);
  margin-right: 0.35rem;
  font-size: 0.75rem;
}

.ticker-sep {
  color: var(--kumkum);
  font-size: 0.65rem;
  padding: 0 0.4rem;
  opacity: 0.8;
  flex-shrink: 0;
}

/* ===== BODY — Sacred Parchment with Kolam Dots ===== */
body {
  font-family: "Nunito", sans-serif;
  /* Layered background: soft radial aura + repeating kolam dot grid */
  background-color: var(--jasmine);
  background-image:
    radial-gradient(ellipse at 15% 25%, rgba(212,160,23,0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 75%, rgba(192,57,43,0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(232,130,12,0.03) 0%, transparent 65%),
    var(--pat-kolam);
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%, 24px 24px;
  color: var(--text-dark);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== SECTION BACKGROUNDS ===== */
/* Every .section gets the diamond geometry overlay */
.section {
  display: block;
  position: relative;
  padding: 4rem 1.5rem;
}

/* Home section — shared sacred gradient spanning hero + deity section seamlessly */
#section-home {
  background-color: transparent;
  background-image: var(--pat-kolam);
  background-size: 24px 24px;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* .section alternating block backgrounds */
.section::before {
  content: "";
  position: absolute; /* Changed from fixed to absolute for better reliability on all sections */
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: var(--pat-om), var(--pat-diamond);
  background-size: 80px 80px, 48px 48px;
  background-attachment: fixed, scroll;
  opacity: 0.8;
}

/* All direct children of section sit above the pseudo bg */
.section > * {
  position: relative;
  z-index: 1;
}

/* ===== PAGE WRAPPER — layered warm gradient ===== */
.page {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 2rem;
  position: relative;
}

/* Subtle lotus tile behind every page's content */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pat-lotus);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.page > * {
  position: relative;
  z-index: 1;
}

/* ===== SECTION DIVIDERS — Marigold wave strip ===== */
.section-divider {
  height: 30px;
  background-image: var(--pat-wave);
  background-size: 80px 20px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.5;
  margin: 0;
}

/* ===== ALTAR ROW (stats/highlight band) — Rich saffron ground ===== */
.altar-band {
  background:
    linear-gradient(135deg, rgba(232,130,12,0.08), rgba(212,160,23,0.06)),
    var(--pat-cross);
  background-size: 100%, 40px 40px;
  border-top: 2px solid rgba(212,160,23,0.25);
  border-bottom: 2px solid rgba(212,160,23,0.25);
  padding: 3rem 2rem;
  position: relative;
}

/* ===== NAV — Sandalwood & Kumkum with wave top-trim ===== */
nav {
  background:
    var(--pat-wave),
    linear-gradient(135deg, var(--kumkum-deep) 0%, #5A1010 45%, var(--kumkum-deep) 100%);
  background-size: 80px 20px, 100%;
  background-position: top, center;
  border-bottom: 3px solid var(--turmeric);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 2rem;
  box-shadow: 0 4px 20px rgba(123, 24, 24, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.7rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.deity-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1rem;
  background-image: var(--pat-om);
  background-repeat: repeat;
}

.nav-logo {
  font-family: "Cinzel", serif;
  color: var(--turmeric-bright);
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow:
    0 0 12px var(--ghee-amber),
    0 0 25px rgba(212,160,23,0.4);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.nav-links a {
  color: var(--ochre-light);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transition: all 0.25s;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(212, 160, 23, 0.2);
  color: var(--turmeric-bright);
}

.nav-links a.active {
  background: var(--turmeric);
  color: var(--kumkum-deep);
  font-weight: 700;
}

/* ===== HAMBURGER BUTTON ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--turmeric-bright);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

/* Animate to X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .nav-inner {
    flex-wrap: nowrap;
    padding: 0.6rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background:
      var(--pat-wave),
      linear-gradient(180deg, #5A1010 0%, var(--kumkum-deep) 100%);
    background-size: 80px 20px, 100%;
    border-top: 2px solid var(--turmeric);
    border-bottom: 3px solid var(--turmeric);
    box-shadow: 0 8px 24px rgba(123,24,24,0.5);
    z-index: 999;
    padding: 0.5rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(212,160,23,0.15);
    font-size: 0.9rem;
    width: 100%;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  nav {
    position: sticky;
    top: 0;
  }
}

/* ===== CUSTOM LANGUAGE SWITCHER (Paper Style) ===== */
.lang-switcher {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  background: var(--jasmine-warm);
  border: 2px solid var(--turmeric);
  border-right: none;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  z-index: 10001;
  overflow: hidden;
  padding: 0.5rem;
  gap: 0.5rem;
}

.lang-switcher button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-medium);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.6rem 0.4rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
  white-space: nowrap;
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

.lang-switcher button:hover {
  background: var(--turmeric-pale);
  color: var(--kumkum);
}

.lang-switcher button.active {
  background: var(--turmeric);
  color: var(--kumkum-deep);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Hide Google's default elements */
iframe.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

.skiptranslate {
  display: none !important;
}

.lang-switcher.skiptranslate {
  display: flex !important;
}

/* ===== DUPLICATE SECTION (override already-defined above) ===== */
/* .section is fully defined in the SECTION BACKGROUNDS block */

/* ===== HERO — 3-column: Shiva | Content | Balaji ===== */
.hero {
  background-color: transparent;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}

/* Layered mandala: concentric glow rings + kolam dot grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(212,160,23,0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(232,130,12,0.06) 0%, transparent 70%),
    var(--pat-kolam),
    var(--pat-diamond);
  background-size: 100%, 100%, 24px 24px, 48px 48px;
  pointer-events: none;
  opacity: 0.8;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 25%;
  background: linear-gradient(to bottom, transparent, rgba(232, 130, 12, 0.05));
  pointer-events: none;
}

.hero-content {
  position: relative;
  flex: 0 1 600px;
  min-width: 0;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
}

/* ===== DEITY IMAGE SIDE PANELS ===== */
.hero-deity-img {
  position: relative;
  flex: 0 0 320px;
  height: 65vh;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  z-index: 1;
  flex-shrink: 1;
}

/* The actual deity photo fills the panel */
.hero-deity-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s ease;
}

.hero-deity-img:hover img {
  transform: scale(1.04);
}

/* No bottom overlay — image fully clean */
.hero-deity-img::after { display: none; }

/* Deity name label at bottom of image */
.hero-deity-label {
  position: relative;
  z-index: 3;
  font-family: "Cinzel", serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--kumkum-deep);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 0 1.5rem;
  text-align: center;
}

.hero-deity-label i {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  opacity: 0.8;
}




/* Left image — shift up toward top of hero */
.hero-deity-left {
  align-self: flex-start;
  margin-top: 2rem;
}

/* Right image — shift up toward top of hero */
.hero-deity-right {
  align-self: flex-start;
  margin-top: 2rem;
}

/* Responsive: hide deity side images on small screens */
@media (max-width: 900px) {
  .hero {
    display: grid;
    grid-template-areas: 
      "left right"
      "main main";
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 3rem 1.5rem;
    text-align: center;
  }
}

.om-symbol {
  font-size: 5rem;
  color: var(--kumkum-deep);
  animation: pulse 3.5s ease-in-out infinite;
  display: block;
  margin-bottom: 1rem;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.88; }
}

.hero h1 {
  font-family: "Cinzel", serif;
  color: var(--kumkum-deep);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  color: var(--turmeric);
  font-family: "Crimson Text", serif;
  font-size: 1.35rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  color: #3d3d3d;
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
  font-family: "Crimson Text", serif;
  font-size: 1.1rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: nowrap;
}

@media (max-width: 480px) {
  .hero-btns {
    gap: 0.6rem;
  }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }
}

/* Turmeric gold button — Shiva */
.btn-primary {
  background: linear-gradient(135deg, var(--turmeric-bright), var(--turmeric));
  color: var(--kumkum-deep);
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 8px;
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 160, 23, 0.6);
  background: linear-gradient(135deg, #FDD060, var(--turmeric-bright));
}

/* Transparent ghee-border — Balaji */
.btn-secondary {
  background: rgba(212, 160, 23, 0.08);
  color: var(--kumkum-deep);
  padding: 0.9rem 2rem;
  border: 2px solid var(--turmeric);
  border-radius: 8px;
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(212, 160, 23, 0.2);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

/* ===== DEITY SECTION — flows seamlessly from hero ===== */
.deity-section {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 3rem 2rem;
  position: relative;
  background-color: transparent;
}

/* ===== STATS ROW — Chakra full-width background ===== */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  /* Break out of deity-section's 2rem side padding and 3rem top padding */
  margin-left: -2rem;
  margin-right: -2rem;
  margin-top: -3rem;
  padding: 3.5rem 2rem;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  background-color: #faf4dc;
  background-image:
    linear-gradient(to bottom, rgba(250, 244, 220, 0.9) 0%, rgba(250, 244, 220, 0.9) 100%),
    url("chakra.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 2px solid var(--turmeric);
}

.section-title {
  font-family: "Cinzel", serif;
  font-size: 2.2rem;
  color: var(--kumkum-deep);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

.section-subtitle {
  font-family: "Crimson Text", serif;
  font-style: italic;
  color: var(--text-medium);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.15rem;
}

.deity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.deity-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow-warm);
  transition: transform 0.35s, box-shadow 0.35s;
  cursor: default;
  border: 1px solid var(--jasmine-border);
  background-color: var(--white);
}

.deity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow-deep);
}

.deity-card-header {
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
}

/* Shiva = Kumkum red altar glow */
.shiva-card .deity-card-header {
  background: linear-gradient(160deg, #3D0808, var(--kumkum-deep), #6B1414);
}

/* Balaji = Deep indigo devotion */
.balaji-card .deity-card-header {
  background: linear-gradient(160deg, #0F1B3D, var(--smoke-blue), #1C3A70);
}

.deity-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--turmeric-bright);
  filter: drop-shadow(0 0 12px var(--ghee-amber));
}

.deity-card-title {
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}

.shiva-card .deity-card-title {
  color: var(--ghee-glow);
  text-shadow: 0 0 15px rgba(232, 130, 12, 0.5);
}

.balaji-card .deity-card-title {
  color: var(--turmeric-bright);
  text-shadow: 0 0 12px rgba(212, 160, 23, 0.4);
}

.deity-card-sub {
  font-family: "Crimson Text", serif;
  font-style: italic;
  color: rgba(255, 245, 220, 0.75);
  font-size: 0.95rem;
}

.deity-card-body {
  padding: 1.5rem 2rem;
  background: linear-gradient(180deg, var(--jasmine), var(--white));
  border-top: 2px solid var(--turmeric);
}

.deity-card-body p {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  font-family: "Crimson Text", serif;
  font-size: 1.05rem;
}

.deity-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 1rem;
}

.deity-photo-placeholder {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 2px dashed;
  color: var(--text-soft);
}

.shiva-card .deity-photo-placeholder {
  background: linear-gradient(135deg, rgba(123,24,24,0.35), rgba(192,57,43,0.15));
  border-color: var(--kumkum);
  border-style: solid;
  color: var(--ghee-glow);
}

.balaji-card .deity-photo-placeholder {
  background: linear-gradient(135deg, rgba(15,27,61,0.5), rgba(44,62,107,0.25));
  border-color: var(--smoke-mid);
  border-style: solid;
  color: var(--turmeric-bright);
}

/* ===== PAGE CONTAINER (overrides the ::before version above) ===== */
/* Already defined above with ::before lotus pattern */

/* Page header — like a temple gopuram banner */
.page-header {
  text-align: center;
  padding: 2.8rem;
  margin-bottom: 2rem;
  background:
    linear-gradient(135deg, var(--kumkum-deep) 0%, #5A0F0F 50%, #3B0909 100%);
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(232,130,12,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 10%, rgba(212,160,23,0.1) 0%, transparent 40%),
    var(--pat-diamond),
    linear-gradient(135deg, var(--kumkum-deep) 0%, #5A0F0F 50%, #3B0909 100%);
  background-size: 100%, 100%, 48px 48px, 100%;
  border-radius: 18px;
  color: var(--turmeric-bright);
  border: 1px solid rgba(212, 160, 23, 0.35);
  box-shadow:
    0 8px 30px rgba(123, 24, 24, 0.45),
    inset 0 1px 0 rgba(212, 160, 23, 0.2);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(232,130,12,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.page-header h2 {
  font-family: "Cinzel", serif;
  font-size: 2rem;
  margin-bottom: 0.6rem;
  position: relative;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 15px rgba(0,0,0,0.6);
}

.page-header p {
  color: rgba(255, 240, 200, 0.85);
  font-family: "Crimson Text", serif;
  font-style: italic;
  font-size: 1.15rem;
  position: relative;
}

/* ===== CARDS — Sacred parchment with micro-lotus watermark ===== */
.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow-warm);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--jasmine-border);
  background-image:
    linear-gradient(160deg, var(--jasmine), var(--white) 60%),
    var(--pat-lotus);
  background-size: 100%, 60px 60px;
  position: relative;
  overflow: hidden;
}

/* Top ribbon of turmeric */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--kumkum), var(--turmeric), var(--kumkum));
  border-radius: 16px 16px 0 0;
}

.card-title {
  font-family: "Cinzel", serif;
  font-size: 1.25rem;
  color: var(--kumkum-deep);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--turmeric);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.03em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-medium);
  letter-spacing: 0.03em;
}

input,
select,
textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--jasmine-border);
  border-radius: 8px;
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  background: var(--jasmine-warm);
  transition: border-color 0.25s, box-shadow 0.25s;
  color: var(--text-dark);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--turmeric);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
  background: var(--white);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* ===== SEVA GRID — like the prasad counter ===== */
.seva-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.seva-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--jasmine-border);
  border-radius: 8px;
  cursor: pointer;
  background: var(--jasmine-warm);
  transition: all 0.25s;
}

.seva-item:hover {
  border-color: var(--turmeric);
  background: var(--turmeric-pale);
  box-shadow: 0 2px 10px var(--gold-glow);
}

.seva-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--kumkum);
}

.seva-item label {
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-dark);
}

.price-tag {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--octire);
  font-weight: 700;
  color: #2D7A3A;  /* sacred green — like tulsi leaves */
}

/* ===== SUBMIT BUTTON — Kumkum pressed into fire ===== */
.submit-btn {
  background: linear-gradient(135deg, var(--kumkum), var(--kumkum-deep) 80%);
  color: var(--turmeric-bright);
  padding: 1rem 3rem;
  border: none;
  border-radius: 10px;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  margin-top: 1rem;
  letter-spacing: 0.06em;
  box-shadow: 0 5px 20px rgba(192, 57, 43, 0.4);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #D94E3B, var(--kumkum));
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(192, 57, 43, 0.55);
}

/* ===== SUCCESS — temple green prasad leaf ===== */
.success-msg {
  display: none;
  background: linear-gradient(135deg, #EAF6EC, #C8E6C9);
  border: 2px solid #66BB6A;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.2);
}

.success-msg h3 {
  color: #1B5E20;
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.success-msg p {
  color: #2E7D32;
  margin-bottom: 1rem;
  font-family: "Crimson Text", serif;
  font-size: 1.05rem;
}

.download-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.dl-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.03em;
}

.dl-btn.pdf {
  background: linear-gradient(135deg, var(--kumkum), var(--kumkum-deep));
  color: var(--white);
  box-shadow: 0 3px 12px rgba(192,57,43,0.35);
}
.dl-btn.excel {
  background: linear-gradient(135deg, #2D7A3A, #1B4D24);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(45,122,58,0.35);
}
.dl-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ===== LUCKY DRAW STAGE — The inner sanctum drum ===== */
.draw-stage {
  background-color: var(--kumkum-deep);
  background-image:
    radial-gradient(circle at 50% 30%, rgba(212,160,23,0.18) 0%, transparent 55%),
    radial-gradient(circle at 50% 110%, rgba(232,130,12,0.22) 0%, transparent 50%),
    var(--pat-kolam),
    var(--pat-diamond),
    linear-gradient(160deg, var(--kumkum-deep) 0%, #3A0808 50%, var(--smoke-blue) 100%);
  background-size: 100%, 100%, 24px 24px, 48px 48px, 100%;
  border-radius: 20px;
  padding: 3.5rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(44, 21, 4, 0.5);
}

/* Remove plain radial as it's now in the main background */
.draw-stage::before { display: none; }

/* Flame halo on top */
.draw-stage::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: radial-gradient(ellipse at 50% 0%, rgba(232,130,12,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.drum-display {
  font-size: 4rem;
  margin: 1.5rem 0;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  color: var(--turmeric-bright);
  text-shadow:
    0 0 20px var(--ghee-amber),
    0 0 50px rgba(212, 160, 23, 0.5);
}

.drum-display.spinning {
  animation: spin-text 0.1s linear infinite;
}

@keyframes spin-text {
  0%   { opacity: 1; }
  50%  { opacity: 0.3; }
  100% { opacity: 1; }
}

.draw-btn {
  background: linear-gradient(135deg, var(--turmeric-bright), var(--turmeric));
  color: var(--kumkum-deep);
  padding: 1.1rem 3rem;
  border: none;
  border-radius: 10px;
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  box-shadow: 0 6px 25px rgba(212,160,23,0.5);
  letter-spacing: 0.05em;
}

.draw-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 35px rgba(212, 160, 23, 0.7);
  background: linear-gradient(135deg, #FDD060, var(--turmeric-bright));
}

.draw-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.winner-list { margin-top: 1.5rem; }

.winner-item {
  background: linear-gradient(135deg, rgba(212,160,23,0.18), rgba(232,130,12,0.06));
  border: 1px solid var(--turmeric);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.winner-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--turmeric-bright), var(--turmeric));
  color: var(--kumkum-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--gold-glow);
}

.winner-info { text-align: left; }
.winner-name {
  font-family: "Cinzel", serif;
  color: var(--turmeric-bright);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(212,160,23,0.4);
}
.winner-detail {
  font-size: 0.82rem;
  color: rgba(255, 240, 200, 0.65);
}

/* ===== GALLERY — Marigold garland display with kolam ===== */
.gallery-upload-zone {
  border: 3px dashed var(--turmeric);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  background-image:
    linear-gradient(135deg, var(--turmeric-pale), var(--jasmine-warm)),
    var(--pat-kolam);
  background-size: 100%, 24px 24px;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 2rem;
}

.gallery-upload-zone:hover {
  border-color: var(--ghee-amber);
  background: var(--ghee-pale);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--turmeric);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--jasmine-warm), var(--ochre-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 2px solid var(--jasmine-border);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  color: var(--turmeric);
}

.gallery-item:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 25px var(--shadow-warm);
  border-color: var(--turmeric);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item-label {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: linear-gradient(transparent, rgba(44, 15, 4, 0.75));
  color: var(--ochre-light);
  font-size: 0.8rem;
  padding: 0.5rem;
  text-align: center;
  font-family: "Crimson Text", serif;
}

.gallery-categories {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cat-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: 2px solid var(--turmeric);
  background: transparent;
  font-family: "Nunito", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s;
  color: var(--text-medium);
  font-weight: 600;
}

.cat-btn.active {
  background: linear-gradient(135deg, var(--turmeric-bright), var(--turmeric));
  color: var(--kumkum-deep);
  border-color: var(--turmeric);
  box-shadow: 0 3px 10px var(--gold-glow);
}

/* ===== JYOTHIRLINGAS — 12 sacred stones ===== */
.jyothirlinga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.jl-item {
  background: linear-gradient(135deg, var(--jasmine-warm), var(--ochre-light));
  border: 2px solid var(--jasmine-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
}

.jl-item:hover {
  border-color: var(--ghee-amber);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px var(--shadow-warm);
  background: var(--ghee-pale);
}

.jl-item.selected {
  background: linear-gradient(135deg, var(--kumkum), #A52020);
  color: var(--white);
  border-color: var(--kumkum-deep);
  box-shadow: 0 6px 20px rgba(192,57,43,0.4);
}

.jl-item.selected .jl-name {
  color: rgba(255, 240, 200, 0.9);
}

.jl-num {
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  color: var(--kumkum);
  margin-bottom: 0.3rem;
}

.jl-item.selected .jl-num {
  color: var(--turmeric-bright);
  text-shadow: 0 0 8px rgba(212,160,23,0.6);
}

.jl-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-medium);
}

/* ===== TABLE — temple record keeping ===== */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  background-color: var(--kumkum-deep);
  background-image:
    var(--pat-wave),
    linear-gradient(135deg, var(--kumkum-deep), #5A0F0F);
  background-size: 80px 20px, 100%;
  color: var(--turmeric-bright);
  padding: 0.85rem 1rem;
  font-family: "Cinzel", serif;
  font-weight: 600;
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--jasmine-border);
  color: var(--text-medium);
}

tr:nth-child(even) {
  background: rgba(212, 160, 23, 0.04);
}

tr:hover {
  background: var(--turmeric-pale);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.badge-shiva {
  background: var(--kumkum-soft);
  color: var(--kumkum-deep);
  border: 1px solid rgba(192,57,43,0.25);
}
.badge-balaji {
  background: #D9E8F8;
  color: var(--smoke-blue);
  border: 1px solid rgba(44,62,107,0.2);
}
.badge-confirmed {
  background: #E8F5E9;
  color: #1B5E20;
  border: 1px solid rgba(76,175,80,0.3);
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  border: 2px solid;
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.03em;
}

.tab-btn-shiva {
  border-color: var(--kumkum);
  color: var(--kumkum);
  background: transparent;
}
.tab-btn-shiva.active {
  background: linear-gradient(135deg, var(--kumkum), var(--kumkum-deep));
  color: var(--turmeric-bright);
  box-shadow: 0 4px 12px rgba(192,57,43,0.35);
  border-color: var(--kumkum-deep);
}

.tab-btn-balaji {
  border-color: var(--smoke-mid);
  color: var(--smoke-mid);
  background: transparent;
}
.tab-btn-balaji.active {
  background: linear-gradient(135deg, var(--smoke-mid), var(--smoke-blue));
  color: var(--turmeric-bright);
  box-shadow: 0 4px 12px rgba(44,62,107,0.35);
  border-color: var(--smoke-blue);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== FOOTER — Temple foundation: sacred earth + diamond tile ===== */
footer {
  background-color: var(--ochre-deep);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(212,160,23,0.12) 0%, transparent 50%),
    var(--pat-diamond),
    linear-gradient(160deg, var(--ochre-deep) 0%, #2A0A04 50%, var(--kumkum-deep) 100%);
  background-size: 100%, 48px 48px, 100%;
  color: rgba(245, 221, 179, 0.85);
  text-align: center;
  padding: 3rem 2rem;
  border-top: 3px solid var(--turmeric);
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ghee-amber), var(--turmeric-bright), var(--ghee-amber), transparent);
}

.footer-logo {
  font-family: "Cinzel", serif;
  color: var(--turmeric-bright);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px var(--ghee-amber);
  letter-spacing: 0.05em;
}

footer p {
  font-size: 0.9rem;
  font-family: "Crimson Text", serif;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 1.5rem auto;
}

.contact-item {
  padding: 1rem;
  background: rgba(255, 245, 220, 0.06);
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 23, 0.25);
  transition: background 0.2s;
}

.contact-item:hover {
  background: rgba(255, 245, 220, 0.1);
}

.contact-item h4 {
  color: var(--turmeric-bright);
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.contact-item p { font-size: 0.85rem; }

/* ===== NOTIFICATION — like a bell ringing ===== */
.notif {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  background: linear-gradient(135deg, var(--turmeric-pale), #FFF8E0);
  border: 2px solid var(--turmeric);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 35px rgba(212, 160, 23, 0.4);
  max-width: 350px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: 5px solid var(--turmeric);
}

.notif.show {
  transform: translateX(0);
}
.notif h4 {
  color: var(--kumkum-deep);
  font-family: "Cinzel", serif;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}
.notif p {
  color: var(--text-medium);
  font-size: 0.85rem;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 700px) {
  .about-content { grid-template-columns: 1fr; }
}

.about-deity {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 25px var(--shadow-warm);
  border: 1px solid var(--jasmine-border);
}

.about-deity-header {
  padding: 2rem;
  text-align: center;
}

.shiva-bg {
  background: linear-gradient(160deg, var(--kumkum-deep), #3D0808 60%, #6A1010);
}
.balaji-bg {
  background: linear-gradient(160deg, var(--smoke-blue), #0F1B3D 60%, #1C3A70);
}

.about-deity-header h3 {
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  color: var(--turmeric-bright);
  margin-bottom: 0.3rem;
  text-shadow: 0 0 12px var(--ghee-amber);
}
.about-deity-header p {
  color: rgba(255, 245, 210, 0.75);
  font-style: italic;
  font-family: "Crimson Text", serif;
}

.about-deity-body {
  background: linear-gradient(160deg, var(--jasmine), var(--white));
  padding: 1.5rem;
}
.about-deity-body p {
  color: var(--text-medium);
  line-height: 1.9;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.about-deity-body h4 {
  font-family: "Cinzel", serif;
  color: var(--kumkum-deep);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.attr-list { list-style: none; }
.attr-list li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text-medium);
  border-bottom: 1px dotted var(--jasmine-border);
  padding-left: 0.5rem;
}
.attr-list li::before {
  content: "⊕ ";
  color: var(--kumkum);
  font-weight: 700;
}
.balaji-attr::before {
  content: "✦ ";
  color: var(--smoke-mid);
}

/* ===== DIVINE PILLARS (Modern Stats) ===== */
.divine-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    margin: -3rem -2rem 3rem -2rem;
    background-color: #faf4dc;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(212, 160, 23, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(232, 130, 12, 0.06) 0%, transparent 70%),
        var(--pat-kolam),
        var(--pat-diamond);
    background-size: 100%, 100%, 24px 24px, 48px 48px;
    border-bottom: 3px solid var(--turmeric);
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .divine-pillars {
        margin: 0 -0.5rem;
        gap: 0.8rem;
        padding: 2.5rem 0.5rem;
        grid-template-columns: repeat(2, 1fr);
    }
    .pillar-card {
        padding: 1.5rem 0.5rem;
    }
}

.pillar-card {
    position: relative;
    background-color: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--jasmine-border);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-warm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

.pillar-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px var(--shadow-deep);
    border-color: var(--turmeric);
}

.pillar-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.pillar-card:hover .pillar-glow {
    opacity: 1;
}

.pillar-icon {
    font-size: 2.8rem;
    color: var(--kumkum);
    background: var(--turmeric-pale);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 0 15px rgba(212, 160, 23, 0.2);
}

.pillar-card:hover .pillar-icon {
    transform: rotateY(360deg);
    background: var(--turmeric);
    color: var(--white);
    box-shadow: 0 0 20px var(--gold-glow);
}

.pillar-info h3 {
    font-family: "Cinzel", serif;
    font-size: 1.4rem;
    color: var(--kumkum-deep);
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

.pillar-info p {
    font-family: "Crimson Text", serif;
    font-style: italic;
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.4;
}

/* Maintain old stats-row for other pages if needed, but updated for better look */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(160deg, var(--jasmine), var(--white));
  border-radius: 18px;
  border: 1px solid var(--jasmine-border);
  box-shadow: 0 6px 20px var(--shadow-warm);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--turmeric);
  box-shadow: 0 10px 25px var(--shadow-deep);
}

.stat-num {
  font-family: "Cinzel", serif;
  font-size: 2.5rem;
  color: var(--kumkum-deep);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-medium);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

/* ===== BENTO GRID (Sacred Traditions) ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-warm);
    border: 1px solid var(--jasmine-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* ===== IMAGE MODAL (Lightbox) ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* No scroll on desktop */
    background-color: rgba(7, 12, 28, 0.98);
    backdrop-filter: blur(12px);
    display: none; /* Will be overriden by JS to flex */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    margin: 0;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 75vh; /* Ensure no vertical scroll */
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 5px 50px rgba(0,0,0,0.9);
    animation: zoomModal 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 3px solid var(--turmeric);
}

@keyframes zoomModal {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.modal-close:hover {
    color: var(--turmeric-bright);
    transform: rotate(90deg);
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    text-align: center;
    color: var(--white);
    padding: 1.5rem 0;
    font-family: "Cinzel", serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin-top: 100px;
    }
    .modal-close {
        right: 20px;
        top: 10px;
    }
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.bento-item.main {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 2;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 27, 61, 0.95) 0%, rgba(44, 62, 107, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem;
    opacity: 0.9;
    transition: all 0.4s ease;
}

.bento-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px var(--shadow-deep);
}

.bento-item:hover img {
    transform: scale(1.08);
}

.bento-item:hover .bento-overlay {
    background: linear-gradient(to top, rgba(123, 24, 24, 0.95) 0%, rgba(192, 57, 43, 0.5) 60%, transparent 100%);
}

.bento-label {
    font-family: "Cinzel", serif;
    font-size: 0.75rem;
    color: var(--turmeric-bright);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.bento-overlay h3 {
    font-family: "Cinzel", serif;
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.bento-overlay p {
    font-family: "Crimson Text", serif;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
}

/* Responsive Bento */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 250px);
    }
    .bento-item.main {
        grid-row: span 2;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .bento-item {
        height: 300px;
    }
}

/* ===== INFO BANNER — haldi-tinted notice ===== */
.info-banner {
  background: linear-gradient(135deg, var(--turmeric-pale), var(--jasmine-warm));
  border: 1px solid var(--turmeric);
  border-left: 4px solid var(--ghee-amber);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.info-banner span {
  font-size: 1.2rem;
  color: var(--turmeric);
  margin-top: 2px;
  flex-shrink: 0;
}
.info-banner p {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.65;
}

/* ===== TESTIMONIALS (Voices of Devotion) ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 24px;
    padding: 3rem 2rem;
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: var(--turmeric);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--turmeric);
    opacity: 0.3;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.quote-text {
    font-family: "Crimson Text", serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.devotee-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dev-name {
    font-family: "Cinzel", serif;
    color: var(--turmeric-bright);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.dev-loc {
    font-size: 0.8rem;
    color: rgba(255, 240, 200, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== DIVINE GLIMPSES (Cinematic Parallax) ===== */
.divine-glimpses-section {
    width: 100%;
    margin: 4rem 0;
    overflow: hidden;
    background-color: #faf4dc;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(212, 160, 23, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(232, 130, 12, 0.06) 0%, transparent 70%),
        var(--pat-kolam),
        var(--pat-diamond);
    background-size: 100%, 100%, 24px 24px, 48px 48px;
    border-top: 3px solid var(--turmeric);
    border-bottom: 3px solid var(--turmeric);
}

.glimpse-parallax {
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.glimpse-parallax::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(232,130,12,0.05) 0%, transparent 70%);
}

.glimpse-parallax::after {
    display: none;
}

.glimpse-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.glimpse-label {
    font-family: "Cinzel", serif;
    font-size: 0.9rem;
    color: var(--turmeric);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.glimpse-inner h2 {
    font-family: "Cinzel", serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--kumkum-deep);
    margin-bottom: 1.5rem;
}

.glimpse-inner p {
    font-family: "Crimson Text", serif;
    font-size: 1.25rem;
    color: #3d3d3d;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .glimpse-parallax {
        background-attachment: scroll;
        height: 50vh;
    }
}

/* ===== RESPONSIVE UNIFIED ===== */
@media (max-width: 900px) {
    .hero {
        padding: 3rem 1rem;
        min-height: auto;
    }
    .hero-content {
        grid-area: main;
        padding: 0;
    }
    .hero-deity-left { grid-area: left; }
    .hero-deity-right { grid-area: right; }

    .hero-deity-img {
        display: flex !important;
        position: relative;
        width: 110px !important;
        height: 110px !important;
        min-height: auto !important;
        border-radius: 50% !important;
        margin: 0 auto;
        border: 3px solid var(--turmeric);
        box-shadow: 0 8px 20px var(--shadow-warm);
        align-self: center;
    }

    .hero-deity-label {
        font-size: 0.65rem;
        padding: 0 0 0.5rem;
    }
    .hero-deity-label i { font-size: 0.8rem; }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 1.5rem auto 0;
        gap: 0.8rem;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .page {
        margin: 2rem auto;
        padding: 0 0.8rem;
    }
    .pillar-card {
        padding: 2rem 1rem;
    }
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }
    .bento-item {
        height: 280px;
    }
    .bento-item.main, .bento-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .glimpse-parallax {
        min-height: 350px;
    }
    .glimpse-inner h2 {
        font-size: 1.8rem;
    }
    .deity-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .deity-card-header {
        padding: 2rem 1.5rem 1rem;
    }
    .deity-card-body {
        padding: 1.2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 0.95rem;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
    .hero-tagline {
        font-size: 1rem;
        line-height: 1.7;
    }
    .pillar-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    .pillar-info h3 {
        font-size: 1rem;
    }
    .pillar-info p {
        font-size: 0.85rem;
    }
    .footer-logo {
        font-size: 1.1rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .lang-switcher {
        top: auto;
        bottom: 20px;
        transform: none;
        flex-direction: row;
        writing-mode: horizontal-tb;
        border-radius: 12px;
        border-right: 2px solid var(--turmeric);
        right: 15px;
        padding: 0.3rem;
    }
    .lang-switcher button {
        writing-mode: horizontal-tb;
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* ============================================================
   SECTION BACKGROUND UTILITIES
   Add these classes to any section/div for instant theming.
   All backgrounds are layered: color + SVG pattern + glow.
   ============================================================ */

/* ----- Saffron Band: festive, warm, haldi -----*/
.bg-saffron {
  background-color: #FFFBEE;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(232,130,12,0.1) 0%, transparent 60%),
    var(--pat-cross);
  background-size: 100%, 40px 40px;
  padding: 3rem 0;
}

/* ----- Sanctum Dark: deep temple interior ----- */
.bg-sanctum {
  background-color: #2A0808;
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(212,160,23,0.08) 0%, transparent 65%),
    var(--pat-kolam),
    var(--pat-diamond);
  background-size: 100%, 24px 24px, 48px 48px;
  color: rgba(245, 221, 179, 0.9);
  padding: 3rem 0;
}

/* ----- Sacred Blue: incense / Vishnu / Shiva sky ----- */
.bg-sacred-blue {
  background-color: #0F1B3D;
  background-image:
    radial-gradient(ellipse at 30% 50%, rgba(212,160,23,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(44,62,107,0.2) 0%, transparent 50%),
    var(--pat-diamond);
  background-size: 100%, 100%, 48px 48px;
  color: rgba(245, 221, 179, 0.88);
  padding: 3rem 0;
}

/* ----- Lotus Pink: Lakshmi devotion ----- */
.bg-lotus {
  background-color: var(--lotus-light);
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(192,87,122,0.06) 0%, transparent 65%),
    var(--pat-lotus);
  background-size: 100%, 60px 60px;
  padding: 3rem 0;
}

/* ----- Kolam White: pure parchment section ----- */
.bg-kolam {
  background-color: var(--jasmine);
  background-image:
    var(--pat-kolam),
    radial-gradient(ellipse at 50% 50%, rgba(212,160,23,0.04) 0%, transparent 70%);
  background-size: 24px 24px, 100%;
  padding: 3rem 0;
}

/* ----- Sacred Grid: diamond-tile temple floor ----- */
.bg-grid {
  background-color: var(--jasmine-warm);
  background-image:
    var(--pat-diamond);
  background-size: 48px 48px;
  padding: 3rem 0;
}

/* ----- Marigold Stripe: festival decoration border ----- */
.bg-marigold {
  background-color: var(--ghee-pale);
  background-image:
    var(--pat-wave),
    linear-gradient(180deg, var(--turmeric-pale), var(--ghee-pale));
  background-size: 80px 20px, 100%;
  background-position: top, center;
  border-top: 2px solid rgba(212,160,23,0.3);
  border-bottom: 2px solid rgba(212,160,23,0.3);
  padding: 3rem 0;
}

/* ----- Ochre Earth: ancient gopuram stone ----- */
.bg-earth {
  background-color: var(--ochre-light);
  background-image:
    var(--pat-cross),
    linear-gradient(180deg, #FFF5E0, var(--ochre-light));
  background-size: 40px 40px, 100%;
  border-top: 1px solid var(--jasmine-border);
  padding: 3rem 0;
}

/* ===== GLOBAL GLOWING SECTION SEPARATOR ===== */
.glow-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--ghee-amber) 20%,
    var(--turmeric-bright) 50%,
    var(--ghee-amber) 80%,
    transparent 100%
  );
  margin: 0;
  border: none;
  opacity: 0.5;
}

/* Already unified as #faf4dc in the Home section block */
#section-home .deity-section {
  background: transparent;
}

/* ===== ABOUT PAGE SPECIFIC BACKGROUNDS ===== */
#section-about .page {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(192,57,43,0.04) 0%, transparent 35%),
    var(--pat-lotus);
  background-size: 100% 100%, 60px 60px;
}

/* ===== REGISTRATIONS PAGE TABLE BACKGROUND ===== */
#section-registrants .page {
  background:
    radial-gradient(ellipse at 10% 80%, rgba(44,62,107,0.04) 0%, transparent 35%),
    var(--pat-diamond);
  background-size: 100% 100%, 48px 48px;
}

/* ===== GALLERY PAGE SECTION BACKGROUND ===== */
#section-gallery .page {
  background:
    radial-gradient(ellipse at 50% 10%, rgba(212,160,23,0.05) 0%, transparent 50%),
    var(--pat-cross);
  background-size: 100% 100%, 40px 40px;
}

/* ===== CONTACT PAGE HERO BACKGROUND ENHANCEMENT ===== */
.contact-hero {
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(212,160,23,0.12) 0%, transparent 65%),
    var(--pat-om),
    var(--pat-kolam),
    var(--pat-diamond),
    linear-gradient(160deg, var(--kumkum-deep) 0%, #3A0808 40%, var(--smoke-blue) 100%);
  background-size: 100%, 24px 24px, 48px 48px, 100%;
}




/* ===================== DIVINE GALLERY CAROUSEL ===================== */
.sacred-carousel-section {
    padding: 0 10% 0 0;
    background-image: url('assets/bg-banner.png');
    background-repeat: no-repeat;
    background-position: center top;
    text-align: center;
    background-size: 100% 419px;
    height: 319px;
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    max-width: 100%;
    margin: 0;
    height: 319px;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

/* Left Fixed Panel */
.carousel-fixed-panel {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    background: url('assets/bg-banner.png') center/cover no-repeat;
}

.carousel-fixed-panel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.panel-tag {
    display: inline-block;
    background: var(--turmeric);
    color: var(--kumkum-deep);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.carousel-fixed-panel h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--turmeric-bright);
}

.carousel-fixed-panel p {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Right Sliding Panel */
.carousel-sliding-panel {
    flex: 1;
    position: relative;
    background: url('assets/bg-banner.png') center/cover no-repeat;
    overflow: visible; /* Allow 3D faces to be visible outside if needed, though perspective usually clips */
    z-index: 2;
    perspective: 1200px; /* Essential for 3D effect */
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.slider-track {
    display: flex;
    height: 100%;
    position: relative;
    /* transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);  -- We will handle visibility via JS */
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    display: none; /* We show/hide slides during grid transition */
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 99.5%;
    object-fit: fill;
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s 0.3s;
}

.slide.active .slide-info {
    transform: translateY(0);
    opacity: 1;
}

.slide-info h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.slide-info p {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    opacity: 0.8;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
}

.slider-btn:hover {
    background: var(--turmeric);
    color: var(--kumkum-deep);
    border-color: var(--turmeric);
    transform: scale(1.1);
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 2.5rem;
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--turmeric-bright);
    width: 25px;
    border-radius: 5px;
}

/* Mobile Responsive for Carousel */
@media (max-width: 900px) {
    .carousel-wrapper {
        flex-direction: column;
        height: auto;
    }
    .carousel-fixed-panel {
        height: 350px;
    }
    .carousel-sliding-panel {
        height: 450px;
    }
}



/* ===================== GRID CUBE TRANSITION ===================== */
.cube-animation-layer {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    perspective: 1200px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    transition: opacity 0.4s ease;
}

.grid-cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-cube div {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    background-size: cover; /* We'll set this to the container size via JS */
    background-repeat: no-repeat;
}

.grid-cube .face-front {
    transform: rotateY(0deg) translateZ(calc(var(--cube-w) / 2));
}

.grid-cube .face-next {
    transform: rotateY(-90deg) translateZ(calc(var(--cube-w) / 2));
}

.grid-cube.flipped {
    transform: rotateY(90deg);
}

.bg-kolam {
  background-color: #faf4dc;
  background-image: var(--pat-kolam);
  background-size: 24px 24px;
}
