﻿:root {
    --dw-gold: #ffc83d;
    --dw-orange: #ff9f1c;
    --dw-deep: #3b0a00;
    --dw-glow: rgba(255, 170, 40, .55);
}

/* ---------- 1. Falling golden sparkles ---------- */
.dw-sparkles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 99990;
}

.dw-spark {
    position: absolute;
    top: -20px;
    left: var(--x);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: radial-gradient(circle, #fff6c9 0%, var(--dw-gold) 45%, rgba(255,200,61,0) 70%);
    box-shadow: 0 0 8px 2px var(--dw-glow);
    opacity: 0;
    animation: dw-fall var(--d) linear var(--delay) infinite;
    will-change: transform, opacity;
}

@keyframes dw-fall {
    0% {
        transform: translate3d(0, -20px, 0) scale(.6);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translate3d(var(--sway), 50vh, 0) scale(1);
        opacity: .9;
    }

    100% {
        transform: translate3d(calc(var(--sway) * -1), 105vh, 0) scale(.5);
        opacity: 0;
    }
}

/* ---------- 2. Fireworks canvas (created by diwali.js) ---------- */
.dw-fireworks {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99992;
}

/* ---------- 3. Footer row of glowing diyas ---------- */
.dw-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    display: flex;
    justify-content: space-between; /* was space-around */
    align-items: flex-end;
    padding: 0 16px; /* was 0 80px 0 10px */
    pointer-events: none;
    z-index: 9990;
}

.dw-diya {
    position: relative;
    width: 42px;
    height: 26px;
    background: url(/assets/images/diwali/diya-bowl.svg) center bottom / contain no-repeat;
    filter: drop-shadow(0 0 10px var(--dw-glow));
}

.dw-flame {
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: 12px;
    height: 22px;
    margin-left: -6px;
    border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    background: radial-gradient(ellipse at 50% 75%, #fff8d6 0%, #ffd34d 45%, #ff8a00 85%, rgba(255,138,0,0) 100%);
    box-shadow: 0 0 14px 5px rgba(255,170,40,.6);
    transform-origin: 50% 90%;
    animation: dw-flicker 1.6s ease-in-out infinite;
}

@keyframes dw-flicker {
    0%, 100% {
        transform: scale(1, 1) rotate(-1deg);
        opacity: 1;
    }

    25% {
        transform: scale(.94, 1.06) rotate(2deg);
        opacity: .92;
    }

    50% {
        transform: scale(1.04, .96) rotate(-2deg);
        opacity: 1;
    }

    75% {
        transform: scale(.96, 1.04) rotate(1deg);
        opacity: .94;
    }
}

/* ---------- 4. String lights along the very top ---------- */
.dw-lights {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 14px;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    pointer-events: none;
    z-index: 99991;
}

    .dw-lights i {
        display: block;
        width: 8px;
        height: 8px;
        margin-top: 2px;
        border-radius: 50%;
        background: var(--c, #ffc83d);
        box-shadow: 0 0 8px 2px var(--c, #ffc83d);
        animation: dw-blink 1.8s ease-in-out infinite;
    }

        .dw-lights i:nth-child(4n+1) {
            --c: #ffc83d;
            animation-delay: 0s;
        }

        .dw-lights i:nth-child(4n+2) {
            --c: #ff7a1a;
            animation-delay: .45s;
        }

        .dw-lights i:nth-child(4n+3) {
            --c: #ff4d6d;
            animation-delay: .9s;
        }

        .dw-lights i:nth-child(4n+4) {
            --c: #fff0a0;
            animation-delay: 1.35s;
        }

@keyframes dw-blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

/* ---------- 5. Home page greeting band (markup lives in Default.aspx) ---------- */
.dw-band {
    display: none;
}

html.dw-on .dw-band {
    display: block;
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 40px 0;
    background: linear-gradient(135deg, #3b0a00 0%, #7a1f00 45%, #c2410c 100%);
}

    html.dw-on .dw-band::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 80% 60%, rgba(255,200,61,.35), transparent 55%);
    }

.dw-band-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.dw-band-copy {
    flex: 1 1 320px;
    padding: 0 70px;
}

.dw-band-kicker {
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--dw-gold);
}

.dw-band h2 {
    margin: 0 0 12px;
    color: #ffe08a;
    line-height: 1.15;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
}

.dw-band p {
    margin: 0 0 20px;
    color: #ffe9c7;
    font-size: 16px;
    max-width: 520px;
}

.dw-band-btn {
    display: inline-block;
    margin: 0 10px 8px 0;
    padding: 10px 24px;
    border-radius: 999px;
    background: var(--dw-gold);
    color: var(--dw-deep);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--dw-gold);
    cursor: pointer;
}

    .dw-band-btn:hover {
        background: transparent;
        color: var(--dw-gold);
    }

    .dw-band-btn.dw-ghost {
        background: transparent;
        color: var(--dw-gold);
    }

        .dw-band-btn.dw-ghost:hover {
            background: var(--dw-gold);
            color: var(--dw-deep);
        }

