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

:root {
    --color-rambhapuri: #2e7d32;
    --color-ujjaini: #c62828;
    --color-kedara: #1565c0;
    --color-srisaila: #ffffff;
    --color-kashi: #f9a825;

    --bg: #ffffff;
    --bg-light: #fefcf9;
    --bg-warm: #fef8f0;
    --text: #1a1a1a;
    --text-light: #555;
    --text-muted: #888;
    --border: #f5ebe0;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 4px 20px rgba(120, 80, 30, 0.08);
    --radius: 12px;
    --radius-lg: 20px;

    --gold: #b8860b;
    --gold-light: #d4a84b;
    --gold-glow: rgba(184, 134, 11, 0.15);
    --saffron: #e67e22;
    --maroon: #6b2020;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(184, 134, 11, 0.15);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    
    /* Easing Tokens */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Theme Gradients */
    --gradient-rambhapuri: linear-gradient(135deg, #1b5e20, #4caf50);
    --gradient-ujjaini: linear-gradient(135deg, #b71c1c, #f44336);
    --gradient-kedara: linear-gradient(135deg, #0d47a1, #2196f3);
    --gradient-srisaila: linear-gradient(135deg, #e6c280, #ffffff);
    --gradient-kashi: linear-gradient(135deg, #e65100, #ffb74d);
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #faf6f0;
}
::-webkit-scrollbar-thumb {
    background: var(--gold-light);
    border-radius: 5px;
    border: 2px solid #faf6f0;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}


/* ===== Keyword Highlight ===== */
.keyword {
    color: var(--gold);
    font-weight: 600;
    position: relative;
}

.hero .keyword {
    color: var(--gold);
    text-shadow: none;
}


/* ===== Hero ===== */
.hero {
    background: linear-gradient(-45deg, #fffdfa, #faf1e6, #fffcf5, #f5ebd3);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    border-bottom: 1px solid var(--border);
    padding: 100px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scroll Down Mouse Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.scroll-indicator.block-indicator {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 50px auto 10px;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
    animation: bounceMouse 2s ease-in-out infinite;
}

@keyframes bounceMouse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheelAnimation 1.6s ease-in-out infinite;
}

@keyframes scrollWheelAnimation {
    0% { opacity: 0; transform: translate(-50%, 0); }
    30% { opacity: 1; }
    60% { opacity: 0; transform: translate(-50%, 8px); }
    100% { opacity: 0; }
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-om {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.8;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 0 20px rgba(184, 134, 11, 0.15);
    animation: pulse-glow-light 3s ease-in-out infinite;
}

@keyframes pulse-glow-light {
    0%, 100% { opacity: 0.6; text-shadow: 0 0 20px rgba(184, 134, 11, 0.1); }
    50% { opacity: 0.9; text-shadow: 0 0 40px rgba(184, 134, 11, 0.25); }
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

.hero-subtitle .keyword {
    color: var(--gold);
    font-weight: 600;
}

/* ===== Hero Murals (Decorative Side Images) ===== */
.hero-mural {
    position: absolute;
    top: 50%;
    width: 380px;
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid rgba(184, 134, 11, 0.25);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.12),
        0 0 25px rgba(184, 134, 11, 0.08);
    z-index: 2;
    pointer-events: auto;
    transition: 
        opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
        transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
        border-color 0.4s ease, 
        box-shadow 0.4s ease;
    opacity: 0;
}

.mural-left {
    left: 4%;
    transform: translateY(-40%);
}

.mural-right {
    right: 4%;
    transform: translateY(-40%);
}

/* Custom reveal state for murals — static, no floating */
.hero-mural.revealed {
    opacity: 0.9;
}

.mural-left.revealed {
    transform: translateY(-50%);
}

.mural-right.revealed {
    transform: translateY(-50%);
}

/* Hover effects */
.hero-mural:hover {
    border-color: rgba(184, 134, 11, 0.8);
    box-shadow: 
        0 20px 45px rgba(184, 134, 11, 0.2),
        0 0 30px rgba(184, 134, 11, 0.25);
    opacity: 1 !important;
}

.mural-left:hover {
    transform: translateY(-50%) scale(1.02);
}

.mural-right:hover {
    transform: translateY(-50%) scale(1.02);
}

.hero-mural img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-mural:hover img {
    transform: scale(1.06);
}

/* Responsive adjustments for murals */
@media (max-width: 1500px) {
    .hero-mural {
        width: 300px;
        height: 200px;
        left: 2%;
        right: 2%;
    }
}

@media (max-width: 1100px) {
    .hero-mural {
        width: 260px;
        height: 170px;
        opacity: 0.12 !important;
        z-index: 0;
        pointer-events: none;
    }
    
    .hero-mural.revealed {
        opacity: 0.12;
    }
    
    .mural-left {
        left: 1%;
    }
    
    .mural-right {
        right: 1%;
    }
}

@media (max-width: 768px) {
    .hero-mural {
        width: 150px;
        height: 100px;
        opacity: 0.2 !important;
        pointer-events: none;
    }
    
    .mural-left { left: -10px; }
    .mural-right { right: -10px; }
}




/* ===== Peethas Grid ===== */
.peethas-section {
    padding: 30px 0 80px;
    background: var(--bg-light);
}

.peethas-section .container {
    max-width: 1650px;
}

.peethas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

/* ===== Peetha Card ===== */
.peetha-card {
    display: flex;
    flex-direction: column;
    background: color-mix(in srgb, var(--peetha-color) 8%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--peetha-color) 20%, #ffffff);
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-card);
    transition: transform 0.5s var(--ease-spring),
                box-shadow 0.5s var(--ease-spring),
                background 0.4s ease,
                border-color 0.4s ease;
    position: relative;
    padding-top: 90px; /* space for protruding portrait */
    margin-top: 75px; /* offset for protruding portrait */
}

.peetha-card:hover {
    transform: translateY(-16px) scale(1.03);
    background: color-mix(in srgb, var(--peetha-color) 14%, #ffffff);
    border-color: color-mix(in srgb, var(--peetha-color) 40%, #ffffff);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.08),
        0 0 40px color-mix(in srgb, var(--peetha-color) 45%, transparent);
}

/* --- White Card Overrides (Srisaila) --- */
.peetha-card.is-white {
    background: #ffffff !important;
    border: 1px solid #e2d4c5 !important;
}

.peetha-card.is-white:hover {
    background: #ffffff !important;
    border-color: var(--gold) !important;
}

.peetha-card.is-white .card-simhasana {
    color: var(--gold) !important;
}

.peetha-card.is-white .card-footer-action span {
    color: var(--gold) !important;
}

.peetha-card.is-white .card-portrait {
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.12),
        0 0 0 2px rgba(184, 134, 11, 0.4) !important;
}

/* --- Protruding Portrait --- */
.card-portrait-wrapper {
    position: absolute;
    top: -75px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: z-index 0.3s ease;
}

.card-portrait-wrapper:hover {
    z-index: 20;
}

.card-portrait {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.12),
        0 0 0 2px color-mix(in srgb, var(--peetha-color) 40%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--peetha-color) 15%, white), var(--bg-warm));
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.peetha-card:hover .card-portrait {
    transform: scale(1.06);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.16),
        0 0 0 4px color-mix(in srgb, var(--peetha-color) 70%, transparent),
        0 0 20px 4px var(--gold-light);
    animation: pulseGoldRing 2s ease-in-out infinite;
}

@keyframes pulseGoldRing {
    0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), 0 0 0 4px color-mix(in srgb, var(--peetha-color) 70%, transparent), 0 0 16px 2px var(--gold-light); }
    50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), 0 0 0 4px color-mix(in srgb, var(--peetha-color) 70%, transparent), 0 0 30px 6px var(--gold); }
}

.card-portrait:hover {
    transform: scale(1.24) translateY(-10px) !important;
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.24),
        0 0 0 4px color-mix(in srgb, var(--peetha-color) 70%, transparent) !important;
}

