/* ==========================================================================
   Hanuman Mandir Sydney - Global Stylesheet
   Designed with rich spiritual aesthetics, warm saffron/gold/crimson styling,
   and modern glassmorphism and animations.
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* --- CSS variables & Design Tokens --- */
:root {
  /* Color Palette */
  --bg-cream: #FAF7F2;
  --bg-cream-dark: #F3ECE1;
  --maroon: #4A0E17;
  --maroon-dark: #2B050B;
  --maroon-light: #671A24;
  --saffron: #D65A31;
  --saffron-rgb: 214, 90, 49;
  --saffron-hover: #B4421C;
  --gold: #D4AF37;
  --gold-dark: #A9851D;
  --gold-light: #F3E5AB;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --text-dark: #2E2524;
  --text-muted: #5C4F4E;
  --text-light: #FFF5EE;
  --text-white: #FFFFFF;
  --border-light: rgba(74, 14, 23, 0.08);
  
  /* Glassmorphism Variables */
  --glass-bg: rgba(250, 247, 242, 0.85);
  --glass-border: rgba(212, 175, 55, 0.25);
  
  /* Transitions & Shadows */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
  --shadow-sm: 0 4px 6px rgba(46, 37, 36, 0.05);
  --shadow-md: 0 10px 20px rgba(46, 37, 36, 0.08);
  --shadow-lg: 0 15px 30px rgba(74, 14, 23, 0.12);
  --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.3);
  
  /* Layout constraints */
  --max-width: 1280px;
  --header-height: 80px;
  --top-bar-height: 40px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--top-bar-height) - 10px);
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  outline: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-cream-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--maroon);
  border-radius: 5px;
  border: 2px solid var(--bg-cream-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--saffron);
}

/* --- Global Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background-color: var(--maroon-dark);
  color: var(--text-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--maroon);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-dark .section-header h2 {
  color: var(--gold-light);
}

.section-header .sub-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--saffron);
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.section-header .accent-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--saffron), var(--gold), var(--saffron), transparent);
  margin: 15px auto 0;
  border-radius: 2px;
  position: relative;
}

.section-header .accent-line::after {
  content: '☸';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-cream);
  color: var(--gold);
  padding: 0 8px;
  font-size: 14px;
}

.section-dark .section-header .accent-line::after {
  background: var(--maroon-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--saffron);
  color: var(--text-white);
  border: 1px solid var(--saffron);
}

.btn-primary:hover {
  background-color: var(--saffron-hover);
  border-color: var(--saffron-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(214, 90, 49, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
}

.section-dark .btn-outline {
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline:hover {
  background-color: var(--maroon);
  color: var(--text-white);
  transform: translateY(-2px);
}

.section-dark .btn-outline:hover {
  background-color: var(--gold);
  color: var(--maroon-dark);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--maroon-dark);
  border: 1px solid var(--gold);
}

.btn-gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Top bar styles */
.top-bar {
  height: var(--top-bar-height);
  background-color: var(--maroon-dark);
  color: var(--text-light);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-bar-info {
  display: flex;
  gap: 24px;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-info i {
  color: var(--gold);
}

.top-bar-timing {
  background-color: var(--saffron);
  color: var(--text-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

/* Navbar styles */
.header {
  position: fixed;
  top: var(--top-bar-height);
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  top: 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-area img {
  height: 60px;
  width: auto;
  border-radius: 50%;
  border: 2px solid var(--gold);
  transition: var(--transition-smooth);
}

.header.scrolled .logo-area img {
  height: 52px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.35rem;
  color: var(--maroon);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.header.scrolled .logo-title {
  color: var(--maroon);
}

.logo-subtitle {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--saffron);
  text-transform: uppercase;
  font-weight: 600;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--text-dark);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--saffron);
  transition: var(--transition-fast);
}

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

.nav-link:hover {
  color: var(--saffron);
}

.nav-link.active {
  color: var(--saffron);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--maroon);
  border-radius: 2px;
  position: absolute;
  transition: var(--transition-smooth);
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 8px; }
.mobile-toggle span:nth-child(3) { top: 16px; }

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  height: 90vh;
  position: relative;
  background-image: linear-gradient(to right, rgba(43, 5, 11, 0.85), rgba(43, 5, 11, 0.45)), url('assets/hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: var(--text-light);
  overflow: hidden;
  padding-top: 60px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, var(--bg-cream), transparent);
  pointer-events: none;
}

.hero-content {
  max-width: 750px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s forwards 0.2s;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-subtitle::after {
  content: '';
  width: 40px;
  height: 2px;
  background-color: var(--gold);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title span {
  color: var(--gold-light);
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 246, 238, 0.85);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Floating Diya animation in background */
.hero-deco {
  position: absolute;
  right: 5%;
  bottom: 15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatDeco 6s ease-in-out infinite;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-content {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.about-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-lead {
  font-size: 1.15rem;
  color: var(--maroon);
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 35px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-feature-item i {
  color: var(--saffron);
  font-size: 1.2rem;
  background-color: rgba(214, 90, 49, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature-item span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.about-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

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

.about-img-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--text-white);
  z-index: 2;
}

.about-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.about-img-wrapper:hover img {
  transform: scale(1.05);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px dashed var(--gold);
  border-radius: 8px;
  z-index: 1;
  pointer-events: none;
}

/* Temple Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  width: 100%;
}

.pillar-card {
  background-color: var(--text-white);
  border-radius: 8px;
  padding: 30px 25px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
}

.pillar-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(214, 90, 49, 0.2);
}

.pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: rgba(74, 14, 23, 0.05);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon {
  background-color: var(--saffron);
  color: var(--text-white);
  box-shadow: 0 5px 15px rgba(214, 90, 49, 0.2);
}

.pillar-title {
  font-size: 1.25rem;
  color: var(--maroon);
  margin-bottom: 12px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

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

/* ==========================================================================
   Deities Showcase
   ========================================================================== */
.deities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.deity-card {
  background-color: var(--text-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
}

.deity-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.deity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.4);
}

.deity-image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 110%; /* 10:11 aspect ratio */
  overflow: hidden;
  background-color: var(--maroon-dark);
}

.deity-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.deity-card:hover .deity-image-wrapper img {
  transform: scale(1.06);
}

.deity-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: radial-gradient(circle at center, var(--gold-glow) 0%, transparent 60%);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.deity-card:hover::after {
  opacity: 1;
}

.deity-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 2;
  background-color: var(--text-white);
}

.deity-name {
  font-size: 1.4rem;
  color: var(--maroon);
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.deity-card:hover .deity-name {
  color: var(--saffron);
}

.deity-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deity-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.deity-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--saffron);
  font-weight: 700;
  letter-spacing: 1px;
}

.deity-btn {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--maroon);
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deity-btn i {
  font-size: 0.7rem;
  transition: var(--transition-fast);
}

.deity-btn:hover {
  color: var(--saffron);
}

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

/* ==========================================================================
   Temple Timings
   ========================================================================== */
.timing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: stretch;
}

.timing-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.timing-card:hover {
  border-color: var(--gold);
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.timing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--saffron);
}

