/* =====================================================
   SANATAN.ME - Premium Home Page Styles
   Rich Traditional Design with 3D Parallax Effects
   ===================================================== */

/* =====================================================
   1. CSS VARIABLES & BASE STYLES
   ===================================================== */
:root {
  /* Gold Palette */
  --gold-primary: #d4a853;
  --gold-light: #f4e4bc;
  --gold-dark: #8b6914;
  --gold-shine: #ffd700;

  /* Traditional Colors */
  --saffron: #ff6b35;
  --saffron-dark: #e55a2b;
  --temple-red: #c41e3a;
  --temple-maroon: #800020;
  --vermillion: #e34234;

  /* Backgrounds */
  --cream: #fdf8f0;
  --cream-dark: #f5ebe0;
  --parchment: #f8f0e3;
  --dark-wood: #2c1810;
  --wood-medium: #4a3728;
  --wood-light: #6b4423;

  /* Shadows & Effects */
  --shadow-gold: 0 0 20px rgba(212, 168, 83, 0.4);
  --shadow-deep: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 8px 32px rgba(44, 24, 16, 0.15);

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =====================================================
   1.5 SMOOTH SCROLL & SOFT SNAP
   ===================================================== */
html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity; /* Soft snap - assists but doesn't lock */
}

/* Prevent white gaps between sections */
main {
  background: linear-gradient(180deg,
    var(--cream) 0%,
    var(--cream-dark) 15%,
    var(--parchment) 30%,
    #e8dcc8 45%,
    var(--wood-light) 60%,
    var(--wood-medium) 75%,
    var(--dark-wood) 90%,
    #1a0f0a 100%
  );
}

main > section {
  margin: 0;
  padding-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal; /* Allows scrolling past if momentum is high */
}

/* Ensure sections connect seamlessly */
.temple-spotlight-section,
.cta-section,
.upcoming-festivals-section {
  margin: 0 !important;
}

/* =====================================================
   1.6 UNIFIED BACKGROUND COLOR FLOW
   ===================================================== */
/* All sections should snap softly */
.hero-parallax,
.sanatana-section,
.deity-of-day-section,
.daily-wisdom-section,
.collection-slider-section,
.upcoming-festivals-section,
.temple-spotlight-section,
.cta-section {
  scroll-snap-align: start;
}

/* Light sections (top) - cream/saffron tones */
.sanatana-section {
  background: linear-gradient(180deg,
    var(--cream) 0%,
    var(--parchment) 50%,
    var(--cream-dark) 100%
  ) !important;
}

.deity-of-day-section {
  background: linear-gradient(180deg,
    var(--cream-dark) 0%,
    #f0e6d6 50%,
    #e8dcc8 100%
  ) !important;
}

/* Transition section - warm earth tones */
.daily-wisdom-section {
  background: linear-gradient(180deg,
    #e8dcc8 0%,
    #d4c4a8 30%,
    #c4b08c 70%,
    #a89070 100%
  ) !important;
}

/* Mid-dark sections */
.collection-slider-section {
  background: linear-gradient(180deg,
    #a89070 0%,
    var(--wood-light) 30%,
    var(--wood-medium) 70%,
    var(--dark-wood) 100%
  ) !important;
}

/* Dark sections (bottom) */
.upcoming-festivals-section {
  background: linear-gradient(180deg,
    var(--dark-wood) 0%,
    #251510 50%,
    #1f100c 100%
  ) !important;
}

.temple-spotlight-section {
  background: linear-gradient(180deg,
    #1f100c 0%,
    var(--dark-wood) 50%,
    #1a0f0a 100%
  ) !important;
}

.cta-section {
  background: linear-gradient(180deg,
    #1a0f0a 0%,
    #150a06 100%
  ) !important;
}

/* =====================================================
   2. PARALLAX HERO SECTION
   ===================================================== */
.hero-parallax {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  perspective: 1000px;
}

/* Main Background Image */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/images/HopePage.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Gradient Overlay - subtle for better background visibility */
.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,107,53,0.15) 0%, rgba(247,147,30,0.15) 100%),
              linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.25) 100%);
  z-index: 2;
}

/* Parallax Layers */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  will-change: transform;
}

.sky-layer {
  background: linear-gradient(180deg,
    #1a0f0a 0%,
    #2c1810 20%,
    #4a2c1a 40%,
    #6b3d2a 60%,
    #8b5a3a 80%,
    #d4a853 95%,
    #ffd700 100%);
  z-index: 1;
}

.sky-layer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(255, 107, 53, 0.15) 0%, transparent 40%);
}

.mountain-layer {
  background-image: url('/images/hero/mountains.svg');
  background-position: center bottom;
  z-index: 2;
  opacity: 0.9;
}

.temple-layer {
  background-image: url('/images/hero/temple.svg');
  background-position: center bottom;
  z-index: 3;
}

.mist-layer {
  background-image: url('/images/hero/mist.svg');
  background-position: center bottom;
  z-index: 4;
  opacity: 0.6;
}

/* Floating Particles Container */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  opacity: 0;
  animation: floatParticle 8s ease-in-out infinite;
}

.particle-diya {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #ffd700 0%, #ff6b35 50%, transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 10px #ffd700, 0 0 20px #ff6b35;
}

.particle-flower {
  width: 15px;
  height: 15px;
  background: radial-gradient(circle, #ff9a9e 0%, #fecfef 100%);
  border-radius: 50% 0 50% 0;
  transform: rotate(45deg);
}

@keyframes floatParticle {
  0%, 100% {
    opacity: 0;
    transform: translateY(100vh) rotate(0deg);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) rotate(360deg);
  }
}

/* Hero Deity Image (Shiva) */
.hero-deity-image {
  position: absolute;
  right: 5%;
  bottom: 0;
  z-index: 6;
  pointer-events: none;
}

.shiva-image {
  height: 85vh;
  max-height: 700px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(212, 168, 83, 0.4));
  animation: deityFloat 6s ease-in-out infinite;
}

.deity-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.3) 0%, rgba(255, 107, 53, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes deityFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes glowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.9;
  }
}

/* Falling Petals and Stars Container */
.falling-particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

/* Falling Petals */
.falling-petal {
  position: absolute;
  top: -50px;
  width: 20px;
  height: 20px;
  opacity: 0.8;
  animation: fallPetal linear infinite;
}

