/*==========================
  GOOGLE FONTS & IMPORTS
==========================*/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/*==========================
  DESIGN SYSTEM (TOKENS)
==========================*/
:root {
  --red:          #c0392b;
  --red-dark:     #922b21;
  --red-light:    #fff5f5;
  --gold:         #d4af37;
  --gold-light:   #fffbf0;
  --dark:         #121212;
  --dark-surface: #1a1a1a;
  --mid:          #333333;
  --muted:        #666666;
  --light:        #f8f9fa;
  --white:        #ffffff;
  --border:       #e2e8f0;
  --nav-h:        72px;
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-pill:  50px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.16);
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*==========================
  RESET & BASE
==========================*/
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}
img, video {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
button, a, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }
::-webkit-scrollbar-track { background: var(--light); }

/*==========================
  HEADER & GLASS NAVBAR
==========================*/
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 32px;
  max-width: 1360px;
  margin: 0 auto;
}

/* Logo */
.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition);
}
.logo:hover {
  transform: scale(1.05);
  border-color: var(--gold);
}
header.scrolled .logo { border-color: var(--red); }
.site-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}
header.scrolled .site-name { color: var(--dark); }

/* Nav links */
.navbar ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar ul li a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
}
.navbar ul li a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}
header.scrolled .navbar ul li a { color: var(--mid); }
header.scrolled .navbar ul li a:hover {
  color: var(--red);
  background: var(--red-light);
}

/* Theme toggle icon */
.theme-btn {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 8px;
  transition: color var(--transition), transform var(--transition);
}
.theme-btn:hover {
  color: var(--gold);
  transform: rotate(20deg);
}
header.scrolled .theme-btn { color: var(--mid); }

/* Upcoming event pill button */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.event-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  margin-right: 2px;
}
.event-pill:hover {
  background: rgba(255, 255, 255, 0.24);
  color: var(--gold);
  transform: none;
}
header.scrolled .event-pill {
  background: rgba(192, 57, 43, 0.08);
  color: var(--red-dark);
  border-color: rgba(192, 57, 43, 0.18);
}
.event-pill span {
  font-size: 11px;
  letter-spacing: 0.2px;
}

/* Audio fallback button */

/* ============================================
   UNMUTE BANNER
   ============================================ */
#unmuteBanner {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: linear-gradient(135deg, rgba(20,10,5,0.92), rgba(100,20,10,0.88));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212,160,80,0.45);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(212,160,80,0.15);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.3s ease;
  white-space: nowrap;
  animation: bannerSlideUp 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
#unmuteBanner:hover {
  border-color: rgba(212,160,80,0.8);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 0 18px rgba(212,160,80,0.25);
  transform: translateX(-50%) translateY(-2px);
}
#unmuteBanner .fa-music {
  color: #d4a050;
  font-size: 16px;
  animation: musicPulse 1.4s ease-in-out infinite;
}
#unmuteBanner strong { color: #d4a050; }
#unmuteBanner .fa-xmark {
  margin-left: 6px;
  font-size: 15px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
#unmuteBanner .fa-xmark:hover { opacity: 1; }

@keyframes bannerSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0);    }
}
@keyframes musicPulse {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%       { transform: scale(1.25); opacity: 0.7; }
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.nav-hamburger span {
  width: 22px; height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}
header.scrolled .nav-hamburger span { background: var(--dark); }

/*==========================
  HERO (VISITSINGAPORE STYLE)
==========================*/
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  background: #000000;
}
.hero-video, .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}
.hero-video.active, .hero-img.active { opacity: 1; }
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-enclosure,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-overlay-play-button,
.hero-video::-webkit-media-controls-play-button {
  display: none !important;
}
.hero-video::-moz-controls,
.hero-video::-moz-controls-enclosure {
  display: none !important;
}
.hero-video {
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.85) 100%
  );
  z-index: 1;
}

/* Hero Title at Top */
.hero-content {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: min(100%, 900px);
  max-width: 900px;
  text-align: center;
  padding: 0 24px;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4.4vw, 40px);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.7);
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.12;
}

