/* Keep modal headers fixed; scroll only body for text-heavy modals */
@media (min-width: 768px) {
  #AboutModal .modal-content,
  #PriestInfoNew .modal-content,
  #donationModal .modal-content {
    max-height: 80vh !important;
    overflow: hidden !important; /* prevent whole content from scrolling */
  }
  #AboutModal .modal-body,
  #PriestInfoNew .modal-body,
  #donationModal .modal-body {
    overflow-y: auto !important;
    max-height: calc(80vh - 70px) !important; /* account for header/footer */
  }
}
/* Desktop: match Google Form modal width for Facility Request and Stay Connected */
@media (min-width: 992px) {
  #eventModal .modal-dialog,
  #stayConnected .modal-dialog {
    max-width: 900px !important; /* similar to Google Forms embed width */
  }
}
/* Modern CSS for Sanatana Dharma Kendra Website */

/* CSS Variables for Modern Design */
:root {
    --primary: #FFB366;        /* Lighter saffron orange */
    --primary-dark: #FFA366;    /* Medium saffron */
    --primary-light: #FFC299;  /* Very light saffron */
    --secondary: #FFCC80;      /* Light golden saffron */
    --secondary-dark: #FFB366; /* Medium golden saffron */
    --accent: #F3F4F6;         /* Light gray */
    --accent-dark: #E5E7EB;    /* Darker gray */
    --text: #111827;           /* Dark gray */
    --text-muted: #6B7280;     /* Medium gray */
    --text-light: #9CA3AF;     /* Light gray */
    --bg: #FFF8F0;             /* Light saffron background */
    --bg-alt: #FFF0E6;         /* Slightly darker saffron background */
    --bg-pattern: rgba(255, 179, 102, 0.05); /* Very light saffron pattern */
    --border: #D1D5DB;         /* Light border */
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --radius: 0.75rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    --gradient-modern: linear-gradient(135deg, var(--accent) 0%, var(--bg-alt) 100%);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

/* Prevent horizontal scrolling and stabilize mobile layout */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #4A2C1A;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF0E6 50%, #FFE8D6 100%); /* Enhanced saffron gradient */
    font-size: 16px;
    position: relative;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #4A2C1A;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #4A2C1A;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Header Section */
.header-section {
    background: var(--bg);
    padding: 2rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo {
    max-width: 120px; /* Increased from 100px */
    height: auto;
    border-radius: 50%;
    box-shadow: var(--shadow);
    border: 3px solid var(--primary);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.header-content {
    text-align: center;
}

.temple-name {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Increased font size */
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #4A2C1A;
    font-family: 'Playfair Display', serif;
    white-space: nowrap;
    overflow: visible; /* Changed from hidden to visible */
    text-transform: uppercase; /* Make all capital letters */
    letter-spacing: 0.05em; /* Add letter spacing for better readability */
    line-height: 1.3; /* Increased line height for better spacing */
    padding: 0.5rem 0; /* Added vertical padding */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Add subtle shadow for better visibility */
}

.temple-subtitle {
    font-size: 1.125rem;
    color: #4A2C1A;
    margin: 0;
    font-weight: 500;
}

/* Clean Modern Navigation */
.navbar {
    background-color: var(--bg) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
    border-top: 1px solid #FFB366 !important; /* Saffron top border to match theme */
    border-bottom: 2px solid #FFB366 !important; /* Saffron bottom border */
}


.navbar-nav {
    gap: 0.25rem;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping in Firefox */
    overflow-x: auto; /* Allow horizontal scroll if needed */
    overflow-y: visible; /* Allow dropdown to show */
}

/* Desktop: allow dropdown to escape nav without clipping */
@media (min-width: 769px) {
    .navbar,
    .navbar .container,
    .navbar-nav {
        overflow: visible !important;
    }
}

.navbar-nav .nav-link {
    color: #4A2C1A !important;
    font-weight: 800 !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem); /* Responsive font size */
    text-transform: none;
    letter-spacing: 0.2px;
    border: none;
    background: none;
    overflow: hidden;
    font-style: italic;
    margin: 0 0.1rem;
    white-space: nowrap; /* Prevent text wrapping in Firefox */
    flex-shrink: 0; /* Prevent shrinking in flexbox */
}

.navbar-nav .nav-link::before {
    display: none;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.5px;
    background: var(--primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.navbar-nav .nav-link:hover::before {
    display: none;
}

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

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    font-weight: normal;
    transform: translateY(-2px); /* Move up on hover */
    text-shadow: 0 2px 4px rgba(255, 179, 102, 0.2); /* Subtle shadow */
}

/* Hide Bootstrap dropdown arrow for Prasadam Signup */
.navbar-nav .btn-link.dropdown-toggle::after {
    content: '' !important; /* Override Bootstrap's dropdown arrow */
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 0.5px !important; /* Match nav-link height */
    background: var(--primary) !important; /* Match nav-link color */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 0.7 !important;
    transform: none !important;
    z-index: 1 !important;
    border: none !important; /* Remove any border */
}

/* Make dropdown btn-link behave exactly like nav-link */
.navbar-nav .btn-link.dropdown-toggle::before {
    display: none !important;
}

.navbar-nav .btn-link.dropdown-toggle::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 0.5px !important; /* Match nav-link height */
    background: var(--primary) !important; /* Match nav-link saffron color */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 0.7 !important;
    display: block !important;
    transform: none !important;
    z-index: 1 !important;
}

.navbar-nav .btn-link.dropdown-toggle:hover::after {
    width: 100% !important;
}

.navbar-nav .btn-link.dropdown-toggle {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
}

.navbar-nav .btn-link.dropdown-toggle:hover,
.navbar-nav .btn-link.dropdown-toggle:focus,
.navbar-nav .btn-link.dropdown-toggle:active,
.navbar-nav .btn-link.dropdown-toggle.show {
    color: var(--primary) !important; /* Saffron hover like nav-link */
    font-weight: normal; /* Match nav-link hover */
    transform: translateY(-2px); /* Move up on hover */
    text-shadow: 0 2px 4px rgba(255, 179, 102, 0.2); /* Subtle shadow */
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    border-color: transparent !important;
}

.navbar-nav .nav-link i {
    margin-right: 0;
    font-size: 0.9rem;
}

.navbar-nav .btn-link {
    background: none;
    color: #4A2C1A !important;
    border: none;
    padding: 0.5rem 0.75rem !important; /* Match nav-link padding */
    border-radius: 0;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem); /* Responsive font size to match nav-link */
    text-transform: none;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
    font-style: italic; /* Make btn-link italic like nav-link */
    margin: 0; /* Match nav-link margin */
    white-space: nowrap; /* Prevent text wrapping in Firefox */
    flex-shrink: 0; /* Prevent shrinking in flexbox */
}

.navbar-nav .btn-link::before {
    display: none; /* Remove conflicting effect */
}

.navbar-nav .btn-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.5px; /* Match nav-link height */
    background: var(--primary); /* Match nav-link saffron color */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7; /* Match nav-link opacity */
}

.navbar-nav .btn-link:hover::after {
    width: 100%;
}

.navbar-nav .btn-link:hover {
    color: var(--primary) !important; /* Saffron hover like nav-link */
    font-weight: normal;
    transform: translateY(-2px); /* Move up on hover */
    text-shadow: 0 2px 4px rgba(255, 179, 102, 0.2); /* Subtle shadow */
}