.petal-0 {
  background: radial-gradient(ellipse at center, #ffb6c1 0%, #ff69b4 50%, transparent 70%);
  border-radius: 50% 0 50% 0;
  transform: rotate(45deg);
}

.petal-1 {
  background: radial-gradient(ellipse at center, #ffd700 0%, #ff8c00 50%, transparent 70%);
  border-radius: 0 50% 0 50%;
  width: 15px;
  height: 15px;
}

.petal-2 {
  background: radial-gradient(ellipse at center, #ff9a9e 0%, #fecfef 100%);
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

.petal-3 {
  background: radial-gradient(ellipse at center, #fff5e6 0%, #ffe4b5 50%, transparent 70%);
  border-radius: 50% 0 50% 0;
  width: 18px;
  height: 18px;
  transform: rotate(-45deg);
}

.petal-4 {
  background: radial-gradient(ellipse at center, #e6e6fa 0%, #dda0dd 50%, transparent 70%);
  border-radius: 40% 60% 60% 40%;
  width: 14px;
  height: 14px;
}

@keyframes fallPetal {
  0% {
    top: -50px;
    opacity: 0;
    transform: translateX(0) rotate(0deg);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    top: 100vh;
    opacity: 0;
    transform: translateX(100px) rotate(720deg);
  }
}

/* Falling Stars */
.falling-star {
  position: absolute;
  top: -30px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 0 6px #fff,
    0 0 12px #ffd700,
    0 0 20px rgba(255, 215, 0, 0.5);
  animation: fallStar linear infinite;
}

.falling-star::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 2px;
  background: #fff;
  box-shadow:
    4px 0 0 #ffd700,
    -4px 0 0 #ffd700,
    0 4px 0 #ffd700,
    0 -4px 0 #ffd700;
}

@keyframes fallStar {
  0% {
    top: -30px;
    opacity: 0;
    transform: translateX(0) scale(0.5);
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  90% {
    opacity: 0.5;
  }
  100% {
    top: 100vh;
    opacity: 0;
    transform: translateX(-50px) scale(0.3);
  }
}

/* Mobile Responsive for Hero Deity */
@media (max-width: 992px) {
  .hero-deity-image {
    right: 0;
    opacity: 0.4;
  }

  .shiva-image {
    height: 60vh;
    max-height: 500px;
  }

  .deity-glow {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 992px) {
  .hero-bg-image {
    background-position: center center;
  }
}

@media (max-width: 768px) {
  .hero-bg-image {
    background-position: center center;
  }

  .falling-petal,
  .falling-star {
    transform: scale(0.7);
  }

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

  .hero-title .tagline {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

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

@media (max-width: 576px) {
  .hero-text-top {
    top: 8%;
  }

  .hero-search-bottom {
    bottom: 60px;
  }

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

  .hero-title .tagline {
    font-size: 0.8rem;
  }
}

/* Hero Text at Top */
.hero-text-top {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  width: 90%;
  max-width: 800px;
}

/* Hero Search at Bottom */
.hero-search-bottom {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  width: 90%;
  max-width: 500px;
}

@media (max-width: 768px) {
  .hero-text-top {
    top: 10%;
  }

  .hero-search-bottom {
    bottom: 80px;
  }
}

/* Ornate Frame */
.ornate-frame {
  position: relative;
  background: rgba(44, 24, 16, 0.6);
  backdrop-filter: blur(5px);
  padding: 2rem 2rem;
  border-radius: 20px;
  border: 2px solid var(--gold-primary);
  box-shadow:
    var(--shadow-gold),
    inset 0 0 20px rgba(212, 168, 83, 0.1),
    0 15px 40px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
}

.ornate-frame::before,
.ornate-frame::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('/images/decorations/corner-mandala.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
}

.ornate-frame::before {
  top: -10px;
  left: -10px;
}

.ornate-frame::after {
  bottom: -10px;
  right: -10px;
  transform: rotate(180deg);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 168, 83, 0.3);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.hero-title .tagline {
  font-size: 1.1rem;
  color: var(--gold-light);
  font-weight: 400;
  display: block;
  margin-top: 0.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow:
    1px 1px 3px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(212, 168, 83, 0.5);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0;
  font-weight: 400;
  text-shadow:
    1px 1px 3px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(0, 0, 0, 0.5);
}

/* Premium Search Box */
.search-box-premium {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
}

.search-box-premium input {
  width: 100%;
  padding: 1rem 1.5rem;
  padding-right: 55px;
  border: 2px solid var(--gold-primary);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark-wood);
  font-size: 1rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-box-premium input:focus {
  outline: none;
  border-color: var(--gold-shine);
  box-shadow: var(--shadow-gold), 0 0 0 4px rgba(212, 168, 83, 0.2);
}

.search-box-premium input::placeholder {
  color: #999;
}

.search-box-premium .search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold-primary) 100%);
  color: white;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.1rem;
}

.search-box-premium .search-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid var(--gold-primary);
  border-radius: 15px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 10px;
  background: var(--gold-primary);
  border-radius: 3px;
  animation: scrollPulse 1.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(15px);
  }
}

/* =====================================================
   3. ORNATE DECORATIVE ELEMENTS
   ===================================================== */

/* Section Headers with Lotus Dividers */
.section-ornate-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-ornate-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-wood);
  margin: 1rem 0;
  position: relative;
  display: inline-block;
}

.section-ornate-header h2::before,
.section-ornate-header h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.section-ornate-header h2::before {
  right: calc(100% + 20px);
}

.section-ornate-header h2::after {
  left: calc(100% + 20px);
}

/* Lotus Divider */
.lotus-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 1rem 0;
}

.lotus-divider::before,
.lotus-divider::after {
  content: '';
  flex: 1;
  max-width: 150px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.lotus-divider .lotus-icon {
  width: 40px;
  height: 40px;
  opacity: 0.8;
}

/* Golden Filigree Border */
.golden-border {
  position: relative;
  border: 2px solid var(--gold-primary);
  border-radius: 15px;
}

.golden-border::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 18px;
  pointer-events: none;
}

/* Temple Pillar Borders */
.temple-pillar-section {
  position: relative;
  padding: 4rem 3rem;
}

.temple-pillar-section::before,
.temple-pillar-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  background: url('/images/decorations/pillar.svg') repeat-y center;
  opacity: 0.3;
}

.temple-pillar-section::before {
  left: 0;
}

.temple-pillar-section::after {
  right: 0;
}

/* =====================================================
   4. DEITY OF THE DAY SECTION
   ===================================================== */
/* =====================================================
   DEITY OF THE DAY SECTION - Card Layout
   ===================================================== */
.deity-of-day-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

/* Decorative Background - Warm Cream/Saffron */
.deity-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, #fdf6e8 0%, #f8e8d0 30%, #fff5e6 60%, #fdf8f0 100%);
  z-index: 0;
}

.deity-section-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(212, 168, 83, 0.1) 0%, transparent 40%),
    url('/images/decorations/mandala-pattern.svg');
  background-size: auto, auto, 300px;
  opacity: 0.3;
}

/* Top decorative border */
.deity-section-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg,
    transparent,
    var(--gold-primary) 20%,
    var(--saffron) 50%,
    var(--gold-primary) 80%,
    transparent
  );
}

/* Floating Sparkles - Golden for light background */
.sparkles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold-primary);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

.sparkle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.6) 0%, transparent 70%);
  border-radius: 50%;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

/* Section Header */
.deity-section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--gold-primary), var(--saffron));
  padding: 0.75rem 2rem;
  border-radius: 50px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  box-shadow: 0 4px 25px rgba(212, 168, 83, 0.4);
}

.section-badge i {
  font-size: 1.3rem;
  animation: pulseSun 2s ease-in-out infinite;
}

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

.section-date {
  color: var(--wood-medium);
  font-size: 0.95rem;
  margin-top: 1rem;
  font-style: italic;
}

/* Card Wrapper */
.deity-card-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Deity Image Card */
.deity-image-card {
  position: relative;
  flex-shrink: 0;
}

.image-card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 480px;
  background: radial-gradient(ellipse, rgba(255, 107, 53, 0.25) 0%, rgba(212, 168, 83, 0.15) 40%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes glowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.8;
  }
}

.image-card-frame {
  position: relative;
  width: 320px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  border: 5px solid var(--gold-primary);
  box-shadow:
    0 0 0 3px rgba(255, 107, 53, 0.3),
    0 0 0 6px rgba(212, 168, 83, 0.2),
    0 25px 50px rgba(44, 24, 16, 0.25),
    inset 0 0 30px rgba(212, 168, 83, 0.1);
  z-index: 1;
}

.deity-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.deity-image-card:hover .deity-featured-img {
  transform: scale(1.05);
}

.deity-placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--saffron), var(--gold-primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.deity-placeholder-img i {
  font-size: 5rem;
  color: white;
}

/* Corner Decorations */
.corner-decor {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid var(--gold-primary);
  z-index: 2;
}

.corner-decor.top-left {
  top: -8px;
  left: -8px;
  border-right: none;
  border-bottom: none;
  border-radius: 10px 0 0 0;
}

.corner-decor.top-right {
  top: -8px;
  right: -8px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 10px 0 0;
}

.corner-decor.bottom-left {
  bottom: -8px;
  left: -8px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 10px;
}

.corner-decor.bottom-right {
  bottom: -8px;
  right: -8px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 10px 0;
}

/* Deity Info Card */
.deity-info-card {
  flex: 1;
  max-width: 500px;
  text-align: left;
}

.deity-featured-name {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--dark-wood) 0%, var(--temple-maroon) 50%, var(--dark-wood) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.deity-featured-title {
  font-size: 1.3rem;
  color: var(--saffron);
  font-style: italic;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.deity-info-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.deity-info-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-primary), transparent);
}

.deity-info-divider span:last-child {
  background: linear-gradient(90deg, transparent, var(--gold-primary));
}

.deity-info-divider i {
  color: var(--gold-primary);
  font-size: 1.2rem;
  animation: spinFlower 8s linear infinite;
}

@keyframes spinFlower {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.deity-featured-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--wood-medium);
  margin-bottom: 2rem;
}

