/* ============================================================================
   Maa Koteshwari Seva Samiti Trust — Effects Layer
   ----------------------------------------------------------------------------
   Motion, 3D, parallax & fluid responsive layouts. Loaded LAST on every page.
   Pure CSS + data-URI free (uses existing CDN icons). Reduced-motion aware.
   ============================================================================ */

:root {
    --fx-ease: cubic-bezier(0.22, 0.68, 0.35, 1);
    --fx-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --fx-tilt-max: 8deg;
    --fx-gold-glow: rgba(201, 162, 74, 0.4);
}

/* ═══════════════════════════════ SCROLL PROGRESS BAR ═══════════════════════════════ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300), #ffb347);
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.7);
    z-index: 10000;
    pointer-events: none;
    transition: width 0.08s linear;
}

/* ═══════════════════════════════ SCROLL REVEAL & PARALLAX ═══════════════════════════════ */

.motion-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s var(--fx-ease), transform 0.75s var(--fx-ease);
    will-change: opacity, transform;
}

.motion-reveal.mr-left {
    transform: translateX(-48px);
}

.motion-reveal.mr-right {
    transform: translateX(48px);
}

.motion-reveal.mr-zoom {
    transform: scale(0.88) translateY(20px);
}

.motion-reveal.mr-fade {
    transform: translateY(0);
}

.motion-reveal.motion-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

@media (max-width: 640px) {
    .motion-reveal.mr-left,
    .motion-reveal.mr-right {
        transform: translateY(24px);
    }
}

/* Title divider expanding on reveal */
.section-header .title-divider {
    transform: scaleX(0.2);
    opacity: 0;
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.section-header.motion-visible .title-divider {
    transform: scaleX(1);
    opacity: 1;
}

.stagger > * {
    transition-delay: calc(var(--stagger-i, 0) * 100ms);
}

/* ═══════════════════════════════ 3D TILT ═══════════════════════════════ */

.tilt-3d,
.motion-reveal.motion-visible.tilt-3d {
    transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
        translateY(var(--tilt-lift, 0px));
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out, opacity 0.7s var(--fx-ease), box-shadow 0.35s var(--fx-ease),
        border-color 0.35s var(--fx-ease);
    will-change: transform;
}

.tilt-3d .tilt-inner {
    transform: translateZ(26px);
}

.tilt-3d:hover,
.tilt-3d:focus-within {
    border-color: var(--gold-400);
    box-shadow: 0 26px 54px -22px rgba(58, 38, 18, 0.4);
}

/* Icon badges pop in 3D on card hover */
.card-mandir:hover .card-icon,
.feature-card:hover .feature-icon,
.seva-item:hover .card-icon,
.social-card:hover > i {
    transform: rotateY(360deg) scale(1.08);
}

.card-mandir .card-icon,
.feature-card .feature-icon,
.seva-item .card-icon,
.social-card > i {
    transition: transform 0.7s var(--fx-ease);
}

.card-mandir,
.feature-card,
.seva-item,
.social-card {
    perspective: 800px;
}

/* ═══════════════════════════════ 3D FLIP CARDS ═══════════════════════════════ */

.flip-card {
    perspective: 1400px;
    cursor: pointer;
}

.flip-card .flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s var(--fx-ease);
}

.flip-card.is-flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-card:hover:not(.is-flipped) {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(201, 162, 74, 0.4);
}

.flip-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 26px 22px;
    text-align: center;
    border-radius: inherit;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-front {
    background: inherit;
}

.flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(160deg, var(--maroon-800) 0%, var(--maroon-950) 100%);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gold-500);
}

.flip-back h4 {
    color: var(--gold-300);
    font-size: 22px;
}

.flip-back p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

/* Member cards become flip cards with fixed height */
.member-card {
    height: 420px;
    padding: 0;
    overflow: visible;
}

.member-card .member-avatar {
    margin: 0 auto;
}

/* ═══════════════════════════════ PARALLAX ═══════════════════════════════ */

[data-plx] {
    will-change: transform;
}

.plx-ornament {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    line-height: 1;
}

.fx-glyph {
    display: block;
    line-height: 1;
}

.fx-om {
    top: 7%;
    right: 5%;
    font-family: var(--font-display);
    font-size: clamp(96px, 15vw, 200px);
    color: rgba(201, 162, 74, 0.15);
    text-shadow: 0 0 70px rgba(201, 162, 74, 0.22);
    animation: fx-breathe 9s ease-in-out infinite;
}

.fx-wheel {
    bottom: 13%;
    left: 4%;
    font-size: clamp(44px, 6vw, 78px);
    color: rgba(201, 162, 74, 0.22);
    animation: fx-spin 26s linear infinite;
}

.fx-orb {
    top: 14%;
    left: 10%;
    width: clamp(130px, 19vw, 270px);
    height: clamp(130px, 19vw, 270px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 74, 0.24), transparent 64%);
    filter: blur(8px);
    animation: fx-orb-drift 15s ease-in-out infinite;
}

.fx-orb-alt {
    bottom: 8%;
    right: 12%;
    width: clamp(90px, 12vw, 170px);
    height: clamp(90px, 12vw, 170px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 74, 0.18), transparent 62%);
    filter: blur(6px);
    animation: fx-orb-drift 18s ease-in-out infinite reverse;
}

.fx-orb.fx-orb-alt {
    top: auto;
    left: auto;
}

.fx-lotus {
    top: 62%;
    right: 24%;
    font-size: clamp(30px, 4vw, 52px);
    color: rgba(201, 162, 74, 0.16);
    animation: fx-float 8s ease-in-out infinite;
}

/* ═══════════════════════════════ AMBIENT ANIMATIONS ═══════════════════════════════ */

@keyframes fx-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

@keyframes fx-breathe {

    0%,
    100% {
        opacity: 0.55;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

@keyframes fx-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fx-orb-drift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(14px, -18px) scale(1.08);
    }

    66% {
        transform: translate(-10px, 12px) scale(0.94);
    }
}

@keyframes fx-glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--fx-gold-glow);
    }

    50% {
        box-shadow: 0 0 0 16px rgba(201, 162, 74, 0);
    }
}

@keyframes fx-ping {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    80%,
    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

@keyframes fx-shimmer {
    to {
        background-position: 200% center;
    }
}

.float-y {
    animation: fx-float 6s ease-in-out infinite;
}

.glow-pulse {
    animation: fx-glow-pulse 2.8s ease-out infinite;
}

.shimmer-gold {
    background: linear-gradient(100deg, var(--gold-300) 20%, #ffe9b8 40%, var(--gold-300) 60%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: fx-shimmer 5.5s linear infinite;
}

/* WhatsApp float pulse ring (light golden / light orange wave) */
.wa-float::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 190, 80, 0.85) 0%, rgba(245, 166, 35, 0.6) 60%, rgba(229, 142, 26, 0.25) 100%);
    box-shadow: 0 0 16px rgba(245, 166, 35, 0.6);
    z-index: -1;
    animation: fx-ping 2.4s ease-out infinite;
}

/* Animated stat counters */
.stat-pill .stat-num {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--gold-300);
    min-width: 1.2em;
    text-align: right;
}

/* ═══════════════════════════════ BUTTON & CARD MICRO-INTERACTIONS ═══════════════════════════════ */

