/* ==========================================================================
   MASTER STYLESHEET :: Shri Ram Janki Mandir
   PREMIUM VERSION: Gradients, Backgrounds, Spacing + FULL FUNCTIONALITY
   ========================================================================== */

:root {
  --primary-saffron: #ff9933;
  --primary-orange: #ff6b35;
  --secondary-gold: #ffd700;
  --accent-red: #dc143c;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --bg-cream: #fffaf5;
  --bg-white: #ffffff;
  --grad-saffron: linear-gradient(135deg, #ff9933 0%, #ff6b35 100%);
  --grad-dark: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  --grad-light: radial-gradient(circle at top right, #fffaf5 0%, #ffffff 100%);
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.12);
  --border-radius: 20px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-white);
  /* Divine Pattern Background */
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff9933' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--primary-saffron); }
i { transition: var(--transition); }

/* --- PRELOADER (RESTORED) --- */
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fffaf5; display: flex; justify-content: center; align-items: center; z-index: 10000; transition: opacity 0.5s, visibility 0.5s; }
.preloader.hide { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.om-symbol { font-size: 90px; color: var(--primary-saffron); animation: pulse 1.5s infinite; margin-bottom: 20px; font-family: "Noto Sans Devanagari", sans-serif; }
.loader-text { font-family: "Noto Sans Devanagari", sans-serif; color: var(--text-dark); font-size: 1.2rem; margin-bottom: 20px; }
.loader-bar { width: 200px; height: 4px; background: rgba(255, 153, 51, 0.1); border-radius: 10px; overflow: hidden; position: relative; margin: 0 auto; }
.loader-bar::after { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--grad-saffron); animation: loading 1.5s infinite; }

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.7; } }
@keyframes loading { 0% { left: -100%; } 100% { left: 100%; } }

/* --- Layout Grid --- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 25px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 { padding: 15px; width: 100%; }

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* --- Global Header --- */
.header { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; padding: 15px 20px; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.logo-img { width: 55px; height: 55px; border-radius: 50%; border: 2px solid var(--primary-saffron); padding: 2px; background: white; }
.logo-text h1 { font-size: 1.4rem; color: var(--primary-saffron); font-family: "Noto Sans Devanagari", sans-serif; font-weight: 700; margin: 0; line-height: 1.2; }
.logo-text span { font-size: 0.85rem; color: var(--text-light); letter-spacing: 1px; display: block; }

.nav-menu { display: flex; list-style: none; gap: 30px; align-items: center; margin: 0; padding: 0; }
.nav-link { color: var(--text-dark); font-weight: 600; transition: 0.3s; padding: 10px 5px; position: relative; font-size: 0.95rem; display: inline-block; }
.nav-link:hover, .nav-link.active { color: var(--primary-saffron); }
.nav-link.active::after { content: ''; position: absolute; bottom: 5px; left: 5px; right: 5px; height: 3px; background: var(--grad-saffron); border-radius: 2px; }

/* --- Navigation Dropdowns --- */
.nav-menu li { position: relative; }
.dropdown-menu { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: white; 
    min-width: 220px; 
    box-shadow: var(--shadow-md); 
    border-radius: 12px; 
    padding: 15px 0; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(15px); 
    transition: 0.3s ease; 
    z-index: 1000; 
    border-top: 4px solid var(--primary-saffron); 
    list-style: none;
}
.nav-menu li:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { width: 100%; padding: 0 !important; }
.dropdown-menu li a { 
    display: block; 
    padding: 10px 25px; 
    color: var(--text-dark); 
    font-weight: 600; 
    font-size: 0.9rem; 
    transition: 0.3s; 
    border-bottom: none !important;
}
.dropdown-menu li a:hover { background: var(--bg-cream); color: var(--primary-saffron); padding-left: 30px; }

.donate-btn { background: var(--grad-saffron); color: white !important; padding: 12px 30px; border-radius: 50px; font-weight: 700; box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3); transition: 0.3s; margin-left: 10px; }
.donate-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4); }

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 6px; z-index: 1001; }