.timing-card.weekend::before {
  background: var(--gold);
}

.timing-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.timing-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(214, 90, 49, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saffron);
  font-size: 1.4rem;
}

.timing-card.weekend .timing-icon {
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

.timing-title {
  font-size: 1.6rem;
  color: var(--text-white);
}

.timing-list {
  list-style: none;
}

.timing-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 246, 238, 0.08);
}

.timing-item:last-child {
  border-bottom: none;
}

.timing-label {
  font-weight: 500;
  color: rgba(255, 246, 238, 0.7);
}

.timing-val {
  font-weight: 600;
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Regular Aarti Schedule Banner */
.aarti-schedule-banner {
  margin-top: 50px;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-light) 100%);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.aarti-banner-title {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.aarti-banner-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.aarti-banner-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aarti-banner-item i {
  color: var(--gold);
  font-size: 1.1rem;
}

.aarti-banner-item span {
  font-weight: 600;
  color: var(--text-light);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--text-white);
  border-radius: 8px;
  padding: 35px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(214, 90, 49, 0.25);
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background-color: rgba(74, 14, 23, 0.05);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--saffron);
  color: var(--text-white);
  box-shadow: 0 8px 20px rgba(214, 90, 49, 0.25);
}

.service-title {
  font-size: 1.35rem;
  color: var(--maroon);
  margin-bottom: 12px;
}

.service-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--saffron);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-link i {
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.service-card:hover .service-link i {
  transform: translateX(4px);
}

/* ==========================================================================
   Donations / Bank Details Section
   ========================================================================== */
.donation-box {
  background: var(--text-white);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.donation-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.donation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.donation-info-side h3 {
  font-size: 1.6rem;
  color: var(--maroon);
  margin-bottom: 15px;
}

.donation-info-side p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.bank-details-card {
  background-color: var(--bg-cream-dark);
  border-radius: 8px;
  border: 1px dashed var(--gold);
  padding: 24px;
}

.bank-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(74, 14, 23, 0.05);
}

.bank-detail-row:last-child {
  border-bottom: none;
}

.bank-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}

.bank-val-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-val {
  font-weight: 700;
  color: var(--maroon);
  font-size: 1rem;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--saffron);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
}

