@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Marcellus&family=Noto+Serif+Devanagari:wght@400;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #060302;
  --bg-card: rgba(20, 10, 6, 0.9);
  --bg-card-hover: rgba(36, 18, 11, 0.96);
  --sindoor-red: #8B0000;
  --crimson: #C8102E;
  --deep-red: #4A0000;
  --gold-primary: #D4AF37;
  --gold-light: #FFD700;
  --gold-glow: rgba(255, 215, 0, 0.4);
  --saffron: #FF8C00;
  --text-light: #FFFDF9;
  --text-muted: #CBD2D0;
  --border-gold: rgba(212, 175, 55, 0.35);
  --radius-lg: 24px;
  --radius-md: 14px;
  --shadow-glow: 0 15px 40px rgba(139, 0, 0, 0.45), 0 0 35px rgba(255, 215, 0, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Outfit', 'Noto Serif Devanagari', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Bulletproof Tantrava Dual Language Display Engine */
html[data-lang="en"] [lang="hi"] {
  display: none !important;
}

html[data-lang="en"] [lang="en"] {
  display: inline-block !important;
}

html[data-lang="en"] span[lang="en"],
html[data-lang="en"] p [lang="en"],
html[data-lang="en"] h1 [lang="en"],
html[data-lang="en"] h2 [lang="en"],
html[data-lang="en"] h3 [lang="en"],
html[data-lang="en"] h4 [lang="en"],
html[data-lang="en"] a [lang="en"],
html[data-lang="en"] div [lang="en"] {
  display: inline !important;
}

html[data-lang="hi"] [lang="en"] {
  display: none !important;
}

html[data-lang="hi"] [lang="hi"] {
  display: inline-block !important;
}

html[data-lang="hi"] span[lang="hi"],
html[data-lang="hi"] p [lang="hi"],
html[data-lang="hi"] h1 [lang="hi"],
html[data-lang="hi"] h2 [lang="hi"],
html[data-lang="hi"] h3 [lang="hi"],
html[data-lang="hi"] h4 [lang="hi"],
html[data-lang="hi"] a [lang="hi"],
html[data-lang="hi"] div [lang="hi"] {
  display: inline !important;
}

/* Devanagari Hindi Typography Preserved Styling */
html[data-lang="hi"] .hero-main-title,
html[data-lang="hi"] .section-title,
html[data-lang="hi"] .center-story-title,
html[data-lang="hi"] .footer-mantra,
html[data-lang="hi"] h1, 
html[data-lang="hi"] h2, 
html[data-lang="hi"] h3, 
html[data-lang="hi"] h4 {
  font-family: 'Noto Serif Devanagari', 'Marcellus', serif;
}

/* Lenis Smooth Scroll Setup */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--sindoor-red);
  border-radius: 4px;
  border: 1px solid var(--border-gold);
}

/* Base Section Block */
.section-block {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem 5rem;
  box-sizing: border-box;
  overflow: hidden;
}

.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Floating Navigation Header */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 2.8rem;
  background: linear-gradient(180deg, rgba(6, 3, 2, 0.96) 0%, rgba(6, 3, 2, 0.78) 75%, transparent 100%);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-light);
}

.brand-title img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

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

.brand-name {
  font-family: 'Marcellus', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1.5px;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.header-nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link-item:hover {
  color: var(--gold-light);
}

/* Floating Vertical Dots Navigation */
.scroll-dots {
  position: fixed;
  right: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.dot-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.dot-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  background: var(--bg-dark);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0;
  outline: none;
}

.dot-btn.active {
  background: var(--gold-light);
  box-shadow: 0 0 15px var(--gold-light), 0 0 30px var(--sindoor-red);
  transform: scale(1.4);
  border-color: #fff;
}

.dot-tooltip {
  position: absolute;
  right: 28px;
  white-space: nowrap;
  background: rgba(18, 10, 6, 0.92);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.25s ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.dot-item:hover .dot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* SECTION 1: HERO SECTION */
#hero {
  height: 100vh;
  position: relative;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.15);
  transform: scale(1.15);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(139, 0, 0, 0.3) 0%, rgba(6, 3, 2, 0.82) 65%, var(--bg-dark) 100%);
  z-index: 1;
}

/* Rotating Tantric Yantra Background Motif */
.yantra-bg-motif {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 650px;
  border: 1px dashed rgba(212, 175, 55, 0.25);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  animation: rotateYantra 60s linear infinite;
}

.yantra-bg-motif::before {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 50%;
  transform: rotate(45deg);
}

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

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