.btn-mandir,
.btn-primary,
.btn-secondary,
.btn-ghost {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-mandir::after,
.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70%;
    width: 45%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s var(--fx-ease);
    pointer-events: none;
}

.btn-mandir:hover::after,
.btn-primary:hover::after,
.btn-secondary:hover::after {
    left: 125%;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--fx-ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

/* Links: soft underline sweep */
.summary-panel a:not(.btn-mandir):not(.btn-secondary):not(.btn-primary):not(.btn-ghost),
.contact-card a,
.footer-nav-list a,
.panel-list a {
    background-image: linear-gradient(90deg, var(--gold-600), var(--gold-600));
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: left calc(100% - 2px);
    transition: background-size 0.35s var(--fx-ease), color 0.25s var(--fx-ease);
}

.summary-panel a:hover,
.contact-card a:hover,
.footer-nav-list a:hover,
.panel-list a:hover {
    background-size: 100% 2px;
}

/* Cards: quiet hover rise (non-tilt cards only) */
.notice-card:not(.tilt-3d):hover,
.timeline-content:not(.tilt-3d):hover,
.summary-panel:not(.tilt-3d):hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════ GALLERY UPGRADE ═══════════════════════════════ */

.gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 18px;
}

.gallery-card {
    position: relative;
    height: 100%;
}

.gallery-card:nth-child(3n + 1) {
    grid-row: span 2;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--fx-ease), filter 0.5s var(--fx-ease);
}

.gallery-card:hover img {
    transform: scale(1.09) translateY(-6px);
    filter: saturate(1.12);
}

.gallery-card-actions {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    gap: 8px;
    padding: 16px;
    border: 0;
    background: linear-gradient(180deg, transparent, rgba(20, 5, 5, 0.78));
    transform: translateY(110%);
    transition: transform 0.4s var(--fx-ease);
}

.gallery-card:hover .gallery-card-actions,
.gallery-card:focus-within .gallery-card-actions {
    transform: translateY(0);
}

.gallery-card-actions .gallery-action {
    background: rgba(255, 253, 247, 0.92);
    border: 1px solid rgba(201, 162, 74, 0.5);
    color: var(--maroon-800);
    font-weight: 700;
    backdrop-filter: blur(4px);
}

/* ═══════════════════════════════ FLUID RESPONSIVE GRIDS ═══════════════════════════════ */

.seva-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.member-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.social-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.feature-grid {
    gap: 24px;
}

.timeline-wrap {
    max-width: 900px;
}

/* Alternating two-column timeline on desktop */
@media (min-width: 769px) {
    .timeline-wrap::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: calc(50% - 40px);
        padding: 0;
        margin-bottom: 42px;
    }

    .timeline-item:nth-child(odd) {
        margin-right: auto;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        margin-left: auto;
    }

    .timeline-dot {
        left: auto;
        top: 26px;
        right: -41px;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        right: auto;
        left: -41px;
    }

    .timeline-content h4 span {
        display: block;
        margin: 4px 0 0;
    }
}

/* ═══════════════════════════════ RESPONSIVE ═══════════════════════════════ */

@media (max-width: 1024px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 460px;
        justify-self: center;
        width: 100%;
    }

    .seva-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-auto-rows: 190px;
    }

    .fx-om {
        right: 2%;
    }

    .fx-wheel {
        left: 2%;
    }
}

@media (max-width: 768px) {
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .seva-grid,
    .social-grid,
    .member-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .social-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
    }

    .gallery-grid {
        grid-auto-rows: auto;
    }

    .gallery-card:nth-child(3n + 1) {
        grid-row: auto;
    }

    .gallery-card img {
        height: 250px;
    }

    .flip-card {
        height: 400px;
    }

    .fx-om {
        font-size: clamp(70px, 22vw, 110px);
        top: 4%;
        right: 4%;
    }

    .fx-orb,
    .fx-orb-alt {
        display: none;
    }
}

/* Touch devices: keep actions visible, skip hover-only tricks */
@media (hover: none) and (pointer: coarse) {
    .gallery-card-actions {
        transform: none;
        background: linear-gradient(180deg, transparent, rgba(20, 5, 5, 0.7));
    }

    .btn-mandir::after,
    .btn-primary::after,
    .btn-secondary::after {
        display: none;
    }

    .tilt-3d {
        transform: none;
    }

    .card-mandir:hover .card-icon,
    .feature-card:hover .feature-icon,
    .seva-item:hover .card-icon,
    .social-card:hover > i {
        transform: none;
    }
}

/* ═══════════════════════════════ REDUCED MOTION ═══════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .motion-reveal.mr-left,
    .motion-reveal.mr-right,
    .motion-reveal.mr-zoom,
    .motion-reveal.mr-fade,
    .tilt-3d,
    .flip-inner {
        transform: none;
    }

    .fx-glyph,
    .fx-orb,
    .fx-orb-alt,
    .fx-lotus,
    .float-y,
    .glow-pulse,
    .shimmer-gold,
    .wa-float::before {
        animation: none !important;
    }

    .stagger > * {
        transition-delay: 0ms;
    }
}

/* ═══════════════════════════════ CONTENT RICHNESS ═══════════════════════════════
   Icon & graphic-driven content blocks added across pages. */

/* ── Aarti / Darshan timings ── */
.timing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.timing-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 26px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.timing-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(150deg, var(--maroon-600), var(--maroon-800));
    border: 2px solid var(--gold-300);
    box-shadow: 0 12px 24px -10px rgba(58, 38, 18, 0.45);
}

.timing-card h3 {
    font-size: 15.5px;
    color: var(--ink-900);
}

.timing-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--gold-050);
    color: var(--maroon-700);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Festivals ── */
.festival-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.festival-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
        border-color 0.3s var(--ease);
}

.festival-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-400);
}

.festival-icon {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: var(--maroon-700);
    background: linear-gradient(160deg, var(--maroon-050), var(--cream-200));
    border: 1px solid var(--line);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.6);
}

.festival-body {
    min-width: 0;
}

.festival-body h3 {
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.fest-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gold-600);
    letter-spacing: 0.05em;
    background: rgba(201, 162, 74, 0.1);
    border: 1px solid rgba(201, 162, 74, 0.3);
    border-radius: 999px;
    padding: 3px 12px;
    margin-bottom: 10px;
}

.festival-body p {
    font-size: 13px;
    color: var(--ink-500);
    line-height: 1.75;
}

/* phone: horizontal snap carousel */
.festival-swipe-hint {
    display: none;
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-600);
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.festival-swipe-hint i {
    font-size: 10px;
    opacity: 0.85;
    animation: hint-nudge 1s ease-in-out infinite;
}

.festival-swipe-hint i:last-child {
    animation-delay: 0.5s;
}

.festival-dots {
    display: none;
    margin-top: 16px;
    gap: 7px;
    align-items: center;
    justify-content: center;
}

.festival-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(140, 99, 34, 0.25);
    border: 0;
    padding: 0;
    transition: all 0.3s var(--ease);
}

.festival-dots .dot.is-active {
    width: 22px;
    background: var(--gold-500);
}