.hamburger span { width: 30px; height: 3px; background: var(--primary-saffron); border-radius: 3px; transition: 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(3px); }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* --- Hero Slider (FIXED) --- */
.hero-section { position: relative; height: 85vh; min-height: 600px; overflow: hidden; }
.hero-slider, .hero-slide { width: 100%; height: 100%; position: relative; }
.hero-slide { display: none; }
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6)); }
.hero-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: white; width: 90%; max-width: 900px; z-index: 10; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 25px; font-weight: 800; text-shadow: 0 10px 30px rgba(0,0,0,0.5); line-height: 1.1; }
.sanskrit-mantra { font-family: "Noto Sans Devanagari", sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 25px; font-weight: 600; color: var(--secondary-gold); text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.4rem; margin-bottom: 40px; opacity: 0.9; letter-spacing: 1px; }
.hero-buttons { display: flex; gap: 25px; justify-content: center; }

/* --- Sections & Spacing --- */
section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.8rem; color: var(--text-dark); margin-bottom: 15px; font-weight: 700; }
.header-divider { width: 100px; height: 4px; background: var(--grad-saffron); margin: 0 auto 25px; border-radius: 2px; }

/* Quick Info */
.quick-info { margin-top: -70px; position: relative; z-index: 20; padding: 0; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.info-card { background: white; padding: 45px 35px; border-radius: var(--border-radius); text-align: center; box-shadow: var(--shadow-md); transition: var(--transition); border-bottom: 6px solid var(--primary-saffron); }
.card-icon { width: 70px; height: 70px; background: var(--grad-saffron); color: white; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; font-size: 28px; transform: rotate(-5deg); transition: 0.3s; }
.info-card:hover { transform: translateY(-10px); }
.info-card:hover .card-icon { transform: rotate(0deg) scale(1.1); }

/* About Home */
.about-section { background: var(--bg-cream); }
.about-content { display: flex; flex-wrap: wrap; gap: 70px; align-items: center; }
.about-text { flex: 1; min-width: 350px; }
.about-text h3 { font-size: 2.2rem; color: var(--primary-saffron); margin-bottom: 25px; font-weight: 700; }
.about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 40px 0; }
.feature-item { background: white; padding: 18px; border-radius: 12px; display: flex; align-items: center; gap: 12px; font-weight: 600; box-shadow: var(--shadow-sm); }
.feature-item i { color: var(--primary-orange); }

.about-images { position: relative; flex: 1; min-width: 350px; }
.about-img { width: 100%; border-radius: var(--border-radius); box-shadow: var(--shadow-lg); border: 12px solid white; }
.experience-badge { position: absolute; bottom: -30px; right: -30px; background: var(--grad-saffron); padding: 25px; border-radius: 50%; width: 140px; height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); text-align: center; color: white; border: 5px solid white; }
.experience-badge .years { font-size: 2.5rem; font-weight: 800; line-height: 1; }

/* Service Cards */
.services-section { background: white; }
.service-card { background: var(--grad-light); padding: 50px 35px; border-top: 6px solid var(--primary-orange); border-radius: var(--border-radius); text-align: center; box-shadow: var(--shadow-sm); transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); background: white; }
.service-icon { font-size: 50px; color: var(--primary-saffron); margin-bottom: 25px; }