.card-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.portrait-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--peetha-color);
    opacity: 0.4;
    font-family: 'Playfair Display', serif;
}

.card-portrait.no-image img {
    display: none;
}

.card-portrait:not(.no-image) .portrait-fallback {
    display: none;
}


/* --- Card Body --- */
.card-body {
    padding: 12px 18px 16px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

/* Shimmer Reflection Sweep */
.card-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
}

.peetha-card:hover .card-body::after {
    left: 150%;
    transition: left 0.8s ease-in-out;
}

.card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 2px;
}

.card-simhasana {
    font-size: 0.72rem;
    color: var(--peetha-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}


/* --- Mutt Photo --- */
.card-mutt-photo {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-warm), #f0e6d6);
    border: 1px solid var(--border);
    position: relative;
    margin: 6px 0;
    transition: box-shadow 0.3s ease;
}

.peetha-card:hover .card-mutt-photo {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card-mutt-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
}

.peetha-card:hover .card-mutt-photo::after {
    left: 150%;
    transition: all 0.8s ease-in-out;
}

.card-mutt-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.peetha-card:hover .card-mutt-photo img {
    transform: scale(1.05);
}

.mutt-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mutt-fallback-icon {
    font-size: 1.6rem;
    opacity: 0.3;
}

.mutt-fallback-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.card-mutt-photo.no-image img {
    display: none;
}

.card-mutt-photo:not(.no-image) .mutt-fallback {
    display: none;
}


/* --- Card Info Text --- */
.card-acharya {
    font-size: 0.78rem;
    color: var(--text-light);
}

.card-acharya strong {
    color: var(--text);
    font-weight: 600;
}

.card-location {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: auto;
}

.card-linga {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
}


/* --- Card Footer Action --- */
.card-footer-action {
    padding: 12px 18px;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.card-footer-action span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--peetha-color);
    letter-spacing: 0.5px;
    transition: letter-spacing 0.3s ease;
}

.peetha-card:hover .card-footer-action span {
    letter-spacing: 1.5px;
}


/* ===== About Section ===== */
.about-section {
    background: linear-gradient(160deg, #faf1e6 0%, #fffdfa 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 70px 0 80px;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 28px;
    text-align: center;
    color: var(--text);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.about-section h2 .keyword {
    color: var(--gold);
}

.about-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.9;
}

.about-content .keyword {
    color: var(--gold);
    font-weight: 600;
}

.about-link {
    color: var(--gold) !important;
    border-bottom: 1px dashed rgba(184, 134, 11, 0.4);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
    font-weight: 500;
}

.about-link:hover {
    color: var(--gold-light) !important;
    border-bottom-color: rgba(184, 134, 11, 0.8);
    border-bottom-style: solid;
}


/* ===== Detail Page ===== */
.detail-hero .container,
.detail-body .container {
    max-width: 1650px;
}

.detail-hero {
    background: var(--peetha-hero-bg);
    padding: 80px 0 0;
    border-bottom: 3px solid var(--peetha-color);
    position: relative;
}

.back-link {
    font-size: 0.85rem;
    color: var(--text-light);
    display: inline-block;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--peetha-color);
}

.detail-hero-content {
    text-align: center;
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.detail-hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.detail-simhasana {
    font-size: 1rem;
    color: var(--peetha-color);
    font-weight: 500;
    margin-bottom: 0;
}


/* ===== Detail Body ===== */
.detail-body {
    padding: 16px 0 50px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

.info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--peetha-color);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text);
}

.key-details-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    line-height: 1.5;
}

.detail-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.detail-value {
    font-size: 0.92rem;
    color: var(--text);
}

.detail-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text);
}

.content-section {
    margin-bottom: 36px;
}

.content-section p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}


/* ===== Footer ===== */
.site-footer {
    background: #1a0e08;
    border-top: 1px solid rgba(184, 134, 11, 0.15);
    padding: 24px 0;
    text-align: center;
}

.site-footer p {
    font-size: 0.8rem;
    color: rgba(245, 239, 230, 0.4);
    font-weight: 400;
}


/* ===== Responsive ===== */
@media (max-width: 1250px) {
    .peethas-grid {
        display: flex;
        overflow-x: auto;
        padding: 20px 4px;
        gap: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .peetha-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
        margin-top: 75px;
        padding-top: 90px;
    }
    
    .card-portrait-wrapper {
        top: -75px;
    }

    .card-portrait {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .peethas-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-x: visible;
        gap: 0;
        padding: 20px 0;
    }

    .peetha-card {
        width: 100%;
        max-width: 320px;
        flex: none;
        margin-top: 80px;
    }

    .peetha-card + .peetha-card {
        margin-top: 135px;
    }
    
    .use-rectangle .peetha-card {
        margin-top: 130px;
    }

    .use-rectangle .peetha-card + .peetha-card {
        margin-top: 185px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .detail-hero h2 {
        font-size: 1.5rem;
    }

    .about-section h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0 40px;
    }

    .hero h2 {
        font-size: 1.3rem;
    }
    
    .peetha-card {
        flex: none;
    }
}