.deity-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--saffron), var(--gold-primary));
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.deity-explore-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
  border-color: var(--gold-light);
  color: white;
}

.deity-explore-btn i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.deity-explore-btn:hover i {
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 992px) {
  .deity-card-wrapper {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .deity-info-card {
    text-align: center;
  }

  .image-card-frame {
    width: 280px;
    height: 350px;
  }

  .image-card-glow {
    width: 300px;
    height: 300px;
  }

  .deity-featured-name {
    font-size: 2.8rem;
  }

  .deity-info-divider span:first-child {
    background: linear-gradient(90deg, transparent, var(--gold-primary));
  }
}

@media (max-width: 768px) {
  .deity-of-day-section {
    padding: 4rem 0;
  }

  .image-card-frame {
    width: 250px;
    height: 320px;
  }

  .deity-featured-name {
    font-size: 2.2rem;
  }

  .deity-featured-title {
    font-size: 1.1rem;
  }

  .deity-featured-desc {
    font-size: 1rem;
  }

  .section-badge {
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
    letter-spacing: 2px;
  }
}

@media (max-width: 576px) {
  .image-card-frame {
    width: 220px;
    height: 280px;
  }

  .deity-featured-name {
    font-size: 1.8rem;
  }

  .deity-explore-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

.deity-showcase-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Deity Image Frame */
.deity-image-frame {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 50%, var(--gold-primary) 100%);
  box-shadow: var(--shadow-gold), var(--shadow-deep);
}

.golden-frame-border {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid transparent;
  background: linear-gradient(135deg, var(--gold-shine), var(--gold-primary), var(--gold-shine)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateGlow 4s linear infinite;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.deity-image-frame .deity-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream);
  position: relative;
  z-index: 2;
}

/* Deity Aura Effect */
.deity-aura {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 107, 53, 0.2) 40%, transparent 70%);
  animation: auraGlow 3s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes auraGlow {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Deity Placeholder */
.deity-placeholder {
  background: linear-gradient(135deg, #ff6b35, #d4a853) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deity-placeholder i {
  font-size: 5rem;
  color: white;
}

/* Floating Diyas around Deity */
.floating-diya {
  position: absolute;
  width: 15px;
  height: 15px;
  background: radial-gradient(circle, #ffd700 0%, #ff6b35 50%, transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 10px #ffd700, 0 0 20px rgba(255, 107, 53, 0.5);
  animation: floatDiya 4s ease-in-out infinite;
  z-index: 10;
}

.diya-1 {
  top: 10%;
  right: -10px;
  animation-delay: 0s;
}

.diya-2 {
  bottom: 20%;
  left: -15px;
  animation-delay: 1.5s;
}

.diya-3 {
  top: 50%;
  right: -20px;
  animation-delay: 3s;
}

@keyframes floatDiya {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-15px) scale(1.2);
    opacity: 1;
  }
}

/* Divine Glow Effect */
.diya-glow-effect {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  animation: divinePulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes divinePulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Deity Info */
.deity-info {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.deity-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-wood);
  margin-bottom: 0.25rem;
}

.deity-title {
  font-size: 1.25rem;
  color: var(--gold-dark);
  font-style: italic;
  margin-bottom: 1rem;
}

.deity-mantra,
.deity-description {
  font-size: 1.1rem;
  color: var(--temple-maroon);
  background: rgba(212, 168, 83, 0.1);
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 10px 10px 0;
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.7;
}

/* Ornate Button */
.btn-ornate {
  display: inline-block;
  padding: 12px 35px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold-primary) 100%);
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid var(--gold-primary);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn-ornate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-ornate:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  color: white;
}

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

/* =====================================================
   5. FEATURE CARDS - BENTO GRID
   ===================================================== */
.features-bento-section {
  padding: 5rem 0;
  background: var(--cream);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Large card spans 2 rows */
.bento-card.large {
  grid-row: span 2;
}

/* Card Base Styles */
.bento-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: var(--transition-smooth);
}

.bento-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(44, 24, 16, 0.9) 100%);
  z-index: 1;
  transition: var(--transition-smooth);
}

/* Wooden Frame Effect */
.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid rgba(212, 168, 83, 0.4);
  border-radius: 20px;
  z-index: 3;
  transition: var(--transition-smooth);
}

.bento-card:hover::after {
  border-color: var(--gold-primary);
  box-shadow: inset 0 0 20px rgba(212, 168, 83, 0.2);
}

/* Card Content */
.bento-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
  transform: translateZ(30px);
}

.bento-card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold-primary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  transition: var(--transition-bounce);
}

.bento-card:hover .bento-card-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--gold-shine), 0 4px 15px rgba(255, 107, 53, 0.5);
}

.bento-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.bento-card-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

/* 3D Tilt Effect */
.bento-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow:
    0 20px 40px rgba(44, 24, 16, 0.3),
    0 0 30px rgba(212, 168, 83, 0.2);
}

.bento-card:hover .bento-card-bg {
  transform: scale(1.05);
}

/* Card Button */
.bento-card .card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 25px;
  color: white;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.bento-card .card-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(5px);
  color: white;
}

/* =====================================================
   6. COLLECTION SLIDER SECTION (Our Collection)
   ===================================================== */
.collection-slider-section {
  padding: 5rem 0;
  /* Background set in unified flow section */
  position: relative;
  overflow: hidden;
}

.collection-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/decorations/mandala-large.svg') no-repeat center;
  background-size: 80%;
  opacity: 0.03;
  pointer-events: none;
}

/* Pillar Decorations */
.stats-pillars {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  background: url('/images/decorations/pillar.svg') repeat-y center;
  opacity: 0.15;
  z-index: 1;
}

.stats-pillars.left { left: 20px; }
.stats-pillars.right { right: 20px; }

/* Mini Stats Row */
.stats-mini-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stat-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-mini .stat-number-premium {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(212, 168, 83, 0.5);
  line-height: 1;
}

.stat-label-mini {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--gold-primary), transparent);
}

/* Carousel Wrapper */
.collection-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Navigation Buttons */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  background: rgba(44, 24, 16, 0.9);
  color: var(--gold-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.carousel-nav-btn:hover {
  background: var(--gold-primary);
  color: var(--dark-wood);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.5);
}

.carousel-nav-btn.prev { left: 0; }
.carousel-nav-btn.next { right: 0; }

.carousel-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-nav-btn:disabled:hover {
  background: rgba(44, 24, 16, 0.9);
  color: var(--gold-primary);
  transform: translateY(-50%);
  box-shadow: none;
}

/* Carousel Track */
.collection-carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Individual Slide */
.collection-slide {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: calc(33.333% - 1rem);
  opacity: 1;
  transform: scale(1);
  transition: all 0.4s ease;
}

/* Collection Card */
.collection-card {
  display: block;
  position: relative;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transform-style: preserve-3d;
  transition: var(--transition-smooth);
}

.collection-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.collection-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(44, 24, 16, 0.2) 0%,
    rgba(44, 24, 16, 0.6) 50%,
    rgba(44, 24, 16, 0.95) 100%);
  z-index: 1;
  transition: var(--transition-smooth);
}

/* Golden Glow Effect */
.collection-card-glow {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: 20px;
  z-index: 2;
  transition: var(--transition-smooth);
}

.collection-card:hover .collection-card-glow {
  border-color: var(--gold-primary);
  box-shadow:
    inset 0 0 30px rgba(212, 168, 83, 0.2),
    0 0 30px rgba(212, 168, 83, 0.3);
}

.collection-card:hover .collection-card-bg {
  transform: scale(1.1);
}

.collection-card:hover::before {
  background: linear-gradient(180deg,
    rgba(44, 24, 16, 0.1) 0%,
    rgba(44, 24, 16, 0.5) 50%,
    rgba(44, 24, 16, 0.9) 100%);
}

/* Card Content */
.collection-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 3;
  transform: translateY(0);
  transition: var(--transition-smooth);
}

.collection-card:hover .collection-card-content {
  transform: translateY(-10px);
}

.collection-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold-primary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  transition: var(--transition-bounce);
}

.collection-card:hover .collection-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow:
    0 0 30px var(--gold-shine),
    0 8px 25px rgba(255, 107, 53, 0.5);
}

