/* ============================================================
   ADDITIONS: Hero Slider, Gallery, Audio, Devotional Images
   Append this to existing style.css
   ============================================================ */

/* ══════════════════════════════════════
   HERO SLIDER
   ══════════════════════════════════════ */
.hero-slider { position: relative; min-height: 100vh; overflow: hidden; }
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1.2s ease;
    display: flex; align-items: center; justify-content: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: brightness(0.4);
}
.hero-slide-bg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(139,26,26,0.3) 100%);
}
.hero-slide-content {
    position: relative; z-index: 3; text-align: center; padding: 0 30px;
    max-width: 800px; animation: fadeInUp 0.8s ease;
}
.hero-slide-content h2 {
    font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 15px;
    text-shadow: 0 3px 20px rgba(0,0,0,0.4);
}
.hero-slide-content p {
    font-size: 1.1rem; color: rgba(255,255,255,0.85);
    max-width: 600px; margin: 0 auto 25px;
}
.hero-slider-dots {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; gap: 10px;
}
.hero-slider-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.4); border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer; transition: var(--transition);
}
.hero-slider-dot.active { background: var(--saffron); border-color: var(--saffron); transform: scale(1.2); }
.hero-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    color: var(--white); width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.2rem; transition: var(--transition);
    backdrop-filter: blur(10px);
}
.hero-slider-arrow:hover { background: rgba(255,255,255,0.25); }
.hero-slider-arrow.prev { left: 25px; }
.hero-slider-arrow.next { right: 25px; }

/* Fallback hero (no slides) */
.hero-default { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
    background: linear-gradient(175deg, var(--cream-warm) 0%, var(--white) 40%, var(--cream-deep) 70%, var(--saffron-pale) 100%); }

@media(max-width:768px) {
    .hero-slider-arrow { display: none; }
    .hero-slide-content h2 { font-size: clamp(2rem, 5vw, 3rem); }
}

/* ══════════════════════════════════════
   DEVOTIONAL IMAGE SECTIONS
   ══════════════════════════════════════ */
.devotional-strip {
    padding: 60px 0; overflow: hidden; position: relative;
    background: linear-gradient(135deg, var(--cream-warm), var(--gold-faint), var(--saffron-pale));
    border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}
.devotional-strip .container { display: flex; align-items: center; gap: 40px; }
.devotional-image-frame {
    flex: 0 0 280px; position: relative;
}
.devotional-image-frame img {
    width: 100%; border-radius: var(--radius-xl);
    border: 4px solid var(--gold-pale);
    box-shadow: 0 15px 40px rgba(197,146,46,0.15);
    aspect-ratio: 3/4; object-fit: cover;
}
.devotional-image-frame::before {
    content: 'ॐ'; position: absolute; top: -15px; right: -15px;
    font-family: var(--font-sanskrit); font-size: 2.5rem;
    color: rgba(197,146,46,0.2); z-index: -1;
}
.devotional-text { flex: 1; }
.devotional-text h3 {
    font-family: var(--font-heading); font-size: 2rem;
    color: var(--maroon); margin-bottom: 15px;
}
.devotional-text .shloka {
    font-family: var(--font-sanskrit); font-size: 1.15rem;
    color: var(--saffron); line-height: 1.8; margin-bottom: 10px;
}
.devotional-text .meaning {
    font-family: var(--font-heading); font-size: 1rem;
    color: var(--text-muted); font-style: italic;
}

.devotional-banner {
    position: relative; padding: 80px 0; overflow: hidden;
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%);
}
.devotional-banner-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px;
    position: relative; z-index: 1;
}
.devotional-banner-card {
    border-radius: var(--radius-lg); overflow: hidden;
    position: relative; aspect-ratio: 3/4;
    border: 2px solid rgba(197,146,46,0.2);
    transition: var(--transition);
}
.devotional-banner-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.devotional-banner-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.devotional-banner-card:hover img { transform: scale(1.05); }
.devotional-banner-card .overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
}
.devotional-banner-card .overlay h4 {
    font-family: var(--font-heading); font-size: 1.2rem;
    color: var(--gold-pale);
}

@media(max-width:768px) {
    .devotional-strip .container { flex-direction: column; text-align: center; }
    .devotional-image-frame { flex: none; width: 220px; }
    .devotional-banner-grid { grid-template-columns: 1fr; max-width: 350px; margin: 0 auto; }
}