@media (max-width: 720px) {
    .festival-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 8px 10px 22px;
        scrollbar-width: none;
    }

    .festival-grid::-webkit-scrollbar {
        display: none;
    }

    .festival-card {
        flex: 0 0 78%;
        scroll-snap-align: center;
        min-height: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 30px 26px;
        color: #fff;
        background: linear-gradient(165deg, var(--maroon-800), var(--maroon-950));
        border: 1px solid rgba(201, 162, 74, 0.45);
        box-shadow: var(--shadow-md);
    }

    .festival-card::before {
        content: '';
        position: absolute;
        inset: 9px;
        border: 1px solid rgba(201, 162, 74, 0.28);
        border-radius: calc(var(--r-lg) - 8px);
        pointer-events: none;
    }

    .festival-card::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(300px 170px at 90% -20px, rgba(201, 162, 74, 0.22), transparent 62%);
        pointer-events: none;
    }

    .festival-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 25px;
        color: #fff;
        background: linear-gradient(150deg, var(--maroon-500), var(--maroon-800));
        border: 1px solid rgba(201, 162, 74, 0.55);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 30px -14px rgba(0, 0, 0, 0.6);
        margin-bottom: 2px;
    }

    .festival-body {
        position: relative;
        z-index: 1;
    }

    .festival-body h3 {
        font-size: 22px;
        color: #fff;
        margin-bottom: 6px;
    }

    .fest-tag {
        color: var(--gold-300);
        background: rgba(201, 162, 74, 0.14);
        border-color: rgba(201, 162, 74, 0.45);
        padding: 4px 13px;
        margin-bottom: 12px;
    }

    .festival-body p {
        font-size: 13.5px;
        color: rgba(255, 255, 255, 0.85);
    }

    .festival-swipe-hint,
    .festival-dots {
        display: flex;
    }
}

@media (max-width: 480px) {
    .festival-card {
        flex-basis: 86%;
        padding: 26px 22px;
    }
}

@keyframes hint-nudge {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

/* ── Gallery glimpse strip (home) ── */
.gallery-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: clamp(170px, 21vw, 235px);
    gap: 18px;
}

/* bento mosaic: photos 1 & 4 are wide features */
.gallery-strip-link:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
}

.gallery-strip-link:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2;
}

.gallery-strip-link {
    position: relative;
    display: block;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid rgba(184, 137, 59, 0.35);
    box-shadow: var(--shadow-sm);
}

.gallery-strip-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.gallery-strip-link:hover img {
    transform: scale(1.07);
}

/* inner gold hairline on hover */
.gallery-strip-link::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201, 162, 74, 0.4);
    border-radius: calc(var(--r-lg) - 8px);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-strip-link:hover::after,
.gallery-strip-link:focus-visible::after {
    opacity: 1;
}

/* number badge */
.gallery-strip-num {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #fff;
    background: rgba(20, 5, 5, 0.55);
    border: 1px solid rgba(201, 162, 74, 0.45);
    border-radius: 999px;
    padding: 4px 11px;
    backdrop-filter: blur(4px);
}

/* caption pill */
.gallery-strip-caption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(20, 5, 5, 0.55);
    border: 1px solid rgba(201, 162, 74, 0.4);
    backdrop-filter: blur(6px);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.35s ease;
}

.gallery-strip-caption i {
    color: var(--gold-300);
}

.gallery-strip-link:hover .gallery-strip-caption,
.gallery-strip-link:focus-visible .gallery-strip-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ── Values (about) ── */
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.value-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px 18px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.value-card > i {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(150deg, var(--maroon-600), var(--maroon-800));
    border: 2px solid var(--gold-300);
    box-shadow: 0 12px 24px -10px rgba(58, 38, 18, 0.45);
}

.value-card h3 {
    font-size: 17px;
    color: var(--ink-900);
}

.value-card p {
    font-size: 12.5px;
    color: var(--ink-500);
    line-height: 1.55;
    margin-top: 6px;
}

/* ── Seva type chips (membership) ── */
.seva-chip-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.seva-chip {
    background: linear-gradient(160deg, var(--gold-050), var(--cream-100));
    border: 1px solid var(--gold-300);
    border-radius: var(--r-lg);
    padding: 18px 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.seva-chip:hover {
    transform: translateY(-4px);
    border-color: var(--gold-400);
    box-shadow: var(--shadow-md);
}

.seva-chip i {
    display: block;
    font-size: 22px;
    color: var(--maroon-700);
    margin-bottom: 8px;
}

.seva-chip span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-800);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.35;
}

/* ── Category chips (FAQ) ── */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--gold-300);
    color: var(--maroon-700);
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.chip:hover {
    transform: translateY(-3px);
    background: linear-gradient(150deg, var(--maroon-600), var(--maroon-800));
    color: #fff;
    box-shadow: var(--shadow-md);
}

/* ── Quick contact / media tiles ── */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 1.8rem;
}

.quick-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.quick-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-400);
    box-shadow: var(--shadow-md);
}

.quick-card > i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    font-size: 19px;
    color: #fff;
    background: linear-gradient(150deg, var(--maroon-600), var(--maroon-800));
    border: 2px solid var(--gold-300);
    box-shadow: 0 10px 20px -10px rgba(58, 38, 18, 0.45);
}

.quick-card h3 {
    font-size: 13px;
    color: var(--ink-900);
}

.quick-card p {
    font-size: 11.5px;
    color: var(--gold-600);
    font-weight: 600;
    word-break: break-word;
    margin-top: 4px;
    line-height: 1.45;
}

/* Responsive for content blocks */
@media (max-width: 1024px) {
    .timing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .festival-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seva-chip-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 420px;
        justify-self: center;
        width: 100%;
    }

    .gallery-strip {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: clamp(150px, 20vw, 210px);
    }

    .gallery-strip-link:nth-child(1) {
        grid-column: 1 / 3;
    }

    .gallery-strip-link:nth-child(4) {
        grid-column: 1 / 3;
    }
}

@media (max-width: 768px) {
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seva-chip-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .timing-grid,
    .value-grid,
    .quick-grid {
        grid-template-columns: 1fr;
    }

    .seva-chip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .quick-card:nth-child(5) {
        grid-column: auto;
        max-width: none;
    }

    .gallery-strip {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .gallery-strip-link:nth-child(1),
    .gallery-strip-link:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-strip-link {
        aspect-ratio: 16 / 10;
    }
}

/* Touch devices: keep gallery strip captions visible */
@media (hover: none) and (pointer: coarse) {
    .gallery-strip-caption {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   21st.dev MODERN MOTION & BENTO DESIGN SYSTEM
   Inspired by 21st.dev / Magic UI / Aceternity Modern Motion standards
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── 1. Interactive Spotlight Cards (Mouse-Tracking Cursor Glow) ── */
.spotlight-card,
.notice-card,
.value-card,
.timeline-content {
    position: relative;
    isolation: isolate;
    border-radius: var(--r-xl);
    background: var(--white);
    border: 1px solid rgba(184, 137, 59, 0.24);
    box-shadow: 0 10px 30px -15px rgba(50, 30, 8, 0.12);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
}

.spotlight-card > *,
.notice-card > *,
.value-card > *,
.timeline-content > * {
    position: relative;
    z-index: 3;
}

.spotlight-card::before,
.notice-card::before,
.value-card::before,
.timeline-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(217, 178, 95, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.spotlight-card::after,
.notice-card::after,
.value-card::after,
.timeline-content::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(217, 178, 95, 0.8), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.spotlight-card:hover::before,
.spotlight-card:hover::after,
.notice-card:hover::before,
.notice-card:hover::after,
.value-card:hover::before,
.value-card:hover::after,
.timeline-content:hover::before,
.timeline-content:hover::after {
    opacity: 1;
}

.spotlight-card:hover,
.notice-card:hover,
.value-card:hover,
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px -20px rgba(58, 38, 18, 0.22);
    border-color: rgba(217, 178, 95, 0.5);
}

/* Dark variant spotlight card (Velvet Maroon & Gold) */
.spotlight-card.card-dark {
    background: linear-gradient(160deg, #3d0a0a 0%, #200404 100%);
    border: 1px solid rgba(217, 178, 95, 0.32);
    color: #ffffff;
    box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.45);
}

.spotlight-card.card-dark::before {
    background: radial-gradient(460px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 215, 0, 0.22), transparent 70%);
}

.spotlight-card.card-dark::after {
    background: radial-gradient(320px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 225, 120, 0.95), transparent 70%);
}

.spotlight-card.card-dark:hover {
    box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.65), 0 0 35px -5px rgba(217, 178, 95, 0.35);
    border-color: rgba(255, 215, 0, 0.65);
}