/* Schedule */
.schedule-section { background: white; }
.schedule-card { background: #fffaf5; padding: 45px; border-radius: var(--border-radius); border-left: 8px solid var(--primary-saffron); box-shadow: var(--shadow-sm); }
.schedule-item { display: flex; justify-content: space-between; padding: 18px 25px; background: white; border-radius: 15px; margin-bottom: 12px; border: 1px solid rgba(255, 153, 51, 0.1); }
.schedule-item .time { color: var(--primary-saffron); font-weight: 700; }

/* Newsletter */
.newsletter-section { background: var(--grad-saffron); padding: 80px 0; border-radius: 50px 50px 0 0; color: white; margin-top: -50px; position: relative; z-index: 10; }
.newsletter-content { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }

/* --- FOOTER (PREMIUM GRADIENT) --- */
.footer { background: var(--grad-dark); color: rgba(255,255,255,0.7); padding: 100px 0 0; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z' fill='%23ffffff' fill-opacity='0.02'/%3E%3C/svg%3E"); pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 60px; position: relative; z-index: 2; }
.footer h4 { color: white; margin-bottom: 30px; font-size: 1.3rem; font-weight: 700; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--primary-saffron); }
.social-links a { width: 45px; height: 45px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white !important; font-size: 1.2rem; transition: 0.4s; }
.social-links a:hover { background: var(--grad-saffron); transform: translateY(-5px) rotate(360deg); }
.footer-bottom { background: rgba(0,0,0,0.3); padding: 45px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }

/* --- GO TO TOP (RESTORED) --- */
.fab-container { position: fixed; bottom: 30px; right: 30px; z-index: 1000; display: flex; flex-direction: column; gap: 15px; }
.fab { width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: 0.3s; cursor: pointer; border: none; }
.fab-whatsapp { background: #25d366; }
.fab-scroll { background: var(--primary-saffron); opacity: 0; visibility: hidden; } /* Controlled by JS */
.fab:hover { transform: scale(1.1) translateY(-5px); }

/* --- Components --- */
.btn { padding: 14px 35px; border-radius: 50px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; transition: var(--transition); border: none; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--grad-saffron); color: white; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5); color: white; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-menu { position: fixed; left: -100%; top: 0; height: 100vh; flex-direction: column; background: white; width: 100%; max-width: 350px; padding: 40px 0; transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 20px 0 50px rgba(0,0,0,0.15); z-index: 1000; align-items: flex-start; overflow-y: auto; }
  .nav-menu.active { left: 0; }
  
  /* Mobile Menu Header Style */
  .nav-menu::before { content: 'Shri Ram Janki Mandir'; display: block; width: 100%; padding: 0 30px 30px; font-weight: 800; color: var(--primary-saffron); font-size: 1.2rem; border-bottom: 1px solid #f0f0f0; margin-bottom: 20px; }
  
  .nav-menu li { width: 100%; border-bottom: none; padding: 0 30px; }
  .nav-link { padding: 12px 0; font-size: 1.1rem; border-bottom: 1px solid #f9f9f9; width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .nav-link.active::after { display: none; }
  .nav-link.active { color: var(--primary-saffron); border-bottom-color: var(--primary-saffron); }
  
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 5px 0 10px 15px; border-top: none; display: none; background: #fffcf9; border-radius: 0; margin-top: 5px; }
  .dropdown-menu li { padding: 0; }
  .dropdown-menu li a { padding: 10px 0; font-size: 1rem; color: var(--text-light); border-bottom: none; }
  
  .donate-btn { margin: 25px 30px; display: block; text-align: center; width: calc(100% - 60px); }
  
  /* Modern Bottom Info for Mobile Menu */
  .nav-menu::after { content: '🚩 Mangal Nagar, Wakad, Pune'; display: block; padding: 30px; font-size: 0.85rem; color: var(--text-light); font-weight: 500; margin-top: auto; }
  
  section { padding: 60px 0; }
  .hamburger { display: flex; }
  .hero-buttons { flex-direction: column; }
  .about-content { gap: 40px; }
  .footer-grid { text-align: center; }
  .footer h4::after { left: 50%; transform: translateX(-50%); }
  .social-links { justify-content: center; }
}

/* ==========================================================================
   ENHANCEMENTS & NEW COMPONENTS
   ========================================================================== */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-cream); }
::-webkit-scrollbar-thumb { background: var(--grad-saffron); border-radius: 10px; border: 2px solid var(--bg-cream); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-orange); }