/* Hero Bottom: Subtitle & Action Pills */
.hero-bottom {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  text-align: center;
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(100%, 900px);
  max-width: 900px;
  margin: 0 auto;
}
.hero-bottom p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 2.2vw, 22px);
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
  margin: 0;
  line-height: 1.5;
}
.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
}
.hero-cta-row button {
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 220px;
  min-width: 150px;
}
.btn-primary {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(192, 57, 43, 0.5);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: #ffffff;
  color: var(--dark);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/*==========================
  SECTION HEADINGS & LABELS
==========================*/
section {
  padding: 80px 0;
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.7;
}

/*==========================
  ABOUT SECTION (FEATURE SPLIT)
==========================*/
.about {
  background: var(--white);
  padding-top: 96px;
}
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 520px;
}
.feature-image {
  position: relative;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 20px;
  box-shadow: var(--shadow-md);
}
.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.feature-split:hover .feature-image img {
  transform: scale(1.04);
}
.feature-text {
  padding: 48px 64px;
}
.feature-text blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2vw, 24px);
  font-style: italic;
  color: var(--dark);
  border-left: 4px solid var(--red);
  padding-left: 20px;
  margin: 20px 0;
  line-height: 1.6;
}
.feature-text p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* Temple list in Feature Text */
.temple-list {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.temple-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--dark);
  font-weight: 500;
  padding: 12px 18px;
  background: var(--light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.temple-list li:hover {
  border-color: var(--red);
  background: var(--red-light);
  transform: translateX(6px);
}
.temple-list li i {
  color: var(--red);
  font-size: 16px;
  flex-shrink: 0;
}

/* View All Links */
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  transition: gap var(--transition);
}
.view-all:hover {
  gap: 12px;
  color: var(--red-dark);
}

/* About Info Cards Row */
.about-info-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--dark);
  margin-top: 40px;
}
.about-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 36px 30px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.about-info-card:last-child { border-right: none; }
.about-info-card:hover { background: rgba(192, 57, 43, 0.15); }
.about-info-card > i {
  font-size: 24px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.about-info-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}
.about-info-card p {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0;
}

/*==========================
  TEMPLE HISTORY (ஸ்தல வரலாறு)
==========================*/
.temple-history {
  background: var(--light);
  padding: 80px 0;
}
.th-header {
  text-align: center;
  padding: 0 32px;
  margin-bottom: 48px;
}

/* Quick Facts Bar */
.th-quickbar {
  display: flex;
  flex-wrap: wrap;
  background: var(--dark);
  margin-bottom: 48px;
}
.th-qcard {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}
.th-qcard:last-child { border-right: none; }
.th-qcard i { color: var(--gold); font-size: 20px; flex-shrink: 0; }
.th-qcard strong { color: #ffffff; display: block; font-weight: 700; }

/* History 2-Column Grid */
.th-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  min-width: 0;
}
.th-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.th-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
  min-width: 0;
}
.th-card:hover {
  box-shadow: var(--shadow-md);
}
.th-card-head,
.th-note,
.th-card p,
.th-list li,
.th-card-head h3 {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.th-gold-card {
  background: linear-gradient(135deg, #180907 0%, #2b0e0a 100%);
  border: none;
}
.th-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.th-card-head i {
  font-size: 22px;
  color: var(--red);
  flex-shrink: 0;
}
.th-gold-card .th-card-head i { color: var(--gold); }
.th-card-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}
.th-gold-card .th-card-head h3 { color: var(--gold); }
.th-card p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 12px;
}
.th-gold-card p { color: rgba(255,255,255,0.85); }
.th-note {
  font-size: 13px !important;
  background: var(--light);
  border-left: 3.5px solid var(--red);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--mid) !important;
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.th-note i { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.th-note-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.th-note-content p {
  margin: 0;
  line-height: 1.7;
}
/* Lists inside Temple History */
.th-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.th-list li {
  font-size: 14px;
  color: var(--mid);
  padding: 12px 16px;
  background: var(--light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--red);
  line-height: 1.6;
}

/* 7 Specialties List */
.th-special-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.th-special-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}
.th-special-list li span {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a0a08;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pooja Timings Box */
.pooja-timings { display: flex; flex-direction: column; gap: 14px; }
.pooja-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px;
  background: var(--light);
  border-radius: var(--radius-md);
}
.pooja-time {
  flex-shrink: 0;
  min-width: 85px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.pooja-time i { font-size: 18px; color: var(--gold); }
.pooja-desc strong { font-size: 14px; color: var(--dark); display: block; margin-bottom: 2px; }
.pooja-desc span { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Flower Oracle Box */
.th-vakku-box { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.vakku-item {
  padding: 14px 18px;
  background: var(--light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vakku-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}
.vakku-badge.red { background: var(--red); color: #ffffff; }
.vakku-badge.white { background: #ffffff; color: var(--dark); border: 1.5px solid var(--border); }
.vakku-item p { font-size: 13px; color: var(--mid); line-height: 1.7; margin: 0; }

/* Full-Width Story Panel */
.th-story-box {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 0 32px;
}
.th-story-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.th-story-head i { font-size: 24px; color: var(--gold); }
.th-story-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--dark);
  margin: 0;
}
.th-story-body {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}
.th-story-body p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.9;
  margin: 0;
}

/*==========================
  FESTIVALS (PILL TABS + CARDS)
==========================*/
.festivals {
  background: var(--white);
  padding: 80px 0;
}
.festivals-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 32px;
}

/* Pill Tabs Container */
.fest-tabs-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  padding: 0 24px;
}
.fest-tab {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  background: var(--light);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fest-tab:hover {
  border-color: var(--red);
  color: var(--red);
}
.fest-tab.active {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
  box-shadow: 0 6px 20px rgba(192,57,43,0.3);
}

/* Content Boxes */
.fest-content-box {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.fest-card-header {
  text-align: center;
  margin-bottom: 36px;
}
.fest-card-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.5vw, 32px);
  color: var(--dark);
  margin-bottom: 8px;
}

/* Timeline & Mandapam Grids */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.timeline-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.timeline-badge {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.timeline-info h4 { font-size: 16px; margin-bottom: 6px; color: var(--dark); }
.timeline-info p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Mandapam Cards */
.sub-sec-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 24px;
  text-align: center;
}
.mandapam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.mandapam-card {
  background: var(--light);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.day-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--red-light);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}