.collection-card-content h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.collection-card-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Count Badge */
.collection-count {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  z-index: 4;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
}

.collection-card:hover .collection-count {
  opacity: 1;
  transform: translateY(0);
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.3);
  border: 2px solid var(--gold-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dot:hover {
  background: rgba(212, 168, 83, 0.5);
}

.carousel-dot.active {
  background: var(--gold-primary);
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(212, 168, 83, 0.5);
}

/* =====================================================
   COLLECTION SLIDER - Swiper Based
   ===================================================== */
.collection-slider-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 2rem auto 0;
  padding: 0 3rem;
}

.collection-swiper {
  overflow: hidden;
  padding: 1rem 0 2.5rem;
}

.collection-swiper .swiper-slide {
  height: auto;
}

/* Collection Card Slide */
.collection-card-slide {
  position: relative;
  display: block;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.collection-card-slide:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--shadow-gold);
}

.collection-card-slide .collection-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.collection-card-slide:hover .collection-card-bg {
  transform: scale(1.1);
}

.collection-card-slide .collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.collection-card-slide .collection-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem;
  z-index: 2;
  text-align: center;
  transform: translateY(0);
  transition: var(--transition-smooth);
}

.collection-card-slide:hover .collection-card-content {
  transform: translateY(-5px);
}

.collection-card-slide .collection-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold-primary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.3rem;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  transition: var(--transition-bounce);
}

.collection-card-slide:hover .collection-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
}

.collection-card-slide h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.collection-card-slide .collection-count {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Navigation Arrows */
.collection-nav-prev,
.collection-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.collection-nav-prev:hover,
.collection-nav-next:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(212, 168, 83, 0.5);
}

.collection-nav-prev {
  left: 0;
}

.collection-nav-next {
  right: 0;
}

.collection-nav-prev.swiper-button-disabled,
.collection-nav-next.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Pagination Dots */
.collection-pagination {
  position: relative;
  margin-top: 1rem;
  text-align: center;
}

.collection-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.collection-pagination .swiper-pagination-bullet-active {
  background: var(--gold-primary);
  width: 30px;
  border-radius: 5px;
}

/* Collection Slider Responsive */
@media (max-width: 1200px) {
  .collection-slider-wrapper {
    padding: 0 2.5rem;
  }

  .collection-card-slide {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .collection-slider-wrapper {
    padding: 0 1rem;
  }

  .collection-nav-prev,
  .collection-nav-next {
    display: none;
  }

  .collection-card-slide {
    height: 240px;
  }

  .collection-card-slide .collection-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .collection-card-slide h4 {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .collection-swiper {
    padding: 0.5rem 0 2rem;
  }

  .collection-card-slide {
    height: 200px;
    border-radius: 15px;
  }

  .collection-card-slide .collection-card-content {
    padding: 1rem 0.75rem;
  }

  .collection-card-slide .collection-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .collection-card-slide h4 {
    font-size: 0.85rem;
  }

  .collection-card-slide .collection-count {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    top: 0.75rem;
    right: 0.75rem;
  }

  .collection-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }

  .collection-pagination .swiper-pagination-bullet-active {
    width: 24px;
  }
}

/* Slide Animations */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInFromRight 0.5s ease forwards;
}

.slide-in-left {
  animation: slideInFromLeft 0.5s ease forwards;
}

/* Responsive Carousel */
@media (max-width: 992px) {
  .collection-slide {
    flex: 0 0 calc(50% - 0.75rem);
    min-width: calc(50% - 0.75rem);
  }

  .collection-carousel-wrapper {
    padding: 0 50px;
  }

  .carousel-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .collection-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .collection-carousel-wrapper {
    padding: 0 40px;
  }

  .stats-mini-row {
    gap: 1rem;
  }

  .stat-mini .stat-number-premium {
    font-size: 1.8rem;
  }

  .stat-divider {
    height: 30px;
  }

  .collection-card {
    height: 280px;
  }
}

@media (max-width: 576px) {
  .collection-carousel-wrapper {
    padding: 0 35px;
  }

  .carousel-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .stat-mini .stat-number-premium {
    font-size: 1.5rem;
  }

  .stat-label-mini {
    font-size: 0.7rem;
  }
}

/* =====================================================
   7. DAILY WISDOM SECTION (Enhanced)
   ===================================================== */
.daily-wisdom-section {
  padding: 6rem 0;
  /* Background set in unified flow section */
  position: relative;
  overflow: hidden;
}

/* Background Pattern */
.wisdom-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(212, 168, 83, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 168, 83, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Mandala Decorations */
.wisdom-mandala {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, transparent 30%, rgba(212, 168, 83, 0.1) 50%, transparent 70%);
  border-radius: 50%;
  animation: rotateMandala 60s linear infinite;
}

.wisdom-mandala.left {
  top: -100px;
  left: -100px;
}

.wisdom-mandala.right {
  bottom: -100px;
  right: -100px;
  animation-direction: reverse;
}

