/* --- GLOBAL VARIABLES --- */
:root {
  /* Z-Index Layering System */
  --z-header: 1000;
  --z-overlay: 2000;
  --z-mobile-menu: 3000;
  --z-mobile-toggle: 4000;
  --z-modal: 5000;
  --z-toast: 9999;
  
  /* Colors */
  --bg-color: #FFFDD0;
  --temple-maroon: #800000;
  --temple-saffron: #FF9933;
}

/* --- GLOBAL STYLES --- */
body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Lato', 'Open Sans', sans-serif;
  color: #333;
  width: 100%;
  height: 100%;
  background: var(--bg-color); 
}

* { box-sizing: border-box; }
html { 
    height: 100%; 
    width: 100%; 
    scroll-behavior: smooth; /* Native smooth scrolling */
}

h1, h2, h3 {
  font-family: 'Cinzel', 'Playfair Display', serif;
  margin: 0;
}

/* --- LIVE STATUS INDICATOR STYLES --- */
.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.status-open {
  background-color: #00e676; /* Bright Green */
  box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  animation: pulse-green 2s infinite;
}
.status-closed {
  background-color: #ff5252; /* Red */
  opacity: 0.8;
}
@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}
.status-text {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px; 
    letter-spacing: 0.5px;
    margin-right: 8px;
}

/* --- NAVIGATION MODAL STYLES --- */
.nav-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
 
.nav-modal {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 350px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 2px solid var(--temple-saffron);
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease;
}
 
.nav-modal h3 {
    color: var(--temple-maroon);
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
 
.nav-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #ddd;
}
 
.nav-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
 