/* Firefox-specific fixes for navigation */
@-moz-document url-prefix() {
    .navbar-nav .nav-link,
    .navbar-nav .btn-link {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        min-width: max-content !important;
    }
    
    .navbar-nav {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important; /* Hide scrollbar in Firefox */
        -ms-overflow-style: none !important;
    }
    
    .navbar-nav::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar in WebKit browsers */
    }
}

/* Responsive Navigation Font Sizes */
@media (max-width: 480px) {
    .navbar-nav .nav-link,
    .navbar-nav .btn-link {
        font-size: clamp(0.8rem, 2.5vw, 0.95rem) !important;
    }
    
    .navbar-nav .nav-link[href^="tel:"] i,
    .navbar-nav .nav-link[href^="mailto:"] i,
    .navbar-nav .nav-link[href^="https://"] i {
        font-size: clamp(0.8rem, 2.2vw, 0.9rem) !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .navbar-nav .nav-link,
    .navbar-nav .btn-link {
        font-size: clamp(0.85rem, 2vw, 1rem) !important;
    }
    
    .navbar-nav .nav-link[href^="tel:"] i,
    .navbar-nav .nav-link[href^="mailto:"] i,
    .navbar-nav .nav-link[href^="https://"] i {
        font-size: clamp(0.85rem, 1.8vw, 0.95rem) !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .navbar-nav .nav-link,
    .navbar-nav .btn-link {
        font-size: clamp(0.9rem, 1.5vw, 1.05rem) !important;
    }
    
    .navbar-nav .nav-link[href^="tel:"] i,
    .navbar-nav .nav-link[href^="mailto:"] i,
    .navbar-nav .nav-link[href^="https://"] i {
        font-size: clamp(0.9rem, 1.3vw, 1rem) !important;
    }
}

@media (min-width: 1025px) {
    .navbar-nav .nav-link,
    .navbar-nav .btn-link {
        font-size: clamp(1rem, 1.2vw, 1.1rem) !important;
    }
    
    .navbar-nav .nav-link[href^="tel:"] i,
    .navbar-nav .nav-link[href^="mailto:"] i,
    .navbar-nav .nav-link[href^="https://"] i {
        font-size: clamp(0.95rem, 1.1vw, 1rem) !important;
    }
}

/* Mobile-specific dropdown button styling */
@media (max-width: 768px) {
    /* Ensure mobile navigation is visible */
    .youtube-nav {
        display: block !important;
    }
    
    /* Hide desktop navigation on mobile */
    .navbar-collapse {
        display: none !important;
    }
    
    /* Hide desktop navbar on mobile to prevent duplicate saffron line */
    .navbar {
        display: none !important;
    }
    
    .navbar-nav .btn-link.dropdown-toggle {
        touch-action: manipulation; /* Enable touch events */
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1); /* Add touch feedback */
        cursor: pointer;
        user-select: none; /* Prevent text selection on touch */
    }
    
    .navbar-nav .btn-link.dropdown-toggle:active {
        background-color: rgba(0, 0, 0, 0.05); /* Visual feedback on touch */
    }
    
    /* Hide desktop dropdown on mobile */
    .navbar-nav .dropdown {
        display: none !important;
    }
    
    /* Show mobile button */
    .navbar-nav .d-md-none {
        display: block !important;
    }
}

/* Elegant Social Links - Icon Only */
.navbar-nav .nav-link[href^="tel:"],
.navbar-nav .nav-link[href^="mailto:"],
.navbar-nav .nav-link[href^="https://"] {
    background: none;
    color: #4A2C1A !important;
    border: none;
    padding: 0.5rem !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link[href^="tel:"]::before,
.navbar-nav .nav-link[href^="mailto:"]::before,
.navbar-nav .nav-link[href^="https://"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.navbar-nav .nav-link[href^="tel:"]:hover::before,
.navbar-nav .nav-link[href^="mailto:"]:hover::before,
.navbar-nav .nav-link[href^="https://"]:hover::before {
    width: 100%;
    height: 100%;
}

.navbar-nav .nav-link[href^="tel:"]:hover {
    color: #10B981 !important; /* Light green on hover */
    transform: scale(1.05);
}

.navbar-nav .nav-link[href^="https://goo.gl/maps/"]:hover {
    color: #3B82F6 !important; /* Light blue on hover */
    transform: scale(1.05);
}

.navbar-nav .nav-link[href^="mailto:"]:hover {
    color: #F97316 !important; /* Light orange on hover */
    transform: scale(1.05);
}

.navbar-nav .nav-link[href*="youtube.com"]:hover {
    color: #EF4444 !important; /* Light red on hover */
    transform: scale(1.05);
}

.navbar-nav .nav-link[href*="facebook.com"]:hover {
    color: #3B82F6 !important; /* Light blue on hover */
    transform: scale(1.05);
}

.navbar-nav .nav-link[href^="tel:"] i,
.navbar-nav .nav-link[href^="mailto:"] i,
.navbar-nav .nav-link[href^="https://"] i {
    margin-right: 0;
    font-size: clamp(0.9rem, 1.1vw, 1rem); /* Responsive icon size */
    transition: all 0.3s ease;
}

.navbar-nav .nav-link[href^="tel:"]:hover i,
.navbar-nav .nav-link[href^="mailto:"]:hover i,
.navbar-nav .nav-link[href^="https://"]:hover i {
    transform: scale(1.1);
}


/* Clean Mobile Navigation */
.navbar-toggler {
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 0.5rem;
    transition: var(--transition);
}

.navbar-toggler:hover {
    background-color: var(--accent);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Clean Logo Styling */
.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: #4A2C1A;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    background: rgba(255, 240, 220, 0.9); /* Increased opacity from 0.7 to 0.9 for better text visibility */
    padding: 3rem 0;
    text-align: center;
}

.hero-title {
    font-size: clamp(1.2rem, 2.8vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #4A2C1A;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Add subtle shadow for better visibility */
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #4A2C1A;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Add subtle shadow for better visibility */
}

.hero-phone {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #4A2C1A;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Add subtle shadow for better visibility */
}

/* Clickable Text Links */
.clickable-text {
    color: #4A2C1A;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.clickable-text:hover {
    color: var(--primary);
    background: rgba(255, 179, 102, 0.15);
    transform: translateY(-1px);
    text-decoration: none;
}

.clickable-text i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.clickable-text:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.hero-actions {
    margin-top: 2rem;
}

/* Temple Image Section */
.temple-image-section {
    padding: 3rem 0;
    background-color: transparent;
}

/* Ensure temple images and announcements align properly */
.temple-image-section .row {
    align-items: flex-start; /* Align to top instead of stretch */
}

.temple-gallery-container {
    text-align: center;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    margin: 0; /* Remove margin to align with announcements */
}

.temple-gallery-blurred-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(30px);
    transform: scale(1.2);
    z-index: -1;
    opacity: 0;
    transition: opacity 6s ease-in-out;
    pointer-events: none;
}

.temple-gallery-blurred-bg.active {
    opacity: 0.8;
}

.temple-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain to show full image */
    object-position: center center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

/* Modern Temple Gallery Fade */
.temple-gallery-fade {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.gallery-fade-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 6s ease-in-out; /* Very slow, peaceful fade */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevent image overflow */
}

.gallery-fade-slide.active {
    opacity: 1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Fit entire image without cropping */
    object-position: center center;
    border-radius: var(--radius);
    filter: brightness(1.05) contrast(1.02); /* Subtle enhancement */
    position: relative;
    z-index: 2;
}

.gallery-fade-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: none; /* Hidden as requested */
    gap: 0.5rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
}

.gallery-fade-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-fade-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.gallery-fade-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Temple Gallery Invisible Click Zones */
.temple-click-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 15;
    cursor: pointer;
    background: transparent;
    border: none;
}

.temple-prev-zone {
    left: 0;
}

.temple-next-zone {
    right: 0;
}

.temple-click-zone:hover {
    background: rgba(255, 255, 255, 0.01); /* Almost invisible hover feedback */
}

/* Responsive Design for Temple Gallery */
@media (max-width: 768px) {
    /* Mobile Layout Stabilization */
    .container {
        max-width: 100vw;
        overflow-x: hidden;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    
    /* Mobile Header - Two Column Layout */
    .logo {
        max-width: 40px; /* Slightly larger for two-column layout */
        height: auto;
    }
    
    .logo-container {
        padding-right: 0;
        padding-left: 0; /* Remove left padding too */
        display: flex;
        justify-content: flex-start; /* Left justify logo */
        align-items: center;
    }
    
    .header-section {
        padding: 0.75rem 0; /* Reduced padding */
    }
    
    .header-section .row {
        margin: 0; /* Remove Bootstrap row margins */
    }
    
    .header-section .col-3 {
        flex: 0 0 14% !important; /* Exactly 14% for logo */
        max-width: 14% !important;
        padding-left: 0;
        padding-right: 0;
    }
    
    .header-section .col-9 {
        flex: 0 0 86% !important; /* Exactly 86% for temple name */
        max-width: 86% !important;
        padding-left: 0;
        padding-right: 0;
    }
    
    .header-content {
        text-align: left;
        padding-left: 0; /* No padding - start immediately next to logo */
        padding-right: 0;
        display: flex;
        align-items: center;
        height: 100%;
        margin-left: 0;
    }
    
    .temple-name {
        font-size: calc(86vw / 16) !important; /* Further increased divisor for smaller font to fit */
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        line-height: 1.3 !important; /* Increased line height */
        white-space: nowrap !important; /* Force single line */
        overflow: visible !important; /* Show full text */
        text-overflow: clip !important; /* Don't add ellipsis */
        text-align: left !important; /* Left align text */
        font-weight: 800 !important; /* Increased weight for better visibility */
        padding: 0.3rem 0 !important; /* Added vertical padding for mobile */
        width: 100%; /* Take full width of container */
        letter-spacing: 0.01em !important; /* Reduced letter spacing to fit more text */
        text-transform: uppercase !important; /* Ensure capitals on mobile */
        color: #4A2C1A !important; /* Ensure dark brown color */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important; /* Stronger shadow on mobile */
    }
    
    /* Fallback for browsers that don't support calc() well */
    @supports not (font-size: calc(1px)) {
        .temple-name {
            font-size: clamp(1rem, 7vw, 3rem) !important;
            text-transform: uppercase !important;
            letter-spacing: 0.03em !important;
            line-height: 1.3 !important;
            padding: 0.3rem 0 !important;
        }
    }
    
    
    /* YouTube-Style Mobile Navigation */
    .youtube-nav {
        background: var(--bg);
        border-top: 1px solid #FFB366 !important; /* Saffron top border to match theme */
        border-bottom: 2px solid #FFB366 !important; /* Saffron bottom border */
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .youtube-nav::-webkit-scrollbar {
        display: none;
    }
    
    .nav-tabs-container {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-tabs-container::-webkit-scrollbar {
        display: none;
    }
    
    .nav-tabs {
        display: flex;
        gap: 0;
        padding: 0;
        min-width: max-content;
        transition: transform 0.3s ease;
        touch-action: pan-x; /* Allow horizontal panning but prevent vertical scrolling interference */
    }
    
    .nav-tab {
        flex-shrink: 0;
        padding: 0.75rem 1rem;
        background: none;
        border: none;
        color: #4A2C1A !important;
        font-size: 1.1rem;
        font-weight: 800 !important;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
        position: relative;
        border-bottom: 2px solid transparent;
    }
    
    /* Desktop-specific styling for nav tabs */
    @media (min-width: 769px) {
        /* Ensure desktop navigation is visible */
        .navbar-collapse {
            display: flex !important;
        }
        
        /* Hide mobile navigation on desktop */
        .youtube-nav {
            display: none !important;
        }
        
        .nav-tab {
            font-size: 1.3rem;
            font-weight: 900 !important;
        }
    }
    
    .nav-tab:hover {
        color: var(--primary);
        background: rgba(255, 179, 102, 0.1);
        border-radius: 0.5rem;
        transform: translateY(-1px);
    }
    
    .nav-tab.active {
        color: var(--primary);
        border-bottom-color: var(--primary);
        background: transparent;
        border-radius: 0;
        font-weight: 800;
    }
    
    .nav-tab.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--primary);
    }
    
    /* Social tabs styling */
    .nav-tab.social-tab {
        padding: 0.75rem 0.5rem;
        min-width: 50px;
        font-size: 1.2rem;
        text-decoration: none;
    }
    
    .nav-tab.social-tab:hover {
        color: white;
        background: rgba(0, 0, 0, 0.1);
    }
    
    /* Specific hover colors for social tabs */
    .nav-tab.social-tab[href^="mailto:"]:hover {
        background: #F97316;
        color: white;
    }
    
    .nav-tab.social-tab[href*="youtube.com"]:hover {
        background: #EF4444;
        color: white;
    }
    
    .nav-tab.social-tab[href*="facebook.com"]:hover {
        background: #1877F2;
        color: white;
    }
    
    
    
    .temple-gallery-container {
        height: 450px;
        margin: 0 0.125rem;
    }
    
    .gallery-fade-indicators {
        bottom: 0.75rem;
        padding: 0.375rem 0.75rem;
        display: none; /* Hidden on mobile too */
    }
    
    /* Mobile Temple Click Zones - same as desktop */
    .temple-click-zone {
        width: 50%; /* Same behavior on mobile */
    }
    
    .gallery-fade-indicator {
        width: 8px;
        height: 8px;
    }
}

/* Full-Screen Flyer Modal */
.flyer-modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    height: auto;
    max-height: 90vh;
    max-width: 95vw;
    margin: 5vh auto;
    overflow: hidden;
}

.flyer-modal-body {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 80vh;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 0;
    cursor: pointer;
    overflow: hidden;
}

.flyer-expanded-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: default;
    transition: var(--transition);
}