.mantra-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(139, 0, 0, 0.6);
  border: 1px solid var(--gold-primary);
  padding: 8px 24px;
  border-radius: 30px;
  font-family: 'Marcellus', 'Noto Serif Devanagari', serif;
  font-size: 0.95rem;
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.hero-main-title {
  font-family: 'Cinzel Decorative', 'Noto Serif Devanagari', serif;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 900;
  color: #FFFDF9;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(139, 0, 0, 0.9);
  margin-bottom: 0.6rem;
  line-height: 1.1;
  display: block;
}

.hero-main-title span {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--gold-light) 60%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: 'Marcellus', 'Noto Serif Devanagari', serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: #F8EAAD;
  margin-bottom: 1.5rem;
  letter-spacing: 1.5px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Hero Bottom Pinned Stats Ribbon */
.hero-bottom-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: rgba(14, 7, 4, 0.88);
  border-top: 1px solid var(--border-gold);
  backdrop-filter: blur(12px);
  padding: 1rem 2rem;
}

.ribbon-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 0px;
  min-width: 210px;
}

.ribbon-num {
  font-family: 'Marcellus', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
  display: block;
  line-height: 1.2;
}

.ribbon-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  display: block;
  line-height: 1.2;
}

/* SECTION 2: DUAL-IMAGE FLANKED CENTER STORY LAYOUT */
#legend {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(20, 10, 6, 0.95) 50%, var(--bg-dark) 100%);
}

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

.section-tag {
  color: var(--saffron);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.section-tag svg {
  color: var(--gold-light);
}

.section-title {
  font-family: 'Cinzel Decorative', 'Noto Serif Devanagari', serif;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--text-light);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.legend-three-col-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2.2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.legend-side-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
  height: 440px;
  cursor: pointer;
}

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

.legend-side-img-card:hover img {
  transform: scale(1.08);
}

.side-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(8, 4, 2, 0.95) 0%, transparent 100%);
  padding: 1.2rem;
  font-family: 'Marcellus', 'Noto Serif Devanagari', serif;
  color: var(--gold-light);
  font-size: 1.05rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.legend-center-story-card {
  background: rgba(22, 12, 8, 0.92);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(14px);
  position: relative;
}

.legend-center-story-card::before {
  content: '॥';
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.5rem;
  color: var(--gold-primary);
  opacity: 0.3;
  display: block;
  margin-bottom: 0.5rem;
}

.center-story-title {
  font-family: 'Cinzel Decorative', 'Noto Serif Devanagari', serif;
  font-size: 1.7rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.center-story-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.center-quote-box {
  background: rgba(8, 4, 2, 0.85);
  border-left: 3px solid var(--gold-primary);
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--text-light);
  font-style: italic;
  text-align: left;
}

.legend-bottom-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-left: 4px solid var(--sindoor-red);
  padding: 1.5rem 1.8rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
}

.feature-item:hover {
  background: var(--bg-card-hover);
  border-left-color: var(--gold-light);
  transform: translateY(-4px);
}

.feature-title {
  font-family: 'Marcellus', 'Noto Serif Devanagari', serif;
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-title svg {
  color: var(--saffron);
  flex-shrink: 0;
}

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

/* SECTION 3: TANTRIC SYNTHESIS & HISTORICAL ESSENCE */
#tantric-synthesis {
  background: radial-gradient(circle at center, rgba(139, 0, 0, 0.2) 0%, var(--bg-dark) 80%);
}

.synthesis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  align-items: stretch;
}

.synthesis-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s ease;
  position: relative;
}

.synthesis-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-light);
}

.synthesis-card-badge {
  background: rgba(139, 0, 0, 0.6);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 12px;
  width: fit-content;
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.synthesis-card h3 {
  font-family: 'Cinzel Decorative', 'Noto Serif Devanagari', serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

/* SECTION 4: PROMINENT ICONS FOR DAILY SEVA PUJA TIMELINE */
#daily-puja-schedule {
  background: var(--bg-dark);
}

.puja-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 2rem;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-top: 3px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem 1.6rem;
  position: relative;
  backdrop-filter: blur(10px);
  opacity: 1;
  visibility: visible;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.timeline-card:hover {
  background: var(--bg-card-hover);
  border-top-color: var(--gold-light);
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(139, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.2);
}

/* Highly Prominent Vibrant Gold-Red Timeline Emblem Badge */
.timeline-icon-emblem {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(74, 0, 0, 0.95));
  border: 2px solid var(--gold-light);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.45), inset 0 0 12px rgba(255, 215, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  margin-bottom: 1rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.timeline-card:hover .timeline-icon-emblem {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
}

.timeline-time {
  font-family: 'Marcellus', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
  display: block;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

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

/* SECTION 5: PINNED HORIZONTAL SCROLL TRACK FOR TANTRIC WISDOM */
#horizontal-wisdom-section {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #040201;
  display: flex;
  align-items: center;
}

.horizontal-track-container {
  display: flex;
  gap: 3.5rem;
  padding: 0 10vw;
  width: max-content;
  will-change: transform;
}

.horizontal-card {
  width: 78vw;
  max-width: 900px;
  height: 72vh;
  background: linear-gradient(135deg, rgba(26, 14, 9, 0.95) 0%, rgba(12, 6, 4, 0.95) 100%);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), inset 0 0 25px rgba(139, 0, 0, 0.25);
  flex-shrink: 0;
  backdrop-filter: blur(15px);
  position: relative;
}

