/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Tiro+Devanagari+Hindi&family=Mukta:wght@400;500;600;700&display=swap');

.text-clr-theme {
    color: #E9DCC0;
}

.text-justify {
    text-align: justify;
}

.whatsapp-float {
    position: fixed;
    bottom: 70px;
    right: 15px;
    background: #25D366;
    color: #fff;
    width: 55px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    z-index: 1050;
    animation: pulse-wa 2.4s infinite;
}

/* =========================================================
   Daauji Maharaj Mandir — Common Stylesheet
   Built on top of Bootstrap 5. Include this AFTER bootstrap.css
   ========================================================= */



/* ---------- Design Tokens ---------- */
:root {
    /* core palette */
    --dj-maroon: #6E1423; /* primary — deep temple maroon */
    --dj-maroon-dark: #4A0D18;
    --dj-gold: #C79A3D; /* accent — temple gold */
    --dj-gold-light: #E7C873;
    --dj-cream: #FBF3E4; /* page background */
    --dj-cream-deep: #F3E6C9;
    --dj-ink: #2B1B14; /* body text */
    --dj-ink-soft: #5A4438;
    /* bootstrap variable overrides */
    --bs-primary: var(--dj-maroon);
    --bs-body-color: var(--dj-ink);
    --bs-body-bg: var(--dj-cream);
    --bs-link-color: var(--dj-maroon);
    --bs-link-hover-color: var(--dj-gold);
    --dj-radius: 4px;
    --dj-shadow: 0 6px 18px rgba(74,13,24,0.12);
    --dj-border: 1px solid rgba(110,20,35,0.18);
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Mukta', 'Tiro Devanagari Hindi', sans-serif;
    color: var(--dj-ink);
    background: var(--dj-cream);
}

h1, h2, h3, h4, .font-display {
    font-family: 'Cormorant Garamond','Tiro Devanagari Hindi',serif;
    font-weight: 700;
    color: var(--dj-maroon-dark);
    letter-spacing: .2px;
}

h1 {
    font-size: clamp(2.2rem,4vw,3.4rem);
}

h2 {
    font-size: clamp(1.7rem,3vw,2.4rem);
}

p {
    color: var(--dj-ink-soft);
    line-height: 1.75;
    font-size: smaller;
}

a {
    text-decoration: none;
}

/* small heading rule under section titles — used sparingly, only for section openers */
.section-title {
    position: relative;
    margin-bottom: 1.6rem;
    padding-bottom: .6rem;
    font-size: xx-large;
}

    .section-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 64px;
        height: 3px;
        background: var(--dj-gold);
        border-radius: 2px;
    }

    .section-title.text-center::after {
        left: 50%;
        transform: translateX(-50%);
    }

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--dj-cream-deep);
}

/* ---------- Buttons ---------- */
.btn-dj {
    background: var(--dj-maroon);
    color: #fff;
    border: 1px solid var(--dj-maroon);
    border-radius: var(--dj-radius);
    padding: .65rem 1.6rem;
    font-weight: 600;
    transition: background .25s ease, color .25s ease, transform .15s ease;
}

    .btn-dj:hover {
        background: var(--dj-maroon-dark);
        color: #fff;
        transform: translateY(-1px);
    }

.btn-dj-outline {
    background: transparent;
    color: var(--dj-maroon);
    border: 1px solid var(--dj-maroon);
    border-radius: var(--dj-radius);
    padding: .6rem 1.5rem;
    font-weight: 600;
    transition: background .25s ease, color .25s ease;
}

    .btn-dj-outline:hover {
        background: var(--dj-maroon);
        color: #fff;
    }

.btn-dj-gold {
    background: var(--dj-gold);
    color: var(--dj-maroon-dark);
    border: 1px solid var(--dj-gold);
    border-radius: var(--dj-radius);
    padding: .65rem 1.6rem;
    font-weight: 700;
}

    .btn-dj-gold:hover {
        background: var(--dj-gold-light);
        color: var(--dj-maroon-dark);
    }

/* ---------- Navbar ---------- */
.dj-navbar {
    background: var(--dj-cream);
    border-bottom: var(--dj-border);
    padding-top: .7rem;
    padding-bottom: .7rem;
    transition: box-shadow .3s ease, padding .3s ease;
}

    .dj-navbar.scrolled {
        box-shadow: var(--dj-shadow);
        padding-top: .35rem;
        padding-bottom: .35rem;
    }

    .dj-navbar .navbar-brand {
        font-family: 'Cormorant Garamond',serif;
        font-weight: 700;
        font-size: 1.6rem;
        color: var(--dj-maroon-dark);
        display: flex;
        align-items: center;
        gap: .6rem;
    }

        .dj-navbar .navbar-brand small {
            display: block;
            font-family: 'Mukta',sans-serif;
            font-size: .72rem;
            font-weight: 500;
            color: var(--dj-ink-soft);
            letter-spacing: .3px;
        }

    .dj-navbar .nav-link {
        color: var(--dj-ink);
        font-weight: 600;
        margin: 0 .35rem;
        padding: .4rem .2rem !important;
        position: relative;
    }

        .dj-navbar .nav-link::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            background: var(--dj-gold);
            transition: width .25s ease;
        }

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

        .dj-navbar .nav-link.active {
            color: var(--dj-maroon);
        }