.nav-google { background: #fff; color: #4285F4; border-color: #4285F4; }
.nav-waze { background: #fff; color: #33ccff; border-color: #33ccff; }
.nav-apple { background: #fff; color: #000; border-color: #000; }
 
.nav-close-btn {
    margin-top: 10px;
    background: #eee;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
}
.nav-close-btn:hover { background: #ddd; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MASTER HEADER WRAPPER (FIXED & NO GAPS) --- */
#master-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  transition: transform 0.3s ease-in-out; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column; 
  background-color: var(--temple-maroon); 
}

/* The Class to Hide Header */
#master-header.header-hidden {
  transform: translateY(-100%);
}

/* Spacer Fallback */
.header-spacer {
    height: 110px; /* Fallback height */
    display: block; 
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  width: 100%;
  background: var(--temple-maroon); 
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0; 
}

.nav-menu-bar {
  position: relative; 
  width: 100%;
  background: linear-gradient(135deg, #800000 0%, #a00000 100%);
  z-index: 900;
  padding: 0;
  border-bottom: 3px solid var(--temple-saffron);
  min-height: 60px; 
  margin: 0; 
}

/* --- LAYOUT SPLIT (75% / 25%) --- */
.hero-panch-split {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    background: #000; /* Match Hero Background */
}

/* 75% Hero */
.hero-panch-split .hero-section {
    width: 75%;
    flex: 0 0 75%;
    position: relative;
    overflow: hidden;
    min-height: 240px; 
    z-index: 1;
}

/* 25% Panchangam */
.hero-panch-split .panchangam-wrapper {
    width: 25%;
    flex: 0 0 25%;
    padding: 0; 
    background: linear-gradient(to bottom, #FFFDD0 0%, #fffbf5 100%);
    border-left: 2px solid var(--temple-maroon); 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- PANCHANGAM WIDGET STYLES --- */
:root {
  --panch-bg: #ffffff;
  --panch-border: #e0e0e0;
  --panch-accent: #fff8e1; /* Light yellow */
  --panch-highlight: #b71c1c; /* Red text */
}

.widget-container {
  width: 95%; /* Responsive fit for 25% column */
  max-width: 350px; 
  background: var(--panch-bg);
  border: 1px solid var(--panch-border);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  position: relative; 
  min-height: 300px;
  margin: 20px auto; /* Centering */
}

/* 1. HEADER SECTION */
.main-header {
  background: var(--temple-maroon);
  color: #fff;
  padding: 15px 10px;
  text-align: center;
}
 
/* Title Card */
.widget-title {
  font-size: 0.95rem; 
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.2); 
  color: #ffd700; 
}

/* Day and Date */
.header-main-line { 
  font-size: 1.2rem; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
  color: #fff;
}

/* Meta: Year, Ritu, Ayana */
.header-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px; 
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.meta-part { white-space: nowrap; }
.m-lbl { opacity: 0.7; margin-right: 3px; font-size: 0.75rem; text-transform: uppercase; }

/* 2. SUN ROW */
.sun-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 18px;
  background: var(--panch-accent);
  border-bottom: 1px solid var(--panch-border);
  font-weight: 600;
  font-size: 11px;
  color: #555;
}

/* 3. DATA GRID */
.data-grid {
  display: grid;
  grid-template-columns: max-content 1fr; 
  border-bottom: 1px solid var(--panch-border);
  padding-bottom: 5px; 
}
 
.grid-row { display: contents; }

.label {
  background: #fcfcfc;
  color: var(--temple-maroon);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  padding: 9px 14px; 
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  display: flex;
  align-items: center; 
}

.value {
  padding: 9px 14px;
  color: #333;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  word-break: break-word; 
}

.highlight-row .value { color: var(--panch-highlight); font-weight: 600; }

/* 4. OVERLAY BUTTONS (MODIFIED: TRANSPARENT) */
.nav-btn-overlay {
  position: absolute;
  top: 58%; 
  transform: translateY(-50%);
  width: 40px; 
  height: 40px;
  border-radius: 50%;
  background: transparent; 
  border: none; 
  color: var(--temple-maroon); 
  font-size: 24px; 
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none; 
  z-index: 100;
  transition: all 0.2s;
}

.nav-btn-overlay:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.05); 
  transform: translateY(-50%) scale(1.1);
  box-shadow: none;
}

.nav-btn-overlay:disabled {
  opacity: 0.2;
  cursor: default;
  color: #999;
}

.prev-btn { left: 5px; }
.next-btn { right: 5px; }

.status-msg { padding: 20px; text-align: center; color: #888; font-style: italic; }

/* --- HEADER CONTENTS --- */

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.temple-logo {
  width: 85px; 
  height: 85px; 
  object-fit: contain;
  flex-shrink: 0;
}

.temple-name-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-logo {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 28px; 
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
  white-space: nowrap;
}

.temple-hours {
  font-size: 14px; 
  color: #FFFDD0;
  line-height: 1.3;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.temple-hours strong { color: var(--temple-saffron); font-weight: 600; }

.temple-contact {
  font-size: 14px; 
  color: #FFFDD0;
  line-height: 1.4;
  margin: 4px 0 0 0;
}

.header-info {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  position: relative; 
}

/* Devotee Portal Button */
.devotee-portal-btn {
  background: linear-gradient(135deg, #FF9933 0%, #ff8000 100%);
  color: #FFFFFF;
  border: none;
  height: 45px; 
  min-width: 160px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(255, 153, 51, 0.4);
  transition: all 0.3s ease;
  font-family: 'Cinzel', serif;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.devotee-portal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 153, 51, 0.6);
  background: linear-gradient(135deg, #ff8000 0%, #FF9933 100%);
}

/* Elfsight Container Alignment */
.elfsight-app-5286ee71-cb24-46f4-b104-c59d067a8846 {
    display: inline-block;
    vertical-align: middle;
    min-width: 160px;
    height: 45px;
}

.nav-menu-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  height: 60px;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  color: #FFFDD0;
  text-decoration: none;
  font-size: 17px; 
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Lato', sans-serif;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav-link:hover {
  background: linear-gradient(135deg, #FF9933 0%, #ff8000 100%);
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  min-width: 240px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 10px 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
  border: 2px solid var(--temple-saffron);
  border-top: none;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 14px 24px;
  color: var(--temple-maroon);
  text-decoration: none;
  font-size: 16px; 
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
}

.dropdown-link:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.dropdown-link::before {
  content: '▸';
  position: absolute;
  left: 10px;
  opacity: 0;
  transition: all 0.2s ease;
  color: var(--temple-saffron);
}

.dropdown-link:hover {
  background: linear-gradient(90deg, #FFF5E6 0%, #FFFFFF 100%);
  color: var(--temple-saffron);
  padding-left: 32px;
}

.dropdown-link:hover::before {
  opacity: 1;
  left: 16px;
}

.section-title {
  font-size: 40px;
  color: var(--temple-maroon);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #FF9933 0%, #800000 100%);
  border-radius: 2px;
}

/* --- SECTIONS --- */
.services-section, 
.calendar-section, 
.gallery-section, 
.donation-section {
  background: linear-gradient(90deg, #FFFDD0 0%, #FFFFFF 100%);
  padding: 60px 20px;
  width: 100%;
}

.services-container, .calendar-container, .gallery-container, .donation-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- NEW SERVICE CARD DESIGN (VERTICAL TABS) - PREMIUM STYLE --- */
.vertical-tabs-container {
    display: flex;
    background: #FFFFFF;
    border-radius: 12px;
    /* Deep shadow for a "floating" effect */
    box-shadow: 0 15px 35px rgba(128, 0, 0, 0.1); 
    border: 1px solid #e0cdb0; /* Light gold border */
    overflow: hidden;
    min-height: 550px; /* Increased height for breathing room */
}

/* LEFT SIDE: Menu */
.v-tab-menu {
    width: 32%; /* Slightly wider for better text fit */
    background: #fff8e6; /* Richer Cream background */
    border-right: 1px solid #e0cdb0;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

/* Menu Buttons */
.v-tab-link {
    background: transparent;
    border: none;
    border-left: 5px solid transparent; /* Invisible border for hover effect */
    text-align: left;
    padding: 20px 25px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
    position: relative;
    margin-bottom: 2px;
    display: block; 
}

/* Hover State */
.v-tab-link:hover {
    background-color: #ffe0b2; /* Light Orange */
    color: var(--temple-maroon);
    border-left: 5px solid var(--temple-saffron); 
}

/* Active Menu Item (The one selected) */
.v-tab-link.active {
    background: linear-gradient(90deg, #800000 0%, #a00000 100%); /* Temple Maroon Gradient */
    color: #FFFFFF; /* White Text */
    font-weight: 700;
    border-left: 5px solid #FFD700; /* Gold indicator */
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}
 
/* Small arrow indicator for active item */
.v-tab-link.active::after {
    content: "";
    position: absolute;
    right: -8px; 
    top: 50%;
    transform: translateY(-50%);
    width: 0; 
    height: 0; 
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--temple-maroon);
    z-index: 10;
}

/* RIGHT SIDE: Content Area */
.v-tab-content-area {
    width: 68%;
    padding: 50px;
    background: #fff;
    background-image: radial-gradient(#fff8e1 1px, transparent 1px);
    background-size: 20px 20px; /* Subtle pattern */
}

/* Panels */
.v-tab-pane {
    display: none; 
    animation: fadeSlide 0.4s ease;
    
    /* --- FIX: Sticky Header Scroll Margin --- */
    scroll-margin-top: 180px; 
}
 
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.v-tab-pane.active {
    display: block; 
}

/* KEEPING ORIGINAL CARD CONTENT STYLES */
.v-tab-pane h3 {
    font-size: 32px; 
    color: var(--temple-maroon);
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 2px solid var(--temple-saffron); 
    padding-bottom: 10px;
    display: inline-block;
}

.v-tab-pane .subtitle {
    font-size: 13px;
    color: #d84315; /* Deep Orange */
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
}

.v-tab-pane p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 12px 0;
}
 
/* Custom List Styling */
.v-tab-pane ul {
    list-style: none; /* Remove default dots */
    padding-left: 0;
    margin: 20px 0;
}
 
.v-tab-pane li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #555;
    font-size: 15px;
}
 
/* Custom Bullet Point (Saffron Dot) */
.v-tab-pane li::before {
    content: "•";
    color: var(--temple-saffron);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -4px;
}

.price-tag {
    background: linear-gradient(135deg, #FF9933 0%, #ff8000 100%);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    display: inline-block;
    margin: 8px 4px 8px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.service-button {
    background: var(--temple-maroon);
    color: #FFFFFF;
    border: none;
    padding: 14px 35px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 50px; /* Pill shape button */
    margin-top: 25px;
    transition: all 0.3s ease;
    width: auto;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
}

.service-button:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.4);
}

/* RESTORED DONATION SECTION STYLES */
.donation-section { text-align: center; }

.donation-section h2 {
  font-size: 44px;
  color: var(--temple-maroon);
  margin-bottom: 25px;
  font-weight: 700;
  text-shadow: none;
}

.donation-section p {
  font-size: 18px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 35px;
}

.donation-projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.project-tag {
  background: #FFFFFF;
  color: var(--temple-maroon);
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

.project-tag.highlight {
  border: 2px solid #FFD700;
  background: #fff8e1;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.donate-button {
  background: var(--temple-maroon);
  color: #FFFFFF;
  border: none;
  padding: 20px 60px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(128, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-family: 'Cinzel', serif;
}

.donate-button:hover {
  transform: translateY(-3px);
  background: #a00000;
  box-shadow: 0 8px 25px rgba(128, 0, 0, 0.4);
}

/* Footer */
.footer {
  background: var(--temple-maroon);
  color: #FFFDD0;
  padding: 30px 20px;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.footer p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.6;
}

.footer strong { color: #FFFFFF; font-weight: 600; }

/* --- BACK TO TOP BUTTON STYLES --- */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 25px; /* Positioned on the right */
  background: var(--temple-maroon); 
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--temple-saffron); 
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: var(--z-toast); 
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--temple-saffron);
  border-color: var(--temple-maroon);
  transform: translateY(-5px);
}

/* --- MOBILE MENU TOGGLE --- */
.mobile-menu-toggle {
  display: none; /* Default hidden on desktop */
}

/* Menu icon spans */
.menu-icon {
  width: 26px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background: #FFFFFF;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Active State for Icon Animation (Turns to X) */
.mobile-menu-toggle.active .menu-icon span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.mobile-menu-toggle.active .menu-icon span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .menu-icon span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }


/* Responsive Design & Mobile Optimizations */
@media (max-width: 992px) { /* Breakpoint for Layout Split */
    .hero-panch-split {
        flex-direction: column;
    }
    .hero-panch-split .hero-section {
        width: 100%;
        flex: 0 0 100%;
    }
    .hero-panch-split .panchangam-wrapper {
        width: 100%;
        flex: 0 0 100%;
        padding: 30px 0; 
        border-left: none;
        border-bottom: 1px solid #e0cdb0;
    }
}

@media (max-width: 768px) {
  body { padding-top: 0; }

  /* 1. COMPACT HEADER CONTAINER */
  .site-header {
    padding: 5px 10px;  /* Reduced padding to remove blank space */
    padding-bottom: 5px; /* Force minimal bottom padding */
    flex-direction: column;
    gap: 0px;           /* Reduced gap */
    position: relative;
    min-height: auto;   /* Allow auto height to prevent large white space */
  }

  /* FIX: COLLAPSE THE NAV BAR CONTAINER ON MOBILE to 0px */
  /* This removes the large empty maroon space below the buttons */
  .nav-menu-bar { 
      position: static; 
      width: 100%; 
      margin: 0; 
      min-height: 0;    /* OVERRIDE GLOBAL 60px */
      height: 0;        /* Force 0 height */
      padding: 0; 
      border: none;
  }

  /* FIX: Make sure spacer matches smaller header height */
  .header-spacer { 
      display: block; 
      height: 110px; /* Reduced fallback height */
  }

  /* --- MOBILE MENU TOGGLE FIXED POSITION --- */
  #master-header .mobile-menu-toggle {
    display: flex; 
    position: fixed; 
    top: 10px;      /* Adjusted top to match compact header */
    right: 15px;    /* Adjusted right */
    z-index: var(--z-mobile-toggle); 
    cursor: pointer;
    background: linear-gradient(135deg, #FF9933 0%, #ff8000 100%);
    border: 2px solid #fff;
    padding: 8px;   /* Smaller padding */
    border-radius: 8px;
    width: 42px;    /* Smaller toggle button */
    height: 42px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.4);
  }

  /* 2. HEADER LEFT CONTENT (Logo + Text) */
  .header-left {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px; /* Minimal gap */
  }

  .temple-logo { 
    width: 40px;    /* Smaller logo to save space */
    height: 40px; 
  } 

  .temple-name-section { 
    width: 100%; 
    align-items: center; 
  }

  .site-logo { 
    font-size: 18px;    /* Smaller font */
    white-space: normal; 
    text-align: center;
    line-height: 1.1; 
    margin-bottom: 2px;
  } 

  /* --- UPDATED FONT SIZE HERE --- */
  .temple-hours, .temple-contact {
    font-size: 13px;    /* INCREASED from 11px to 13px */
    text-align: center; 
    white-space: normal; 
    justify-content: center;
    line-height: 1.4;   /* Slight increase for readability */
    margin: 2px 0;      /* Add slight breathing room */
  } 
  
  .temple-contact {
    display: none; /* Hide address on mobile header to save space, user can find in footer/contact */
  }

  /* 3. SIDE-BY-SIDE BUTTONS (Row Layout) */
  .header-info { 
    width: 100%; 
    justify-content: center; 
    gap: 8px;           /* Horizontal gap between buttons */
    margin-top: 4px; 
    flex-direction: row; /* Force side-by-side */
    flex-wrap: nowrap;
    align-items: center;
  }

  .devotee-portal-btn { 
    height: 32px;       /* Smaller Button */
    padding: 0 12px; 
    font-size: 10px; 
    min-width: auto; 
    letter-spacing: 0.5px;
  }
  
  /* Elfsight Widget Size Override */
  .elfsight-app-5286ee71-cb24-46f4-b104-c59d067a8846 {
    height: 32px !important;    /* Match Devotee button */
    min-width: 100px !important;
    transform: scale(0.95);
    display: flex;
    align-items: center;
  }
  
  /* --- FIX: 80% SCREEN OVERLAY MENU --- */
  .nav-menu-container {
    position: fixed;
    top: 0;
    right: 0;     /* Align to Right */
    left: auto;   /* Remove Left alignment */
    width: 80%;   /* Reduced Width */
    max-width: 300px; /* Cap width at 300px */
    height: 100dvh; /* Dynamic Viewport Height */
    background-color: rgba(128, 0, 0, 0.98); 
    z-index: var(--z-mobile-menu); 
    flex-direction: column;
    justify-content: flex-start; 
    padding-top: 80px; 
    overflow-y: auto;
    
    /* Animation Logic */
    transform: translateX(100%); /* Slide out to right */
    will-change: transform; /* Performance fix */
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    
    display: flex;
    align-items: stretch;
  }
  
  .nav-menu-container.active {
    transform: translateX(0); /* Slide in */
    margin-top: 0;
    border-top: none;
  }
  
  .nav-item { 
      width: 100%; 
      flex-direction: column; 
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .nav-menu-container.active .nav-item {
      opacity: 1;
      transform: translateY(0);
  }
  
  .nav-link {
    width: 100%;
    padding: 12px; /* Reduced from 20px */
    font-size: 16px; /* Reduced from 20px */
    height: auto;
    justify-content: center; /* Center text */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFDD0;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    min-width: 100%;
    border-radius: 0;
    background: rgba(255,255,255,0.1); /* Slightly transparent white for submenus */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
  }

  .dropdown-menu.mobile-open {
    display: block !important;
    max-height: 1000px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  
  .dropdown-link { 
      padding: 10px 30px; /* Reduced from 15px */
      font-size: 15px; /* Reduced from 18px */
      color: #FFFDD0; /* Light text on dark bg */
      text-align: center;
      border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .dropdown-link:hover {
      background: rgba(255, 153, 51, 0.2);
      color: var(--temple-saffron);
      padding-left: 30px; /* Reset padding shift */
  }

  .section-title { font-size: 28px; margin-bottom: 30px; }
  
  .donation-section h2 { font-size: 24px; }
  .project-tag { font-size: 13px; padding: 8px 16px; }
  .donate-button { padding: 15px 30px; font-size: 16px; width: 100%; }
  
  /* Vertical Tabs Mobile Adjustments */
  .vertical-tabs-container {
      flex-direction: column; 
      min-height: auto;
  }
  
  .v-tab-menu {
      width: 100%;
      flex-direction: row; 
      flex-wrap: wrap; /* KEY: WRAP TO MULTIPLE ROWS */
      overflow-x: visible; 
      padding: 15px 10px;
      gap: 8px; 
      background: #fffbf5;
      border-right: none;
      border-bottom: 1px solid #e0cdb0;
      white-space: normal; 
      justify-content: center; 
  }
  
  .v-tab-link {
      flex: 0 0 auto; 
      border: 1px solid #e0cdb0; 
      border-radius: 25px; /* Pill/Chip Shape */
      padding: 8px 16px;
      margin: 0;
      font-size: 13px;
      background: #ffffff;
      color: var(--temple-maroon);
      box-shadow: 0 2px 4px rgba(0,0,0,0.05);
      text-align: center;
  }
  
  .v-tab-link.active {
      background: linear-gradient(135deg, #800000 0%, #a00000 100%);
      color: #ffffff;
      border: 1px solid #800000;
      box-shadow: 0 4px 8px rgba(128,0,0,0.3);
  }
  
  .v-tab-link.active::after { display: none; } 
  
  .v-tab-content-area {
      width: 100%;
      padding: 30px 20px;
  }
  
  /* FIX: Increase footer padding so floating buttons don't cover text */
  .footer {
      padding-bottom: 100px; 
  }
}

/* --- DECORATIVE QUOTE OF THE DAY --- */
.quote-row {
  position: relative;
  background: linear-gradient(to bottom, #fffcf5 0%, #fff0db 100%); /* Soft Cream Gradient */
  border-top: 2px solid var(--temple-saffron); 
  padding: 15px 15px 20px 15px;
  text-align: center;
  margin-top: auto;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: inset 0 10px 20px rgba(255, 153, 51, 0.05); /* Inner Glow */
}

/* The "Daily Wisdom" Label */
.quote-label {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d84315; /* Deep Orange */
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Decorative lines around the label */
.quote-label::before, .quote-label::after {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  background-color: var(--temple-saffron);
  opacity: 0.6;
}

/* The Quote Text */
.quote-content {
  font-family: 'Cinzel', serif; /* Sacred looking font */
  font-style: italic;
  color: var(--temple-maroon); 
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* Large Background Quote Mark for Style */
.quote-content::before {
  content: "🕉"; /* Sacred Om Symbol as decoration */
  font-size: 40px;
  color: rgba(255, 153, 51, 0.1); /* Very faint orange */
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  font-family: sans-serif;
}

/* --- INTERNAL SEARCH STYLES --- */
.search-nav-item {
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: relative; /* Essential for dropdown positioning */
}

.internal-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 2px 6px;
    border: 1px solid rgba(255, 253, 208, 0.3);
    transition: all 0.3s ease;
}

.internal-search-wrapper:hover, 
.internal-search-wrapper:focus-within {
    background: #FFFFFF;
    border-color: var(--temple-saffron);
}

#internalSearchInput {
    background: transparent;
    border: none;
    color: #FFFDD0;
    font-size: 14px;
    outline: none;
    width: 130px; /* Width of the box */
    font-family: 'Lato', sans-serif;
}

.internal-search-wrapper:hover #internalSearchInput,
.internal-search-wrapper:focus-within #internalSearchInput {
    color: var(--temple-maroon);
}

#internalSearchInput::placeholder {
    color: rgba(255, 253, 208, 0.7);
}

.internal-search-wrapper:hover #internalSearchInput::placeholder,
.internal-search-wrapper:focus-within #internalSearchInput::placeholder {
    color: #999;
}

#internalSearchBtn {
    background: transparent;
    border: none;
    color: var(--temple-saffron);
    cursor: default;
    padding: 2px 4px;
    font-size: 14px;
}

/* --- SEARCH RESULTS DROPDOWN --- */
.search-results-dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Right below the input */
    right: 0;
    width: 250px;
    background: #FFFFFF;
    border: 2px solid var(--temple-maroon);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-results-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-results-dropdown li {
    border-bottom: 1px solid #eee;
}

.search-results-dropdown li:last-child {
    border-bottom: none;
}

.search-results-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.search-results-dropdown a:hover {
    background: #fff8e1; /* Light cream hover */
    color: var(--temple-maroon);
    padding-left: 20px; /* Slight slide effect */
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .search-nav-item {
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }
    
    .internal-search-wrapper {
        width: 80%;
        background: rgba(255, 255, 255, 0.1);
        padding: 8px;
    }
    
    #internalSearchInput {
        width: 100%;
        font-size: 16px; /* Larger font for mobile */
        color: #FFFDD0;
    }
    
    /* On mobile, dropdown takes full width of the wrapper */
    .search-results-dropdown {
        width: 100%;
        left: 0;
        right: 0;
    }
}

/* --- GOOGLE TRANSLATE CUSTOMIZATION --- */
/* Hide the top bar from Google */
body {
    top: 0 !important;
}
.goog-te-banner-frame {
    display: none !important;
}

/* Style the Wrapper */
.translate-nav-item {
    padding: 0 10px;
    display: flex;
    align-items: center;
}

/* Customize the Dropdown Widget */
.goog-te-gadget-simple {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all 0.3s;
}

.goog-te-gadget-simple:hover {
    background-color: #FFFFFF !important;
    border-color: var(--temple-saffron) !important;
}

/* Text Colors */
.goog-te-gadget-simple span {
    color: #FFFDD0 !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: 600 !important;
}

.goog-te-gadget-simple:hover span {
    color: var(--temple-maroon) !important;
}

/* Hide extra Google icons if desired */
.goog-te-gadget-icon {
    display: none !important;
}

/* --- MOBILE ADJUSTMENT FOR TRANSLATE --- */
@media (max-width: 768px) {
    .translate-nav-item {
        justify-content: center;
        margin-top: 10px;
    }
    
    .goog-te-gadget-simple {
        background-color: rgba(255,255,255,0.1) !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
    }
}

/* --- NAVIGATION ICON BUTTON STYLES --- */
.nav-icon-btn {
  background: #FFFFFF; /* White background */
  color: #800000;      /* Maroon Icon */
  border: 2px solid #FFD700; /* Gold Border */
  width: 45px;
  height: 45px;
  border-radius: 50%; /* Perfect Circle */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  padding: 0;
  margin-right: 5px; /* Spacing before Devotee Portal button */
}

.nav-icon-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.nav-icon-btn:hover {
  background: #FFD700; /* Gold Background on hover */
  color: #800000;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* --- MOBILE ADJUSTMENTS FOR NAV ICON --- */
@media (max-width: 768px) {
  .nav-icon-btn {
    width: 32px;       /* Match Devotee Button Height */
    height: 32px;
    border-width: 1px;
    margin-right: 4px;
  }
  
  .nav-icon-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* --- 36ft ANJANEYA GLOWING EFFECT (ADDED) --- */
.nav-link[href*="36ftanjaneya.html"] {
    color: #FFD700 !important; /* Force Gold Text */
    font-weight: 800 !important; /* Make it bold */
    position: relative;
    transition: all 0.3s ease;
    
    /* The Glow Animation */
    animation: anjaneya-glow 1.5s ease-in-out infinite alternate;
}

/* Keyframes for the pulsing glow */
@keyframes anjaneya-glow {
    from {
        text-shadow: 
            0 0 4px rgba(255, 215, 0, 0.4),  /* Faint Gold */
            0 0 8px rgba(255, 153, 51, 0.2); /* Faint Saffron */
    }
    to {
        text-shadow: 
            0 0 8px rgba(255, 215, 0, 1),    /* Bright Gold */
            0 0 15px rgba(255, 153, 51, 0.8), /* Bright Saffron */
            0 0 20px rgba(255, 255, 255, 0.6); /* White outer halo */
    }
}

/* Add a sparkle effect */
.nav-link[href*="36ftanjaneya.html"]::after {
    content: ' ✨'; /* Unicode Sparkle */
    font-size: 14px;
    margin-left: 5px;
    animation: fade-sparkle 1.5s infinite alternate;
}

@keyframes fade-sparkle {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* =========================================
   PREMIUM EVENTS CARD DESIGN
   ========================================= */

/* The Grid Container */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
  gap: 30px;
  padding: 20px 10px;
  justify-content: center;
}

/* --- THE CARD WRAPPER --- */
a.event-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  
  /* Premium Border & Shadow */
  border: 1px solid #e0cdb0; /* Light Gold */
  box-shadow: 0 10px 20px rgba(128, 0, 0, 0.05); /* Faint Maroon Shadow */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
}

/* Hover Effects */
a.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(128, 0, 0, 0.15);
  border-color: #FF9933; /* Saffron Glow */
}

/* --- IMAGE AREA --- */
.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4; /* Standard Flyer Ratio */
  background: #fdfbf7; /* Warm white placeholder */
  overflow: hidden;
  border-bottom: 3px solid var(--temple-saffron);
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills space nicely */
  transition: transform 0.6s ease;
}

/* Zoom Image on Hover */
a.event-card:hover .event-image {
  transform: scale(1.1);
}

/* --- FLOATING DATE BADGE --- */
.date-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffffff;
  width: 55px;
  height: 60px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
  z-index: 10;
  border: 1px solid #eee;
}

.d-month {
  background: var(--temple-maroon);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 0;
  letter-spacing: 1px;
}

.d-day {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 800;
  color: #333;
}

/* --- TEXT CONTENT --- */
.event-content {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
  background: #fff;
}

/* Title */
.event-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--temple-maroon);
  line-height: 1.4;
  margin: 0 0 8px 0;
  
  /* Limit to 2 lines to keep cards even */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Subtitle / Time */
.event-time {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  font-weight: 500;
}

/* Action Button (Fake Button style) */
.card-action {
  margin-top: auto; /* Pushes to bottom */
  display: inline-block;
  padding: 8px 20px;
  background: #fff8e1; /* Light Cream */
  color: #d84315; /* Deep Orange */
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

a.event-card:hover .card-action {
  background: var(--temple-maroon);
  color: #fff;
  box-shadow: 0 4px 10px rgba(128, 0, 0, 0.2);
}

/* =========================================
   MOBILE OPTIMIZATIONS (2 Columns)
   ========================================= */
@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 12px !important; 
    padding: 10px !important;
  }
  
  /* Tweak Image Ratio for Mobile */
  .card-img-wrapper {
    aspect-ratio: 2/3; /* Taller on mobile to show more flyer */
  }

  /* Smaller Date Badge */
  .date-badge {
    width: 40px;
    height: 45px;
    top: 8px;
    right: 8px;
  }
  .d-month { font-size: 8px; padding: 2px 0; }
  .d-day { font-size: 18px; }

  /* Compact Content */
  .event-content {
    padding: 12px 8px; 
  }

  .event-title {
    font-size: 0.95rem; 
    margin-bottom: 4px;
    -webkit-line-clamp: 3; /* Allow 3 lines on mobile */
  }

  .event-time {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .card-action {
    font-size: 10px;
    padding: 4px 10px;
  }
}

/* =========================================
   DECORATIVE CARD & THUMBNAIL UPDATES
   ========================================= */

/* 1. THUMBNAIL CARD INTERACTIVITY */
a.event-card {
  position: relative;
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden; /* Keeps zoom inside */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0cdb0;
  transition: all 0.4s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

a.event-card:hover {
  transform: translateY(-8px); /* Float up */
  box-shadow: 0 20px 40px rgba(128, 0, 0, 0.15); /* Deep shadow */
  border-color: #FF9933; /* Saffron border glow */
}

/* Image Zoom Effect */
.card-img-wrapper {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5; /* Taller, elegant ratio */
  background: #fdfbf7;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fills area nicely */
  transition: transform 0.5s ease;
}

a.event-card:hover .event-image {
  transform: scale(1.1); /* Zoom in on hover */
}

/* 2. CALENDAR DATE BADGE (Floating on Thumbnail) */
.date-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 65px;
  z-index: 10;
  border-top: 4px solid #800000; /* Maroon Top Bar */
  overflow: hidden;
}

.d-month {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #800000;
  background: #fff;
  width: 100%;
  text-align: center;
  padding-top: 4px;
  letter-spacing: 1px;
}

.d-day {
  font-size: 24px;
  font-weight: 800;
  color: #333;
  line-height: 1;
  margin-top: 2px;
  font-family: 'Cinzel', serif;
}

/* 3. CARD TEXT CONTENT */
.event-content {
  padding: 18px;
  background: #fff;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid #f0f0f0;
}

.event-title {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #800000;
  line-height: 1.3;
  margin: 0;
}

/* View Button Text */
.card-action {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FF9933;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================
   EVENT DETAILS PAGE UPDATES (Centered)
   ========================================= */

/* Top Title Area */
.details-hero {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #fff3e0;
}

.details-main-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem; /* Big Title */
    color: #800000;
    margin: 10px 0;
    line-height: 1.2;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

/* Decorative Date Block in Details */
.details-date-block {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #fff8e1;
    border: 1px solid #FF9933;
    padding: 10px 25px;
    border-radius: 50px;
    margin-top: 10px;
}

.date-icon-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #d84315;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Image Centering */
.details-image-container {
    text-align: center;
    margin-bottom: 40px;
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eee;
}

.details-header-img {
    max-height: 600px; /* Limit height */
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: inline-block;
}

/* =========================================
   MOBILE THUMBNAIL FIX (Fit to Image)
   ========================================= */
@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 Columns */
    gap: 10px !important;
    padding: 10px 5px !important;
  }

  .event-card {
    /* Remove any fixed heights that force square shape */
    height: auto !important; 
    min-height: 100%;
  }

  .card-img-wrapper {
    /* Change from Landscape (16/9) to Vertical Poster (3/4) */
    aspect-ratio: 3/4 !important; 
    height: auto !important;
    background: #fff; /* White bg for clean look */
  }

  .event-image {
    /* "contain" ensures the WHOLE image is visible, never cropped */
    object-fit: contain !important; 
    width: 100% !important;
    height: 100% !important;
  }

  .event-content {
    padding: 8px 5px !important;
  }

  .event-title {
    font-size: 0.9rem !important;
    line-height: 1.2;
    margin-bottom: 5px;
  }
  
  /* Hide the View Details text on very small screens to save space */
  .card-action {
      font-size: 0.7rem;
  }
  
  /* Adjust Date Badge for small cards */
  .date-badge {
      width: 40px !important;
      height: 45px !important;
      top: 5px !important;
      right: 5px !important;
  }
  .d-month { font-size: 8px !important; }
  .d-day { font-size: 16px !important; }
}

/* =========================================
   SHARE BUTTON & COUNTER STYLES
   ========================================= */
.share-action-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 30px 0;
    padding: 10px;
}