.flyer-expanded-image:hover {
    transform: scale(1.02);
}

/* Ensure modal dialog fits within viewport without horizontal scroll */
#flyerModal .modal-dialog {
    max-width: 95vw;
    margin: 0 auto;
    overflow: hidden;
}

#flyerModal .modal-dialog.modal-lg {
    max-width: 95vw;
}

#flyerModal .modal-content {
    overflow: hidden;
}

.flyer-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #4A2C1A;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.flyer-close-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Flyer Navigation Zones - Full width but reduced height around arrows */
.flyer-nav-zone {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50%; /* Keep full width for easy clicking */
    height: 80px; /* Reduced height instead of full height */
    z-index: 999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    background-color: transparent; /* Fully transparent */
}

.flyer-prev-zone {
    left: 0;
    justify-content: flex-start;
    padding-left: 2rem;
}

.flyer-next-zone {
    right: 0;
    justify-content: flex-end;
    padding-right: 2rem;
}

.flyer-nav-zone:hover {
    background-color: transparent; /* Stay fully transparent on hover */
}

/* Flyer Navigation Buttons - Now centered in zones */
.flyer-nav-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent; /* 100% transparent background */
    border: none; /* Remove border completely */
    color: white;
    font-size: 2.5rem; /* Increased arrow size from 1.8rem */
    font-weight: 400; /* Increased weight for better visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
    pointer-events: none; /* Prevent double-activation on mobile; zone handles clicks */
    opacity: 0.9; /* Slightly more visible */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Add shadow for visibility */
}