.card-tag {
  position: absolute;
  top: 1.6rem;
  left: 2rem;
  background: var(--sindoor-red);
  color: var(--gold-light);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-img-box {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold);
}

.card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body h3 {
  font-family: 'Cinzel Decorative', 'Noto Serif Devanagari', serif;
  font-size: 1.85rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.tantra-highlight-box {
  background: rgba(8, 4, 2, 0.85);
  border-left: 3px solid var(--gold-primary);
  padding: 1.1rem;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--text-light);
  font-style: italic;
}

/* SECTION 6: PROMINENT ICONS FOR ANNUAL FESTIVAL CALENDAR */
#festivals-rituals {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(20, 10, 6, 0.95) 100%);
}

.rituals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.ritual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(12px);
  transition: all 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ritual-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-light);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(139, 0, 0, 0.5), 0 0 25px rgba(255, 215, 0, 0.3);
}

/* Highly Bold & Prominent Emblem Box for Festivals */
.ritual-icon-emblem {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.3), rgba(139, 0, 0, 0.85));
  border: 2px solid var(--gold-light);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.45), inset 0 0 15px rgba(255, 215, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  transition: transform 0.35s ease;
}

.ritual-card:hover .ritual-icon-emblem {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.75);
}

.ritual-card-header {
  margin-bottom: 0.8rem;
}

.ritual-card h4 {
  font-family: 'Marcellus', 'Noto Serif Devanagari', serif;
  font-size: 1.4rem;
  color: var(--gold-light);
}

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

/* SECTION 7: REAL PUBLIC PHOTO GALLERY */
#gallery {
  background: var(--bg-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--border-gold);
  cursor: pointer;
  background: var(--bg-card);
}

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

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

.gallery-info-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 4, 3, 0.95) 0%, rgba(7, 4, 3, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  opacity: 0.92;
  transition: opacity 0.3s ease;
}

.gallery-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sindoor-red);
  color: #fff;
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 6px;
  font-weight: 600;
}

.gallery-caption {
  font-family: 'Marcellus', 'Noto Serif Devanagari', serif;
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

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

/* SECTION 8: PILGRIM GUIDE & HOW TO REACH */
#pilgrim-guide {
  background: var(--bg-dark);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  text-align: center;
  backdrop-filter: blur(12px);
}

.guide-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.85), rgba(74, 0, 0, 0.95));
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--gold-light);
}

.guide-card h4 {
  font-family: 'Marcellus', 'Noto Serif Devanagari', serif;
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

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

/* FOOTER & DIVINE BLESSING */
#footer-section {
  background: #040201;
  text-align: center;
  min-height: auto;
  padding: 5.5rem 2rem 3.5rem;
}

.footer-mantra {
  font-family: 'Marcellus', 'Noto Serif Devanagari', serif;
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.footer-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.footer-links-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.3s ease;
}

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

.copyright-text {
  font-size: 0.82rem;
  color: rgba(203, 210, 208, 0.5);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 1.8rem;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .legend-three-col-grid, .synthesis-grid, .puja-timeline-grid, .rituals-grid, .guide-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .legend-bottom-badges {
    grid-template-columns: 1fr;
  }
  .horizontal-card {
    grid-template-columns: 1fr;
    height: auto;
    width: 88vw;
    padding: 2.5rem;
  }
  .card-img-box {
    height: 240px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ribbon-flex {
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (max-width: 768px) {
  .scroll-dots, .header-nav-links {
    display: none;
  }
  .legend-three-col-grid, .synthesis-grid, .puja-timeline-grid, .rituals-grid, .guide-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Google Maps Embedded Location Card */
.map-embed-wrapper {
  margin-top: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
}

.map-embed-header {
  padding: 1.2rem 1.8rem;
  background: rgba(22, 12, 8, 0.95);
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.map-embed-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Marcellus', serif;
  font-size: 1.15rem;
  color: var(--gold-light);
}

.map-embed-title svg {
  color: var(--sindoor-red);
}

.map-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-primary), var(--sindoor-red));
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(184, 15, 10, 0.3);
}

.map-directions-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  color: #fff !important;
}

.map-iframe-container {
  position: relative;
  width: 100%;
  height: 380px;
  border: none;
}

.map-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