.dw-band-art {
    flex: 0 1 360px;
    text-align: center;
    position: relative;
}

    .dw-band-art img {
        max-width: 100%;
        max-height: 300px;
        width: auto;
        height: auto;
        filter: drop-shadow(0 0 26px rgba(255,190,60,.55));
    }

.dw-lantern {
    position: fixed;
    top: 0;
    width: 50px;
    height: 108px;
    z-index: 99991; /* same layer as the string lights, so the lantern hangs from them */
    pointer-events: none;
    background: url(/assets/images/diwali/lantern.svg) center top / contain no-repeat;
    transform-origin: top center;
    animation: dw-sway 4s ease-in-out infinite;
}

    .dw-lantern.dw-l {
        left: 24px;
    }

    .dw-lantern.dw-r {
        right: 24px;
        animation-delay: -2s;
    }

@keyframes dw-sway {
    0%, 100% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(4deg);
    }
}

/* ---------- 6. Corner diyas on the "Our Exclusive Packages" section ---------- */
.dw-packages {
    position: relative;
}

/*html.dw-on .dw-packages::before,
html.dw-on .dw-packages::after {
    content: "";
    position: absolute;
    top: 12px;
    width: 76px;
    height: 76px;
    pointer-events: none;
    background: url(/assets/images/diwali/diya.svg) center / contain no-repeat;
    filter: drop-shadow(0 0 12px var(--dw-glow));
    animation: dw-pulse 2.4s ease-in-out infinite;
}

html.dw-on .dw-packages::before {
    left: 18px;
}

html.dw-on .dw-packages::after {
    right: 18px;
    animation-delay: -1.2s;
}

@keyframes dw-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}*/

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
    .dw-footer {
        height: 44px;
        padding-right: 70px;
    }

    .dw-diya {
        width: 32px;
        height: 20px;
    }

    .dw-flame {
        width: 9px;
        height: 17px;
        margin-left: -4.5px;
        bottom: 15px;
    }

    .dw-band-copy {
        padding: 0 24px;
    }

    .dw-lantern {
        width: 30px;
        height: 65px;
    }

        .dw-lantern.dw-l {
            left: 6px;
        }

        .dw-lantern.dw-r {
            right: 6px;
        }

    /*html.dw-on .dw-packages::before, html.dw-on .dw-packages::after {
        display: none;
    }*/
}

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
    .dw-spark, .dw-flame, .dw-lights i, .dw-lantern,
    html.dw-on .dw-packages::before, html.dw-on .dw-packages::after {
        animation: none !important;
    }
}

/* ---------- 7. Home page: crackers + festive pictures beside section headings ---------- */
/* Our Exclusive Packages -> an anar (flowerpot) on the left and a rocket on the right of the heading */
html.dw-on .dw-packages .course-feature .row > .col-lg-6.text-center:first-child,
html.dw-on .how-works .row.justify-content-center > .col-lg-6.text-center:first-child,
html.dw-on .lead-companies .col-lg-8 > .text-center:first-child {
    position: relative;
}

    html.dw-on .dw-packages .course-feature .row > .col-lg-6.text-center:first-child::before,
    html.dw-on .dw-packages .course-feature .row > .col-lg-6.text-center:first-child::after,
    html.dw-on .how-works .row.justify-content-center > .col-lg-6.text-center:first-child::after,
    html.dw-on .lead-companies .col-lg-8 > .text-center:first-child::before {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        animation: dw-bob 3s ease-in-out infinite;
    }

    /* crackers */
    html.dw-on .dw-packages .course-feature .row > .col-lg-6.text-center:first-child::before {
        left: -84px;
        width: 70px;
        height: 105px;
        background-image: url(/assets/images/diwali/cracker-anar.svg);
    }

    html.dw-on .dw-packages .course-feature .row > .col-lg-6.text-center:first-child::after {
        right: -84px;
        width: 70px;
        height: 105px;
        background-image: url(/assets/images/diwali/cracker-rocket.svg);
        animation-delay: -1.5s;
    }

    /* How LeadsGuru Works -> girl lighting a diya, right of the heading */
    html.dw-on .how-works .row.justify-content-center > .col-lg-6.text-center:first-child::after {
        right: -96px;
        width: 92px;
        height: 92px;
        background-image: url(/assets/images/diwali/girl-diya.svg);
    }

    /* Our Media Presence -> festive megaphone, left of the heading */
    html.dw-on .lead-companies .col-lg-8 > .text-center:first-child::before {
        left: -2%;
        width: 96px;
        height: 80px;
        background-image: url(/assets/images/diwali/media-megaphone.svg);
    }