.share-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); /* WhatsApp/Share Green */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    filter: brightness(1.1);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.share-count-bubble {
    background: #f0f0f0;
    color: #555;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-count-number {
    color: #800000;
    font-size: 1.1rem;
    font-weight: 800;
}

/* Remove Zoom Cursor from Image */
.details-header-img {
    cursor: default; 
}
.details-header-img:hover {
    transform: none;
}

/* =========================================
   NOTIFICATION CENTER STYLES
   ========================================= */
.notification-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.notification-bell {
    background: #FFFFFF;
    border: 2px solid #FFD700; /* Gold */
    color: #800000; /* Maroon */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.notification-bell:hover {
    background: #FFD700;
    transform: scale(1.05);
}

.notification-bell svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* The Red Badge Counter */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff5252;
    color: white;
    font-size: 11px;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: popIn 0.3s ease;
}

.notification-badge.hidden {
    display: none;
}

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* The Dropdown Panel */
.notification-dropdown {
    position: absolute;
    top: 60px;
    right: -60px; /* Aligns slightly to the left of the bell */
    width: 320px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 1px solid #e0cdb0;
    z-index: 5000;
    display: none; /* Hidden by default */
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

.notification-dropdown.active {
    display: block;
}

.notif-header {
    background: #800000;
    color: #fff;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-list {
    max-height: 350px;
    overflow-y: auto;
}

.notif-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    transition: background 0.2s;
    text-decoration: none;
    color: #333;
}