/* ===== Rectangle Variant Override ===== */
.use-rectangle .peetha-card {
    padding-top: 160px;
    margin-top: 130px;
}

.use-rectangle .card-portrait-wrapper {
    top: -125px;
}

.use-rectangle .card-portrait {
    width: 200px;
    height: 250px;
    border-radius: var(--radius);
}

.use-rectangle .card-portrait:hover {
    transform: scale(1.08) translateY(-10px) !important;
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.24),
        0 0 0 4px color-mix(in srgb, var(--peetha-color) 70%, transparent) !important;
}

@media (max-width: 1250px) {
    .use-rectangle .peetha-card {
        padding-top: 160px;
        margin-top: 130px;
    }
    
    .use-rectangle .card-portrait-wrapper {
        top: -125px;
    }

    .use-rectangle .card-portrait {
        width: 200px;
        height: 250px;
        border-radius: var(--radius);
    }
}

/* ===== In-place Portrait Zoom ===== */
.card-portrait {
    cursor: pointer;
}

.card-portrait-wrapper {
    transition: z-index 0.4s ease;
}

/* Elevate and enlarge on click */
.card-portrait-wrapper.active-zoom {
    z-index: 100 !important;
}

.card-portrait-wrapper.active-zoom .card-portrait {
    transform: scale(1.5) translateY(-30px) !important;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.35),
        0 0 0 4px color-mix(in srgb, var(--peetha-color) 80%, transparent) !important;
}

/* ===== Custom Dropdown Selector ===== */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--text);
    border: 1px solid rgba(184, 134, 11, 0.25);
    padding: 8px 32px 8px 16px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.04);
    display: flex;
    align-items: center;
    position: relative;
    user-select: none;
}

.dropdown-trigger:hover, .dropdown-trigger:focus {
    border-color: var(--gold);
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.12);
}

.dropdown-arrow {
    position: absolute;
    right: 12px;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Custom Dropdown Menu Options list */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.15);
    padding: 6px 0;
    min-width: 130px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top right;
}

.custom-dropdown.open .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Custom Dropdown option items */
.dropdown-item {
    display: block;
    padding: 8px 18px;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    transition: all 0.25s ease;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: rgba(184, 134, 11, 0.08);
    color: var(--gold);
    padding-left: 22px; /* slide on hover */
}

.dropdown-item.active {
    background-color: var(--gold-glow);
    color: var(--gold);
    font-weight: 700;
}

@media (max-width: 768px) {
    .dropdown-trigger {
        font-size: 0.75rem;
        padding: 6px 26px 6px 10px;
    }
    .dropdown-arrow {
        right: 8px;
        width: 10px;
        height: 10px;
    }
    .dropdown-menu {
        min-width: 110px;
    }
    .dropdown-item {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    .dropdown-item:hover {
        padding-left: 15px;
    }
}

/* ===== Associated Linga Link ===== */
.linga-link {
    color: var(--text-light);
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px dashed rgba(184, 134, 11, 0.3);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* On card hover, make the link more prominent */
.peetha-card:hover .linga-link {
    color: var(--text);
    border-bottom-color: var(--peetha-color);
}

/* Revert/fix for white card (Srisaila) hover */
.peetha-card.is-white:hover .linga-link {
    border-bottom-color: var(--gold);
}

.linga-link:hover {
    color: var(--gold-light) !important;
    border-bottom-color: var(--gold-light) !important;
    border-bottom-style: solid;
    text-shadow: 0 0 8px rgba(184, 134, 11, 0.1);
}

/* In Key Details sidebar card */
.info-card .linga-link {
    color: var(--peetha-color);
    font-weight: 500;
}

.info-card .linga-link:hover {
    color: var(--gold) !important;
}


/* ===== Navigation Header ===== */
.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: max-content;
    min-width: 480px;
    max-width: 96%;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(210%);
    -webkit-backdrop-filter: blur(24px) saturate(210%);
    border: 1.5px solid var(--glass-border);
    border-radius: 40px;
    box-shadow: 
        var(--glass-shadow),
        0 1px 0 rgba(255, 255, 255, 0.4) inset;
    transition: all 0.4s var(--ease-spring);
}

.site-header.scrolled {
    top: 10px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 40px rgba(184, 134, 11, 0.12);
    border-color: rgba(184, 134, 11, 0.35);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    padding: 0 8px 0 20px;
    gap: 16px;
}

.logo {
    display: none; /* Removed as per request */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 20px;
    white-space: nowrap;
    position: relative;
    background: transparent !important;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), left 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

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

.nav-link.active::after {
    width: 60%;
    left: 20%;
}

/* Custom button overrides removed to inherit standard .nav-link styling */

@media (max-width: 768px) {
    .site-header {
        width: 92%;
        min-width: unset;
        top: 10px;
    }
    
    .header-container {
        padding: 0 6px 0 12px;
        gap: 12px;
        height: 50px;
    }
    
    .nav-links {
        gap: 4px;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    /* Mobile overrides removed to inherit standard .nav-link styling */
}

/* ===== Login Page ===== */
.login-section {
    background: var(--bg-light);
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 24px 40px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-card);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.login-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: 8px;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--gold);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: var(--gold-light);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
}

.back-home-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.back-home-link:hover {
    color: var(--gold);
}

/* ===== Dashboard ===== */
.dashboard-section {
    padding: 110px 0 65px;
    background: var(--bg-light);
    min-height: calc(100vh - 140px);
}

.dashboard-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.dashboard-header-bar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text);
}

.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--gold-glow);
    color: var(--gold);
    margin-top: 4px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    padding: 10px 18px;
    background: #ffffff;
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-warm);
    color: var(--text);
}