/* --- Utility Classes --- */
.text-gradient { background: var(--grad-saffron); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.glass-card { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: var(--shadow-md); }
.shadow-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* --- Animations --- */
[data-aos] { opacity: 0; transition-property: transform, opacity; transition-duration: 0.8s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="fade-left"] { transform: translateX(40px); }
[data-aos="zoom-in"] { transform: scale(0.9); }
.aos-animate { opacity: 1; transform: translate(0) scale(1) !important; }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.floating { animation: float 3s ease-in-out infinite; }

/* --- Hero Enhancements --- */
.hero-slide img { animation: zoomIn 20s infinite alternate; }
@keyframes zoomIn { from { transform: scale(1); } to { transform: scale(1.1); } }

/* --- Services Grid --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.service-link { display: inline-block; margin-top: 20px; color: var(--primary-saffron); font-weight: 700; font-size: 0.9rem; }
.service-link:hover { color: var(--primary-orange); padding-left: 5px; }

/* --- Events Slider & Cards --- */
.events-slider { display: flex; gap: 30px; overflow-x: auto; padding: 20px 0 40px; scrollbar-width: none; -ms-overflow-style: none; }
.events-slider::-webkit-scrollbar { display: none; }

.event-card { flex: 0 0 380px; background: white; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); position: relative; border: 1px solid rgba(0,0,0,0.05); }
.event-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.event-image { position: relative; height: 220px; overflow: hidden; }
.event-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.event-card:hover .event-image img { transform: scale(1.1); }

.event-date { position: absolute; top: 20px; left: 20px; background: var(--grad-saffron); color: white; padding: 10px 15px; border-radius: 12px; text-align: center; z-index: 5; box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3); }
.event-date .day { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.event-date .month { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }

.event-badge { position: absolute; top: 20px; right: 20px; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); color: white; padding: 6px 15px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }

.event-content { padding: 30px; }
.event-content h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--text-dark); }
.event-content p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; }
.event-content p i { color: var(--primary-saffron); margin-right: 8px; }

/* --- Schedule Enhancements --- */
.schedule-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }
.schedule-card h3 { margin-bottom: 30px; color: var(--primary-orange); display: flex; align-items: center; gap: 15px; font-size: 1.6rem; }
.schedule-items { display: flex; flex-direction: column; gap: 15px; }

/* --- Testimonials --- */
.testimonials-slider { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.testimonial-card { background: white; padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow-md); position: relative; transition: 0.3s; }
.testimonial-card::before { content: '\f10d'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; top: 30px; right: 30px; font-size: 40px; color: rgba(255, 153, 51, 0.1); }
.testimonial-card:hover { transform: translateY(-5px); border-bottom: 4px solid var(--primary-saffron); }

.testimonial-content p { font-style: italic; color: var(--text-dark); line-height: 1.8; margin-bottom: 30px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.testimonial-author img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg-cream); }
.testimonial-author h4 { font-size: 1.1rem; margin: 0; color: var(--text-dark); }
.testimonial-author span { font-size: 0.85rem; color: var(--text-light); }

/* --- Gallery Grid --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { position: relative; border-radius: 15px; overflow: hidden; cursor: pointer; height: 250px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: white; transform: translateY(100%); transition: 0.4s; }
.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.gallery-item:hover img { transform: scale(1.1); }

/* Lightbox Styling */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; display: flex; justify-content: center; align-items: center; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 10px; box-shadow: 0 0 30px rgba(0,0,0,0.5); }
.close-lightbox { position: absolute; top: -50px; right: 0; color: white; font-size: 40px; cursor: pointer; }
.lightbox-caption { color: white; margin-top: 20px; font-size: 1.2rem; font-weight: 600; }

/* Responsive Adjustments */
@media (max-width: 768px) {
  .schedule-wrapper { grid-template-columns: 1fr; }
  .events-slider { padding-left: 15px; padding-right: 15px; }
  .event-card { flex: 0 0 300px; }
  .testimonials-slider { grid-template-columns: 1fr; }
}

/* ==========================================================================
   GLOBAL FIXES & COMPONENT ENHANCEMENTS
   ========================================================================== */

/* --- Layout Utilities --- */
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.text-center { text-align: center !important; }
.text-danger { color: var(--accent-red) !important; }
.h-100 { height: 100% !important; }
.w-100 { width: 100% !important; }
.bg-light { background-color: var(--bg-cream) !important; }

/* --- Forms & Inputs --- */
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); font-size: 0.9rem; }
.form-control { width: 100%; padding: 12px 20px; border-radius: 12px; border: 2px solid #eee; background: white; font-family: inherit; font-size: 1rem; transition: var(--transition); outline: none; }
.form-control:focus { border-color: var(--primary-saffron); box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.1); }
textarea.form-control { resize: none; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ff9933' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }

/* --- Registration Page --- */
.registration-wrapper { max-width: 900px; margin: 40px auto; padding: 20px; }
.registration-card { background: white; padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow-lg); border-top: 8px solid var(--primary-saffron); }