.notif-item:hover {
    background: #fff8e1; /* Light Cream */
}

.notif-item.unread {
    background: #fdf2f2; /* Light Red tint for unread */
    border-left: 3px solid #ff5252;
}

.notif-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    background: #eee;
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 13px;
    font-weight: 700;
    color: #800000;
    margin-bottom: 4px;
    display: block;
    line-height: 1.3;
}

.notif-date {
    font-size: 11px;
    color: #666;
}

.notif-empty {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .notification-bell {
        width: 32px;
        height: 32px;
        border-width: 1px;
    }
    .notification-bell svg {
        width: 18px;
        height: 18px;
    }
    .notification-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
        min-width: 16px;
        top: -2px;
        right: -2px;
    }
    .notification-dropdown {
        position: fixed; /* Full screen-ish on mobile */
        top: 60px;
        right: 10px; /* Small margin */
        width: 95%;
        max-width: 350px;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enable Notification Button Styles */
.enable-notif-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    cursor: pointer;
    margin-left: auto; /* Push to right */
    transition: background 0.3s;
}

.enable-notif-btn:hover {
    background: rgba(255,255,255,0.4);
}

.enable-notif-btn.hidden {
    display: none;
}

/* --- 36ft ANJANEYA GLOWING EFFECT --- */
.nav-link[href*="36ftanjaneya"] {
    color: #FFD700 !important; /* Force Gold Text */
    font-weight: 800 !important; /* Extra bold */
    position: relative;
    transition: all 0.3s ease;
    
    /* The Glow Animation */
    animation: anjaneya-glow 1.5s ease-in-out infinite alternate;
}

/* Keyframes for the pulsing glow */
@keyframes anjaneya-glow {
    from {
        text-shadow: 
            0 0 4px rgba(255, 215, 0, 0.4),  /* Faint Gold */
            0 0 8px rgba(255, 153, 51, 0.2); /* Faint Saffron */
    }
    to {
        text-shadow: 
            0 0 8px rgba(255, 215, 0, 1),    /* Bright Gold */
            0 0 15px rgba(255, 153, 51, 0.8), /* Bright Saffron */
            0 0 20px rgba(255, 255, 255, 0.6); /* White outer halo */
    }
}

/* Add a sparkle effect next to the text */
.nav-link[href*="36ftanjaneya"]::after {
    content: ' ✨'; /* Unicode Sparkle */
    font-size: 14px;
    margin-left: 5px;
    animation: fade-sparkle 1.5s infinite alternate;
}

@keyframes fade-sparkle {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}