@keyframes dw-bob {
    0%, 100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(calc(-50% - 5px));
    }
}

@media (max-width: 991px) {
    html.dw-on .dw-packages .course-feature .row > .col-lg-6.text-center:first-child::before {
        left: -8px;
        width: 52px;
        height: 78px;
    }

    html.dw-on .dw-packages .course-feature .row > .col-lg-6.text-center:first-child::after {
        right: -8px;
        width: 52px;
        height: 78px;
    }

    html.dw-on .how-works .row.justify-content-center > .col-lg-6.text-center:first-child::after {
        right: 0;
        width: 64px;
        height: 64px;
    }

    html.dw-on .lead-companies .col-lg-8 > .text-center:first-child::before {
        left: 0;
        width: 68px;
        height: 56px;
    }
}

/* phones + small tablets: headings take the full width, so the pictures move ABOVE the heading, centred */
@media (max-width: 767px) {
    html.dw-on .dw-packages .course-feature .row > .col-lg-6.text-center:first-child,
    html.dw-on .how-works .row.justify-content-center > .col-lg-6.text-center:first-child,
    html.dw-on .lead-companies .col-lg-8 > .text-center:first-child {
        padding-top: 54px;
    }

        html.dw-on .dw-packages .course-feature .row > .col-lg-6.text-center:first-child::before,
        html.dw-on .dw-packages .course-feature .row > .col-lg-6.text-center:first-child::after,
        html.dw-on .how-works .row.justify-content-center > .col-lg-6.text-center:first-child::after,
        html.dw-on .lead-companies .col-lg-8 > .text-center:first-child::before {
            top: 0;
            right: auto;
            transform: none;
            animation-name: dw-bob-top;
        }

        /* two crackers side by side above "Our Exclusive Packages" */
        html.dw-on .dw-packages .course-feature .row > .col-lg-6.text-center:first-child::before {
            left: calc(50% - 50px);
            width: 40px;
            height: 52px;
        }

        html.dw-on .dw-packages .course-feature .row > .col-lg-6.text-center:first-child::after {
            left: calc(50% + 10px);
            width: 40px;
            height: 52px;
        }

        /* girl with diya above "How LeadsGuru Works" */
        html.dw-on .how-works .row.justify-content-center > .col-lg-6.text-center:first-child::after {
            left: calc(50% - 26px);
            width: 52px;
            height: 52px;
        }

        /* megaphone above "Our Media Presence" */
        html.dw-on .lead-companies .col-lg-8 > .text-center:first-child::before {
            left: calc(50% - 32px);
            width: 64px;
            height: 51px;
        }
}

@keyframes dw-bob-top {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html.dw-on .dw-packages .course-feature .row > .col-lg-6.text-center:first-child::before,
    html.dw-on .dw-packages .course-feature .row > .col-lg-6.text-center:first-child::after,
    html.dw-on .how-works .row.justify-content-center > .col-lg-6.text-center:first-child::after,
    html.dw-on .lead-companies .col-lg-8 > .text-center:first-child::before {
        animation: none !important;
    }
}
.dw-burst {
    position: fixed;
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99993;
    background: radial-gradient(circle, #fff6c9 0%, var(--dw-gold) 50%, rgba(255,200,61,0) 75%);
    box-shadow: 0 0 8px 2px var(--dw-glow);
    animation: dw-burst .75s ease-out forwards;
}

@keyframes dw-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--dx), var(--dy)) scale(.2);
        opacity: 0;
    }
}