/* --- Announcement Bar (Marquee) --- */
.announcement-bar { background: var(--grad-saffron); color: white; padding: 10px 0; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; border-bottom: 2px solid rgba(0,0,0,0.1); }
.announcement-content marquee { vertical-align: middle; }

/* --- Breadcrumbs --- */
.breadcrumb-area { background: var(--bg-cream); padding: 25px 0; border-bottom: 1px solid rgba(255, 153, 51, 0.1); }
.breadcrumb { list-style: none; display: flex; align-items: center; gap: 15px; padding: 0; margin: 0; font-size: 0.95rem; font-weight: 500; }
.breadcrumb li { display: flex; align-items: center; gap: 15px; color: var(--text-light); }
.breadcrumb li:not(:last-child)::after { content: '\f105'; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: #ccc; font-size: 0.8rem; }
.breadcrumb li a { color: var(--primary-saffron); transition: 0.3s; }
.breadcrumb li a:hover { color: var(--primary-orange); }
.breadcrumb li:last-child { color: var(--text-dark); font-weight: 700; }

/* --- Navigation Enhancements (Dropdowns) --- */
.nav-menu li { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: white; min-width: 220px; box-shadow: var(--shadow-md); border-radius: 12px; padding: 15px 0; opacity: 0; visibility: hidden; transform: translateY(15px); transition: 0.3s ease; z-index: 1000; border-top: 4px solid var(--primary-saffron); }
.nav-menu li:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { width: 100%; list-style-type: none;}
.dropdown-menu li a { display: block; padding: 10px 25px; color: var(--text-dark); font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.dropdown-menu li a:hover { background: var(--bg-cream); color: var(--primary-saffron); padding-left: 30px; }

/* --- Mobile Nav Dropdown Adjustments --- */
@media (max-width: 768px) {
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 10px 0 10px 20px; border-top: none; display: none; background: transparent; }
  .nav-menu li.active .dropdown-menu { display: block; }
  .nav-menu li a { display: flex; justify-content: space-between; align-items: center; }
}
.form-title { color: var(--primary-orange); font-size: 1.2rem; font-weight: 700; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid #f8f8f8; display: flex; align-items: center; gap: 10px; }
.privacy-note { background: #fff8f0; padding: 15px 20px; border-radius: 10px; font-size: 0.85rem; color: #8a6d3b; border-left: 4px solid var(--primary-saffron); }

/* --- Contact Page --- */
.contact-info-card { background: white; padding: 30px 20px; border-radius: var(--border-radius); text-align: center; box-shadow: var(--shadow-md); transition: 0.4s; height: 100%; border: 1px solid rgba(0,0,0,0.03); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.contact-info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-bottom: 5px solid var(--primary-saffron); }
.contact-icon { width: 65px; height: 65px; background: var(--bg-cream); color: var(--primary-saffron); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 28px; transition: 0.4s; }
.contact-icon i { font-weight: 900 !important; }
.contact-info-card:hover .contact-icon { background: var(--grad-saffron); color: white; transform: scale(1.1); }
.contact-info-card h4 { margin-bottom: 12px; color: var(--text-dark); font-size: 1.25rem; font-weight: 700; }
.contact-info-card p { margin: 2px 0; color: var(--text-light); line-height: 1.5; font-size: 0.95rem; }
.contact-link { color: inherit; transition: 0.3s; font-weight: 600; display: inline-block; }
.contact-link:hover { color: var(--primary-saffron); text-decoration: none; }

.social-box { background: white; padding: 35px; border-radius: var(--border-radius); box-shadow: var(--shadow-md); border-top: 6px solid var(--primary-orange); }
.social-box h3 { font-size: 1.7rem; margin-bottom: 12px; color: var(--text-dark); font-weight: 700; }
.social-item { display: flex; align-items: center; gap: 15px; padding: 15px 25px; background: #fffaf5; border-radius: 12px; margin-bottom: 12px; border: 1px solid rgba(255, 153, 51, 0.1); font-weight: 600; transition: 0.3s; color: var(--text-dark); }
.social-item:hover { transform: scale(1.02); border-color: var(--primary-saffron); background: white; box-shadow: var(--shadow-sm); }
.social-item i { font-size: 20px; display: flex; align-items: center; justify-content: center; }

.map-card { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-md); border: 8px solid white; transition: 0.3s; height: 100%; min-height: 380px; }

/* --- Donation Page --- */
.qrcode img { max-width: 250px; height: auto; border: 10px solid white; box-shadow: var(--shadow-md); border-radius: 15px; margin: 20px 0; }
#copyText { font-family: monospace; letter-spacing: 1px; }

/* --- Alerts --- */
.alert { padding: 15px 25px; border-radius: 12px; margin-bottom: 30px; font-weight: 500; border: none; animation: slideDown 0.5s ease-out; }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.alert-success { background: #d4edda; color: #155724; border-left: 5px solid #28a745; }
.alert-danger { background: #f8d7da; color: #721c24; border-left: 5px solid #dc3545; }
.alert-warning { background: #fff3cd; color: #856404; border-left: 5px solid #ffc107; }

/* --- Additional Header/Footer Fixes --- */
.footer-logo img { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 15px; border: 3px solid rgba(255,255,255,0.1); padding: 5px; background: white; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 12px; }
.footer-column ul li a { color: rgba(255,255,255,0.7); transition: 0.3s; position: relative; }
.footer-column ul li a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--primary-saffron); transition: 0.3s; }
.footer-column ul li a:hover { color: white; }
.footer-column ul li a:hover::after { width: 100%; }
.footer-column i { color: var(--primary-saffron); font-size: 1.1rem; text-align: center; margin-top: 4px; }
.contact-list li { line-height: 1.5; color: rgba(255,255,255,0.7); }
.social-links { display: flex; gap: 15px; margin-top: 25px; }
.social-links a { width: 42px; height: 42px; background: rgba(255,255,255,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white !important; font-size: 1.2rem; transition: 0.4s; border: 1px solid rgba(255,255,255,0.05); }
.social-links a:hover { background: var(--grad-saffron); transform: scale(1.1); border-color: transparent; box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4); }

/* --- Button Size Variations --- */
.btn-lg { padding: 18px 45px; font-size: 1.1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

/* --- Admin Card Hover --- */
.admin-card { background: white; padding: 25px; border-radius: 15px; box-shadow: var(--shadow-sm); border-left: 5px solid var(--primary-saffron); }

/* --- About Page Specifics --- */
.about-card { background: white; padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow-md); margin-bottom: 30px; border-top: 5px solid var(--primary-saffron); transition: 0.3s; }
.about-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.about-card h3 { color: var(--primary-orange); margin-bottom: 20px; font-size: 1.6rem; display: flex; align-items: center; gap: 15px; font-weight: 700; }
.about-card h3 i { color: var(--primary-saffron); font-size: 1.4rem; }
.about-card p { margin-bottom: 15px; color: var(--text-dark); line-height: 1.8; }
.about-card h4 { color: var(--text-dark); font-weight: 700; }

.feature-list { list-style: none; padding: 0; }
.feature-list li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 12px; line-height: 1.6; color: var(--text-dark); }
.feature-list i { color: var(--primary-saffron); font-size: 1.1rem; margin-top: 4px; }
.feature-list strong { color: var(--primary-orange); }

/* --- Gallery & Album Styling --- */
.album-card { display: block; background: white; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: 0.4s; border: 1px solid rgba(0,0,0,0.05); }
.album-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--primary-saffron); }
.album-thumb-box { position: relative; height: 240px; overflow: hidden; }
.album-thumb { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.album-card:hover .album-thumb { transform: scale(1.1); }
.album-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 15px 20px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: white; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.85rem; }
.album-info { padding: 25px; }
.album-title { font-size: 1.25rem; color: var(--text-dark); margin-bottom: 8px; font-weight: 700; }
.album-date { font-size: 0.85rem; color: var(--text-light); }

.photo-item { display: block; border-radius: 15px; overflow: hidden; height: 250px; box-shadow: var(--shadow-sm); transition: 0.4s; border: 5px solid white; }
.photo-item:hover { transform: scale(1.03) rotate(1deg); box-shadow: var(--shadow-md); border-color: var(--primary-saffron); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }

.year-divider { display: flex; align-items: center; gap: 20px; margin: 50px 0 30px; }
.year-line { flex: 1; height: 2px; background: rgba(255, 153, 51, 0.1); }
.year-badge { background: var(--grad-saffron); color: white; padding: 8px 25px; border-radius: 50px; font-weight: 800; font-size: 1.1rem; box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3); }