.btn-danger {
    padding: 10px 18px;
    background: #c62828;
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-danger:hover {
    background: #b71c1c;
}

.messages-container {
    margin-bottom: 24px;
}

.alert-message {
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 12px;
    border: 1px solid transparent;
}

.alert-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.alert-message.error {
    background-color: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

/* Admin Grid Portal */
.admin-grid-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.admin-peethas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.admin-peetha-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-peetha-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.admin-peetha-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text);
}

.admin-peetha-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.manage-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    margin-top: auto;
    padding-top: 12px;
}

/* Peetha Dashboard Specific */
.peetha-dashboard-wrapper {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.peetha-dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.back-admin-link {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.back-admin-link:hover {
    color: var(--gold);
}

.peetha-title {
    font-weight: 700;
}

.dashboard-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    gap: 16px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--gold);
}

.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.dashboard-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.media-table-wrapper {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.dashboard-table th {
    font-weight: 600;
    color: var(--text-light);
    padding: 12px;
    border-bottom: 2px solid var(--border);
}

.dashboard-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table-thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-photo {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-video {
    background: #e3f2fd;
    color: #1565c0;
}

.lang-indicator {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.yt-link {
    color: #c62828;
    text-decoration: underline;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit {
    background: #f5ebe0;
    color: #b8860b;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.btn-edit:hover {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
}

.btn-delete {
    background: #ffebee;
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.2);
}

.btn-delete:hover {
    background: #c62828;
    color: #ffffff;
    border-color: #c62828;
}

.no-records {
    text-align: center;
    color: var(--text-muted);
    padding: 30px !important;
}

.end-date-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Forms in Dashboard */
.dashboard-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-divider {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.multilingual-details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 8px 12px;
}

.multilingual-details summary {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    cursor: pointer;
    outline: none;
}

.translation-fields {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.lang-section-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-light);
    padding: 10px;
    border-radius: 6px;
}

.lang-section-block h5 {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

/* ===== Edit Section Page ===== */
.edit-section {
    padding: 110px 24px 50px;
    background: var(--bg-light);
    min-height: calc(100vh - 140px);
    display: flex;
    justify-content: center;
}

.edit-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-card);
}

.edit-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.edit-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text);
}

.edit-thumbnail {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.edit-actions button {
    flex: 1;
}

.edit-actions a {
    flex: 1;
    text-align: center;
}

/* ===== Public Detail Page Spacings and Lists ===== */
.no-data-msg {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 24px 0;
    font-size: 0.9rem;
}

/* Travel Plan timeline */
.travel-timeline {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-month-header {
    margin-top: 10px;
    border-left: 4px solid var(--gold);
    padding-left: 12px;
}

.timeline-month-header h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--text);
    text-transform: capitalize;
}

.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 20px;
}

.timeline-events::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold-light), var(--border));
}

.timeline-event-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    gap: 20px;
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.timeline-event-card:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.05);
}

.timeline-event-card::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 24px;
    width: 10px;
    height: 10px;
    background: var(--peetha-color);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px #ffffff;
    transition: transform 0.3s var(--ease-spring), background-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-event-card:hover::before {
    background: var(--gold);
    box-shadow: 0 0 0 4px #ffffff, 0 0 12px 3px var(--gold-light);
    transform: translateX(-50%) scale(1.4);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    background: var(--bg-warm);
    border-radius: var(--radius);
    padding: 8px;
    font-weight: 700;
    color: var(--gold);
}

.event-day {
    font-size: 1.2rem;
}

.event-date-sep {
    font-size: 0.75rem;
    line-height: 1;
    margin: -2px 0;
}

.event-details {
    flex: 1;
}

.event-details h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.event-location {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 6px;
}

.event-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Media Gallery Grid */
.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.gallery-item-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.gallery-image-wrapper {
    position: relative;
    height: 180px;
    cursor: pointer;
    overflow: hidden;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image-wrapper:hover .gallery-zoom-overlay {
    opacity: 1;
}

/* Responsive iframe youtube wrapper */
.gallery-video-wrapper {
    width: 100%;
    background: #000000;
}

.video-ratio-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
}

.video-ratio-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery-caption {
    padding: 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-caption h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.gallery-caption p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--gold-light);
}

.lightbox-content-wrapper {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 3px solid #ffffff;
}

.lightbox-caption {
    color: #ffffff;
    text-align: center;
    max-width: 600px;
}

.lightbox-caption h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.lightbox-caption p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* ===== Divine Heritage Section ===== */
.divine-heritage-section {
    background: linear-gradient(135deg, #fffdfa 0%, #faf1e6 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 90px 0;
    color: var(--text-light);
    position: relative;
}

.divine-heritage-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 20%, rgba(184, 134, 11, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.divine-heritage-section .section-decor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.divine-heritage-section .decor-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.divine-heritage-section .decor-symbol {
    font-size: 1.3rem;
    color: var(--gold);
    filter: drop-shadow(0 0 6px rgba(184, 134, 11, 0.2));
}

.divine-heritage-section .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    text-shadow: none;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-align: center;
}

.heritage-intro {
    max-width: 850px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: justify;
}

.shloka-box {
    max-width: 750px;
    margin: 0 auto 60px;
    padding: 36px 30px;
    background: radial-gradient(circle at center, rgba(184, 134, 11, 0.08) 0%, rgba(184, 134, 11, 0.02) 100%);
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 0 20px rgba(184, 134, 11, 0.05);
    position: relative;
    text-align: center;
}

.shloka-symbol {
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 12px;
    opacity: 0.85;
}

.shloka-verse {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--gold);
    line-height: 1.8;
    margin-bottom: 16px;
}

.shloka-translation {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 14px;
    opacity: 0.9;
}

.shloka-ref {
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.heritage-tabs-container {
    max-width: 950px;
    margin: 0 auto 50px;
}

.heritage-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.heritage-tab-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 20px;
    background: rgba(26, 14, 8, 0.6);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 30px;
    color: #dfd5c6;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.heritage-tab-btn:hover {
    color: #ffffff;
    border-color: var(--gold-light);
    box-shadow: 0 0 12px rgba(184, 134, 11, 0.2);
    transform: translateY(-2px);
}

.heritage-tab-btn.active {
    background-color: var(--tab-color);
    border-color: var(--tab-color);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px color-mix(in srgb, var(--tab-color) 40%, transparent);
    transform: translateY(-2px);
}