@keyframes rotateMandala {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating Lotus Petals */
.wisdom-petals-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.wisdom-petal {
  position: absolute;
  top: -30px;
  width: 20px;
  height: 20px;
  opacity: 0.4;
  animation: floatPetal 12s ease-in-out infinite;
}

.wisdom-petal::before {
  content: '❀';
  font-size: 1.2rem;
  color: #e8a0b0;
}

.wisdom-petal.petal-0 { animation-duration: 10s; }
.wisdom-petal.petal-1 { animation-duration: 13s; }
.wisdom-petal.petal-1::before { color: #d4a853; }
.wisdom-petal.petal-2 { animation-duration: 11s; }
.wisdom-petal.petal-2::before { color: #ff6b35; }
.wisdom-petal.petal-3 { animation-duration: 14s; }
.wisdom-petal.petal-3::before { color: #c41e3a; }

@keyframes floatPetal {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(100vh) rotate(360deg) scale(1);
    opacity: 0;
  }
}

/* Section Header */
.wisdom-header {
  text-align: center;
  margin-bottom: 3rem;
}

.wisdom-om-symbol {
  font-size: 3.5rem;
  color: var(--gold-primary);
  text-shadow: 0 2px 10px rgba(212, 168, 83, 0.4);
  animation: pulseOm 3s ease-in-out infinite;
  margin-bottom: 0.5rem;
}

@keyframes pulseOm {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.wisdom-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.2rem;
  color: var(--temple-maroon);
  margin-bottom: 0.5rem;
}

.wisdom-date {
  font-size: 0.95rem;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Main Wisdom Card */
.wisdom-card-container {
  max-width: 900px;
  margin: 0 auto;
  perspective: 1000px;
}

.wisdom-card {
  background: linear-gradient(135deg,
    #fffdf8 0%,
    #f8f0e0 50%,
    #fffdf8 100%
  );
  border-radius: 20px;
  padding: 3rem 3.5rem;
  position: relative;
  box-shadow:
    0 10px 40px rgba(139, 69, 19, 0.15),
    0 4px 15px rgba(212, 168, 83, 0.2),
    inset 0 0 60px rgba(212, 168, 83, 0.05);
  border: 2px solid rgba(212, 168, 83, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.wisdom-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 50px rgba(139, 69, 19, 0.2),
    0 8px 25px rgba(212, 168, 83, 0.3),
    inset 0 0 80px rgba(212, 168, 83, 0.08);
}

/* Decorative Corners */
.wisdom-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 3px solid var(--gold-primary);
  opacity: 0.6;
}

.wisdom-corner.top-left {
  top: 15px;
  left: 15px;
  border-right: none;
  border-bottom: none;
  border-radius: 10px 0 0 0;
}

.wisdom-corner.top-right {
  top: 15px;
  right: 15px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 10px 0 0;
}

.wisdom-corner.bottom-left {
  bottom: 15px;
  left: 15px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 10px;
}

.wisdom-corner.bottom-right {
  bottom: 15px;
  right: 15px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 10px 0;
}

/* Diya (Lamp) Decorations */
.wisdom-diya {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 40px;
  opacity: 0.7;
}

.wisdom-diya.left { left: -50px; }
.wisdom-diya.right { right: -50px; }

.wisdom-diya::before {
  content: '🪔';
  font-size: 2rem;
}

.diya-flame {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 15px;
  background: radial-gradient(ellipse, #ffdd00 0%, #ff8800 50%, transparent 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flickerFlame 0.5s ease-in-out infinite alternate;
  filter: blur(1px);
}

@keyframes flickerFlame {
  0% { transform: translateX(-50%) scale(1) rotate(-2deg); opacity: 0.9; }
  100% { transform: translateX(-50%) scale(1.1) rotate(2deg); opacity: 1; }
}

/* Sanskrit Text */
.wisdom-sanskrit-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

.wisdom-sanskrit {
  font-size: 1.6rem;
  color: var(--temple-maroon);
  line-height: 2.2;
  font-family: 'Noto Sans Devanagari', 'Tiro Devanagari Sanskrit', serif;
  text-shadow: 0 1px 2px rgba(139, 69, 19, 0.1);
  margin: 0;
}

/* Transliteration */
.wisdom-transliteration {
  text-align: center;
  margin-bottom: 1.5rem;
}

.wisdom-transliteration p {
  font-size: 1rem;
  color: #8b6914;
  font-style: italic;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Divider with Lotus */
.wisdom-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

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

.divider-lotus {
  color: var(--gold-primary);
  font-size: 1.5rem;
  animation: rotateLotus 8s linear infinite;
}

@keyframes rotateLotus {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Translation */
.wisdom-translation {
  text-align: center;
  position: relative;
  padding: 0 2rem;
  margin-bottom: 1.5rem;
}

.wisdom-translation p {
  font-size: 1.25rem;
  color: var(--dark-wood);
  line-height: 1.9;
  margin: 0;
  font-weight: 400;
}

.quote-mark {
  position: absolute;
  font-size: 4rem;
  color: var(--gold-primary);
  opacity: 0.3;
  font-family: 'Georgia', serif;
  line-height: 1;
}

.quote-mark.open {
  top: -20px;
  left: 0;
}

.quote-mark.close {
  bottom: -40px;
  right: 0;
}

/* Source */
.wisdom-source {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(212, 168, 83, 0.4);
}

.source-icon {
  font-size: 1.2rem;
}

.source-text {
  font-weight: 600;
  color: var(--temple-maroon);
  font-size: 1rem;
}

.source-detail {
  color: var(--gold-dark);
  font-size: 0.9rem;
}

/* Category Badge */
.wisdom-category {
  text-align: center;
  margin-top: 1.5rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: capitalize;
}

/* Share Button */
.wisdom-share {
  text-align: center;
  margin-top: 2rem;
}

.share-wisdom-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid var(--gold-primary);
  color: var(--gold-dark);
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-wisdom-btn:hover {
  background: var(--gold-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 168, 83, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .daily-wisdom-section {
    padding: 4rem 0;
  }

  .wisdom-om-symbol {
    font-size: 2.5rem;
  }

  .wisdom-title {
    font-size: 1.6rem;
  }

  .wisdom-card {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  .wisdom-sanskrit {
    font-size: 1.3rem;
    line-height: 2;
  }

  .wisdom-translation p {
    font-size: 1.1rem;
  }

  .wisdom-corner {
    width: 40px;
    height: 40px;
  }

  .wisdom-diya {
    display: none;
  }

  .quote-mark {
    font-size: 2.5rem;
  }

  .quote-mark.open {
    top: -10px;
    left: -5px;
  }

  .quote-mark.close {
    bottom: -25px;
    right: -5px;
  }
}

@media (max-width: 480px) {
  .wisdom-card {
    padding: 1.5rem 1rem;
  }

  .wisdom-sanskrit {
    font-size: 1.1rem;
  }

  .wisdom-translation p {
    font-size: 1rem;
    padding: 0;
  }

  .wisdom-source {
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* =====================================================
   8. UPCOMING FESTIVALS SECTION
   ===================================================== */
.upcoming-festivals-section {
  padding: 6rem 0;
  /* Background set in unified flow section */
  position: relative;
  overflow: hidden;
}

/* Decorative Top Border */
.upcoming-festivals-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg,
    transparent,
    var(--gold-primary) 20%,
    var(--gold-shine) 50%,
    var(--gold-primary) 80%,
    transparent
  );
}

/* Decorative Bottom Border */
.upcoming-festivals-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg,
    transparent,
    var(--gold-primary) 20%,
    var(--gold-shine) 50%,
    var(--gold-primary) 80%,
    transparent
  );
}

/* Section Header Override for Dark Background */
.upcoming-festivals-section .section-ornate-header h2 {
  color: var(--gold-light) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.upcoming-festivals-section .section-ornate-header h2::before,
.upcoming-festivals-section .section-ornate-header h2::after {
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

/* Floating Diyas Background */
.floating-diyas-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Multiple floating diyas */
.floating-diyas-bg::before,
.floating-diyas-bg::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background: radial-gradient(circle,
    rgba(255, 215, 0, 0.9) 0%,
    rgba(255, 165, 0, 0.6) 30%,
    rgba(255, 107, 53, 0.3) 60%,
    transparent 70%
  );
  border-radius: 50%;
  animation: floatDiya 8s ease-in-out infinite;
  box-shadow:
    0 0 20px rgba(255, 215, 0, 0.5),
    0 0 40px rgba(255, 165, 0, 0.3);
}

.floating-diyas-bg::before {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.floating-diyas-bg::after {
  top: 70%;
  right: 12%;
  animation-delay: 4s;
}

/* Additional decorative elements via pseudo-elements on container */
.festival-cards-container::before,
.festival-cards-container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle,
    rgba(255, 215, 0, 0.8) 0%,
    rgba(255, 165, 0, 0.4) 40%,
    transparent 70%
  );
  border-radius: 50%;
  animation: floatDiya 7s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.festival-cards-container::before {
  top: 40%;
  left: -30px;
  animation-delay: 2s;
}

.festival-cards-container::after {
  top: 30%;
  right: -30px;
  animation-delay: 5s;
}

/* Mandala watermark in background */
.floating-diyas-bg .mandala-watermark {
  position: absolute;
  width: 400px;
  height: 400px;
  opacity: 0.05;
  background: url('/images/decorations/mandala-large.svg') no-repeat center;
  background-size: contain;
}

@keyframes floatDiya {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-15px) scale(1.1);
    opacity: 1;
  }
  50% {
    transform: translateY(-25px) scale(1.15);
    opacity: 0.9;
  }
  75% {
    transform: translateY(-10px) scale(1.05);
    opacity: 1;
  }
}

/* Rangoli pattern overlay */
.upcoming-festivals-section .rangoli-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.festival-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  perspective: 1000px;
  position: relative;
  z-index: 1;
}

/* Premium Festival Card with Flip Effect */
.festival-card-premium {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  height: 400px;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.festival-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -webkit-transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

/* Desktop: flip on hover */
@media (min-width: 993px) {
  .festival-card-premium:hover .festival-card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
  }
}

/* All devices: flip on click (via JS class) */
.festival-card-premium.flipped .festival-card-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

/* Front and Back Faces */
.festival-card-front,
.festival-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

/* Front Face */
.festival-card-front {
  background: var(--dark-wood);
  transform: rotateY(0deg) translateZ(1px);
  -webkit-transform: rotateY(0deg) translateZ(1px);
  z-index: 2;
}

.festival-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.6s ease;
}

/* Desktop: zoom bg on hover */
@media (min-width: 993px) {
  .festival-card-premium:hover .festival-bg-image {
    transform: scale(1.1);
  }
}

/* All devices: zoom bg when flipped (via JS class) */
.festival-card-premium.flipped .festival-bg-image {
  transform: scale(1.1);
}

.festival-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44, 24, 16, 0.1) 0%,
    rgba(44, 24, 16, 0.3) 40%,
    rgba(44, 24, 16, 0.9) 100%
  );
  z-index: 1;
}

/* Sparkle Effect */
.festival-sparkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.festival-sparkles::before,
.festival-sparkles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-shine);
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--gold-shine), 0 0 20px var(--gold-primary);
}

.festival-sparkles::before {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.festival-sparkles::after {
  top: 30%;
  right: 25%;
  animation-delay: 1s;
}

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

/* Deity Badge */
.deity-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--saffron), var(--gold-primary));
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Front Content */
.festival-front-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 3;
}