.back-btn { display: inline-flex; align-items: center; gap: 10px; color: var(--primary-saffron); font-weight: 700; transition: 0.3s; }
.back-btn:hover { color: var(--primary-orange); transform: translateX(-5px); }

/* --- Event Detail Styling --- */
.event-detail { background: white; padding: 50px; border-radius: var(--border-radius); box-shadow: var(--shadow-md); border-left: 8px solid var(--primary-saffron); }
.event-detail-header h2 { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 15px; }
.event-detail-image img { width: 100%; border-radius: 15px; box-shadow: var(--shadow-md); border: 8px solid #f8f8f8; }
.event-detail-content { font-size: 1.1rem; line-height: 1.8; color: var(--text-dark); }

/* --- Team / Leadership Styling --- */
.leader-card { background: white; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: 0.4s; text-align: center; border: 1px solid rgba(0,0,0,0.03); height: 100%; }
.leader-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--primary-saffron); }
.leader-img-box { height: 260px; overflow: hidden; position: relative; }
.leader-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.leader-card:hover .leader-img-box img { transform: scale(1.1); }
.leader-info { padding: 25px; }
.leader-role { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; color: var(--primary-orange); letter-spacing: 1px; margin-bottom: 8px; }
.leader-name { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); }

.search-container { position: relative; max-width: 500px; margin: 0 auto 40px; }
.search-container i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--primary-saffron); }
.search-container input { width: 100%; padding: 15px 20px 15px 50px; border-radius: 50px; border: 2px solid #eee; font-family: inherit; font-size: 1rem; transition: 0.3s; outline: none; box-shadow: var(--shadow-sm); }
.search-container input:focus { border-color: var(--primary-saffron); box-shadow: 0 0 0 5px rgba(255,153,51,0.1); }

/* Devotee Member Card */
.member-card { background: white; padding: 20px; border-radius: 15px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-sm); transition: 0.3s; cursor: pointer; border: 1px solid #f0f0f0; margin-bottom: 15px; }
.member-card:hover { transform: translateX(5px); border-color: var(--primary-saffron); box-shadow: var(--shadow-md); }
.member-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-cream); }
.member-name { font-weight: 700; color: var(--text-dark); font-size: 0.95rem; }
.member-sub { font-size: 0.8rem; color: var(--text-light); }