/* ── Connect Cards in Social Band (Velvet Glass with Gold Accents & High Contrast) ── */
.connect-card,
.section-connect .spotlight-card {
    background: linear-gradient(160deg, rgba(48, 10, 10, 0.94) 0%, rgba(20, 4, 4, 0.98) 100%) !important;
    border: 1px solid rgba(217, 178, 95, 0.38) !important;
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.connect-card:hover,
.section-connect .spotlight-card:hover {
    background: linear-gradient(160deg, rgba(70, 14, 14, 0.97) 0%, rgba(30, 5, 5, 0.99) 100%) !important;
    border-color: rgba(255, 215, 0, 0.75) !important;
    box-shadow: 0 24px 55px -15px rgba(0, 0, 0, 0.85), 0 0 30px rgba(217, 178, 95, 0.4) !important;
    transform: translateY(-6px);
}

.connect-card .connect-title {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.02em;
}

.connect-card .connect-desc {
    color: rgba(255, 248, 235, 0.9) !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

.connect-card .connect-follow {
    color: #ffd700 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
    margin-top: auto;
    padding-top: 8px;
}

.connect-card .connect-follow i {
    transition: transform 0.3s var(--ease);
}

.connect-card:hover .connect-follow i {
    transform: translateX(5px);
}

/* ── 2. Bento Grid Layout Suite (21st.dev Bento) ── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
    margin-top: 32px;
}

.bento-col-12 { grid-column: span 12; }
.bento-col-8 { grid-column: span 8; }
.bento-col-7 { grid-column: span 7; }
.bento-col-6 { grid-column: span 6; }
.bento-col-5 { grid-column: span 5; }
.bento-col-4 { grid-column: span 4; }
.bento-col-3 { grid-column: span 3; }

.bento-card {
    position: relative;
    border-radius: var(--r-xl);
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
}

.bento-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.bento-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-600);
    background: rgba(201, 162, 74, 0.12);
    border: 1px solid rgba(201, 162, 74, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
}

.bento-mantra {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 13.5px;
    color: var(--gold-300);
    background: rgba(201, 162, 74, 0.12);
    border: 1px solid rgba(201, 162, 74, 0.3);
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 18px;
    max-width: 100%;
}

.bento-icon-lg {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: var(--maroon-800);
    background: linear-gradient(145deg, var(--cream-100), var(--cream-200));
    border: 1px solid var(--gold-300);
    box-shadow: 0 10px 24px -10px rgba(50, 30, 8, 0.25);
    flex-shrink: 0;
}

.bento-icon-lg i {
    filter: drop-shadow(0 2px 4px rgba(58, 38, 18, 0.2));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-icon-lg i {
    transform: scale(1.18) rotate(6deg);
}

.card-dark .bento-icon-lg {
    color: var(--gold-300);
    background: linear-gradient(145deg, rgba(201, 162, 74, 0.25), rgba(201, 162, 74, 0.08));
    border-color: rgba(201, 162, 74, 0.5);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}

.bento-title {
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.25;
    margin-bottom: 12px;
}

.bento-copy {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--ink-500);
}

.card-dark .bento-copy {
    color: rgba(255, 255, 255, 0.85);
}

.bento-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--maroon-800);
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.card-dark .bento-action-link {
    color: var(--gold-300);
}

.bento-action-link i {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-action-link i {
    transform: translateX(6px);
}

/* ── 3. Modern Floating Pill Badge (21st.dev style) ── */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(217, 178, 95, 0.4);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fdfaf3;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    width: fit-content;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-pill:hover {
    background: rgba(217, 178, 95, 0.2);
    border-color: rgba(255, 220, 100, 0.75);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 162, 74, 0.35);
    color: #fff;
}

@media (max-width: 768px) {
    .badge-pill,
    .hide-on-phone {
        display: none !important;
    }
}

.status-pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    flex-shrink: 0;
}

.status-pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid #10b981;
    animation: statusPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes statusPing {
    0% { transform: scale(0.8); opacity: 1; }
    75%, 100% { transform: scale(2.4); opacity: 0; }
}

/* ── 4. Liquid Gold Animated Text Shimmer ── */
.shimmer-gold {
    background: linear-gradient(
        120deg,
        #b8893b 0%,
        #d9b25f 20%,
        #ffffff 45%,
        #ffe79a 55%,
        #d9b25f 70%,
        #b8893b 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldTextShimmer 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    display: inline-block;
}

@keyframes goldTextShimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

/* ── 5. Kinetic 21st.dev Action Buttons ── */
.btn-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff !important;
    background: linear-gradient(135deg, #8f2020 0%, #6e0d0d 60%, #4a0606 100%);
    border: 1px solid rgba(255, 215, 0, 0.55);
    box-shadow: 0 10px 28px -6px rgba(110, 13, 13, 0.65), 0 0 20px -4px rgba(217, 178, 95, 0.45);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    isolation: isolate;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: translateX(-100%);
    transition: transform 0.65s ease;
    z-index: 1;
}

.btn-glow:hover::before {
    transform: translateX(100%);
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 36px -6px rgba(140, 20, 20, 0.75), 0 0 32px 0 rgba(255, 215, 0, 0.6);
    border-color: #ffd700;
}

.btn-glow:active {
    transform: translateY(-1px) scale(0.99);
}

.btn-glass {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(217, 178, 95, 0.75);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.4), 0 0 22px rgba(217, 178, 95, 0.35);
}

/* ── 6. Infinite Marquee Edge Blur Mask ── */
.marquee-mandir {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

/* ── 7. Laser Scanner Beam on Donation QR ── */
.qr-scanner-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    background: #ffffff;
}

.qr-scanner-beam {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, #ff8c00, #ffd700, transparent);
    box-shadow: 0 0 14px 2px rgba(255, 215, 0, 0.85), 0 0 30px rgba(255, 140, 0, 0.6);
    pointer-events: none;
    z-index: 5;
    animation: scanBeamLoop 2.8s ease-in-out infinite alternate;
}

@keyframes scanBeamLoop {
    0% { top: 3%; opacity: 0.9; }
    50% { opacity: 1; }
    100% { top: 95%; opacity: 0.9; }
}

/* ── 8. Interactive Quick Donation Amount Chips ── */
.quick-amount-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0;
}