/* ---------- Hero ---------- */
.dj-hero {
    position: relative;
    color: #fff;
    background: linear-gradient(180deg, rgba(74,13,24,.72), rgba(74,13,24,.82)), var(--hero-img, none) center/cover no-repeat;
    padding: 7rem 0 6rem;
    text-align: center;
    border-bottom: 4px solid var(--dj-gold);
}

    .dj-hero h1 {
        color: #fff;
    }

    .dj-hero .lead {
        color: #F3E6C9;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

/* ---------- Gallery Tabs (Photos / Videos) ---------- */
.dj-filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 2rem;
}

.dj-filter-btn {
    border: 1px solid rgba(110,20,35,.3);
    border-radius: 50px;
    background: #fff;
    color: var(--dj-ink);
    padding: .4rem 1.15rem;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

    .dj-filter-btn:hover {
        background: var(--dj-cream-deep);
    }

    .dj-filter-btn.active {
        background: var(--dj-maroon);
        color: #fff;
        border-color: var(--dj-maroon);
    }

.dj-tabs {
    border: none;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 2.5rem;
}

    .dj-tabs .nav-link {
        border: 1px solid var(--dj-maroon);
        border-radius: 50px;
        color: var(--dj-maroon);
        font-weight: 600;
        padding: .55rem 1.6rem;
        background: transparent;
    }

        .dj-tabs .nav-link:hover {
            background: var(--dj-cream-deep);
        }

        .dj-tabs .nav-link.active {
            background: var(--dj-maroon);
            color: #fff;
            border-color: var(--dj-maroon);
        }

/* ---------- Video Grid ---------- */
.dj-video-card {
    background: #fff;
    border: var(--dj-border);
    border-radius: var(--dj-radius);
    overflow: hidden;
    box-shadow: var(--dj-shadow);
    height: 100%;
}

    .dj-video-card .ratio {
        background: #000;
    }

    .dj-video-card .video-info {
        padding: 1rem 1.1rem;
    }

        .dj-video-card .video-info h6 {
            color: var(--dj-maroon-dark);
            font-weight: 700;
            margin-bottom: .2rem;
            font-size: .98rem;
        }

        .dj-video-card .video-info p {
            font-size: .85rem;
            margin-bottom: 0;
            color: var(--dj-ink-soft);
        }

/* ---------- Darshan/Aarti Timings Table ---------- */
.dj-timing-table {
    background: #fff;
    border-radius: var(--dj-radius);
    overflow: hidden;
    box-shadow: var(--dj-shadow);
}

    .dj-timing-table table {
        margin-bottom: 0;
    }

    .dj-timing-table thead th {
        background: var(--dj-maroon);
        color: #fff;
        font-family: 'Cormorant Garamond',serif;
        font-weight: 700;
        font-size: 1.05rem;
        border: none;
        padding: .9rem 1.2rem;
    }

    .dj-timing-table tbody td {
        padding: .85rem 1.2rem;
        vertical-align: middle;
        border-color: rgba(110,20,35,.1);
        color: var(--dj-ink);
    }

    .dj-timing-table tbody tr:nth-child(odd) {
        background: var(--dj-cream);
    }

    .dj-timing-table tbody td:first-child {
        font-weight: 600;
        color: var(--dj-maroon-dark);
    }

/* ---------- Location / Map section ---------- */
.dj-map-frame {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: var(--dj-radius);
    box-shadow: var(--dj-shadow);
}

.dj-reach-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.3rem;
}

    .dj-reach-item .icon {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--dj-cream-deep);
        color: var(--dj-maroon);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

    .dj-reach-item h6 {
        color: var(--dj-maroon-dark);
        font-weight: 700;
        margin-bottom: .2rem;
    }

    .dj-reach-item p {
        margin-bottom: 0;
        font-size: .92rem;
    }