/* --- 404 Error Page --- */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; background: var(--bg-cream); position: relative; overflow: hidden; }
.error-container { position: relative; z-index: 5; max-width: 600px; }
.error-code { font-size: clamp(8rem, 15vw, 12rem); font-weight: 900; line-height: 1; background: var(--grad-saffron); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: -20px; opacity: 0.2; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1; width: 100%; }
.error-icon { font-size: 80px; color: var(--primary-saffron); margin-bottom: 30px; animation: ring 4s ease-in-out infinite; transform-origin: top center; display: inline-block; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(15deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(10deg); } 40% { transform: rotate(-8deg); } 50% { transform: rotate(6deg); } 60% { transform: rotate(0); } }
.error-title { font-size: 2rem; color: var(--text-dark); margin-bottom: 15px; font-weight: 800; }
.error-subtitle { font-family: "Noto Sans Devanagari", sans-serif; font-size: 1.5rem; color: var(--primary-orange); margin-bottom: 25px; }
.error-text { font-size: 1.1rem; color: var(--text-light); margin-bottom: 40px; line-height: 1.6; }
.error-bg-symbol { position: absolute; font-size: 25rem; color: rgba(255, 153, 51, 0.03); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; pointer-events: none; font-family: "Noto Sans Devanagari", sans-serif; }