.amount-pill-btn {
    padding: 8px 16px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--cream-100);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(217, 178, 95, 0.38);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.amount-pill-btn:hover {
    background: rgba(217, 178, 95, 0.24);
    border-color: rgba(255, 215, 0, 0.75);
    transform: translateY(-2px);
    color: #fff;
}

.amount-pill-btn.is-selected {
    background: linear-gradient(135deg, #b8893b, #8a5a1a);
    color: #ffffff;
    border-color: #ffd700;
    box-shadow: 0 0 18px rgba(217, 178, 95, 0.55);
    transform: scale(1.06);
}

/* ── 9. Modern 21st.dev Floating Glass Toast Notification ── */
.modern-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(40px) scale(0.92);
    background: rgba(36, 10, 10, 0.94);
    color: #fff;
    padding: 12px 26px;
    border-radius: 999px;
    border: 1px solid rgba(217, 178, 95, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 25px rgba(201, 162, 74, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.modern-toast.is-shown {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.modern-toast i {
    color: #34d399;
    font-size: 16px;
}

/* ── 10. Sacred Embers Canvas ── */
.hero-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ── 11. Responsive Bento Grid ── */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .bento-col-8 { grid-column: span 6; }
    .bento-col-7 { grid-column: span 6; }
    .bento-col-6 { grid-column: span 6; }
    .bento-col-5 { grid-column: span 6; }
    .bento-col-4 { grid-column: span 3; }
    .bento-col-3 { grid-column: span 3; }
}

@media (max-width: 680px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .bento-col-12,
    .bento-col-8,
    .bento-col-7,
    .bento-col-6,
    .bento-col-5,
    .bento-col-4,
    .bento-col-3 {
        grid-column: span 1;
    }
    .bento-card {
        padding: 24px 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   12. 21st.dev Pricing Section with Frequency Toggle (Seva & Membership Tiers)
   ═══════════════════════════════════════════════════════════════════════════════ */
.pricing-section-container {
    width: 100%;
    max-width: 1140px;
    margin: 48px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-frequency-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(40, 10, 10, 0.08);
    border: 1px solid rgba(184, 137, 59, 0.32);
    border-radius: 999px;
    padding: 5px;
    margin: 28px auto 36px;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
}

.frequency-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 24px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--mt-maroon-deep);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.frequency-btn.is-active {
    background: linear-gradient(135deg, var(--mt-maroon-dark) 0%, #3e0909 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px -4px rgba(110, 13, 13, 0.55), 0 0 12px rgba(217, 178, 95, 0.35);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.frequency-pill-badge {
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: #059669;
    color: #ffffff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    width: 100%;
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    border-radius: var(--r-xl);
    border: 1px solid rgba(184, 137, 59, 0.28);
    box-shadow: 0 12px 32px -15px rgba(50, 25, 8, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px 28px 28px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px -15px rgba(60, 20, 10, 0.2);
    border-color: rgba(217, 178, 95, 0.55);
}

/* Highlighted (Popular / Most Revered Plan) */
.pricing-card.is-popular {
    background: linear-gradient(175deg, #2b0606 0%, #1f0404 100%);
    border: 1.5px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5), 0 0 30px -5px rgba(217, 178, 95, 0.25);
    color: #ffffff;
    transform: scale(1.03);
}

.pricing-card.is-popular:hover {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 28px 65px -15px rgba(0, 0, 0, 0.65), 0 0 40px -4px rgba(255, 215, 0, 0.4);
    border-color: #ffd700;
}

.pricing-card-badges {
    position: absolute;
    top: 14px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 4;
}

.badge-popular-star {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.45);
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-discount-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: #059669;
    color: #ffffff;
}

.pricing-card-header {
    margin-bottom: 22px;
}

.pricing-plan-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--mt-maroon-dark);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.pricing-card.is-popular .pricing-plan-name {
    color: #ffd700;
}

.pricing-plan-info {
    font-size: 13.5px;
    color: var(--ink-700);
    line-height: 1.5;
}

.pricing-card.is-popular .pricing-plan-info {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-price-box {
    margin: 20px 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(184, 137, 59, 0.22);
}

.pricing-card.is-popular .pricing-price-box {
    border-bottom-color: rgba(217, 178, 95, 0.25);
}

.pricing-amount-num {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 800;
    color: var(--mt-maroon-deep);
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    transition: all 0.3s ease;
}

.pricing-card.is-popular .pricing-amount-num {
    color: #ffffff;
}

.pricing-currency {
    font-size: 26px;
    font-weight: 700;
    color: var(--gold-600);
}

.pricing-card.is-popular .pricing-currency {
    color: #ffd700;
}

.pricing-period {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-500);
    margin-left: 4px;
}

.pricing-card.is-popular .pricing-period {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.pricing-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-800);
}

.pricing-card.is-popular .pricing-feature-item {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-feature-item i {
    color: #059669;
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.pricing-card.is-popular .pricing-feature-item i {
    color: #34d399;
}

.pricing-cta-wrap {
    margin-top: auto;
    width: 100%;
}

.pricing-cta-wrap .btn-mandir,
.pricing-cta-wrap .btn-glow {
    width: 100%;
    text-align: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
    .pricing-card.is-popular {
        transform: none;
    }
    .pricing-card.is-popular:hover {
        transform: translateY(-6px);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   13. 3D Works / Temple Glimpses Wheel Component (works-wheel)
   ═══════════════════════════════════════════════════════════════════════════════ */
.works-wheel-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    height: 82vh;
    max-height: 880px;
    background: radial-gradient(circle at 50% 50%, rgba(55, 12, 12, 0.45) 0%, rgba(20, 4, 4, 0.98) 100%), #1f0404;
    color: #ffffff;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    border-radius: var(--r-xl);
    border: 1px solid rgba(217, 178, 95, 0.32);
    box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.85), inset 0 0 100px rgba(0, 0, 0, 0.4);
    margin: 36px auto;
}

.works-wheel-stage {
    position: absolute;
    inset: 0;
    cursor: grab;
    touch-action: pan-x;
    outline: none;
}

.works-wheel-stage:active {
    cursor: grabbing;
}

.works-wheel-drum {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    pointer-events: none;
}

.works-wheel-card {
    position: absolute;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    pointer-events: auto;
    text-decoration: none;
    display: block;
    transition: opacity 0.2s ease;
}

.works-wheel-card-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #110202;
    border: 1.5px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 18px 45px -12px rgba(0, 0, 0, 0.75), 0 0 25px -5px rgba(217, 178, 95, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.works-wheel-card:hover .works-wheel-card-inner {
    border-color: #ffd700;
    box-shadow: 0 24px 55px -10px rgba(0, 0, 0, 0.9), 0 0 35px 2px rgba(255, 215, 0, 0.5);
}

.works-wheel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.works-wheel-card-affordance {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-display);
    color: #ffffff;
    background: rgba(30, 5, 5, 0.85);
    border: 1px solid rgba(217, 178, 95, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.works-wheel-card:hover .works-wheel-card-affordance {
    opacity: 1;
    transform: translateY(0);
}

.works-wheel-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.95);
    text-shadow: 0 0 35px rgba(217, 178, 95, 0.4), 0 4px 14px rgba(0, 0, 0, 0.8);
    transition: opacity 0.2s ease;
}

.works-wheel-front-title {
    position: absolute;
    top: 50%;
    left: 7%;
    transform: translateY(-50%);
    pointer-events: none;
    font-family: var(--font-heading);
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 215, 0, 0.5);
    max-width: 320px;
    line-height: 1.25;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.works-wheel-index {
    position: absolute;
    top: 7%;
    right: 3%;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
    line-height: 1.8;
    z-index: 10;
}

.works-wheel-index-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
    padding: 2px 6px;
    border-radius: 4px;
}

.works-wheel-index-btn:hover {
    color: #ffd700;
    transform: translateX(-4px);
}

.works-wheel-index-btn.is-active {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.works-wheel-controls-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(217, 178, 95, 0.3);
    font-size: 12px;
    color: var(--gold-300);
    backdrop-filter: blur(8px);
    pointer-events: none;
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .works-wheel-section {
        height: 60vh;
        min-height: 480px;
    }
    .works-wheel-front-title {
        left: 5%;
        max-width: 220px;
    }
    .works-wheel-index {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   14. 3D Image Stream Hero Corridor Component (image-stream-hero)
   Two rails of cards ride from far behind the screen toward the viewer in 3D perspective
   ═══════════════════════════════════════════════════════════════════════════════ */

.image-stream-root {
    container-type: inline-size;
    position: relative;
    width: 100%;
    min-height: 540px;
    height: 70vh;
    max-height: 700px;
    overflow: hidden;
    border-radius: var(--r-xl);
    border: 1px solid rgba(217, 178, 95, 0.35);
    background: radial-gradient(circle at 50% 50%, rgba(55, 12, 12, 0.45) 0%, rgba(20, 4, 4, 0.98) 100%), #1f0404;
    box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.85), inset 0 0 100px rgba(0, 0, 0, 0.4);
    user-select: none;
    margin: 28px 0;
}

.image-stream-stage {
    pointer-events: none;
    position: absolute;
    inset: 0;
    perspective: 30cqw;
    perspective-origin: 50% 55%;
}

.image-stream-track {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.image-stream-card {
    position: absolute;
    left: 50%;
    top: 55%;
    width: 18cqw;
    height: 25cqw;
    margin-left: -9cqw;
    margin-top: -12.5cqw;
    border-radius: 0.8cqw;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: #140303;
    border: 1.5px solid rgba(255, 215, 0, 0.45);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(217, 178, 95, 0.3);
    will-change: transform;
}

.image-stream-card.rail-r {
    animation: ish-r 18s linear infinite;
}

.image-stream-card.rail-l {
    animation: ish-l 18s linear infinite;
}

.image-stream-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.image-stream-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 30px 20px;
    pointer-events: auto;
    background: radial-gradient(circle at 50% 50%, rgba(26, 4, 4, 0.85) 0%, rgba(14, 2, 2, 0.45) 55%, transparent 80%);
}

.image-stream-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(217, 178, 95, 0.4);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-300);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.image-stream-title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    margin-bottom: 12px;
}

.image-stream-subtitle {
    max-width: 620px;
    font-size: clamp(13px, 1.6vw, 15px);
    line-height: 1.65;
    color: rgba(244, 240, 232, 0.85);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 24px;
}

.image-stream-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
    .image-stream-card {
        animation-play-state: paused !important;
    }
}

@media (max-width: 768px) {
    .image-stream-root {
        min-height: 440px;
        height: 60vh;
    }
    .image-stream-card {
        width: 24cqw;
        height: 32cqw;
        margin-left: -12cqw;
        margin-top: -16cqw;
    }
    .image-stream-title {
        font-size: clamp(20px, 6vw, 32px);
    }
    .image-stream-subtitle {
        font-size: 13px;
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .image-stream-root {
        min-height: 480px;
        border-radius: var(--r-lg);
        margin: 20px 0;
    }
    .image-stream-overlay {
        padding: 24px 14px;
    }
    .image-stream-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    .image-stream-actions .btn-glow,
    .image-stream-actions .btn-glass {
        width: 100%;
        max-width: 290px;
        padding: 11px 18px;
        font-size: 13px;
        text-align: center;
    }
}

/* Keyframes for Left & Right rails */
@keyframes ish-r {
  0.00% { transform: translate3d(-11.00cqw, 0, -258.46cqw) rotateY(-6.00deg); }
  4.17% { transform: translate3d(-3.79cqw, 0, -225.92cqw) rotateY(-6.92deg); }
  8.33% { transform: translate3d(2.73cqw, 0, -197.04cqw) rotateY(-7.83deg); }
  12.50% { transform: translate3d(8.60cqw, 0, -171.43cqw) rotateY(-8.75deg); }
  16.67% { transform: translate3d(13.87cqw, 0, -148.70cqw) rotateY(-9.67deg); }
  20.83% { transform: translate3d(18.56cqw, 0, -128.54cqw) rotateY(-10.58deg); }
  25.00% { transform: translate3d(22.72cqw, 0, -110.65cqw) rotateY(-11.50deg); }
  29.17% { transform: translate3d(26.37cqw, 0, -94.78cqw) rotateY(-12.42deg); }
  33.33% { transform: translate3d(29.57cqw, 0, -80.70cqw) rotateY(-13.33deg); }
  37.50% { transform: translate3d(32.34cqw, 0, -68.21cqw) rotateY(-14.25deg); }
  41.67% { transform: translate3d(34.71cqw, 0, -57.13cqw) rotateY(-15.17deg); }
  45.83% { transform: translate3d(36.73cqw, 0, -47.30cqw) rotateY(-16.08deg); }
  50.00% { transform: translate3d(38.42cqw, 0, -38.58cqw) rotateY(-17.00deg); }
  54.17% { transform: translate3d(39.81cqw, 0, -30.84cqw) rotateY(-17.92deg); }
  58.33% { transform: translate3d(40.94cqw, 0, -23.98cqw) rotateY(-18.83deg); }
  62.50% { transform: translate3d(41.84cqw, 0, -17.89cqw) rotateY(-19.75deg); }
  66.67% { transform: translate3d(42.53cqw, 0, -12.48cqw) rotateY(-20.67deg); }
  70.83% { transform: translate3d(43.06cqw, 0, -7.69cqw) rotateY(-21.58deg); }
  75.00% { transform: translate3d(43.43cqw, 0, -3.44cqw) rotateY(-22.50deg); }
  79.17% { transform: translate3d(43.69cqw, 0, 0.33cqw) rotateY(-23.42deg); }
  83.33% { transform: translate3d(43.85cqw, 0, 3.68cqw) rotateY(-24.33deg); }
  87.50% { transform: translate3d(43.94cqw, 0, 6.65cqw) rotateY(-25.25deg); }
  91.67% { transform: translate3d(43.98cqw, 0, 9.28cqw) rotateY(-26.17deg); }
  95.83% { transform: translate3d(44.00cqw, 0, 11.62cqw) rotateY(-27.08deg); }
  100.00% { transform: translate3d(44.00cqw, 0, 13.70cqw) rotateY(-28.00deg); }
}

@keyframes ish-l {
  0.00% { transform: translate3d(11.00cqw, 0, -258.46cqw) rotateY(6.00deg); }
  4.17% { transform: translate3d(3.79cqw, 0, -225.92cqw) rotateY(6.92deg); }
  8.33% { transform: translate3d(-2.73cqw, 0, -197.04cqw) rotateY(7.83deg); }
  12.50% { transform: translate3d(-8.60cqw, 0, -171.43cqw) rotateY(8.75deg); }
  16.67% { transform: translate3d(-13.87cqw, 0, -148.70cqw) rotateY(9.67deg); }
  20.83% { transform: translate3d(-18.56cqw, 0, -128.54cqw) rotateY(10.58deg); }
  25.00% { transform: translate3d(-22.72cqw, 0, -110.65cqw) rotateY(11.50deg); }
  29.17% { transform: translate3d(-26.37cqw, 0, -94.78cqw) rotateY(12.42deg); }
  33.33% { transform: translate3d(-29.57cqw, 0, -80.70cqw) rotateY(13.33deg); }
  37.50% { transform: translate3d(-32.34cqw, 0, -68.21cqw) rotateY(14.25deg); }
  41.67% { transform: translate3d(-34.71cqw, 0, -57.13cqw) rotateY(15.17deg); }
  45.83% { transform: translate3d(-36.73cqw, 0, -47.30cqw) rotateY(16.08deg); }
  50.00% { transform: translate3d(-38.42cqw, 0, -38.58cqw) rotateY(17.00deg); }
  54.17% { transform: translate3d(-39.81cqw, 0, -30.84cqw) rotateY(17.92deg); }
  58.33% { transform: translate3d(-40.94cqw, 0, -23.98cqw) rotateY(18.83deg); }
  62.50% { transform: translate3d(-41.84cqw, 0, -17.89cqw) rotateY(19.75deg); }
  66.67% { transform: translate3d(-42.53cqw, 0, -12.48cqw) rotateY(20.67deg); }
  70.83% { transform: translate3d(-43.06cqw, 0, -7.69cqw) rotateY(21.58deg); }
  75.00% { transform: translate3d(-43.43cqw, 0, -3.44cqw) rotateY(22.50deg); }
  79.17% { transform: translate3d(-43.69cqw, 0, 0.33cqw) rotateY(23.42deg); }
  83.33% { transform: translate3d(-43.85cqw, 0, 3.68cqw) rotateY(24.33deg); }
  87.50% { transform: translate3d(-43.94cqw, 0, 6.65cqw) rotateY(25.25deg); }
  91.67% { transform: translate3d(-43.98cqw, 0, 9.28cqw) rotateY(26.17deg); }
  95.83% { transform: translate3d(-44.00cqw, 0, 11.62cqw) rotateY(27.08deg); }
  100.00% { transform: translate3d(-44.00cqw, 0, 13.70cqw) rotateY(28.00deg); }
}

/* ─────────────────────────────────────────────────────────────
   15. BLOOD DONATION SEVA — AIIMS NEW DELHI (4 OCTOBER)
   ───────────────────────────────────────────────────────────── */

.blood-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffe0e0;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.32), rgba(127, 29, 29, 0.45));
    border: 1px solid rgba(239, 68, 68, 0.55);
    box-shadow: 0 4px 20px -4px rgba(220, 38, 38, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.blood-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3344;
    box-shadow: 0 0 12px #ff2233;
    animation: blood-pulse 1.8s infinite;
}

@keyframes blood-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* ── Blood Camp Section for Home (index.html) ── */
.section-blood-camp {
    position: relative;
    padding: 80px 24px 90px;
    background:
        radial-gradient(800px 380px at 20% -60px, rgba(185, 28, 28, 0.22), transparent 60%),
        radial-gradient(750px 360px at 80% 120%, rgba(201, 162, 74, 0.18), transparent 65%),
        linear-gradient(180deg, #1f0404 0%, #150202 50%, #1a0303 100%);
    color: var(--cream-50);
    border-top: 1px solid rgba(201, 162, 74, 0.45);
    border-bottom: 1px solid rgba(201, 162, 74, 0.45);
    overflow: hidden;
    overflow: clip;
}

.section-blood-camp .section-title {
    color: #fff9ea !important;
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 50%, #f59e0b 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.section-blood-camp .section-copy {
    color: rgba(255, 248, 235, 0.9) !important;
}

.section-blood-camp .section-icon {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d) !important;
    color: #ffffff !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 8px 24px rgba(185, 28, 28, 0.45) !important;
}

.blood-showcase-hero .breadcrumb ol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none !important;
    padding: 0;
    margin: 0 auto;
}

