/* ============================================================================
   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);
}

/* 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:hover .flip-inner,
.flip-card:focus-visible .flip-inner,
.flip-card.is-flipped .flip-inner {
    transform: rotateY(180deg);
}

.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: 410px;
    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:nth-child(5) {
        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:nth-child(5) {
        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: 390px;
    }

    .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);
    }
}

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

    .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);
    }
}