/* ══════════════════════════════════════
   PHOTO GALLERY
   ══════════════════════════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}
.gallery-item {
    position: relative; border-radius: var(--radius);
    overflow: hidden; cursor: pointer;
    aspect-ratio: 4/3; background: var(--sand);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(197,146,46,0.12); }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(transparent 50%, rgba(139,26,26,0.6) 100%);
    opacity: 0; transition: opacity 0.4s;
    display: flex; align-items: flex-end; padding: 15px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .gallery-overlay p {
    color: var(--white); font-size: 0.9rem; font-weight: 500;
}
.gallery-item .gallery-zoom {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.7);
    width: 45px; height: 45px; background: rgba(255,255,255,0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.2rem; opacity: 0;
    transition: var(--transition); backdrop-filter: blur(5px);
}
.gallery-item:hover .gallery-zoom { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* Home gallery - compact version */
.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 12px;
}
.home-gallery-grid .gallery-item:first-child {
    grid-column: span 2; grid-row: span 2;
    aspect-ratio: auto;
}
.home-gallery-grid .gallery-item { aspect-ratio: auto; }

@media(max-width:768px) {
    .home-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .home-gallery-grid .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
    .home-gallery-grid .gallery-item { aspect-ratio: 4/3; }
}

/* Photo lightbox */
.lightbox {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 10000;
    align-items: center; justify-content: center; padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 90%; max-height: 85vh; object-fit: contain;
    border-radius: var(--radius); border: 3px solid rgba(197,146,46,0.3);
}
.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    background: none; border: none; color: var(--gold-pale);
    font-size: 2.5rem; cursor: pointer; z-index: 10001;
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: var(--white); width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.3rem; transition: var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-caption {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: var(--gold-pale); font-family: var(--font-heading); font-size: 1.1rem;
    text-align: center; max-width: 600px;
}

/* Gallery filters */
.gallery-filters {
    display: flex; justify-content: center; gap: 10px;
    margin-bottom: 35px; flex-wrap: wrap;
}
.gallery-filter-btn {
    padding: 8px 22px; background: transparent;
    border: 1px solid var(--border-light); color: var(--text-muted);
    border-radius: 25px; cursor: pointer;
    font-family: var(--font-body); font-size: 0.85rem;
    transition: var(--transition);
}
.gallery-filter-btn:hover, .gallery-filter-btn.active {
    background: var(--gold-faint); border-color: var(--gold); color: var(--maroon);
}

/* ══════════════════════════════════════
   AUDIO PLAYER
   ══════════════════════════════════════ */
.audio-player-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
    z-index: 997; padding: 10px 0;
    transform: translateY(100%); transition: transform 0.5s ease;
    border-top: 2px solid var(--gold);
}
.audio-player-bar.visible { transform: translateY(0); }
.audio-player-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 15px;
}
.audio-play-btn {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    border: none; color: var(--white); font-size: 1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: var(--transition);
    box-shadow: 0 2px 12px rgba(255,107,0,0.3);
}
.audio-play-btn:hover { transform: scale(1.08); }
.audio-info {
    flex: 1; min-width: 0;
}
.audio-info .audio-title {
    font-size: 0.8rem; color: var(--gold-pale); font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.audio-info .audio-label {
    font-size: 0.65rem; color: rgba(255,255,255,0.5);
    text-transform: uppercase; letter-spacing: 1px;
}
.audio-progress-wrap {
    flex: 2; height: 4px; background: rgba(255,255,255,0.15);
    border-radius: 2px; cursor: pointer; position: relative;
}
.audio-progress {
    height: 100%; background: linear-gradient(90deg, var(--saffron), var(--gold));
    border-radius: 2px; width: 0%; transition: width 0.1s;
}
.audio-time {
    font-size: 0.75rem; color: rgba(255,255,255,0.5);
    flex-shrink: 0; min-width: 50px; text-align: center;
}
.audio-volume-btn {
    background: none; border: none; color: rgba(255,255,255,0.6);
    cursor: pointer; font-size: 1rem; padding: 5px;
    transition: var(--transition);
}
.audio-volume-btn:hover { color: var(--gold-pale); }
.audio-close-btn {
    background: none; border: none; color: rgba(255,255,255,0.4);
    cursor: pointer; font-size: 1.1rem; padding: 5px;
    transition: var(--transition);
}
.audio-close-btn:hover { color: var(--white); }

/* Adjust other fixed elements when audio bar is visible */
body.audio-active .whatsapp-float { bottom: 75px; }
body.audio-active .scroll-top { bottom: 75px; }

@media(max-width:768px) {
    .audio-progress-wrap { display: none; }
    .audio-time { display: none; }
}

/* ══════════════════════════════════════
   ABOUT PAGE - IMAGE SECTION
   ══════════════════════════════════════ */
.about-hero-image {
    position: relative; border-radius: var(--radius-xl);
    overflow: hidden; border: 4px solid var(--gold-pale);
    box-shadow: 0 20px 60px rgba(139,26,26,0.08);
}
.about-hero-image img {
    width: 100%; aspect-ratio: 4/5; object-fit: cover;
    transition: transform 0.6s ease;
}
.about-hero-image:hover img { transform: scale(1.03); }