.festival-date-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--gold-light);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(212, 168, 83, 0.3);
  margin-bottom: 1rem;
}

.festival-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

.festival-hover-hint {
  color: var(--gold-primary);
  font-size: 1.5rem;
  opacity: 0.7;
  transition: var(--transition-smooth);
  animation: pulseHint 2s ease-in-out infinite;
}

@keyframes pulseHint {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.5;
  }
  50% {
    transform: translateX(5px);
    opacity: 1;
  }
}

/* Back Face */
.festival-card-back {
  background: linear-gradient(135deg, var(--dark-wood) 0%, #3d2317 100%);
  transform: rotateY(180deg) translateZ(0);
  -webkit-transform: rotateY(180deg) translateZ(0);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gold-primary);
  z-index: 1;
}

.festival-card-back::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 15px;
  pointer-events: none;
}

.festival-back-content {
  padding: 2rem;
  text-align: center;
  color: white;
}

.festival-back-content h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.festival-back-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.btn-ornate-sm {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold-primary) 100%);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 25px;
  border: 2px solid var(--gold-primary);
  transition: var(--transition-smooth);
}

.btn-ornate-sm:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.5);
  color: white;
}

/* Responsive Festival Cards */
@media (max-width: 768px) {
  .festival-card-premium {
    min-width: 280px;
    height: 350px;
  }

  .festival-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .festival-card-premium {
    min-width: 100%;
    height: 320px;
  }
}

/* Countdown Timer */
.countdown-container {
  max-width: 700px;
  margin: 3rem auto 0;
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 168, 83, 0.3);
}

.countdown-label {
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.countdown-label strong {
  color: var(--gold-shine);
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-wood);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid var(--gold-shine);
  position: relative;
  overflow: hidden;
}

.countdown-number::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: countdownShine 3s ease-in-out infinite;
}

@keyframes countdownShine {
  0%, 100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

.countdown-unit {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* =====================================================
   9. TEMPLE SPOTLIGHT SECTION
   ===================================================== */
.temple-spotlight-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  margin-bottom: 0;
  /* Background set in unified flow section */
}

.temple-spotlight-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.temple-spotlight-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(44, 24, 16, 0.95) 0%, rgba(44, 24, 16, 0.7) 50%, transparent 100%);
}

.temple-spotlight-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 3rem;
  color: white;
}

.temple-spotlight-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.temple-spotlight-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.temple-spotlight-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* =====================================================
   9.5 CALL TO ACTION SECTION
   ===================================================== */
.cta-section {
  padding: 4rem 0;
  /* Background set in unified flow section */
  position: relative;
  margin: 0;
}

/* Remove gap between temple spotlight and CTA */
.temple-spotlight-section + .cta-section,
section + .cta-section {
  margin-top: 0;
  border-top: none;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* =====================================================
   10. PREMIUM FOOTER
   ===================================================== */
.footer-premium {
  background: linear-gradient(180deg, var(--dark-wood) 0%, #1a0f0a 100%);
  position: relative;
  overflow: hidden;
}

/* Ornate Top Border */
.footer-top-border {
  height: 30px;
  background: url('/images/decorations/lotus-border.svg') repeat-x center;
  background-size: auto 100%;
  opacity: 0.6;
}

.footer-premium-content {
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}

/* Mandala Watermark */
.footer-premium::before {
  content: '';
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 400px;
  height: 400px;
  background: url('/images/decorations/mandala-large.svg') no-repeat center;
  background-size: contain;
  opacity: 0.03;
}

/* Diya Decorations */
.footer-diyas {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-diya {
  width: 40px;
  height: 40px;
  opacity: 0.7;
}

.footer-premium h5 {
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-premium h5::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold-primary);
}

.footer-premium a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-premium a:hover {
  color: var(--gold-primary);
  padding-left: 5px;
}

/* Sanskrit Text */
.footer-sanskrit {
  text-align: center;
  font-size: 1.25rem;
  color: var(--gold-primary);
  font-family: 'Noto Sans Devanagari', serif;
  margin: 2rem 0;
  opacity: 0.8;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  color: var(--gold-primary);
  transition: var(--transition-smooth);
}

.footer-social a:hover {
  background: var(--gold-primary);
  color: var(--dark-wood);
  transform: translateY(-3px);
  padding-left: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(212, 168, 83, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* =====================================================
   11. ANIMATION CLASSES
   ===================================================== */

/* Fade Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Float Animation */
.float-animation {
  animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Glow Pulse */
.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 10px var(--gold-primary);
  }
  50% {
    box-shadow: 0 0 25px var(--gold-shine), 0 0 40px var(--gold-primary);
  }
}

/* Shimmer Effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* 3D Tilt Card */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateZ(20px);
}

/* =====================================================
   12. RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1200px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card.large {
    grid-row: span 1;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .deity-showcase-card {
    flex-direction: column;
    text-align: center;
  }

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

  .deity-mantra {
    border-left: none;
    border-top: 4px solid var(--gold-primary);
    border-radius: 0 0 10px 10px;
  }

  .temple-spotlight-bg {
    background-attachment: scroll;
  }

  .temple-spotlight-bg::before {
    background: rgba(44, 24, 16, 0.85);
  }

  .temple-spotlight-content {
    max-width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-parallax {
    min-height: 500px;
  }

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

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

  .ornate-frame {
    padding: 2rem 1.5rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-card {
    min-height: 220px;
  }

  .stat-medallion {
    width: 150px;
    height: 150px;
  }

  .stat-number-premium {
    font-size: 2.5rem;
  }

  .countdown-number {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }

  .section-ornate-header h2 {
    font-size: 1.8rem;
  }

  .section-ornate-header h2::before,
  .section-ornate-header h2::after {
    display: none;
  }

  /* Reduce parallax intensity on mobile */
  .parallax-layer {
    transform: none !important;
  }
}

@media (max-width: 576px) {
  .deity-image-frame {
    width: 220px;
    height: 220px;
  }

  .deity-name {
    font-size: 1.8rem;
  }

  .festival-card {
    min-width: 100%;
  }

  .countdown-timer {
    gap: 0.5rem;
  }

  .countdown-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Mobile Horizontal Scroll for Festival Cards */
@media (max-width: 768px) {
  .festival-cards-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }

  .festival-cards-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .festival-card-premium {
    flex: 0 0 85%;
    min-width: 85%;
    max-width: 85%;
    scroll-snap-align: center;
  }
}

@media (max-width: 576px) {
  .festival-cards-container {
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .festival-card-premium {
    flex: 0 0 90%;
    min-width: 90%;
    max-width: 90%;
  }
}

/* ================================
   Go To Top Button
   ================================ */
.go-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold-primary), var(--saffron));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  box-shadow:
    0 4px 15px rgba(212, 168, 83, 0.4),
    0 0 20px rgba(255, 107, 53, 0.2);
}

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

.go-to-top-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow:
    0 8px 25px rgba(212, 168, 83, 0.5),
    0 0 30px rgba(255, 107, 53, 0.3);
}

.go-to-top-btn:active {
  transform: translateY(-2px) scale(1.05);
}

.go-to-top-btn i {
  font-size: 1.5rem;
  color: white;
  transition: transform 0.3s ease;
}

.go-to-top-btn:hover i {
  transform: translateY(-3px);
  animation: bounceArrow 0.6s ease infinite;
}