.blood-showcase-hero .breadcrumb li {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.blood-showcase-hero .breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: rgba(255, 215, 0, 0.5);
}

.blood-showcase-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.blood-showcase-hero .breadcrumb a:hover {
    color: #ffd700;
}

.blood-bento-grid {
    max-width: var(--container);
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.blood-camp-card {
    background: linear-gradient(145deg, rgba(42, 8, 8, 0.82), rgba(22, 4, 4, 0.92));
    border: 1px solid rgba(201, 162, 74, 0.4);
    border-radius: var(--r-xl);
    padding: 36px 32px;
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.blood-camp-card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25), transparent 70%);
    pointer-events: none;
}

.blood-camp-date-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-300);
    padding: 6px 14px;
    background: rgba(201, 162, 74, 0.14);
    border: 1px solid rgba(201, 162, 74, 0.35);
    border-radius: 8px;
    margin-bottom: 16px;
}

.blood-camp-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 14px;
}

.blood-camp-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(244, 240, 232, 0.84);
    margin-bottom: 26px;
}

.blood-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

@media (min-width: 860px) {
    .blood-stats-row.blood-stats-4col {
        grid-template-columns: repeat(4, 1fr);
    }
}

.blood-stat-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 162, 74, 0.25);
    border-radius: var(--r-md);
    transition: all 0.25s var(--ease);
}