/* ---------- Hero Brand Bar (website + social handles, sits on every slide) ---------- */
.dj-hero-brandbar {
    position: absolute;
    left: 50%;
    bottom: 2.6rem;
    transform: translateX(-50%);
    z-index: 4;
    background: #fff;
    border-radius: 50px;
    padding: .55rem 1.4rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}

    .dj-hero-brandbar .website {
        font-weight: 700;
        font-size: .85rem;
        color: var(--dj-maroon);
        letter-spacing: .2px;
    }

    .dj-hero-brandbar .socials {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .dj-hero-brandbar .social-link {
        display: flex;
        align-items: center;
        gap: .4rem;
        color: var(--dj-ink);
        font-size: .78rem;
        font-weight: 600;
    }

        .dj-hero-brandbar .social-link:hover {
            color: var(--dj-maroon);
        }

    .dj-hero-brandbar .social-icon {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: .85rem;
        flex-shrink: 0;
    }

        .dj-hero-brandbar .social-icon.instagram {
            background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
        }

        .dj-hero-brandbar .social-icon.youtube {
            background: #FF0000;
        }

        .dj-hero-brandbar .social-icon.facebook {
            background: #1877F2;
        }

@media (max-width:575.98px) {
    .dj-hero-brandbar {
        bottom: 2.2rem;
        padding: .5rem 1rem;
    }

        .dj-hero-brandbar .socials {
            gap: .6rem;
        }

        .dj-hero-brandbar .social-link span {
            display: none;
        }
}

/* ---------- Hero Slider (Bootstrap Carousel) ---------- */
.dj-hero-slider {
    border-bottom: 4px solid var(--dj-gold);
}

    .dj-hero-slider .carousel-item {
        position: relative;
    }

        .dj-hero-slider .carousel-item img.dj-hero-slide-img {
            width: 100%;
            height: auto;
            display: block;
        }

        .dj-hero-slider .carousel-item .dj-hero-slide-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(74,13,24,.45) 0%, rgba(74,13,24,.6) 60%, rgba(74,13,24,.78) 100%);
        }

        .dj-hero-slider .carousel-item::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(74,13,24,.55) 0%, rgba(74,13,24,.72) 60%, rgba(74,13,24,.85) 100%);
        }

    .dj-hero-slider .carousel-caption {
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1.5rem 1rem 4.5rem;
        z-index: 2;
    }

        .dj-hero-slider .carousel-caption h1,
        .dj-hero-slider .carousel-caption h2 {
            color: #fff;
            max-width: 820px;
            margin: 0 auto .9rem;
        }

        .dj-hero-slider .carousel-caption p {
            color: #F3E6C9;
            max-width: 600px;
            margin: 0 auto 1.4rem;
            font-size: 1.05rem;
        }

    .dj-hero-slider .carousel-indicators {
        bottom: 5.2rem;
        z-index: 3;
    }

        .dj-hero-slider .carousel-indicators [data-bs-target] {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            border: none;
            background-color: rgba(255,255,255,.5);
            opacity: 1;
            margin: 0 5px;
        }

        .dj-hero-slider .carousel-indicators .active {
            background-color: var(--dj-gold);
            width: 26px;
            border-radius: 6px;
        }

    .dj-hero-slider .carousel-control-prev,
    .dj-hero-slider .carousel-control-next {
        width: 5%;
        z-index: 3;
        opacity: .85;
    }

    .dj-hero-slider .carousel-control-prev-icon,
    .dj-hero-slider .carousel-control-next-icon {
        width: 2.2rem;
        height: 2.2rem;
        background-color: rgba(0,0,0,.25);
        border-radius: 50%;
        padding: .4rem;
        background-size: 1.2rem;
    }

@media (max-width:767.98px) {
    .dj-hero-slider .carousel-item {
        height: 38vh;
        min-height: 260px;
    }

    .dj-hero-slider .carousel-caption {
        padding-bottom: 1.5rem;
    }
}

.dj-page-header {
    background: linear-gradient(180deg, rgba(74,13,24,.78), rgba(74,13,24,.85)), var(--hero-img, none) center/cover no-repeat;
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
    border-bottom: 4px solid var(--dj-gold);
}

    .dj-page-header h1 {
        color: #fff;
        margin-bottom: .3rem;
    }

    .dj-page-header .breadcrumb {
        justify-content: center;
        margin-bottom: 0;
    }

        .dj-page-header .breadcrumb a {
            color: var(--dj-gold-light);
        }

    .dj-page-header .breadcrumb-item.active {
        color: #E9DCC0;
    }

/* ---------- Cards ---------- */
.dj-card {
    background: #fff;
    border: var(--dj-border);
    border-radius: var(--dj-radius);
    padding: 1.8rem;
    height: 100%;
    transition: box-shadow .25s ease, transform .25s ease;
}

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

    .dj-card .icon {
        width: 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--dj-cream-deep);
        color: var(--dj-maroon);
        border-radius: 50%;
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }

/* ---------- Gallery ---------- */
.dj-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--dj-radius);
    cursor: pointer;
    aspect-ratio: 4/3;
}

    .dj-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s ease;
    }

    .dj-gallery-item:hover img {
        transform: scale(1.08);
    }

    .dj-gallery-item .caption {
        position: absolute;
        inset: auto 0 0 0;
        background: linear-gradient(0deg, rgba(74,13,24,.85), transparent);
        color: #fff;
        padding: .9rem .8rem .6rem;
        font-size: .9rem;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity .25s ease, transform .25s ease;
    }

    .dj-gallery-item:hover .caption {
        opacity: 1;
        transform: translateY(0);
    }

/* ---------- Festival / timeline ---------- */
.dj-timeline {
    position: relative;
    padding-left: 2.2rem;
    border-left: 2px solid var(--dj-gold);
}

.dj-timeline-item {
    position: relative;
    padding-bottom: 2.2rem;
}

    .dj-timeline-item:last-child {
        padding-bottom: 0;
    }

    .dj-timeline-item::before {
        content: "";
        position: absolute;
        left: -2.42rem;
        top: .25rem;
        width: 14px;
        height: 14px;
        background: var(--dj-gold);
        border: 3px solid var(--dj-cream);
        box-shadow: 0 0 0 2px var(--dj-gold);
        border-radius: 50%;
    }

    .dj-timeline-item .date {
        display: inline-block;
        color: var(--dj-maroon);
        font-weight: 700;
        font-size: .85rem;
        margin-bottom: .2rem;
    }

/* ---------- Forms (Contact Us) ---------- */
.dj-form .form-control,
.dj-form .form-select {
    border: 1px solid rgba(110,20,35,.25);
    border-radius: var(--dj-radius);
    padding: .7rem .9rem;
    background: #fff;
}

    .dj-form .form-control:focus,
    .dj-form .form-select:focus {
        border-color: var(--dj-maroon);
        box-shadow: 0 0 0 .2rem rgba(110,20,35,.15);
    }

.dj-form label {
    font-weight: 600;
    color: var(--dj-ink);
    margin-bottom: .35rem;
}

/* ---------- Footer ---------- */
.dj-footer {
    background: var(--dj-maroon-dark);
    color: #E9DCC0;
    padding-top: 3rem;
}

    .dj-footer h5 {
        color: #fff;
        font-family: 'Cormorant Garamond',serif;
        font-size: 1.25rem;
    }

    .dj-footer a {
        color: #E9DCC0;
    }

        .dj-footer a:hover {
            color: var(--dj-gold-light);
        }

    .dj-footer .footer-bottom {
        border-top: 1px solid rgba(255,255,255,.12);
        margin-top: 2rem;
        padding: 1rem 0;
        font-size: .85rem;
        color: #C9B79A;
    }

/* ---------- Back to top ---------- */
.dj-back-to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dj-maroon);
    color: #fff;
    border-radius: 50%;
    box-shadow: var(--dj-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 1050;
}

    .dj-back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dj-back-to-top:hover {
        background: var(--dj-maroon-dark);
        color: #fff;
    }

/* ---------- Lightbox ---------- */
.dj-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20,8,10,.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

    .dj-lightbox.show {
        display: flex;
    }

    .dj-lightbox img {
        max-width: 90vw;
        max-height: 85vh;
        border-radius: 4px;
        box-shadow: 0 10px 40px rgba(0,0,0,.5);
    }

.dj-lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.6rem;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
}

.dj-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background .2s ease;
}

    .dj-lightbox-nav:hover {
        background: rgba(255,255,255,.28);
    }

.dj-lightbox-prev {
    left: 1rem;
}

.dj-lightbox-next {
    right: 1rem;
}

.dj-lightbox-counter {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #E9DCC0;
    font-size: .85rem;
    letter-spacing: .5px;
}

@media (max-width:575.98px) {
    .dj-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .dj-lightbox-prev {
        left: .4rem;
    }

    .dj-lightbox-next {
        right: .4rem;
    }
}

/* ---------- Utilities ---------- */
.text-gold {
    color: var(--dj-gold) !important;
}

.bg-dj-maroon {
    background: var(--dj-maroon) !important;
}

.bg-dj-cream-deep {
    background: var(--dj-cream-deep) !important;
}

.divider-gold {
    width: 70px;
    height: 3px;
    background: var(--dj-gold);
    margin: 0 auto 1.2rem;
    border-radius: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .dj-hero {
        padding: 5rem 0 4rem;
    }

    .section {
        padding: 3rem 0;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