.mandapam-details h5 { font-size: 15px; color: var(--dark); margin-bottom: 8px; }
.vahanam-badge {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}

/* Ther Main Box */
.ther-card {
  background: linear-gradient(135deg, #180907 0%, #2b0e0a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 24px;
}
.ther-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 14px;
}
.ther-card p { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.8; margin-bottom: 12px; }
.ritual-box {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 18px;
}
.ritual-box h5 { color: var(--gold); font-size: 15px; margin-bottom: 8px; }

/* Pongal Schedule Grid */
.pongal-schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.schedule-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.sched-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sched-body h4 { font-size: 15px; margin-bottom: 6px; color: var(--dark); }
.sched-body p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Grand Pongal Box */
.grand-pongal-box {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  border: 1px solid var(--border);
}
.grand-pongal-box h4 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 24px;
}
.pongal-timeline { display: flex; flex-direction: column; gap: 20px; }
.pongal-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.time-badge {
  background: var(--red);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}
.step-text {
  flex: 1 1 0;
  min-width: 0;
}
.step-text h5 { font-size: 15px; color: var(--dark); margin-bottom: 4px; }
.step-text p  {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  word-break: break-word;
}

/* 8 Patti Grid */
.patti-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.patti-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
}
.patti-card:hover {
  border-color: var(--red);
  background: var(--red-light);
  transform: translateY(-2px);
}
.patti-card i { color: var(--red); }
.patti-footer-note {
  background: var(--dark);
  color: rgba(255,255,255,0.9);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}
.patti-footer-note i { color: var(--red); }

/*==========================
  GALLERY & LIGHTBOX
==========================*/
.gallery {
  background: var(--light);
  padding: 80px 0;
}
/* Gallery Filter Bar */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.gallery-filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  background: var(--white);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.gallery-filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
}
.gallery-filter-btn.active {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  color: #ffffff;
  font-size: 36px;
  cursor: pointer;
}