.blood-stat-chip:hover {
    background: rgba(201, 162, 74, 0.1);
    border-color: var(--gold-400);
    transform: translateY(-2px);
}

.blood-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.4);
    flex-shrink: 0;
}

.blood-stat-info strong {
    display: block;
    font-size: 15px;
    color: var(--gold-300);
    line-height: 1.2;
}

.blood-stat-info small {
    display: block;
    font-size: 11.5px;
    color: rgba(244, 240, 232, 0.65);
    margin-top: 2px;
}

/* ── Mosaic preview grid on Home ── */
.blood-photo-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.blood-mosaic-item {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid rgba(201, 162, 74, 0.35);
    background: #100202;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.7);
    transition: all 0.35s var(--ease);
}

.blood-mosaic-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--gold-400);
    box-shadow: 0 16px 36px -8px rgba(220, 38, 38, 0.5), 0 0 20px rgba(201, 162, 74, 0.4);
}

.blood-mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

.blood-mosaic-item:hover img {
    transform: scale(1.08);
}

.blood-mosaic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(16, 2, 2, 0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    pointer-events: none;
}

.blood-mosaic-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffe4e4;
    text-transform: uppercase;
}

.blood-mosaic-loc {
    font-size: 10px;
    color: var(--gold-400);
    margin-top: 2px;
}