.btn-copy:hover {
  color: var(--saffron-hover);
  transform: scale(1.1);
}

.btn-copy.copied {
  color: #2e7d32;
}

/* ==========================================================================
   Booking & Contact Section
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
}

.contact-container.no-form {
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-container.no-form .contact-info-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .contact-container.no-form .contact-info-panel {
    grid-template-columns: 1fr;
  }
}

.contact-form-card {
  background-color: var(--text-white);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  padding: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.contact-form-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-tabs {
  display: flex;
  border-bottom: 2px solid var(--bg-cream-dark);
  margin-bottom: 30px;
}

.form-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  background: none;
  border: none;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.form-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--saffron);
  transition: var(--transition-fast);
}

.form-tab.active {
  color: var(--saffron);
}

.form-tab.active::after {
  width: 100%;
}

.form-pane {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.form-pane.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-cream);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--saffron);
  background-color: var(--text-white);
  box-shadow: 0 0 0 3px rgba(214, 90, 49, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-success-msg {
  display: none;
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.3s ease-out;
}

.form-success-msg i {
  font-size: 1.2rem;
}

/* Info Side Panel */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.contact-info-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.info-card {
  background-color: var(--text-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.2);
}

.info-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(74, 14, 23, 0.06);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-details h4 {
  font-size: 1.15rem;
  color: var(--maroon);
  margin-bottom: 6px;
}

.info-details p, .info-details span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-details .hours-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px 16px;
  margin-top: 8px;
}

.info-details .hours-day {
  font-weight: 600;
  color: var(--text-dark);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(43, 5, 11, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: var(--bg-cream);
  width: 90%;
  max-width: 650px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold);
  transform: scale(0.9);
  transition: var(--transition-smooth);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  font-size: 1.1rem;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--saffron);
  color: var(--text-white);
  transform: rotate(90deg);
}

.modal-body {
  padding: 40px;
}

.modal-deity-header {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.modal-deity-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.modal-deity-title h3 {
  font-size: 1.8rem;
  color: var(--maroon);
}

.modal-deity-title span {
  font-size: 0.85rem;
  color: var(--saffron);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.modal-section-title {
  font-size: 1rem;
  color: var(--maroon);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.modal-section-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background-color: var(--border-light);
}

.modal-deity-mantra {
  background-color: var(--bg-cream-dark);
  border: 1px dashed var(--gold);
  border-radius: 6px;
  padding: 20px;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--maroon-light);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-deity-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--maroon-dark);
  color: var(--text-light);
  padding: 80px 0 30px;
  border-top: 3px solid var(--gold);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-about img {
  height: 65px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin-bottom: 20px;
}

.footer-about-text {
  color: rgba(255, 246, 238, 0.7);
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-title {
  color: var(--gold-light);
  font-size: 1.25rem;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--gold);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 246, 238, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  color: rgba(255, 246, 238, 0.75);
}

.footer-contact-list i {
  color: var(--gold);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 246, 238, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: rgba(255, 246, 238, 0.5);
}

.footer-credit {
  color: rgba(255, 246, 238, 0.5);
}

.footer-credit a {
  color: var(--gold);
}

.footer-credit a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--saffron);
  color: var(--text-white);
  transform: translateY(-3px);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 90, 49, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(214, 90, 49, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214, 90, 49, 0);
  }
}

@keyframes floatDeco {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Page Header for Subpages
   ========================================================================== */
.page-header {
  padding: 65px 0;
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 100%);
  color: var(--text-light);
  text-align: center;
  border-bottom: 2px solid var(--gold);
  margin-top: calc(var(--header-height) + var(--top-bar-height));
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 246, 238, 0.7);
}

.breadcrumb a {
  color: var(--gold);
}

.breadcrumb a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: rgba(255, 246, 238, 0.4);
}

/* ==========================================================================
   Navigation Dropdown
   ========================================================================== */
.nav-item.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background-color: var(--text-white);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  border-radius: 6px;
  min-width: 230px;
  padding: 10px 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1000;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background-color: var(--text-white);
  border-left: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: none;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  text-align: left;
}

.dropdown-menu a:hover {
  background-color: var(--bg-cream-dark);
  color: var(--saffron);
  padding-left: 24px;
}

.dropdown-toggle i {
  transition: var(--transition-fast);
}

.nav-item.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

@media (min-width: 769px) {
  .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
  }
}

/* ==========================================================================
   Deity Detail Page Layout
   ========================================================================== */
.deity-detail-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: flex-start;
}

.deity-detail-image-box {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--text-white);
}

.deity-detail-image-box img {
  width: 100%;
  height: auto;
  display: block;
}