/* Override active state style specifically for Srisaila (since its database color is white) */
.heritage-tab-btn[style*="--tab-color: #ffffff"].active,
.heritage-tab-btn[style*="--tab-color: #FFFFFF"].active {
    background-color: var(--gold-light) !important;
    border-color: var(--gold-light) !important;
    color: #1a0e08 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 168, 75, 0.4) !important;
}

.heritage-tabs-content {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 15px 40px rgba(184, 134, 11, 0.06);
    text-align: left;
    min-height: 250px;
}

.heritage-tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.heritage-tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* For Srisaila, we use gold accent badge instead of pure white */
#heritage-srisaila {
    --peetha-color: var(--gold-light) !important;
}

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

.pane-badge {
    width: 6px;
    height: 24px;
    border-radius: 3px;
    box-shadow: 0 0 8px var(--peetha-color);
}

.pane-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--text);
    font-weight: 600;
    margin: 0;
}

.pane-description {
    font-size: 0.98rem;
    line-height: 1.9;
    color: var(--text-light);
    text-align: justify;
}

.heritage-conclusion {
    max-width: 850px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--text-light);
    text-align: justify;
}

/* ===== Veerashaiva-Lingayat Section ===== */
.veerashaiva-section {
    background: linear-gradient(135deg, #fffdfa 0%, #faf1e6 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 90px 0;
    color: var(--text-light);
    position: relative;
}

.veerashaiva-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 20%, rgba(184, 134, 11, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.veerashaiva-section .section-decor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.veerashaiva-section .decor-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.veerashaiva-section .decor-symbol {
    font-size: 1.3rem;
    color: var(--gold);
    filter: drop-shadow(0 0 6px rgba(184, 134, 11, 0.2));
}

.veerashaiva-section .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    text-shadow: none;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-align: center;
}

.veerashaiva-section .shloka-box {
    border-color: rgba(184, 134, 11, 0.25);
    background: radial-gradient(circle at center, rgba(184, 134, 11, 0.08) 0%, rgba(184, 134, 11, 0.02) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.veerashaiva-section .shloka-symbol {
    color: var(--gold);
}

.veerashaiva-section .shloka-ref {
    color: var(--gold);
}

.veerashaiva-section .heritage-intro p {
    text-align: justify;
}

/* Siddhanta Shikhamani Verse Block */
.veerashaiva-section .siddhanta-block {
    max-width: 850px;
    margin: 40px auto;
}

.veerashaiva-section .siddhanta-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-style: italic;
}

.veerashaiva-section .siddhanta-verse-box {
    border-color: rgba(184, 134, 11, 0.25);
    background: radial-gradient(circle at center, rgba(184, 134, 11, 0.08) 0%, rgba(184, 134, 11, 0.02) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.veerashaiva-section .siddhanta-label {
    font-size: 0.9rem;
    color: var(--gold);
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Teachings List */
.veerashaiva-teachings {
    max-width: 850px;
    margin: 30px auto 40px;
}

.veerashaiva-teachings .teachings-intro-text {
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: justify;
}

.veerashaiva-teachings .teachings-list {
    list-style: none;
    padding: 0 0 0 20px;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.veerashaiva-teachings .teachings-list li {
    position: relative;
    padding-left: 24px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.veerashaiva-teachings .teachings-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.7rem;
    top: 5px;
}

.veerashaiva-teachings .teachings-note {
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--text-light);
    text-align: justify;
    font-style: italic;
}

/* Conclusion in Veerashaiva Section */
.veerashaiva-section .heritage-conclusion {
    border-top-color: var(--border);
}

@media (max-width: 768px) {
    .divine-heritage-section {
        padding: 60px 0;
    }
    
    .divine-heritage-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .heritage-intro,
    .heritage-conclusion {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    .shloka-box {
        padding: 24px 20px;
        margin-bottom: 40px;
    }
    
    .shloka-verse {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .shloka-translation {
        font-size: 0.85rem;
    }
    
    .heritage-tab-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .heritage-tabs-content {
        padding: 24px;
    }
    
    .pane-header h3 {
        font-size: 1.1rem;
    }
    
    .pane-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .veerashaiva-section {
        padding: 60px 0;
    }

    .veerashaiva-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}


/* ===== Peetha Detail Page Tab Sections ===== */

.peetha-tab-section {
    display: none;
}

.peetha-tab-section.active {
    display: block;
}

/* Jagathguru Section */
.jagathguru-section,
.pooja-section,
.contact-section {
    max-width: 900px;
    margin: 0 auto;
}

.jagathguru-header {
    text-align: center;
    margin-bottom: 40px;
}

.jagathguru-header .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 16px;
}

.jagathguru-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
}

.jagathguru-photo-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--peetha-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.jagathguru-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.jagathguru-photo-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.05), rgba(139, 90, 0, 0.08));
    color: var(--text-muted);
    gap: 12px;
}

.jagathguru-photo-placeholder span {
    font-size: 3rem;
}

.jagathguru-photo-placeholder p {
    font-size: 0.85rem;
    font-style: italic;
}

.jagathguru-info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--peetha-color);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}

.jagathguru-info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.jagathguru-peetha-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.jagathguru-bio {
    line-height: 1.8;
    color: var(--text);
    font-size: 0.95rem;
}

.jagathguru-bio p {
    margin-bottom: 12px;
}

/* Pooja Booking - Coming Soon */
.pooja-coming-soon {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.coming-soon-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--peetha-color);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 500px;
    width: 100%;
}

.coming-soon-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.coming-soon-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.coming-soon-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 8px;
}

.coming-soon-subtitle {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted) !important;
}

.pooja-contact-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    color: white !important;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pooja-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ===== Seva Category Filter Pills ===== */
.seva-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.seva-filter-pill {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.seva-filter-pill:hover {
    border-color: var(--gold-light);
    color: var(--gold);
    background: var(--gold-glow);
}

.seva-filter-pill.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
}

/* ===== Premium Seva Cards Grid ===== */
.seva-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.seva-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.seva-card-header {
    padding: 20px 22px 14px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.seva-card-category-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: rgba(184, 134, 11, 0.1);
    color: var(--gold);
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.seva-card-category-badge[data-cat="daily"] {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border-color: rgba(46, 125, 50, 0.2);
}
.seva-card-category-badge[data-cat="homa"] {
    background: rgba(198, 40, 40, 0.1);
    color: #c62828;
    border-color: rgba(198, 40, 40, 0.2);
}
.seva-card-category-badge[data-cat="utsava"] {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
    border-color: rgba(21, 101, 192, 0.2);
}

.seva-card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    padding-right: 75px;
    line-height: 1.4;
}

