* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --saffron: #e67e22;
    --deep-saffron: #d35400;
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --divine-red: #b33900;
    --dark-aura: #2c1a12;
    --sand-stone: #fdf8f0;
    --shadow-deep: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--sand-stone);
    color: #2d2a24;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand,
.footer-heading,
.section-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Divine Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #ecd9c6;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

/* ---------- 1] Sidebar Menu (Mobile) + Desktop adjustments ---------- */
/* Sidebar overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Sidebar Navigation */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: linear-gradient(145deg, #fff8f0, #fff2e6);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 1051;
    transition: left 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    padding: 30px 20px;
    overflow-y: auto;
    border-right: 2px solid var(--gold);
}

.mobile-sidebar.open {
    left: 0;
}

.sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--saffron);
}

.sidebar-nav-list {
    margin-top: 60px;
    list-style: none;
    padding: 0;
}

.sidebar-nav-list li {
    margin: 20px 0;
}

.sidebar-nav-list a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c1a12;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: 0.2s;
}

.sidebar-nav-list a i {
    width: 30px;
    color: var(--gold);
}

.sidebar-nav-list a:hover {
    color: var(--saffron);
    padding-left: 10px;
}

.sidebar-darshan {
    background: var(--saffron);
    text-align: center;
    border-radius: 40px;
    margin-top: 30px;
}

.sidebar-darshan a {
    color: white !important;
    border: none;
    text-align: center;
}

/* Hide desktop nav links on small screens, show hamburger */
@media (max-width: 991px) {
    .desktop-nav-links {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .sidebar-overlay,
    .mobile-sidebar {
        display: none;
    }
}

.mobile-menu-btn {
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--saffron);
    cursor: pointer;
}

.navbar {
    background: rgba(255, 250, 240, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    background: linear-gradient(135deg, var(--gold) 10%, var(--saffron) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    font-size: 1.9rem;
    font-weight: 800;
}

/* ---- Devotional Logo ---- */
.logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 4px 0;
    max-width: calc(100% - 50px);
}

.logo-krishna-icon {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.logo-brand:hover .logo-krishna-icon {
    transform: scale(1.15) rotate(5deg);
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.logo-main {
    font-family: 'Cinzel', serif;
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--saffron) 50%, var(--deep-saffron) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    white-space: nowrap;
}

.logo-brand:hover .logo-main {
    filter: brightness(1.1);
}

.logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--saffron);
    opacity: 0.85;
    margin-top: 1px;
}

/* Responsive Logo adjustments for smaller viewports */
@media (max-width: 991px) {
    .logo-main {
        font-size: 1.4rem;
    }

    .logo-krishna-icon {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 576px) {
    .logo-brand {
        gap: 8px;
    }

    .logo-main {
        font-size: 1.15rem;
        letter-spacing: 0;
    }

    .logo-krishna-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 380px) {
    .logo-main {
        font-size: 0.98rem;
    }

    .logo-krishna-icon {
        width: 28px;
        height: 28px;
    }
}

.btn-darshan {
    background: linear-gradient(100deg, var(--saffron), var(--deep-saffron));
    color: #fff;
    border-radius: 40px;
    padding: 8px 28px;
    font-weight: 600;
    border: none;
    box-shadow: 0 5px 12px rgba(211, 84, 0, 0.3);
}

/* 2] Banner Slider */
.carousel-item {
    height: 85vh;
    background-size: cover;
    background-position: center 30%;
}

.carousel-overlay {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.65) 100%);
    position: absolute;
    width: 100%;
    height: 100%;
}

.carousel-caption {
    bottom: 30%;
    backdrop-filter: blur(3px);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
}

.carousel-caption h1 {
    font-size: 3.5rem;
}

/* .carousel-zoom-in .carousel-item {
    transform: scale(1);
    transition: transform 2s ease-in-out;
}

.carousel-zoom-in .carousel-item.active {
    transform: scale(1.08);
} */

/* 3] About Section */
.about-section {
    padding: 90px 0;
}

.divine-ornament {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--saffron));
    margin: 20px 0 25px 0;
}

/* 4] NEW Schedule: Left Image + Right Table */
.schedule-section {
    padding: 90px 0;
    background: linear-gradient(145deg, #fff6ed, #ffefe0);
}

.schedule-img-card {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    border: 3px solid rgba(212, 175, 55, 0.4);
    transition: transform 0.4s;
}

.schedule-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.schedule-img-card:hover img {
    transform: scale(1.02);
}

.schedule-table-custom {
    background: rgba(255, 248, 240, 0.95);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
}

.schedule-table-custom thead {
    background: linear-gradient(120deg, var(--deep-saffron), var(--saffron));
    color: white;
}

.schedule-table-custom th,
.schedule-table-custom td {
    padding: 18px 20px;
}

/* 5] Festival Slider (Fully repaired) */
.festival-section {
    padding: 90px 0;
    background: radial-gradient(circle at 10% 20%, rgb(255, 245, 235), #ffefe1);
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 15px 0;
}

.slider-track-fest {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.2, 1);
    gap: 24px;
    width: max-content;
}

.fest-card {
    width: 300px;
    flex-shrink: 0;
    background: #ffffffdd;
    backdrop-filter: blur(4px);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.fest-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.2);
}

.fest-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.fest-card-body {
    padding: 20px;
    text-align: center;
}

.fest-card-body h5 {
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #2c1a12;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gold);
    color: #2c1a12;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 60px;
    z-index: 12;
    transition: 0.2s;
    font-weight: bold;
}

.slider-nav-btn:hover {
    background: var(--saffron);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.btn-left-fest {
    left: 5px;
}

.btn-right-fest {
    right: 5px;
}

@media (max-width: 576px) {
    .fest-card {
        width: 260px;
    }
}

/* 6] Footer with Video Background */
.footer-wrapper {
    position: relative;
    background: #1e130ea1;
    color: #e9e2d6;
    overflow: hidden;
}

.footer-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: brightness(0.6);
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 60px 0 40px;
}

.footer-heading {
    font-size: 1.6rem;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.footer-heading:after {
    content: '';
    display: block;
    width: 45px;
    height: 2px;
    background: var(--gold);
    margin-top: 8px;
}

.footer-links a {
    color: #d6cdbc;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
    margin: 6px 0;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 6px;
}

.social-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    transition: all 0.3s;
    margin-right: 12px;
}

.social-icon-circle:hover {
    background: var(--gold);
    color: #1e130e !important;
    transform: translateY(-3px);
}

.copyright-section {
    background: rgba(0, 0, 0, 0.801);
    /* border-top: 1px solid rgba(212, 175, 55, 0.3); */
    padding: 20px 0;
    filter: drop-shadow(2px 4px 6px black);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}