/*==========================
  MAP SECTION
==========================*/
.map-box { background: var(--white); }
.map-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px;
}
.map-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.5vw, 36px);
  color: var(--dark);
  margin-bottom: 12px;
}
.map-text button {
  margin-top: 24px;
  padding: 14px 32px;
  background: var(--red);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.35);
  transition: var(--transition);
}
.map-text button:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}
.map-container iframe {
  width: 100%;
  height: 380px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/*==========================
  CONTACT & SOCIAL CARDS
==========================*/
.contact {
  background: var(--light);
  padding: 80px 0;
}
.contact .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 14px;
  font-weight: 500;
  padding: 12px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.social-link:hover {
  border-color: var(--red);
  background: var(--red-light);
  transform: translateX(6px);
  color: var(--red);
}
.social-link i {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--light);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 18px;
  flex-shrink: 0;
  transition: var(--transition);
}
.social-link:hover i {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--red);
}
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form button[type="submit"] {
  padding: 16px;
  background: var(--red);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(192,57,43,0.35);
  transition: var(--transition);
}
.contact-form button[type="submit"]:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/*==========================
  FOOTER (VISITSINGAPORE STYLE)
==========================*/
.footer {
  background: #0e0e0e;
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 10%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.footer-box h2 {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 12px;
}
.footer-box h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-box p { font-size: 14px; line-height: 1.7; }
.footer-box a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
  transition: color var(--transition), transform var(--transition);
}
.footer-box a:hover {
  color: var(--gold);
  transform: translateX(4px);
}
.footer-logo {
  width: 52px; height: 52px;
  border-radius: 50%;
  margin-bottom: 14px;
}
.copyright {
  background: #080808;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 18px;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/*==========================
  MOBILE-FIRST RESPONSIVE
==========================*/
@media (max-width: 1024px) {
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.reverse .feature-image { order: 0; }
  .feature-image { height: 320px; min-height: 320px; margin: 0; }
  .feature-text { padding: 36px 24px; }
  .about-info-row { grid-template-columns: repeat(2, 1fr); }
  .th-body { grid-template-columns: 1fr; padding: 0 20px; }
  .th-story-body { grid-template-columns: 1fr; padding: 24px; }
  .mandapam-grid { grid-template-columns: repeat(2, 1fr); }
  .patti-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-images { grid-template-columns: repeat(2, 1fr); }
  .map-section { grid-template-columns: 1fr; padding: 48px 24px; }
  .contact .section-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer { grid-template-columns: 1fr; padding: 48px 24px; gap: 36px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .navbar ul { display: none; }
  .nav-actions { margin-left: auto; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero-content { top: 20px; left: 50%; transform: translateX(-50%); }
  .hero-bottom { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; padding: 0 16px 20px; }
  .hero-cta-row button { flex: 1 1 100%; max-width: 320px; }
  .hero-gallery-mobile { display: none; }
  .hero-gallery-mobile button { width: 100%; padding: 14px 20px; }
  .about, .temple-history, .festivals, .gallery, .map-box, .contact, .footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .nav-hamburger { display: flex; }

  .navbar ul.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    gap: 8px;
    backdrop-filter: blur(16px);
    z-index: 999;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .navbar ul.open li a {
    color: #ffffff;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
  }

  .hero-content { padding: 60px 16px 0; }
  .hero-bottom { padding: 0 16px 24px; gap: 14px; }
  .about { padding-top: 72px; }
  .hero-cta-row { flex-direction: column; width: 100%; gap: 10px; }
  .hero-cta-row button { width: 100%; max-width: 100%; padding: 13px 20px; }

  section { padding: 64px 0; }
  .section-label, .section-title, .section-sub, .festivals-header, .th-header, .th-story-box, .fest-content-box { padding-left: 16px; padding-right: 16px; }
  .feature-text { padding: 28px 16px; }
  .feature-image { height: 280px; min-height: 280px; margin: 0 0 8px; }
  .about-info-row { grid-template-columns: 1fr; }
  .about-info-card { padding: 20px 16px; }
  .th-quickbar { flex-wrap: wrap; }
  .th-qcard { flex: 1 1 100%; padding: 14px 16px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .th-qcard:last-child { border-bottom: none; }
  .th-body, .th-story-body, .map-section, .contact .section-inner, .footer { padding-left: 16px; padding-right: 16px; }
  .th-card, .th-story-body, .ther-card, .grand-pongal-box, .patti-footer-note { padding: 24px 18px; }
  .mandapam-grid { grid-template-columns: 1fr; }
  .pongal-schedule-grid { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: 1fr; }
  .patti-grid { grid-template-columns: 1fr; }
  .gallery-images { grid-template-columns: 1fr; }
  .gallery-filter-bar { gap: 8px; }
  .gallery-filter-btn { padding: 7px 14px; font-size: 12px; }
  .map-container iframe { height: 280px; }
  .contact-form input, .contact-form textarea { font-size: 16px; }
  .footer { gap: 24px; padding-top: 36px; padding-bottom: 36px; }
}

@media (max-width: 480px) {
  .site-name { font-size: 15px; }
  .logo { width: 38px; height: 38px; }
  .hero-content h1 { font-size: clamp(24px, 8vw, 36px); }
  .hero-bottom p { font-size: 15px; }
  .section-title { font-size: 24px; }
  .fest-tab { flex: 1 1 100%; justify-content: center; }
  .timeline-card, .schedule-card, .mandapam-card, .patti-card { padding: 16px; }
  .lightbox-close { top: 12px; right: 14px; font-size: 28px; }
  .social-link { padding: 12px 14px; font-size: 14px; }
}