.seva-card-body {
    padding: 14px 22px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.seva-card-desc {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.seva-card-footer {
    padding: 0 22px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.seva-card-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
}

.seva-card-price small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.seva-book-btn {
    padding: 10px 22px;
    border-radius: 8px;
    color: white !important;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.seva-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

/* ===== Polished Booking Modal ===== */
.booking-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 92%;
    color: var(--text);
    overflow: hidden;
}

.booking-modal-header {
    padding: 28px 30px 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.booking-modal-header .modal-icon {
    font-size: 2rem;
    margin-bottom: 6px;
}

.booking-modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.booking-modal-header .modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.booking-modal-form {
    padding: 24px 30px 28px;
}

.booking-form-group {
    margin-bottom: 16px;
    text-align: left;
}

.booking-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.booking-form-group label .optional-tag {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
    font-size: 0.78rem;
}

.booking-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.booking-form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

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

.booking-section-divider {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin: 20px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.booking-submit-btn {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: none;
    color: white !important;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.25s ease;
}

.booking-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

@media (max-width: 600px) {
    .booking-form-row {
        grid-template-columns: 1fr;
    }
    .seva-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Us Section */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--peetha-color);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.contact-card-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.contact-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-card a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-card a:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
    .jagathguru-profile {
        grid-template-columns: 1fr;
    }

    .jagathguru-photo-card {
        max-width: 280px;
        margin: 0 auto;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .coming-soon-card {
        padding: 32px 24px;
    }
}
/* Progressive Image Loading */
img.progressive-loading {
    background-color: #e0e0e0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    filter: blur(5px);
    transition: filter 0.5s ease-out, opacity 0.5s ease-out;
    color: transparent;
    min-height: 200px; /* Prevent collapsing */
    display: block; /* Ensure min-height works */
    width: 100%;
    object-fit: cover;
}

img.progressive-loaded {
    background: none;
    animation: none;
    filter: blur(0);
    color: inherit;
    transition: filter 0.5s ease-out, opacity 0.5s ease-out;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}





/* =========================================
   RESPONSIVE DESIGN (MOBILE COMPATIBILITY)
   ========================================= */

.mobile-top-bar {
    display: none;
    width: auto; /* changed */
    justify-content: flex-start;
    align-items: center;
}

.hamburger-btn {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--text);
    border: 1px solid rgba(184, 134, 11, 0.25);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}
.hamburger-btn:hover {
    background-color: rgba(184, 134, 11, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

/* Large Tablets / Laptops */
@media (max-width: 1200px) {
    .peethas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Tablets & Mobile */
@media (max-width: 992px) {
    /* Header / Nav */
    .site-header {
        border-radius: 20px;
        padding-bottom: 5px;
    }
    
    .header-container {
        flex-direction: row; /* changed */
        flex-wrap: wrap; /* changed */
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        padding: 12px 10px;
        height: auto;
    }
    
    .mobile-top-bar {
        display: flex;
    }

    .lang-selector-container {
        align-self: center;
        margin-bottom: 0;
    }
    
    .nav-links {
        display: none; /* Hide by default */
        flex-direction: column;
        width: 100%;
        order: 3; /* Push to bottom row */
        gap: 10px;
        padding: 10px 0;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
    }

    .nav-links.open {
        display: flex;
    }
    
    .nav-link {
        text-align: center;
        width: 100%;
    }

    /* Detail Page */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar-sticky {
        position: static;
        top: auto;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    /* Hero Section */
    .hero {
        padding: 60px 0 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-om {
        font-size: 2.2rem;
        margin-bottom: 10px;
        order: 2; /* Put below murals */
    }
    
    .hero h2 {
        font-size: 1.8rem;
        order: 3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
        order: 4;
    }

    /* Murals side by side */
    .hero-mural {
        position: static; /* Remove absolute positioning */
        width: 130px;
        height: 85px;
        transform: none !important;
        opacity: 0.95 !important;
        pointer-events: none;
        display: inline-block !important;
        margin: 0 10px 20px 10px;
    }

    .murals-mobile-container {
        display: flex;
        justify-content: center;
        width: 100%;
        order: 1; /* Put at the very top */
    }

    /* Peethas Grid */
    .peethas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .peetha-card {
        padding-top: 70px;
        margin-top: 60px;
    }
    
    .card-portrait-wrapper {
        top: -60px;
    }
    
    .card-portrait {
        width: 120px;
        height: 120px;
    }
    
    /* Rectangle Variant Override for tablets/mobile */
    .use-rectangle .peetha-card {
        padding-top: 120px;
        margin-top: 100px;
    }
    
    .use-rectangle .card-portrait-wrapper {
        top: -95px;
    }
    
    .use-rectangle .card-portrait {
        width: 160px;
        height: 200px;
    }
    
    /* About Section */
    .about-section {
        padding: 50px 0;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
    }
    
    /* Auth Containers */
    .auth-section {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .auth-container {
        padding: 25px;
        margin: 0 15px;
        width: calc(100% - 30px);
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    /* Detail Page */
    .detail-hero {
        padding: 60px 0 30px;
    }
    
    .detail-hero h2 {
        font-size: 1.6rem;
    }
    
    .content-card {
        padding: 25px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Peethas Grid - 1 Column */
    .peethas-grid {
        grid-template-columns: 1fr;
    }
    
    .card-mutt-photo {
        height: 180px;
    }
    
    .peetha-card {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    /* Rectangle Variant Override for small mobile */
    .use-rectangle .peetha-card {
        padding-top: 100px;
        margin-top: 80px;
    }
    
    .use-rectangle .card-portrait-wrapper {
        top: -75px;
    }
    
    .use-rectangle .card-portrait {
        width: 130px;
        height: 160px;
    }

    /* Auth Forms */
    .auth-container {
        padding: 20px;
    }
}

/* ===== Interactive Auth Modal Overlay ===== */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.auth-modal-container {
    background: #ffffff;
    border: 1px solid rgba(184, 134, 11, 0.15);
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    padding: 35px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
}

.auth-modal-overlay.open .auth-modal-container {
    transform: translateY(0);
}

.auth-modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.auth-modal-close-btn:hover {
    color: var(--gold);
}


/* ===== Roles & Permissions Sub-panel Sidebar Layout ===== */
.roles-dashboard-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .roles-dashboard-container {
        grid-template-columns: 1fr;
    }
}

.roles-sidebar {
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.roles-side-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: none;
    background: none;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.roles-side-btn:hover {
    background: var(--bg-warm);
    color: var(--gold);
}

.roles-side-btn.active {
    background: var(--gold-glow);
    color: var(--gold);
    font-weight: 600;
    border-left: 4px solid var(--gold);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.roles-sub-view {
    display: none;
}

.roles-sub-view.active-sub-view {
    display: block;
}


/* ===== YouTube Live Pulse Animation ===== */
@keyframes pulse-live {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(211, 47, 47, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

.nav-link.nav-link-live {
    color: #ff3b30;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link.nav-link-live:hover {
    color: #e02d24;
    background: rgba(255, 59, 48, 0.08);
}

/* ===== Devotional Audio Player FAB ===== */
.devotional-audio-player {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 40px;
    padding: 6px 16px 6px 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 
        0 8px 32px rgba(184, 134, 11, 0.08),
        0 0 0 2px rgba(255, 255, 255, 0.25) inset;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.devotional-audio-player:hover {
    transform: translateY(-5px) scale(1.04);
    border-color: rgba(184, 134, 11, 0.4);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 35px rgba(184, 134, 11, 0.15);
}

.player-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(184, 134, 11, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: all 0.3s ease;
}

.player-toggle-btn:hover {
    background: rgba(212, 163, 89, 0.95);
    transform: scale(1.05);
}

.player-toggle-btn.playing {
    width: 52px;
    border-radius: 18px;
}

.player-toggle-btn svg.play-icon {
    width: 14px;
    height: 14px;
}

.player-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    user-select: none;
}

/* ECG Heartbeat Wave Animation styles */
.ecg-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 16px;
    color: white;
}

.ecg-line {
    transform-box: view-box;
    animation: drawECG 1.8s linear infinite;
}

@keyframes drawECG {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50px); /* Move exactly one full loop cycle */
    }
}

/* Playing state dynamic pulsing outline */
.devotional-audio-player.playing {
    border-color: var(--saffron);
    box-shadow: 
        0 0 20px 2px rgba(230, 126, 34, 0.25),
        0 8px 30px rgba(184, 134, 11, 0.12);
}

/* Dusk Saffron Theme Support */
body.theme-dusk-saffron .devotional-audio-player {
    background: rgba(32, 22, 21, 0.75) !important;
    border-color: rgba(184, 134, 11, 0.2) !important;
}
body.theme-dusk-saffron .player-label {
    color: #e2d4c5 !important;
}

/* ===== Live Stream Inline Bar ===== */
.live-stream-inline-bar {
    display: block;
    background: linear-gradient(135deg, #fff5f5 0%, #ffebeb 100%);
    border: 1px solid #feb2b2;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.live-stream-inline-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.1);
    border-color: #fc8181;
}
.live-info-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}
.live-inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #e53e3e;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.live-title {
    color: #2d3748;
    font-size: 0.95rem;
}
.live-title strong {
    color: #e53e3e;
}
@keyframes pulse-live {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

/* Dusk Theme compatibility for Live Bar */
body.theme-dusk-saffron .live-stream-inline-bar {
    background: linear-gradient(135deg, #2d1818 0%, #201111 100%);
    border-color: #742a2a;
}
body.theme-dusk-saffron .live-title {
    color: #e2d4c5;
}

/* ===== Interactive Auth Modal Overlay & Container ===== */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.auth-modal-overlay.open {
    display: flex;
    opacity: 1;
}
.auth-modal-container {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 35px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.auth-modal-overlay.open .auth-modal-container {
    transform: translateY(0);
}
.auth-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
    outline: none;
    transition: color 0.2s;
}
.auth-modal-close-btn:hover {
    color: var(--dark);
}

/* Form Styles inside Modal */
.form-group input:focus {
    border-color: var(--saffron) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}
.google-login-btn:hover {
    background-color: #f7f9fa !important;
    border-color: #ccc !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08) !important;
}

/* Dusk Theme compatibility for Auth Modal */
body.theme-dusk-saffron .auth-modal-container {
    background: #1e1b19;
    border: 1px solid #36312d;
}
body.theme-dusk-saffron .auth-modal-container h2 {
    color: #e2d4c5 !important;
}
body.theme-dusk-saffron .auth-modal-container p {
    color: #a09284 !important;
}
body.theme-dusk-saffron .auth-modal-container label {
    color: #e2d4c5 !important;
}
body.theme-dusk-saffron .auth-modal-container input {
    background: #2b2521;
    border-color: #473f38;
    color: #fff;
}
body.theme-dusk-saffron .auth-modal-close-btn:hover {
    color: #fff;
}

/* Premium Two-Column Split Grid Layout for Peetha Details */
.detail-split-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 20px;
}

.detail-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-main-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0; /* Prevents flex items from overflowing horizontal boundaries */
}

/* 1. Compact Heritage Registry Card */
.peetha-registry-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--peetha-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
    position: relative;
    overflow: hidden;
}
.registry-title {
    margin-top: 0;
    margin-bottom: 14px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.registry-list {
    display: flex;
    flex-direction: column;
}
.registry-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    gap: 6px;
}
.registry-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.registry-item:first-child {
    padding-top: 0;
}
.registry-label-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.registry-icon {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--peetha-color);
}
.registry-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}
.registry-value {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    max-width: 100%;
    line-height: 1.45;
    word-wrap: break-word;
}
.registry-value a {
    color: var(--peetha-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px dashed color-mix(in srgb, var(--peetha-color) 40%, transparent);
}
.registry-value a:hover {
    color: var(--saffron);
    border-bottom-style: solid;
    border-bottom-color: var(--saffron);
}

/* 2. Compact Travel Plans Timeline */
.peetha-travel-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
    position: relative;
    overflow: hidden;
}
.peetha-travel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--peetha-color);
}
.compact-travel-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.compact-timeline-month {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--peetha-color);
    margin-bottom: 5px;
    border-left: 2px solid var(--peetha-color);
    padding-left: 8px;
}
.compact-timeline-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.compact-event-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-left: 10px;
    position: relative;
}
.compact-event-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}
.compact-event-date {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    min-width: 45px;
}
.compact-event-sep {
    margin: 0 2px;
    color: var(--text-muted);
}
.compact-event-details {
    flex: 1;
    min-width: 0;
}
.compact-event-details h6 {
    margin: 0 0 2px 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}
.compact-event-loc {
    margin: 0;
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* 3. Main Content Cards (About/History) */
.peetha-content-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--peetha-color);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
    position: relative;
    overflow: hidden;
}
.peetha-content-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text);
    border-bottom: 2px solid color-mix(in srgb, var(--peetha-color) 15%, transparent);
    padding-bottom: 6px;
    display: inline-block;
}
.peetha-content-card p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: justify;
    margin: 0;
}
.peetha-content-card .history-content {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: justify;
}
.peetha-content-card .history-content p {
    margin-bottom: 15px;
}
.peetha-content-card .history-content p:last-child {
    margin-bottom: 0;
}