.deity-mantra-box {
  margin-top: 30px;
  background: linear-gradient(135deg, var(--bg-cream-dark) 0%, var(--bg-cream) 100%);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.deity-mantra-box h4 {
  font-family: 'Cinzel', serif;
  color: var(--maroon);
  font-size: 1.1rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.deity-mantra-text {
  font-style: italic;
  font-size: 1.25rem;
  color: var(--maroon-light);
  line-height: 1.6;
  font-weight: 600;
}

.deity-detail-info h2 {
  font-size: 2.4rem;
  color: var(--maroon);
  margin-bottom: 8px;
  line-height: 1.2;
}

.deity-detail-info h2 span {
  font-size: 0.95rem;
  color: var(--saffron);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.deity-detail-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.deity-detail-info ul {
  list-style: none;
  margin-bottom: 30px;
  background-color: var(--text-white);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  padding: 10px 24px;
}

.deity-detail-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--text-dark);
}

.deity-detail-info li:last-child {
  border-bottom: none;
}

.deity-detail-info li i {
  color: var(--saffron);
}

.deity-detail-info li strong {
  color: var(--maroon);
  min-width: 140px;
  display: inline-block;
}

.deity-nav-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  margin-top: 60px;
  padding-top: 30px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .deities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --top-bar-height: 0px; /* Hide top bar on mobile to save space */
  }
  
  .top-bar {
    display: none;
  }
  
  .header {
    top: 0;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 80%;
    height: calc(100vh - var(--header-height));
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 30px;
    gap: 24px;
    transition: var(--transition-smooth);
    border-right: 1px solid var(--glass-border);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1rem;
    width: 100%;
  }

  /* Mobile Dropdown Menu Adjustments */
  .nav-item.dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: rgba(74, 14, 23, 0.03);
    min-width: 0;
    width: 100%;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    pointer-events: all;
    transition: max-height 0.4s ease-out;
  }
  
  .dropdown-menu::before {
    display: none;
  }

  .dropdown-menu.active {
    max-height: 500px;
    padding: 8px 0;
    margin-top: 8px;
    border-left: 2px solid var(--saffron);
  }

  .dropdown-menu a {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .deity-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-header {
    padding: 45px 0;
  }

  .page-header h1 {
    font-size: 1.7rem;
  }
  
  .hero {
    height: 80vh;
    padding-top: 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-text {
    font-size: 1rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 35px;
  }
  
  .about-image {
    order: -1; /* Image first on mobile */
  }
  
  .timing-grid {
    grid-template-columns: 1fr;
  }
  
  .donation-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 580px) {
  .deities-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Modal Responsiveness */
  .modal-body {
    padding: 24px 20px;
  }
  .modal-deity-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding-bottom: 15px;
  }
  .modal-deity-title h3 {
    font-size: 1.5rem;
  }
  .modal-deity-mantra {
    padding: 15px;
    font-size: 0.95rem;
  }
  .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* Deity Extended Details Styles */
.deity-extended-content {
  margin-top: 50px;
  border-top: 1px solid rgba(74, 14, 23, 0.08);
  padding-top: 40px;
}

.deity-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-bottom: 40px;
}

.deity-rituals-box {
  background-color: var(--bg-cream-dark);
  border-radius: 8px;
  padding: 25px;
  border: 1px solid var(--border-light);
}

.deity-chants-box {
  background-color: var(--text-white);
  border-radius: 8px;
  border: 1px dashed var(--gold);
  padding: 30px;
  margin-bottom: 40px;
}

.deity-chants-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.deity-chants-sanskrit {
  text-align: center;
  border-right: 1px solid rgba(74, 14, 23, 0.08);
  padding-right: 15px;
}

.deity-chants-english {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Responsiveness for Deity Extended Sections */
@media (max-width: 768px) {
  .deity-info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .deity-chants-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .deity-chants-sanskrit {
    border-right: none;
    border-bottom: 1px solid rgba(74, 14, 23, 0.08);
    padding-right: 0;
    padding-bottom: 20px;
  }
}

/* Deity FAQ Styles */
.deity-faq-section {
  margin-top: 50px;
  margin-bottom: 50px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background-color: var(--text-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.faq-item[open] {
  border-color: rgba(214, 90, 49, 0.2);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 18px 24px;
  font-weight: 700;
  color: var(--maroon);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.faq-question:hover {
  color: var(--saffron);
  background-color: rgba(74, 14, 23, 0.01);
}

/* Custom indicator arrow */
.faq-question::after {
  content: '\f078'; /* FontAwesome angle-down */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--saffron);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}

/* Hide default summary arrow marker */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 24px 20px 24px;
  border-top: 1px solid rgba(74, 14, 23, 0.05);
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 15px 0 0 0;
}