@keyframes bounceArrow {
  0%, 100% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Lotus decoration around button */
.go-to-top-btn::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(212, 168, 83, 0.3);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Mobile positioning */
@media (max-width: 768px) {
  .go-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .go-to-top-btn::before {
    width: 55px;
    height: 55px;
  }

  .go-to-top-btn i {
    font-size: 1.25rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .parallax-layer {
    transform: none !important;
  }

  .go-to-top-btn::before {
    animation: none;
  }

  .go-to-top-btn:hover i {
    animation: none;
  }
}


/* =====================================================
   SANATANA SECTION - We are Sanatani
   Horizontal Tree Layout
   ===================================================== */

/* Override AOS hidden state for sanatana section - ensure visibility */
.sanatana-section [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.sanatana-section {
  position: relative;
  padding: 3rem 0;
  /* Background set in unified flow section */
  overflow: visible;
}

.sanatana-section .container {
  position: relative;
  z-index: 1;
}

.sanatana-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(212, 168, 83, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* =====================================================
   ENHANCED HEADER - We are Sanatani (Compact)
   ===================================================== */
.sanatana-header-enhanced {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  padding: 0.5rem 0;
}

.header-mandala {
  position: absolute;
  width: 150px;
  height: 150px;
  background: url('/images/decorations/mandala-pattern.svg') center/contain no-repeat;
  opacity: 0.08;
  top: 50%;
  transform: translateY(-50%);
  animation: slowSpin 60s linear infinite;
}

.header-mandala.left {
  left: 5%;
}

.header-mandala.right {
  right: 5%;
  animation-direction: reverse;
}

@keyframes slowSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

.header-om {
  font-size: 2.8rem;
  color: #d4a853;
  text-shadow:
    0 0 20px rgba(212, 168, 83, 0.5),
    0 0 40px rgba(212, 168, 83, 0.3);
  margin-bottom: 0.2rem;
  line-height: 1;
  animation: omPulseGlow 3s ease-in-out infinite;
}

@keyframes omPulseGlow {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 20px rgba(212, 168, 83, 0.5), 0 0 40px rgba(212, 168, 83, 0.3);
  }
  50% {
    transform: scale(1.08);
    text-shadow: 0 0 30px rgba(212, 168, 83, 0.8), 0 0 60px rgba(255, 107, 53, 0.5);
  }
}

.header-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #2c1810;
  margin: 0;
  letter-spacing: 2px;
  line-height: 1.2;
}

.header-title .highlight {
  background: linear-gradient(135deg, #ff6b35 0%, #d4a853 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.divider-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4a853, transparent);
}

.divider-lotus {
  font-size: 1.5rem;
  color: #ff6b35;
  animation: lotusFloat 3s ease-in-out infinite;
}

@keyframes lotusFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
}

.header-subtitle {
  font-size: 1.1rem;
  color: #6b4423;
  font-style: italic;
  margin: 0;
  letter-spacing: 1px;
}

/* Definition Card */
.sanatana-definition-card {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(44, 24, 16, 0.95) 0%, rgba(61, 37, 26, 0.95) 100%);
  border: 2px solid #d4a853;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(44, 24, 16, 0.2);
  position: relative;
  z-index: 1;
}

.definition-om {
  font-size: 2rem;
  color: #d4a853;
  margin-bottom: 0.25rem;
  line-height: 1;
  text-shadow: 0 0 20px rgba(212, 168, 83, 0.5);
  animation: omGlow 3s ease-in-out infinite;
}

@keyframes omGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(212, 168, 83, 0.5); }
  50% { text-shadow: 0 0 40px rgba(212, 168, 83, 0.8), 0 0 60px rgba(255, 107, 53, 0.4); }
}

.definition-sanskrit {
  font-size: 1.4rem;
  color: #ff6b35;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.sanatana-definition-card .definition-text {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* =====================================================
   HORIZONTAL TREE
   ===================================================== */
.dharma-tree-horizontal {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 2rem 0;
  z-index: 1;
  min-height: 250px;
  overflow: visible;
}

/* Center Root Node */
.tree-root-center {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  z-index: 1;
}

.root-glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(212, 168, 83, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: rootPulse 3s ease-in-out infinite;
}

@keyframes rootPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.root-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2c1810 0%, #3d251a 100%);
  border: 2px solid #d4a853;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 30px rgba(44, 24, 16, 0.3);
}

.root-symbol {
  font-size: 1.8rem;
}

.root-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f4e4bc;
  letter-spacing: 1px;
}

/* Horizontal Trunk Line */
.tree-trunk-line {
  position: absolute;
  top: calc(50% + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #d4a853 10%, 
    #d4a853 90%, 
    transparent 100%
  );
  border-radius: 2px;
  z-index: 0;
}

/* Branches Container */
.tree-branches-horizontal {
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  z-index: 1;
  padding: 1rem 0;
  width: 100%;
  flex-wrap: nowrap;
}

/* Branches Wrapper for Mobile Slider */
.tree-branches-wrapper {
  position: relative;
  width: 100%;
}

/* Individual Branch */
.h-branch {
  flex: 0 0 auto;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Vertical Branch Line */
.branch-line {
  width: 3px;
  height: 25px;
  background: linear-gradient(180deg, #d4a853 0%, #8b6914 100%);
  border-radius: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

/* =====================================================
   BRANCHES HEADER
   ===================================================== */
.branches-header {
  text-align: center;
  margin-bottom: 2rem;
}

.branches-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c1810;
  margin: 0 0 0.5rem;
  font-family: 'Tiro Devanagari Hindi', serif;
}

.branches-subtitle {
  font-size: 0.9rem;
  color: #6b4423;
  margin: 0;
  opacity: 0.8;
}

/* =====================================================
   CARD STACK STYLES
   ===================================================== */
.card-stack-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
  min-height: 360px;
}

.card-stack {
  position: relative;
  width: 260px;
  height: 320px;
  perspective: 1000px;
  /* Add margin to account for stacked cards offset to left */
  margin-right: 20px;
}

/* Individual Stack Card */
.stack-card {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

/* Card positioning - stacked effect (offset to LEFT to not overlap right button) */
.stack-card[data-position="0"]:not(.swiping-left):not(.swiping-right) {
  z-index: 6;
  transform: translateX(0) translateY(0) scale(1);
  opacity: 1;
}

.stack-card[data-position="1"] {
  z-index: 5;
  transform: translateX(-12px) translateY(6px) scale(0.96);
  opacity: 0.7;
}

.stack-card[data-position="2"] {
  z-index: 4;
  transform: translateX(-22px) translateY(10px) scale(0.92);
  opacity: 0.5;
}

.stack-card[data-position="3"] {
  z-index: 3;
  transform: translateX(-30px) translateY(14px) scale(0.88);
  opacity: 0.3;
  pointer-events: none;
}

.stack-card[data-position="4"],
.stack-card[data-position="5"] {
  z-index: 2;
  transform: translateX(-36px) translateY(16px) scale(0.84);
  opacity: 0;
  pointer-events: none;
}

/* Swiping animation classes - override position transforms */
.stack-card.swiping-left {
  z-index: 10 !important;
  transform: translateX(-120%) rotate(-12deg) !important;
  opacity: 0 !important;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out !important;
}

.stack-card.swiping-right {
  z-index: 10 !important;
  transform: translateX(120%) rotate(12deg) !important;
  opacity: 0 !important;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out !important;
}

/* Entering from left - for previous card animation */
.stack-card.entering-from-left {
  z-index: 10 !important;
  transform: translateX(-120%) rotate(-8deg) !important;
  opacity: 0 !important;
  transition: none !important;
}

/* Card Inner (for flip) */
.stack-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.stack-card.flipped .stack-card-inner {
  transform: rotateY(180deg);
}

/* Front and Back Faces */
.stack-card-front,
.stack-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* Front Face Styling */
.stack-card-front {
  background: linear-gradient(145deg, #ffffff 0%, #f8f4ef 100%);
  border: 3px solid #d4a853;
  box-shadow:
    0 10px 40px rgba(44, 24, 16, 0.15),
    0 0 0 1px rgba(212, 168, 83, 0.2);
  text-align: center;
}

.stack-card[data-position="0"] .stack-card-front {
  box-shadow:
    0 15px 50px rgba(44, 24, 16, 0.2),
    0 0 0 1px rgba(212, 168, 83, 0.3),
    0 0 30px rgba(212, 168, 83, 0.1);
}

/* Card Icon Large */
.card-icon-large {
  width: 70px;
  height: 70px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ff6b35 0%, #d4a853 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.card-icon-large i {
  font-size: 2rem;
  color: white;
}

.stack-card-front h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c1810;
  margin: 0 0 0.5rem;
  font-family: 'Tiro Devanagari Hindi', serif;
}

.card-deity-name {
  font-size: 1rem;
  color: #ff6b35;
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
}

.card-tap-hint {
  font-size: 0.8rem;
  color: #6b4423;
  opacity: 0.6;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-tap-hint i {
  animation: tapPulse 2s ease-in-out infinite;
}

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

/* Back Face Styling */
.stack-card-back {
  background: linear-gradient(145deg, #2c1810 0%, #3d251a 100%);
  border: 3px solid #d4a853;
  transform: rotateY(180deg);
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}

.back-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212, 168, 83, 0.3);
}

.back-header i {
  font-size: 1.5rem;
  color: #d4a853;
}

.back-header h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d4a853;
  margin: 0;
  font-family: 'Tiro Devanagari Hindi', serif;
}

.back-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.back-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(212, 168, 83, 0.2);
  border-radius: 50%;
  color: #d4a853;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.back-close-btn:hover {
  background: rgba(212, 168, 83, 0.4);
  transform: scale(1.1);
}