/* Dusk Theme Compatibility overrides */
body.theme-dusk-saffron .peetha-registry-card,
body.theme-dusk-saffron .peetha-travel-card,
body.theme-dusk-saffron .peetha-content-card {
    background: #1e1b19 !important;
    border-color: #2b2521 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}
body.theme-dusk-saffron .registry-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
body.theme-dusk-saffron .registry-value {
    color: #e2d4c5 !important;
}
body.theme-dusk-saffron .registry-value a {
    color: #f97316 !important;
}
body.theme-dusk-saffron .compact-event-details h6,
body.theme-dusk-saffron .compact-event-date {
    color: #e2d4c5 !important;
}
body.theme-dusk-saffron .peetha-content-card p,
body.theme-dusk-saffron .peetha-content-card .history-content {
    color: #bfaea2 !important;
}
body.theme-dusk-saffron .compact-event-card::before {
    background: #554a42;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .detail-split-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .detail-sidebar-column {
        flex-direction: column;
    }
}
@media (max-width: 600px) {
    .peetha-content-card {
        padding: 20px;
    }
    .peetha-content-card p,
    .peetha-content-card .history-content {
        text-align: left;
    }
    .registry-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .registry-value {
        text-align: left;
        max-width: 100%;
    }
}

/* Premium Local Sub-Navbar styles */
.peetha-sub-navbar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 76px; /* Sits cleanly below the scrolled main header */
    z-index: 99;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
}
.sub-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    height: 52px;
}
.sub-nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 4px;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
}
.sub-nav-link span {
    font-size: 1.05rem;
}
.sub-nav-link:hover {
    color: var(--peetha-color);
}
.sub-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--peetha-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}
.sub-nav-link.active {
    color: var(--peetha-color);
}
.sub-nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Dusk Theme Compatibility overrides for Sub-Navbar */
body.theme-dusk-saffron .peetha-sub-navbar {
    background: #181513 !important;
    border-bottom-color: #2b2521 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}
body.theme-dusk-saffron .sub-nav-link {
    color: #bfaea2 !important;
}
body.theme-dusk-saffron .sub-nav-link:hover,
body.theme-dusk-saffron .sub-nav-link.active {
    color: var(--peetha-color) !important;
}

/* Subnav Mobile responsiveness overrides */
@media (max-width: 768px) {
    .peetha-sub-navbar {
        top: 66px;
    }
    .sub-nav-container {
        gap: 16px;
        height: 48px;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    .sub-nav-container::-webkit-scrollbar {
        display: none;
    }
    .sub-nav-link {
        font-size: 0.76rem;
        white-space: nowrap;
    }
}


/* -------------------------------------------------------------
   4. Main Nav Peetha Switcher Dropdown (Hover Switcher)
   ------------------------------------------------------------- */
.nav-peetha-dropdown {
    position: relative;
    display: inline-block;
}

/* Arrow rotating transition */
.nav-peetha-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--peetha-color);
}