/* Removed individual positioning - now handled by parent zones */

.flyer-nav-btn:hover {
    background: transparent; /* Stay completely transparent */
    opacity: 1;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9); /* Enhanced shadow on hover */
    font-size: 2.7rem; /* Slightly larger arrow on hover */
    transform: scale(1.1);
}

.flyer-nav-btn:active {
    transform: scale(0.95);
}

.flyer-prev-btn:disabled,
.flyer-next-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.flyer-prev-btn:disabled:hover,
.flyer-next-btn:disabled:hover {
    transform: scale(1);
    background: rgba(0, 0, 0, 0.6);
    opacity: 0.3;
}

/* Ensure both arrows have identical styling */
.flyer-prev-btn,
.flyer-next-btn {
    opacity: 0.9 !important; /* Force visibility */
    cursor: pointer !important; /* Force clickable cursor */
    font-size: 2.5rem !important; /* Force large arrow size */
    font-weight: 400 !important; /* Force proper weight */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important; /* Force shadow */
}

.flyer-prev-btn:disabled,
.flyer-next-btn:disabled {
    opacity: 0.9 !important; /* Override disabled state */
    cursor: pointer !important; /* Keep clickable cursor */
    font-size: 2.5rem !important; /* Force large arrow size even when disabled */
    font-weight: 400 !important; /* Force proper weight */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important; /* Force shadow */
}

/* Mobile Flyer Full Screen Styles */
@media (max-width: 768px) {
    .flyer-nav-zone {
        width: 50%; /* Keep full width for easy clicking */
        height: 70px; /* Reduced height for mobile */
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .flyer-prev-zone {
        padding-left: 1rem;
    }
    
    .flyer-next-zone {
        padding-right: 1rem;
    }
    
    .flyer-nav-btn {
        width: 60px;
        height: 60px;
        font-size: 3rem; /* Increased mobile arrow size from 2rem */
        background: transparent; /* 100% transparent background */
        border: none; /* Remove border completely */
        font-weight: 400; /* Increased weight for better visibility */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Add shadow for visibility */
        pointer-events: none; /* Keep pointer events disabled on mobile */
    }
    
    /* Mobile-specific overrides for disabled state - both arrows identical */
    .flyer-next-btn:disabled,
    .flyer-prev-btn:disabled {
        font-size: 3rem !important; /* Force large mobile arrow size */
        opacity: 0.9 !important; /* Force visibility */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important; /* Force shadow */
    }
    
    /* Ensure both mobile arrows have identical styling */
    .flyer-prev-btn,
    .flyer-next-btn {
        font-size: 3rem !important; /* Force large mobile arrow size */
        opacity: 0.9 !important; /* Force visibility */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important; /* Force shadow */
    }
    
    /* Mobile positioning handled by parent zones */
    
    /* Mobile flyer cards - make them full screen clickable */
    .events-carousel .card {
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    
    .events-carousel .card:active {
        transform: scale(0.98);
    }
    
    /* Mobile flyer modal adjustments */
    .flyer-modal-content {
        margin: 0;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .flyer-modal-body {
        height: 100vh;
        padding: 1rem 0; /* Reduced padding from 0 to 1rem */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .flyer-expanded-image {
        max-width: 100vw;
        max-height: 95vh; /* Increased from 90vh to 95vh */
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    .flyer-close-btn {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile fullscreen modal class */
.mobile-fullscreen .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100vh;
}

.mobile-fullscreen .flyer-modal-content {
    margin: 0;
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
}

.mobile-fullscreen .flyer-modal-body {
    height: 100vh;
    padding: 1rem 0; /* Reduced padding from 0 to 1rem */
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-fullscreen .flyer-expanded-image {
    max-width: 100vw;
    max-height: 95vh; /* Increased from 90vh to 95vh */
    width: auto;
    height: auto;
    object-fit: contain;
}

.flyer-close-btn:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Hide Bootstrap's default close button for flyer modal */
#flyerModal .btn-close {
    display: none !important;
}

/* Events Carousel Cards - Make them clickable */
.events-carousel .card {
    cursor: pointer;
    transition: var(--transition);
}

.events-carousel .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.events-carousel .card img {
    transition: var(--transition);
    height: auto; /* Desktop: let images maintain natural aspect ratio */
    max-height: 300px; /* Desktop: reasonable max height */
    object-fit: cover;
}

.events-carousel .card:hover img {
    transform: scale(1.05);
}

.temple-image:hover {
    transform: scale(1.05);
}

/* Special styling for days with calendar events */
.daily-tile.has-events {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 179, 102, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 4px 15px rgba(255, 179, 102, 0.2);
}

.daily-tile.has-events:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(255, 179, 102, 0.3);
}

/* Calendar events styling in daily schedule */
.daily-schedule {
    color: #4A2C1A;
    font-weight: 500;
}

.daily-tile.has-events .daily-schedule {
    color: var(--primary);
    font-weight: 600;
}

/* Announcements Section */
.announcements-section {
    padding: 1.5rem 0;
    background-color: rgba(255, 255, 255, 0.5); /* Increased opacity white overlay */
    height: 400px; /* Fixed height with scrolling */
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    margin: 0; /* Remove margin to align with temple gallery */
}

.announcements-section h3 {
    color: #4A2C1A;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.announcements-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.5rem; /* Reduced padding for wider boxes */
}

.announcements-section h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.announcement-card {
    background: white; /* Solid white background for better contrast */
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg); /* Stronger shadow for better definition */
    transition: var(--transition);
    margin-bottom: 1rem;
}

.announcement-card:hover {
    background: white; /* White background on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
    transform: translateY(-2px); /* More pronounced lift effect */
    border-color: var(--primary);
}

.announcement-title {
    font-size: 1.2rem; /* Reduced from 1.6rem */
    font-weight: 800; /* Increased from 700 to make bolder */
    color: #4A2C1A; /* Changed to pure black */
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.announcement-content {
    font-size: 1rem; /* Reduced from 1.25rem */
    font-weight: 600; /* Increased from 500 to make bolder */
    color: #4A2C1A; /* Changed to pure black */
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.announcement-date {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    font-style: italic;
    font-weight: 500;
}

.announcement-icon {
    font-size: 1.125rem;
}

/* Daily Tiles Section */
.daily-tiles-section {
    padding: 3rem 0;
    background-color: var(--bg);
}

/* Daily Carousel */
.daily-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.daily-carousel-wrapper {
    overflow: hidden;
    border-radius: var(--radius);
}

.daily-carousel {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1rem;
    padding: 1rem 0;
}

.daily-tile {
    flex: 0 0 auto;
    width: 220px;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.daily-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.daily-tile:hover::before {
    transform: scaleX(1);
}

.daily-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    cursor: pointer;
}

.daily-tile.today {
    background: rgba(255, 179, 102, 0.3);
    color: #4A2C1A;
    border-color: var(--primary);
}

.daily-tile.today::before {
    background: white;
}

.daily-date {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #4A2C1A;
}

.daily-tile.today .daily-date {
    color: #4A2C1A;
}

.daily-day {
    font-size: 0.875rem;
    color: #4A2C1A;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.daily-tile.today .daily-day {
    color: #4A2C1A;
}

.daily-programs {
    font-size: 0.8rem;
    color: #4A2C1A;
    line-height: 1.4;
}

.daily-tile.today .daily-programs {
    color: #4A2C1A;
    font-weight: 700;
}

/* Special Day Highlighting */
.daily-tile.special-day {
    border-color: var(--secondary);
    background: linear-gradient(135deg, var(--bg-alt) 0%, rgba(255, 184, 77, 0.08) 100%);
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.15);
}

.daily-tile.festival-day {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-alt) 0%, rgba(255, 140, 105, 0.08) 100%);
    box-shadow: 0 4px 12px rgba(255, 140, 105, 0.2);
    animation: festival-glow 2s ease-in-out infinite alternate;
}

@keyframes festival-glow {
    0% { box-shadow: 0 4px 12px rgba(255, 140, 105, 0.2); }
    100% { box-shadow: 0 6px 20px rgba(255, 140, 105, 0.35); }
}

/* Special Event Styling */
.special-event {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary);
}

.special-icon {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.special-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #4A2C1A;
    margin-bottom: 0.25rem;
}

.special-subtitle {
    font-size: 0.75rem;
    color: #4A2C1A;
    font-style: italic;
}

.base-schedule {
    font-size: 0.8rem;
    color: #4A2C1A;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Calendar-based Events Only */

/* Today + Special Day Combination */
.daily-tile.today.special-day {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
}

.daily-tile.today.special-day .special-title {
    color: rgba(255, 255, 255, 0.9);
}

.daily-tile.today.special-day .special-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.daily-tile.today.festival-day {
    background: linear-gradient(135deg, var(--primary) 0%, #FF6B35 100%);
    animation: festival-glow 2s ease-in-out infinite alternate;
}

/* Calendar-based Events */
.daily-tile.calendar-special {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-alt) 0%, rgba(255, 140, 105, 0.08) 100%);
    box-shadow: 0 4px 12px rgba(255, 140, 105, 0.15);
}

.daily-tile.festival-special {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-alt) 0%, rgba(255, 140, 105, 0.08) 100%);
    box-shadow: 0 4px 12px rgba(255, 140, 105, 0.2);
    animation: festival-glow 2s ease-in-out infinite alternate;
}