/* ── Dedicated Blood Donation Showcase Page (blood-donation.html) ── */
.blood-showcase-hero {
    position: relative;
    padding: 80px 20px 84px;
    text-align: center;
    background:
        radial-gradient(900px 420px at 50% 0px, rgba(185, 28, 28, 0.28), transparent 65%),
        radial-gradient(600px 300px at 15% 100%, rgba(201, 162, 74, 0.15), transparent 60%),
        linear-gradient(180deg, var(--maroon-950) 0%, #150303 100%);
    border-bottom: 1px solid rgba(201, 162, 74, 0.35);
    overflow: hidden;
}

.blood-showcase-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 5.2vw, 52px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.blood-showcase-copy {
    max-width: 720px;
    margin: 0 auto 32px;
    font-size: clamp(14px, 1.8vw, 17px);
    line-height: 1.75;
    color: rgba(244, 240, 232, 0.88);
}

.blood-metrics-bar {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 162, 74, 0.35);
    border-radius: var(--r-xl);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.7);
}

.blood-metric-cell {
    text-align: center;
    padding: 8px 12px;
}

.blood-metric-cell:not(:last-child) {
    border-right: 1px solid rgba(201, 162, 74, 0.25);
}

.blood-metric-cell strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(20px, 2.5vw, 26px);
    color: var(--gold-300);
    font-weight: 800;
}

.blood-metric-cell span {
    display: block;
    font-size: 12px;
    color: rgba(244, 240, 232, 0.7);
    margin-top: 4px;
}

/* ── Full 12-Card Showcase Gallery ── */
.blood-gallery-section {
    padding: 64px 20px 80px;
    max-width: var(--container);
    margin: 0 auto;
}

.blood-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.blood-gallery-card {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: linear-gradient(150deg, #240505, #140202);
    border: 1.5px solid rgba(201, 162, 74, 0.35);
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.75);
    transition: all 0.35s var(--ease);
    display: flex;
    flex-direction: column;
}

.blood-gallery-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-400);
    box-shadow: 0 20px 44px -8px rgba(185, 28, 28, 0.45), 0 0 24px rgba(201, 162, 74, 0.35);
}

.blood-gallery-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f0202;
    cursor: pointer;
}

.blood-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blood-gallery-card:hover .blood-gallery-thumb img {
    transform: scale(1.07);
}

.blood-gallery-zoom-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 15px;
    color: var(--gold-300);
    background: rgba(20, 3, 3, 0.75);
    border: 1px solid rgba(201, 162, 74, 0.5);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s var(--ease);
}

.blood-gallery-card:hover .blood-gallery-zoom-btn {
    opacity: 1;
    transform: translateY(0);
}

.blood-gallery-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(180deg, rgba(30, 6, 6, 0.95), #160303);
    border-top: 1px solid rgba(201, 162, 74, 0.2);
}

.blood-gallery-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.blood-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffcccc;
    background: rgba(185, 28, 28, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.blood-card-date {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gold-400);
}

.blood-gallery-caption {
    font-size: 14px;
    font-weight: 600;
    color: var(--cream-50);
    margin: 0;
    line-height: 1.4;
}

.blood-gallery-loc {
    font-size: 12px;
    color: rgba(244, 240, 232, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blood-gallery-loc i {
    color: var(--gold-500);
}

/* ── Blood Pledge & Emergency Donor Card ── */
.blood-pledge-shell {
    max-width: var(--container);
    margin: 40px auto 80px;
    padding: 0 20px;
}

.blood-pledge-card {
    position: relative;
    padding: 46px 36px;
    border-radius: 24px;
    background:
        radial-gradient(700px 300px at 90% -40px, rgba(185, 28, 28, 0.35), transparent 60%),
        radial-gradient(600px 300px at 10% 120%, rgba(201, 162, 74, 0.2), transparent 60%),
        linear-gradient(145deg, #2d0606, #160202);
    border: 1.5px solid rgba(201, 162, 74, 0.45);
    box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.85);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.blood-groups-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.blood-group-pill {
    padding: 12px 8px;
    text-align: center;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    background: rgba(185, 28, 28, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.25s var(--ease);
}

.blood-group-pill:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .blood-bento-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .blood-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .blood-metrics-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .blood-metric-cell:nth-child(2) {
        border-right: none;
    }
    .blood-pledge-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 34px 24px;
    }
}

@media (max-width: 640px) {
    .blood-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .blood-stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .blood-metrics-bar {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 16px;
    }
    .blood-metric-cell {
        border-right: none !important;
        border-bottom: 1px solid rgba(201, 162, 74, 0.2);
        padding-bottom: 12px;
    }
    .blood-metric-cell:last-child {
        border-bottom: none;
    }
    .blood-camp-card {
        padding: 24px 18px;
    }
    .blood-groups-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .blood-group-pill {
        font-size: 15px;
        padding: 10px 6px;
    }
}

/* ── Blood Seva Portal: Give Blood & Request Blood (Dual Flow) ── */
.blood-portal-section {
    padding: 20px 20px 80px;
    max-width: var(--container);
    margin: 0 auto;
}

.blood-portal-card {
    position: relative;
    border-radius: 24px;
    padding: 44px 38px;
    background:
        radial-gradient(800px 350px at 15% 0%, rgba(185, 28, 28, 0.28), transparent 60%),
        radial-gradient(700px 350px at 85% 100%, rgba(201, 162, 74, 0.18), transparent 60%),
        linear-gradient(150deg, #240505 0%, #150202 55%, #1d0404 100%);
    border: 1.5px solid rgba(201, 162, 74, 0.45);
    box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.85);
    overflow: hidden;
}

.blood-portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ef4444, #ffd700, #ef4444, transparent);
}

.blood-tabs-header {
    display: inline-flex;
    background: rgba(10, 2, 2, 0.6);
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 74, 0.35);
    gap: 6px;
    margin: 24px auto 32px;
    width: 100%;
    max-width: 580px;
}

.blood-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-align: center;
}

.blood-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.blood-tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    border: 1px solid rgba(255, 215, 0, 0.55);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.blood-tab-btn.active.tab-request {
    background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
}

.blood-tab-pane {
    display: none;
    animation: fadeIn 0.35s ease forwards;
}

.blood-tab-pane.active {
    display: block;
}

.blood-portal-form {
    max-width: 820px;
    margin: 0 auto;
}

.blood-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.blood-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blood-field-full {
    grid-column: 1 / -1;
}

.blood-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-300);
    letter-spacing: 0.02em;
}

.blood-field label span.req {
    color: #ff4d4d;
}

.blood-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    background: rgba(12, 2, 2, 0.85);
    border: 1px solid rgba(201, 162, 74, 0.35);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14.5px;
    font-family: inherit;
    transition: all 0.25s var(--ease);
}

.blood-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.35), inset 0 0 6px rgba(185, 28, 28, 0.2);
    background: rgba(20, 4, 4, 0.95);
}

.blood-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

select.blood-input {
    cursor: pointer;
}

select.blood-input option {
    background: #1a0303;
    color: #ffffff;
}

.blood-portal-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 26px;
    flex-wrap: wrap;
}

.blood-portal-helpline-box {
    margin-top: 36px;
    padding: 18px 24px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(201, 162, 74, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.blood-helpline-text {
    font-size: 14px;
    color: rgba(244, 240, 232, 0.88);
}

.blood-helpline-text strong {
    color: #ffd700;
    font-size: 16px;
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .blood-portal-card {
        padding: 30px 20px;
    }
    .blood-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .blood-tabs-header {
        flex-direction: column;
        border-radius: 16px;
        max-width: 100%;
    }
    .blood-tab-btn {
        width: 100%;
        border-radius: 12px;
    }
    .blood-portal-helpline-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}