/* Navigation Arrows - Both must be identical */
.stack-nav,
.stack-nav-prev,
.stack-nav-next,
button.stack-nav-prev,
button.stack-nav-next {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  border: 2px solid #d4a853;
  background: linear-gradient(145deg, #ffffff 0%, #f8f4ef 100%);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #2c1810;
  box-shadow: 0 4px 15px rgba(44, 24, 16, 0.1);
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  flex-grow: 0;
  aspect-ratio: 1 / 1;
  z-index: 50;
  position: relative;
}

.stack-nav i,
.stack-nav-prev i,
.stack-nav-next i {
  font-size: 1.2rem;
  line-height: 1;
  width: auto;
  height: auto;
}

.stack-nav:hover,
.stack-nav-prev:hover,
.stack-nav-next:hover {
  background: linear-gradient(135deg, #ff6b35 0%, #d4a853 100%);
  color: white;
  border-color: #ff6b35;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.stack-nav:active,
.stack-nav-prev:active,
.stack-nav-next:active {
  transform: scale(0.95);
}

/* Card Indicators */
.card-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  height: 16px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4a853;
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.indicator:hover {
  opacity: 0.6;
  width: 12px;
  height: 12px;
}

.indicator.active {
  opacity: 1;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #ff6b35 0%, #d4a853 100%);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

/* Hover effect on top card */
.stack-card[data-position="0"]:hover .stack-card-front {
  border-color: #ff6b35;
  box-shadow:
    0 20px 60px rgba(44, 24, 16, 0.25),
    0 0 40px rgba(255, 107, 53, 0.15);
}

.stack-card[data-position="0"]:hover .card-icon-large {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

/* =====================================================
   UNITY MESSAGE
   ===================================================== */
.sanatana-unity-section {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
}

.unity-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, #2c1810 0%, #3d251a 100%);
  border: 2px solid #d4a853;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: 0 15px 40px rgba(44, 24, 16, 0.2);
}

.unity-card blockquote {
  font-size: 1.3rem;
  color: #f4e4bc;
  font-weight: 600;
  margin: 0 0 0.3rem;
}

.unity-card .unity-translation {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin: 0 0 0.15rem;
}

.unity-card .unity-source {
  font-size: 0.8rem;
  color: #d4a853;
  margin: 0 0 1rem;
}

.unity-card .unity-message {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 0.75rem;
}

.unity-card .unity-closing {
  font-size: 0.9rem;
  color: #f4e4bc;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.unity-card .unity-om {
  font-size: 1.5rem;
  color: #d4a853;
  text-shadow: 0 0 15px rgba(212, 168, 83, 0.5);
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */
@media (max-width: 1200px) {
  .branch-card {
    max-width: 140px;
    padding: 0.875rem;
  }

  .card-icon {
    width: 45px;
    height: 45px;
  }

  .card-icon i {
    font-size: 1.2rem;
  }

  .branch-card h4 {
    font-size: 0.85rem;
  }

  .card-deity {
    font-size: 0.7rem;
  }
}

@media (max-width: 992px) {
  .sanatana-section {
    padding: 3rem 0;
  }

  .header-mandala {
    width: 100px;
    height: 100px;
  }

  .header-om {
    font-size: 2.2rem;
  }

  .header-title {
    font-size: 2rem;
  }

  /* Card Stack - Tablet */
  .card-stack {
    width: 240px;
    height: 300px;
  }

  .card-icon-large {
    width: 60px;
    height: 60px;
  }

  .card-icon-large i {
    font-size: 1.75rem;
  }

  .stack-card-front h4 {
    font-size: 1.2rem;
  }

  .card-deity-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .sanatana-section {
    padding: 2.5rem 0;
  }

  .sanatana-header-enhanced {
    margin-bottom: 1rem;
    padding: 0.25rem 0;
  }

  .header-mandala {
    display: none;
  }

  .header-om {
    font-size: 2rem;
  }

  .header-title {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }

  .header-subtitle {
    font-size: 0.85rem;
  }

  .header-divider {
    margin: 0.3rem 0;
  }

  .divider-line {
    width: 40px;
  }

  .divider-lotus {
    font-size: 1.2rem;
  }

  .sanatana-definition-card {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
  }

  .definition-om {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
  }

  .definition-sanskrit {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .sanatana-definition-card .definition-text {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  /* Card Stack - Mobile */
  .branches-header {
    margin-bottom: 1.5rem;
  }

  .branches-title {
    font-size: 1.25rem;
  }

  .branches-subtitle {
    font-size: 0.8rem;
  }

  .card-stack-container {
    padding: 1.5rem 1rem;
    min-height: 300px;
    gap: 1.25rem;
  }

  .card-stack {
    width: 220px;
    height: 280px;
    margin-right: 15px;
  }

  .stack-nav,
  .stack-nav-prev,
  .stack-nav-next,
  button.stack-nav-prev,
  button.stack-nav-next {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
  }

  .stack-nav i,
  .stack-nav-prev i,
  .stack-nav-next i {
    font-size: 1rem;
  }

  .card-icon-large {
    width: 55px;
    height: 55px;
  }

  .card-icon-large i {
    font-size: 1.5rem;
  }

  .stack-card-front h4 {
    font-size: 1.1rem;
  }

  .card-deity-name {
    font-size: 0.85rem;
  }

  .card-tap-hint {
    font-size: 0.75rem;
  }

  .stack-card-front,
  .stack-card-back {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .back-description {
    font-size: 0.85rem;
  }

  .indicator {
    width: 8px;
    height: 8px;
  }

  .indicator:hover,
  .indicator.active {
    width: 10px;
    height: 10px;
  }

  .card-indicators {
    height: 14px;
    gap: 0.5rem;
  }

  .unity-card {
    padding: 1.25rem;
  }

  .unity-card blockquote {
    font-size: 1.1rem;
  }

  .unity-card .unity-translation {
    font-size: 0.9rem;
  }

  .unity-card .unity-message {
    font-size: 0.85rem;
  }

}

@media (max-width: 480px) {
  .sanatana-section {
    padding: 2rem 0;
  }

  .header-om {
    font-size: 1.8rem;
  }

  .header-title {
    font-size: 1.4rem;
  }

  .header-subtitle {
    font-size: 0.8rem;
  }

  /* Card Stack - Small Mobile */
  .branches-title {
    font-size: 1.1rem;
  }

  .branches-subtitle {
    font-size: 0.75rem;
  }

  .card-stack-container {
    gap: 0.75rem;
    min-height: 280px;
    padding: 1.5rem 0.5rem;
  }

  .card-stack {
    width: 200px;
    height: 260px;
    margin-right: 12px;
  }

  .stack-nav,
  .stack-nav-prev,
  .stack-nav-next,
  button.stack-nav-prev,
  button.stack-nav-next {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }

  .stack-nav i,
  .stack-nav-prev i,
  .stack-nav-next i {
    font-size: 0.9rem;
  }

  .card-icon-large {
    width: 50px;
    height: 50px;
  }

  .card-icon-large i {
    font-size: 1.3rem;
  }

  .stack-card-front h4 {
    font-size: 1rem;
  }

  .card-deity-name {
    font-size: 0.8rem;
  }

  .card-tap-hint {
    font-size: 0.7rem;
  }

  .stack-card-front,
  .stack-card-back {
    padding: 1rem;
    border-radius: 14px;
  }

  .back-header h5 {
    font-size: 0.95rem;
  }

  .back-description {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .back-close-btn {
    width: 28px;
    height: 28px;
    top: 8px;
    right: 8px;
  }

  .unity-card blockquote {
    font-size: 1rem;
  }

  .unity-card .unity-message {
    font-size: 0.8rem;
  }
}