/* Calendar Event Styling */
.special-event.calendar-event {
    background: rgba(255, 140, 105, 0.08);
    border-left: 3px solid var(--primary);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.regular-day {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border-left: 2px solid var(--border);
    font-size: 0.75rem;
    color: #4A2C1A;
    font-style: italic;
    text-align: center;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(255, 140, 105, 0.2); }
    100% { box-shadow: 0 0 15px rgba(255, 140, 105, 0.4); }
}

/* Today + Calendar Event Combination */
.daily-tile.today.calendar-special {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.daily-tile.today.festival-special {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    animation: festival-glow 2s ease-in-out infinite alternate;
}

.daily-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.daily-btn {
    background: var(--gradient-secondary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    pointer-events: auto;
    opacity: 0.01;
}

.daily-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.daily-btn:active {
    transform: scale(0.95);
}

.prev-daily-btn {
    margin-left: 0.5rem;
}

.next-daily-btn {
    margin-right: 0.5rem;
}

/* Calendar Integration */
.calendar-integration {
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.calendar-text {
    color: #4A2C1A;
    font-size: 0.9rem;
    margin: 0;
}

/* Clickable Title */
.clickable-title {
    cursor: pointer;
    transition: var(--transition);
}

.clickable-title:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Touch/Swipe Support for Daily Carousel */
.daily-carousel {
    touch-action: pan-y;
    user-select: none;
}

.daily-carousel.dragging {
    transition: none;
    cursor: grabbing;
}

/* Responsive Design for Daily Tiles */
@media (max-width: 768px) {
    .daily-tile {
        width: calc(100vw - 2rem);
        max-width: 400px;
        padding: 1.5rem 1rem;
    }
    
    .daily-carousel {
        gap: 0;
    }
    
    .daily-carousel-container {
        width: calc(100vw - 2rem);
        max-width: 400px;
        margin: 0 auto;
    }
    
    .daily-carousel-wrapper {
        width: 100%;
    }
    
    .daily-date {
        font-size: 1.5rem;
    }
    
    .daily-day {
        font-size: 1rem;
    }
    
    .daily-programs {
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
    }
    
    .special-title {
        font-size: 1.1rem;
    }
    
    .special-subtitle {
        font-size: 0.9rem;
    }
    
    .base-schedule {
        font-size: 1rem;
    }
    
    .daily-btn {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
}

/* Upcoming Events Section */
.upcoming-events-section {
    padding: 3rem 0;
    background-color: var(--bg-alt);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upcoming-events-section:hover {
    background-color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Events Carousel */
.events-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.events-carousel-wrapper {
    overflow: hidden;
    border-radius: var(--radius);
}

.events-carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1rem;
    padding: 1rem 0;
}

.events-carousel .card {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 1rem;
    transition: var(--transition);
}

.events-carousel .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    opacity: 0.01;
}

.carousel-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.prev-btn {
    margin-left: 1rem;
}

.next-btn {
    margin-right: 1rem;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: var(--primary);
    opacity: 0.7;
}

/* Touch/Swipe Support */
.events-carousel {
    touch-action: pan-y;
    user-select: none;
}

.events-carousel.dragging {
    transition: none;
    cursor: grabbing;
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-carousel-container {
        margin: 0 -1rem; /* Extend container to screen edges */
        padding: 0 1rem; /* Add padding back for content */
        overflow: visible; /* Allow larger images to be visible */
    }
    
    .events-carousel-wrapper {
        margin: 0 -1rem; /* Extend wrapper to screen edges */
        overflow: visible; /* Allow larger images to be visible */
    }
    
    .events-carousel {
        gap: 0;
        padding: 0;
    }
    
    .events-carousel .card {
        width: 100vw; /* Full viewport width */
        margin-right: 0;
        border-radius: 0; /* Remove border radius for edge-to-edge */
        height: auto; /* Let card height adapt to image */
        position: relative; /* Enable absolute positioning for image */
        overflow: hidden; /* Hide any overflow */
    }
    
    .events-carousel .card .card-body {
        padding: 0;
        height: auto; /* Let body height adapt to image */
        position: relative; /* Enable absolute positioning */
    }
    
    .events-carousel .card img {
        position: relative !important; /* Use relative positioning */
        width: 100% !important;
        height: auto !important; /* Let image use its natural height */
        object-fit: contain !important; /* Show full image without cropping */
        border-radius: 0 !important; /* Remove border radius for edge-to-edge */
        margin: 0 !important; /* Override any margin */
        max-width: none !important; /* Override img-fluid max-width */
    }
    
    /* Hide desktop carousel controls on mobile */
    .carousel-controls {
        display: none;
    }
    
    
    .about-section {
        padding: 1.5rem 0 !important;
    }
    
    .carousel-indicators {
        display: none;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        margin-left: 0.5rem;
    }
    
    .next-btn {
        margin-right: 0.5rem;
    }
}

/* Next Few Days Section */
.next-days-section {
    padding: 3rem 0;
    background-color: var(--bg);
}

/* Flyers Section */
.flyers-section {
    padding: 3rem 0;
    background-color: var(--bg-alt);
}

/* Temple Images Section */
.temple-images-section {
    padding: 3rem 0;
    background-color: var(--bg);
}


/* About Section */
.about-section {
    padding: 3rem 0;
    background-color: var(--bg-alt);
}

.section-title {
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-title:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.about-content {
    max-width: 600px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.125rem;
    color: #4A2C1A;
    line-height: 1.8; /* Increased for better readability */
    margin-bottom: 1.5rem;
    text-align: justify; /* Justify text for better line distribution */
    text-align-last: center; /* Center the last line */
    hyphens: auto; /* Enable automatic hyphenation */
    word-spacing: 0.1em; /* Slight word spacing for better distribution */
    max-width: 90%; /* Constrain width for better justification */
    margin-left: auto;
    margin-right: auto;
}

.tax-id {
    font-size: 1rem;
    color: #4A2C1A;
    margin-bottom: 2rem;
}

.about-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.about-actions .btn {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border-width: 2px !important; /* Ensure consistent border width for alignment */
    box-sizing: border-box !important; /* Include borders in width calculation */
    margin: 0 !important; /* Remove any default margins */
    vertical-align: top !important; /* Align buttons to top */
    line-height: 1.5 !important; /* Consistent line height */
}

/* Specific overrides for button types */
.about-actions .btn-primary {
    border: 2px solid var(--primary) !important;
}

.about-actions .btn-outline-primary {
    border: 2px solid var(--primary) !important;
}

.about-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Main Content Section */
.main-content-section {
    padding: 4rem 0;
    background-color: var(--bg-alt);
}

/* Sidebar Content */
.sidebar-content {
    position: sticky;
    top: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4A2C1A;
    margin-bottom: 1rem;
}

.widget-text {
    color: #4A2C1A;
    margin-bottom: 1rem;
}

.tax-id {
    font-size: 0.9rem;
    color: #4A2C1A;
    margin-bottom: 1rem;
}

/* Cards */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--bg);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.card-header {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: #4A2C1A;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: #4A2C1A;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: #4A2C1A;
    line-height: 1.6;
}

.donation-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.donation-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.donation-logo {
    max-height: 50px;
    width: auto;
}

.donation-icon {
    font-size: 3rem;
    color: var(--primary);
}

/* Priest Cards */
.priest-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.priest-image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.priest-name {
    color: #000000;
    margin-bottom: 1rem;
}

.priest-contact {
    margin-bottom: 1rem;
}

.contact-link {
    display: block;
    color: #000000;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-color);
}

.priest-languages {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.priest-bio {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Buttons */
.btn {
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.75rem 1.5rem;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: white;
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Carousel Styles */
.carousel {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Prevent background shift when modal opens/closes */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

.modal {
    padding-right: 0 !important;
}

.modal-backdrop {
    padding-right: 0 !important;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.modal-title {
    font-weight: 600;
    color: #000000;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

/* Footer */
.footer-section {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-actions .btn:last-child {
        margin-bottom: 0;
    }
    
    /* About actions buttons - mobile styling */
    .about-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .about-actions .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem;
        border-width: 2px !important; /* Consistent border width */
        box-sizing: border-box !important; /* Include borders in width calculation */
        margin: 0 !important; /* Remove any default margins */
        vertical-align: top !important; /* Align buttons to top */
        line-height: 1.5 !important; /* Consistent line height */
    }
    
    /* Mobile text improvements */
    .about-text {
        text-align: center; /* Center align on mobile for better readability */
        text-align-last: center;
        max-width: 100%; /* Full width on mobile */
        word-spacing: normal; /* Normal word spacing on mobile */
        hyphens: none; /* Disable hyphenation on mobile */
        line-height: 1.7; /* Slightly tighter line height on mobile */
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .sidebar-content {
        position: static;
        margin-top: 2rem;
    }
    
    .priest-card .row {
        flex-direction: column;
    }
    
    .priest-card .col-md-4 {
        margin-bottom: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
        background: rgba(255, 240, 220, 0.95) !important; /* Even higher opacity on mobile for better text visibility */
    }
    
    .hero-title {
        color: #4A2C1A !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important; /* Stronger shadow on mobile */
        font-weight: 800 !important; /* Bolder font weight on mobile */
    }
    
    .hero-subtitle {
        color: #4A2C1A !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important; /* Stronger shadow on mobile */
        font-weight: 500 !important; /* Slightly bolder on mobile */
    }
    
    .hero-phone {
        color: #4A2C1A !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important; /* Stronger shadow on mobile */
        font-weight: 800 !important; /* Bolder font weight on mobile */
    }
    
    .daily-programs-section,
    .main-content-section {
        padding: 2rem 0;
    }
    
    .temple-image-section {
        padding: 2rem 0.5rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .donation-card .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.w-100 {
    width: 100%;
}

/* Calendar Styles */
.card-group .card {
    margin-bottom: 1rem;
}

.card-group .card-body {
    padding: 1rem;
}

.card-group .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-group .card-text {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Image Gallery Styles */
.temple-images-widget .carousel {
    background-color: var(--bg-white);
}

.temple-images-widget .carousel-item img {
    height: 300px;
    object-fit: cover;
}

/* Event Flyers Styles */
.carousel-inner {
    background-color: var(--primary-color);
}

.carousel-inner .carousel-item img {
    height: 600px;
    object-fit: contain;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.modal-content:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-actions,
    .btn,
    .modal {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
  }
}
/* Custom Calendar Styles */
.custom-calendar-container {
    padding: 2rem;
    background: var(--bg);
}

.calendar-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
}

.custom-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.calendar-day-header {
    background: var(--primary);
    color: white;
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-day {
    background: var(--bg);
    padding: 1rem 0.5rem;
    min-height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    position: relative;
}

.calendar-day:hover {
    background: var(--bg-alt);
    transform: scale(1.02);
}

.calendar-day.today {
    background: rgba(255, 179, 102, 0.1);
    border-color: var(--primary);
}

.calendar-day.has-events {
    background: rgba(255, 179, 102, 0.05);
    border-color: var(--primary);
}

.calendar-day.has-events::after {
    content: '●';
    position: absolute;
    top: 5px;
    right: 5px;
    color: var(--primary);
    font-size: 1.2rem;
}

.day-number {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.day-events {
    font-size: 0.8rem;
    color: #4A2C1A;
}

.day-events .event {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    margin: 0.2rem 0;
    font-size: 0.7rem;
}

/* Responsive calendar */
@media (max-width: 768px) {
    .custom-calendar-container {
        padding: 1rem;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 0.5rem 0.25rem;
    }
    
    .day-number {
        font-size: 1rem;
    }
    
    .day-events .event {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }
}

/* Event Time Styles */
.event-time {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--primary);
    margin-right: 0.3rem;
    display: inline-block;
}

.event-title {
    font-size: 0.7rem;
    display: inline-block;
}

.event-time-badge {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-header h6 {
    margin: 0;
    flex: 1;
}

.event-item {
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.day-events-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Mobile time display */
@media (max-width: 768px) {
    .event-time {
        font-size: 0.5rem;
    }
    
    .event-title {
        font-size: 0.6rem;
    }
    
    .event-time-badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }
    
    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-time-badge {
        margin-left: 0;
        margin-top: 0.3rem;
    }
}

/* Daily Event Time Styles */
.daily-event-time {
    font-size: 0.7rem;
    font-weight: 600;
    color: #4A2C1A;
    margin-right: 0.3rem;
    display: inline-block;
    background: rgba(255, 179, 102, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: var(--radius-sm);
}

/* Today tile specific styling for better contrast */
.daily-tile.today .daily-event-time {
    color: #4A2C1A;
    font-weight: 700;
}

.daily-tile.today .base-schedule {
    color: #4A2C1A;
    font-weight: 700;
}


.daily-tile .daily-programs {
    font-size: 0.8rem;
    line-height: 1.3;
}

.daily-tile.has-events .daily-programs {
    font-weight: 500;
}

/* More events indicator */
.more-events {
    color: var(--primary);
    font-weight: 600;
    font-style: italic;
    font-size: 0.75rem;
}

/* Mobile daily event time */
@media (max-width: 768px) {
    .daily-event-time {
        font-size: 0.9rem;
        padding: 0.2rem 0.4rem;
    }
    
    .daily-tile .daily-programs {
        font-size: 1rem;
    }
}

/* HTML5 Calendar Styles */
.calendar-container {
    padding: 2rem;
    background: var(--bg);
}

.calendar-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
}

.calendar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calendar-date-picker {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1.1rem;
    text-align: center;
    background: var(--bg);
    color: #4A2C1A;
    transition: all 0.3s ease;
}

.calendar-date-picker:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 179, 102, 0.1);
}

.selected-date-events {
    min-height: 200px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.event-list-item {
    background: var(--bg);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.event-list-item:last-child {
    margin-bottom: 0;
}

.event-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-list-title {
    font-weight: 600;
    color: #4A2C1A;
    margin: 0;
}

.event-list-time {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.event-list-description {
    color: #4A2C1A;
    font-size: 0.9rem;
    margin: 0;
}

.no-events-message {
    text-align: center;
    color: #4A2C1A;
    font-style: italic;
    padding: 2rem;
}

/* Mobile calendar styles */
@media (max-width: 768px) {
    .calendar-container {
        padding: 1rem;
    }
    
    .calendar-wrapper {
        gap: 1.5rem;
    }
    
    .calendar-date-picker {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .event-list-item {
        padding: 0.8rem;
    }
    
    .event-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .event-list-time {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

/* FullCalendar Temple Theme */
.temple-calendar {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.fc-theme-bootstrap5 .fc-button-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.fc-theme-bootstrap5 .fc-button-primary:hover {
    background-color: #e6a052 !important;
    border-color: #e6a052 !important;
}

.fc-theme-bootstrap5 .fc-button-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 179, 102, 0.25) !important;
}

.fc-theme-bootstrap5 .fc-button-primary:not(:disabled):active {
    background-color: #cc8f47 !important;
    border-color: #cc8f47 !important;
}

.fc-theme-bootstrap5 .fc-button-primary:disabled {
    background-color: #ffb366 !important;
    border-color: #ffb366 !important;
    opacity: 0.6;
}

.fc-event {
    border-radius: var(--radius-sm) !important;
    font-size: 0.85rem !important;
    padding: 0.2rem 0.4rem !important;
}

.fc-event-title {
    font-weight: 600 !important;
}

.fc-daygrid-event {
    margin: 0.1rem 0 !important;
}

.fc-daygrid-day-number {
    color: #4A2C1A !important;
    font-weight: 600 !important;
}

.fc-daygrid-day.fc-day-today {
    background-color: rgba(255, 179, 102, 0.1) !important;
}

.fc-daygrid-day-number.fc-day-today {
    background-color: var(--primary) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fc-col-header-cell {
    background-color: var(--primary) !important;
    color: white !important;
    font-weight: 600 !important;
}

.fc-scrollgrid {
    border-color: var(--border) !important;
}

.fc-daygrid-day-frame {
    border-color: var(--border) !important;
}

.fc-list-event:hover td {
    background-color: rgba(255, 179, 102, 0.1) !important;
}

/* Event details modal */
.event-details {
    font-size: 1rem;
}

.event-details strong {
    color: var(--primary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .temple-calendar {
        padding: 0.5rem;
    }
    
    .fc-toolbar {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .fc-toolbar-chunk {
        display: flex !important;
        justify-content: center !important;
    }
    
    .fc-button {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    
    .fc-event {
        font-size: 0.75rem !important;
        padding: 0.1rem 0.3rem !important;
    }
}

/* Updated Announcement Styling - Simple Bullets */
.announcement-icon {
    display: none !important; /* Hide the circle icons */
}

.announcement-content,
.announcement-title {
    position: relative;
    padding-left: 0 !important; /* Remove existing padding */
}

.announcement-content::before,
.announcement-title::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
    left: -1.5rem;
    top: 0.1em;
}

.announcement-content,
.announcement-title {
    margin-left: 1.5rem !important; /* Add space before text */
    padding-left: 0.5rem !important; /* Additional spacing */
}

/* Ensure proper spacing for multi-line announcements */
.announcement-content {
    line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .announcement-content,
    .announcement-title {
        margin-left: 1.2rem !important;
        padding-left: 0.3rem !important;
    }
    
    .announcement-content::before,
    .announcement-title::before {
        left: -1.2rem;
        font-size: 1.1em;
    }
}

/* Updated Announcement Styling - Larger Bullets, Closer Spacing */
.announcement-icon {
    display: none !important; /* Hide the circle icons */
}

.announcement-content,
.announcement-title {
    position: relative;
    padding-left: 0 !important; /* Remove existing padding */
}

.announcement-content::before,
.announcement-title::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5em; /* Increased from 1.2em */
    position: absolute;
    left: -1rem; /* Reduced from -1.5rem */
    top: 0.1em;
}

.announcement-content,
.announcement-title {
    margin-left: 1rem !important; /* Reduced from 1.5rem */
    padding-left: 0.3rem !important; /* Reduced from 0.5rem */
}

/* Ensure proper spacing for multi-line announcements */
.announcement-content {
    line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .announcement-content,
    .announcement-title {
        margin-left: 0.8rem !important; /* Reduced from 1.2rem */
        padding-left: 0.2rem !important; /* Reduced from 0.3rem */
    }
    
    .announcement-content::before,
    .announcement-title::before {
        left: -0.8rem; /* Reduced from -1.2rem */
        font-size: 1.4em; /* Slightly smaller on mobile */
    }
}

/* Updated Announcement Styling - No Bullets */
.announcement-icon {
    display: none !important; /* Hide the circle icons */
}

.announcement-content,
.announcement-title {
    position: relative;
    padding-left: 0 !important; /* Remove existing padding */
}

.announcement-content::before,
.announcement-title::before {
    display: none !important; /* Hide bullets completely */
}

.announcement-content,
.announcement-title {
    margin-left: 0 !important; /* Remove left margin */
    padding-left: 0 !important; /* Remove left padding */
}

/* Ensure proper spacing for multi-line announcements */
.announcement-content {
    line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .announcements-section {
        height: 400px; /* Fixed height with scrolling on mobile too */
        min-height: 300px; /* Minimum height to maintain layout */
    }
    
    .announcements-content {
        padding: 0 0.25rem; /* Reduced mobile padding for wider boxes */
    }
    
    .announcement-content,
    .announcement-title {
        margin-left: 0 !important; /* Remove left margin */
        padding-left: 0 !important; /* Remove left padding */
        font-size: 1rem !important; /* Reduced mobile font size */
        font-weight: 600 !important; /* Increased boldness for mobile */
        color: #4A2C1A !important; /* Pure black on mobile */
    }
    
    .announcement-title {
        font-size: 1.1rem !important; /* Reduced mobile title font size */
        font-weight: 800 !important; /* Increased boldness for mobile */
    }
    
    .announcement-content::before,
    .announcement-title::before {
        display: none !important; /* Hide bullets on mobile too */
    }
}

/* Desktop Modal Header Sticky */
.modal .modal-header {
    position: sticky !important;
    top: 0 !important;
    background: var(--bg) !important;
    z-index: 1055 !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 1rem 1rem 0.5rem 1rem !important;
    padding-right: 4rem !important; /* Make space for close button */
    margin: 0 !important; /* Remove any margins that could cause jumping */
    transform: translateZ(0) !important; /* Force hardware acceleration */
    will-change: transform !important; /* Optimize for sticky positioning */
}

.modal-title {
    font-weight: 600;
    color: #000000;
    margin: 0 !important;
    font-size: 1.25rem !important;
    line-height: 1.2 !important; /* Prevent line height changes */
    display: block !important; /* Ensure consistent display */
}

/* Ensure modal content doesn't cause header jumping */
.modal-content {
    overflow-y: auto !important;
    max-height: 90vh !important;
}

.modal-body {
    padding-top: 0 !important; /* Remove top padding that might cause jumping */
    color: #000000;
}

.modal-body p,
.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4,
.modal-body h5,
.modal-body h6 {
    color: #000000;
}

/* Modal Improvements for Mobile */
/* Desktop Modal Close Button Styling */
.modal-dialog .btn-close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 1.2rem !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    color: #666 !important;
    border: none !important;
    border-radius: 50% !important;
    z-index: 1060 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

/* Override Bootstrap's default close button styling for desktop */
.modal-dialog .btn-close::before {
    content: '×' !important;
    color: #666 !important;
    font-size: 1.8rem !important;
    font-weight: normal !important;
    line-height: 1 !important;
    font-family: Arial, sans-serif !important;
}

.modal-dialog .btn-close:hover {
    color: #333 !important;
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.1) !important;
}

.modal-dialog .btn-close:hover::before {
    color: #333 !important;
}

@media (max-width: 768px) {
    /* Fixed close button that stays visible during scroll - applies to ALL modals */
    .modal-dialog .btn-close {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 1.2rem !important;
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        color: #666 !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 1 !important;
        z-index: 1060 !important; /* Above modal backdrop */
        transform: translateZ(0) !important; /* Force hardware acceleration */
        will-change: transform !important; /* Optimize for positioning */
    }
    
    /* Override Bootstrap's default close button styling - applies to ALL modals */
    .modal-dialog .btn-close::before {
        content: '×' !important;
        color: #666 !important;
        font-size: 1.8rem !important;
        font-weight: normal !important;
        line-height: 1 !important;
    }
    
    .modal-dialog .btn-close:hover {
        color: #333 !important;
        transform: scale(1.1);
    }
    
    .modal-dialog .btn-close:hover::before {
        color: #333 !important;
    }
    
    /* Extra specific targeting for Priest modal */
    #PriestInfoNew .btn-close {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        z-index: 1060 !important;
        transform: translateZ(0) !important; /* Force hardware acceleration */
        will-change: transform !important; /* Optimize for positioning */
    }
    
    /* Swipe-to-close indicator */
    .modal-content {
        position: relative;
    }
    
    .modal-content::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(204, 204, 204, 0.3);
        border-radius: 2px;
        z-index: 1051;
    }
    
    /* Larger modal for mobile */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    /* Make modal headers sticky for better UX */
    .modal .modal-header {
        position: sticky !important;
        top: 0 !important;
        background: var(--bg) !important;
        z-index: 1055 !important;
        border-bottom: 1px solid var(--border) !important;
        padding: 1rem 1rem 0.5rem 1rem !important;
        padding-right: 4rem !important; /* Make space for fixed close button */
    }
    
    .modal-title {
        font-size: 1.25rem;
        font-weight: 600;
        margin-right: 1rem;
        color: #000000;
    }
    
    /* Add close button to modal body for easier access */
    .modal-body {
        position: relative;
        padding: 1rem;
    }
    
}

/* Prasadam Signup Modal Styling */
.event-selection-btn {
    border: 2px solid var(--primary) !important;
    border-radius: var(--border-radius) !important;
    transition: all 0.3s ease !important;
    background: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.event-selection-btn:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.event-selection-btn:hover .text-primary {
    color: white !important;
}

.event-selection-btn:hover .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.event-selection-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile optimizations for event selection */
@media (max-width: 768px) {
    .event-selection-btn {
        padding: 1rem !important;
        font-size: 1rem !important;
    }
    
    .event-selection-btn .fas {
        font-size: 1.2rem !important;
    }
    
    /* Mobile event selection buttons - saffron calendar icons */
    .event-selection-btn .fas.fa-calendar-alt {
        color: var(--primary) !important;
    }
    
    .event-selection-btn:hover .fas.fa-calendar-alt {
        color: white !important;
    }
}

/* Professional Desktop Prasadam Dropdown Styling */
.navbar-nav .dropdown-menu {
    border: none !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0.5rem 0 !important;
    margin-top: 0.5rem !important;
    min-width: 280px !important;
    background: white !important;
    border: 1px solid var(--border-color) !important;
    z-index: 1050 !important; /* Ensure dropdown is above other elements */
    position: absolute !important; /* Ensure proper positioning */
    left: 0 !important;
    top: 100% !important;
    transform: translateY(0) !important;
}

/* Ensure ancestors don't clip the dropdown */
.navbar,
.navbar .container {
    overflow: visible !important;
}

.navbar-nav .dropdown {
    position: relative !important;
}

.navbar-nav .dropdown-item {
    padding: 0.75rem 1.25rem !important;
    font-weight: 500 !important;
    color: var(--text-dark) !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    padding-left: 2.5rem !important; /* Add space for the icon */
}

.navbar-nav .dropdown-item:last-child {
    border-bottom: none !important;
}

.navbar-nav .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--text-dark) !important;
    transform: translateX(4px) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

.navbar-nav .dropdown-item:hover::before {
    content: '\f073' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 0.75rem !important;
    color: var(--primary) !important;
    font-size: 0.875rem !important;
}

.navbar-nav .dropdown-item::before {
    content: '\f073' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 0.75rem !important;
    color: var(--primary) !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
}

.navbar-nav .dropdown-item:hover::before {
    color: var(--primary) !important;
}

/* Dropdown arrow animation */
.navbar-nav .dropdown-toggle::after {
    transition: transform 0.2s ease !important;
}

.navbar-nav .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg) !important;
}

/* Enhanced dropdown positioning - only when shown */
.navbar-nav .dropdown-menu.show {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: all 0.3s ease !important;
    display: block !important; /* Ensure it's visible when shown */
    visibility: visible !important; /* Ensure it's visible */
    position: absolute !important;
    left: 0 !important;
    top: 100% !important;
}

/* Professional hover effects for dropdown toggle */
.navbar-nav .btn-link.dropdown-toggle:hover {
    background: transparent !important;
    border-radius: 0 !important;
}

/* CRITICAL: Force mobile upcoming events section height - MUST be at end of file */
@media (max-width: 768px) {
    section.upcoming-events-section {
        padding: 4rem 0 !important;
        min-height: 500px !important;
        height: auto !important;
    }
    
    .upcoming-events-section {
        padding: 4rem 0 !important;
        min-height: 500px !important;
        height: auto !important;
    }
    
    
    .events-carousel .card .card-body {
        padding: 0;
    }
    
    .events-carousel .card img {
        width: 100%;
        height: auto; /* Auto height to maintain aspect ratio */
        object-fit: contain; /* Show full image without cropping */
        border-radius: 0; /* Remove border radius for edge-to-edge */
        max-height: 500px; /* Maximum height constraint */
    }
    
    /* Hide desktop carousel controls on mobile */
    .carousel-controls {
        display: none;
    }
    
    .carousel-indicators {
        display: none;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid var(--primary);
        border-radius: 50%;
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .carousel-btn:hover {
        background: var(--primary);
        color: white;
        transform: scale(1.1);
    }
    
    .carousel-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }
}