/* Dropdown Menu styling - premium horizontal styling */
.nav-peetha-dropdown .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border: 1px solid rgba(184, 134, 11, 0.15);
    border-top: 3px solid var(--peetha-color); /* Matches card style */
    border-radius: 24px; /* Fully rounded pill shape */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 6px 10px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    display: flex; /* Horizontal flex container! */
    flex-direction: row;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.2s ease, 
                visibility 0.2s ease;
}

/* Hover to show dropdown */
.nav-peetha-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown Items styling */
.nav-peetha-dropdown .nav-dropdown-item,
.nav-peetha-dropdown .nav-dropdown-gap-item {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    text-decoration: none;
    text-align: center;
    border-radius: 16px;
    position: relative;
    transition: all 0.2s ease;
}

/* Make the gap item invisible but preserve its spacing in the flex layout */
.nav-peetha-dropdown .nav-dropdown-gap-item {
    visibility: hidden;
    pointer-events: none;
    width: 60px; /* Balanced, reduced gap size */
    padding: 8px 0; /* Clear horizontal padding to narrow the gap */
    flex-shrink: 0;
}

/* Elegant vertical divider lines between horizontal elements (even if adjacent to gap) */
.nav-peetha-dropdown .nav-dropdown-menu > *:not(:first-child)::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(184, 134, 11, 0.15);
    pointer-events: none;
    visibility: visible; /* Ensure line stays visible even if the gap item is hidden */
}

/* Hover style on items: color change & light background pill */
.nav-peetha-dropdown .nav-dropdown-item:hover {
    color: var(--peetha-color);
    background: color-mix(in srgb, var(--peetha-color) 6%, transparent);
}

/* Support for Dusk Dark Theme */
body.theme-dusk-saffron .nav-peetha-dropdown .nav-dropdown-menu {
    background: #1e1b18;
    border-color: rgba(229, 193, 88, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body.theme-dusk-saffron .nav-peetha-dropdown .nav-dropdown-item {
    color: #e5c158;
}
body.theme-dusk-saffron .nav-peetha-dropdown .nav-dropdown-menu > *:not(:first-child)::before {
    background: rgba(229, 193, 88, 0.15);
}
body.theme-dusk-saffron .nav-peetha-dropdown .nav-dropdown-item:hover {
    color: #ffffff;
    background: rgba(229, 193, 88, 0.1);
}
