:root {
    --primary: #9f3434;
    --primary-dark: #7f2626;
    --primary-light: #ca6f6f;
    --accent: #e4b02b;
    --accent-dark: #c39112;
    --gold: #d9ac39;
    --cream: #fdf7ec;
    --paper: #fffaf0;
    --paper-soft: #fff4df;
    --ink: #2f241b;
    --ink-light: #5c4b3f;
    --divider: #ecdcc1;
    --shadow-sm: 0 12px 26px -14px rgba(48, 33, 16, 0.4);
    --shadow-md: 0 20px 38px -18px rgba(42, 27, 11, 0.45);
    --radius-card: 28px;
    --radius-element: 16px;
    --container: 1220px;
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 112px;
}

body {
    background: linear-gradient(180deg, #fff7e9 0%, #fdf5e8 45%, #fbf1e2 100%);
    color: var(--ink);
    font-family: 'Montserrat', 'Noto Sans Devanagari', sans-serif;
    line-height: 1.65;
    min-height: 100vh;
    padding-top: 92px;
    overflow-x: hidden;
}

.motion-reveal {
    opacity: 0;
    transform: translate3d(0, 38px, 0) scale(0.985);
    filter: blur(7px);
    transition:
        opacity 0.82s var(--ease-smooth),
        transform 0.96s var(--ease-smooth),
        filter 0.96s var(--ease-smooth);
    transition-delay: calc(var(--motion-order, 0) * 85ms);
    will-change: opacity, transform, filter;
}

.motion-reveal.motion-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

main {
    position: relative;
    z-index: 1;
}

.mandir-pattern {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 12% 22%, rgba(206, 163, 63, 0.08) 2%, transparent 2.6%),
        radial-gradient(circle at 86% 74%, rgba(168, 57, 57, 0.06) 1.8%, transparent 2.4%);
    background-size: 46px 46px, 54px 54px;
    z-index: 0;
}

.navbar-mandir {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 250, 239, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(194, 144, 35, 0.45);
    box-shadow: 0 10px 24px -18px rgba(44, 22, 9, 0.6);
    transition: background 0.38s var(--ease-soft), box-shadow 0.38s var(--ease-soft), border-color 0.32s ease;
}

.navbar-mandir.scrolled {
    background: rgba(255, 250, 240, 0.96);
    box-shadow: 0 14px 30px -20px rgba(44, 22, 9, 0.8);
}

.navbar-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.72rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    min-width: 0;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
    text-decoration: none;
}

.logo-text {
    min-width: 0;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px -8px rgba(159, 52, 52, 0.65);
    border: 2px solid var(--gold);
    flex-shrink: 0;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-text h1 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.15px;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.trust-chip {
    font-family: 'Montserrat', 'Noto Sans Devanagari', sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 1px solid rgba(255, 224, 143, 0.5);
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    line-height: 1;
}

.logo-text p {
    font-size: 0.72rem;
    color: var(--primary-light);
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-top: 0.15rem;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 0.34rem;
    flex-wrap: nowrap;
    align-items: center;
    background: rgba(159, 52, 52, 0.05);
    border: 1px solid rgba(159, 52, 52, 0.12);
    border-radius: 999px;
    padding: 0.35rem;
    min-height: 48px;
    min-width: 0;
    max-width: 100%;
    flex: 0 1 auto;
}

.nav-link {
    padding: 0.5rem 0.7rem;
    font-weight: 600;
    color: var(--primary-dark);
    border-radius: 999px;
    transition: transform 0.3s var(--ease-soft), background 0.3s var(--ease-soft), color 0.25s ease, border-color 0.25s ease, box-shadow 0.3s var(--ease-soft);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    background: transparent;
    border: 1px solid transparent;
    white-space: nowrap;
    text-align: center;
    line-height: 1.25;
}

.nav-link i {
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: rgba(255, 236, 177, 0.35);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(159, 52, 52, 0.12);
    border: 1px solid rgba(159, 52, 52, 0.2);
    font-size: 1.35rem;
    color: var(--primary-dark);
    cursor: pointer;
    transition: background 0.3s var(--ease-soft), transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.lang-toggle {
    border: 1px solid rgba(159, 52, 52, 0.2);
    background: rgba(159, 52, 52, 0.1);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 0.68rem 0.95rem;
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s var(--ease-soft), transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
    white-space: nowrap;
}

.lang-toggle:hover {
    background: rgba(159, 52, 52, 0.16);
    transform: translateY(-1px);
}

.container-shell {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 0 1.2rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(185, 133, 31, 0.24);
    background-color: #fef7e6;
    background-image: url('../../images/WhatsApp\ Image\ 2025-07-17\ at\ 11.57.17_75fdf17c.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(60, 14, 22, 0.52) 0%,
        rgba(50, 12, 18, 0.44) 50%,
        rgba(40, 10, 14, 0.58) 100%
    );
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 4.5rem 1.4rem 4.1rem;
    text-align: center;
}

.text-glass,
.text-glass-soft {
    display: inline;
    background: none;
    border: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.text-glass {
    color: inherit;
}

.text-glass-soft {
    color: inherit;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    background: rgba(50, 10, 20, 0.52);
    color: #fff8f0;
    border: 1px solid rgba(255, 244, 236, 0.28);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    max-width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 0 rgba(60, 10, 20, 0.6), 0 4px 10px rgba(0, 0, 0, 0.4);
}

.hero-badge.motion-visible {
    animation: badge-float 6.4s ease-in-out infinite 0.8s;
}

.page-title {
    margin-top: 1.25rem;
    color: #fff8f0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 4.8vw, 4.2rem);
    font-weight: 700;
    line-height: 0.98;
    overflow-wrap: anywhere;
    -webkit-text-stroke: 0.9px rgba(111, 26, 42, 0.82);
    paint-order: stroke fill;
    text-shadow: 0 2px 0 rgba(60, 10, 20, 0.7), 0 8px 28px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 0, 0, 0.3);
}

.page-copy {
    max-width: 760px;
    margin: 1rem auto 0;
    color: #fff8f0;
    font-size: 1.04rem;
    font-weight: 500;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 0 rgba(40, 8, 16, 0.6), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.page-copy .text-glass-soft {
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background: rgba(40, 10, 18, 0.42);
    border: 1px solid rgba(255, 244, 236, 0.18);
    border-radius: 18px;
    padding: 0.1em 0.42em 0.16em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.55);
}

.page-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.8rem;
}

.btn-mandir {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-width: 0;
    max-width: 100%;
    padding: 0.88rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.34s var(--ease-soft), box-shadow 0.34s var(--ease-soft), background 0.28s var(--ease-soft), border-color 0.28s ease, color 0.28s ease;
    box-shadow: var(--shadow-sm);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.btn-mandir:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: rgba(255, 236, 177, 0.28);
}

.btn-secondary {
    background: rgba(255, 250, 240, 0.88);
    color: var(--primary-dark);
    border-color: rgba(159, 52, 52, 0.15);
}

.section-shell {
    position: relative;
    z-index: 1;
    margin: 2.8rem auto 0;
    width: min(100% - 1.2rem, var(--container));
    background: rgba(255, 250, 240, 0.72);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    padding: 2.3rem 1.45rem;
}

.section-header {
    text-align: center;
    margin-bottom: 1.7rem;
}

.section-title {
    color: var(--primary-dark);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.8vw, 2.9rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.section-copy {
    max-width: 780px;
    margin: 0.8rem auto 0;
    color: var(--ink-light);
    overflow-wrap: anywhere;
}

.title-divider {
    width: 110px;
    height: 4px;
    margin: 0.95rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gallery-grid,
.info-grid {
    display: grid;
    gap: 1rem;
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.gallery-card,
.notice-card,
.summary-panel {
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.95) 0%, rgba(255, 246, 229, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.42s var(--ease-smooth), box-shadow 0.42s var(--ease-smooth), border-color 0.32s ease, background 0.32s ease;
}

.gallery-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    container-type: inline-size;
}

.gallery-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.gallery-card:hover img {
    transform: scale(1.03);
    filter: saturate(1.04);
}

.gallery-card:hover,
.notice-card:hover,
.member-card:hover,
.summary-panel:hover,
.info-grid > *:hover,
.compact-grid > *:hover,
.member-grid > *:hover,
.contact-layout > *:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
    border-color: rgba(195, 145, 18, 0.26);
}

.gallery-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    background: linear-gradient(180deg, rgba(255, 250, 241, 0.96) 0%, rgba(255, 244, 225, 0.96) 100%);
}

.gallery-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    min-width: 0;
    width: 100%;
    padding: 0.78rem 0.75rem;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.82rem, 1.1vw, 0.9rem);
    line-height: 1.25;
    transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), background 0.28s var(--ease-soft), border-color 0.28s ease, color 0.28s ease;
    cursor: pointer;
    box-shadow: 0 10px 20px -16px rgba(60, 35, 12, 0.45);
    text-align: center;
}

.gallery-action i {
    flex: 0 0 auto;
}

.gallery-action span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.gallery-action:hover {
    transform: translateY(-1px);
}

.gallery-action:focus-visible,
.gallery-lightbox-close:focus-visible {
    outline: 2px solid rgba(159, 52, 52, 0.45);
    outline-offset: 2px;
}

.gallery-action-preview {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: rgba(255, 236, 177, 0.28);
}

.gallery-action-download {
    background: rgba(255, 250, 240, 0.92);
    color: var(--primary-dark);
    border-color: rgba(159, 52, 52, 0.18);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: rgba(31, 17, 12, 0.74);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gallery-lightbox.open {
    display: flex;
}

.gallery-lightbox-dialog {
    width: min(100%, 1040px);
    max-height: calc(100vh - 2.4rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.98) 0%, rgba(255, 246, 229, 0.98) 100%);
    border: 1px solid rgba(255, 236, 177, 0.28);
    box-shadow: 0 34px 52px -24px rgba(0, 0, 0, 0.55);
}

.gallery-lightbox-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.gallery-lightbox-copy {
    min-width: 0;
}

.gallery-lightbox-title {
    color: var(--primary-dark);
    font-size: 1.08rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.gallery-lightbox-note {
    margin-top: 0.2rem;
    color: var(--ink-light);
    font-size: 0.88rem;
}

.gallery-lightbox-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gallery-lightbox-meta .gallery-action {
    width: auto;
    flex: 0 1 auto;
    flex-wrap: nowrap;
}

.gallery-lightbox-meta .gallery-action span {
    overflow-wrap: normal;
}

.gallery-lightbox-close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(159, 52, 52, 0.18);
    background: rgba(159, 52, 52, 0.08);
    color: var(--primary-dark);
    cursor: pointer;
    transition: transform 0.28s var(--ease-soft), background 0.28s var(--ease-soft), box-shadow 0.28s var(--ease-soft);
}

.gallery-lightbox-close:hover {
    transform: translateY(-1px);
    background: rgba(159, 52, 52, 0.14);
}

@container (max-width: 290px) {
    .gallery-card-actions {
        grid-template-columns: 1fr;
    }
}

.gallery-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background:
        radial-gradient(circle at top, rgba(255, 241, 215, 0.18), transparent 55%),
        linear-gradient(180deg, rgba(59, 21, 21, 0.96) 0%, rgba(35, 16, 16, 0.98) 100%);
}

.gallery-lightbox-image {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 10rem);
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 26px 42px -24px rgba(0, 0, 0, 0.82);
}

body.gallery-modal-open {
    overflow: hidden;
}

.summary-panel {
    padding: 1.6rem;
}

.gallery-drive-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: min(100%, 560px);
    margin: 1.35rem auto 0;
    padding: 1.05rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #b24141 0%, #8d2b2b 55%, #6f2020 100%);
    color: #fff7ef;
    text-decoration: none;
    font-weight: 800;
    font-size: clamp(0.98rem, 1.5vw, 1.08rem);
    line-height: 1.3;
    text-align: center;
    border: 1px solid rgba(255, 236, 177, 0.28);
    box-shadow: 0 18px 30px -18px rgba(102, 28, 28, 0.62);
    transition: transform 0.36s var(--ease-soft), box-shadow 0.36s var(--ease-soft), filter 0.3s var(--ease-soft), background 0.3s var(--ease-soft);
}

.gallery-drive-link:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 24px 38px -20px rgba(102, 28, 28, 0.78);
    filter: saturate(1.05);
}

.gallery-drive-link i {
    font-size: 1.15rem;
}

.summary-panel h3,
.notice-card h3 {
    color: var(--primary-dark);
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
    overflow-wrap: anywhere;
}

.summary-panel p,
.notice-card p {
    color: var(--ink-light);
}

.summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.2rem;
    justify-content: center;
}

.info-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.compact-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.member-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.notice-card {
    padding: 1.45rem;
}

.member-card {
    padding: 1.45rem;
    text-align: center;
    transition: transform 0.42s var(--ease-smooth), box-shadow 0.42s var(--ease-smooth), border-color 0.32s ease, background 0.32s ease;
}

.notice-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 0.95rem;
    border-radius: 14px;
    background: rgba(159, 52, 52, 0.1);
    color: var(--primary);
    font-size: 1.15rem;
}

.member-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 0.95rem;
    border-radius: 50%;
    background: rgba(159, 52, 52, 0.1);
    color: var(--primary);
    font-size: 1.2rem;
}

.member-avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #fffaf0 0%, #f6e7bf 62%, #e3bf63 100%);
    border: 3px solid rgba(212, 175, 55, 0.56);
    box-shadow: 0 16px 30px -20px rgba(67, 39, 12, 0.72);
}

.member-avatar i {
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: transparent;
    color: var(--primary-dark);
    font-size: 2.7rem;
}

.member-card h3 {
    color: var(--primary-dark);
    font-size: 1.08rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.member-meta {
    margin-top: 0.45rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
}

.member-note {
    margin-top: 0.6rem;
    color: var(--ink-light);
}

.contact-card {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--ink-light);
    font-size: 0.96rem;
}

.contact-item span,
.detail-row span,
.summary-panel p,
.notice-card p,
.member-meta,
.member-note {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-item i {
    width: 24px;
    margin-top: 0.2rem;
    color: var(--primary);
    text-align: center;
    flex-shrink: 0;
}

.media-frame {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: #f8edd8;
    box-shadow: var(--shadow-sm);
}

.media-frame img,
.media-frame iframe {
    width: 100%;
    display: block;
    border: 0;
}

.qr-image-wrap {
    max-width: 280px;
    margin: 0 auto 1rem;
}

.qr-image-wrap img {
    border-radius: 18px;
}

.detail-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    background: rgba(159, 52, 52, 0.06);
    border: 1px solid rgba(159, 52, 52, 0.08);
    color: var(--ink-light);
    font-size: 0.9rem;
}

.detail-row strong {
    color: var(--primary-dark);
    font-size: 0.88rem;
}

.detail-row span:last-child {
    text-align: right;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(159, 52, 52, 0.14);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.9);
    color: var(--primary-dark);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.28s var(--ease-soft), background 0.28s var(--ease-soft), box-shadow 0.28s var(--ease-soft);
}

.copy-btn:hover {
    transform: translateY(-1px);
    background: #fff7ea;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1rem;
}

.form-panel,
.info-stack {
    min-width: 0;
}

.info-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: start;
}

.seva-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.seva-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    background: rgba(159, 52, 52, 0.08);
    border: 1px solid rgba(159, 52, 52, 0.14);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.seva-tags span i {
    color: var(--primary);
    font-size: 0.8rem;
}

.seva-form {
    margin-top: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field-group {
    display: grid;
    gap: 0.45rem;
}

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

.field-label {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.92rem;
}

.field-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(159, 52, 52, 0.18);
    background: rgba(255, 252, 245, 0.96);
    color: var(--ink);
    font: inherit;
    line-height: 1.45;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.field-control::placeholder {
    color: rgba(88, 64, 46, 0.72);
}

.field-control:focus {
    outline: none;
    border-color: rgba(159, 52, 52, 0.52);
    box-shadow: 0 0 0 4px rgba(159, 52, 52, 0.12);
    background-color: #fffdf8;
}

select.field-control {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--primary-dark) 50%),
        linear-gradient(135deg, var(--primary-dark) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.8rem;
}

textarea.field-control {
    min-height: 150px;
    resize: vertical;
}

input[type="file"].field-control {
    padding: 0.7rem 1rem;
    cursor: pointer;
    background: rgba(255, 248, 235, 0.98);
    border: 2px dashed rgba(159, 52, 52, 0.25);
}

input[type="file"].field-control:hover {
    border-color: rgba(159, 52, 52, 0.45);
    background: rgba(255, 245, 225, 1);
}

input[type="file"].field-control:focus {
    border-style: solid;
    border-color: rgba(159, 52, 52, 0.52);
}

.field-control.is-invalid {
    border-color: #c0392b;
    background: rgba(192, 57, 43, 0.05);
}

.field-error {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: #c0392b;
}

.field-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--ink-light);
}

.form-note {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(159, 52, 52, 0.06);
    border: 1px solid rgba(159, 52, 52, 0.1);
    color: var(--ink-light);
    font-size: 0.92rem;
}

.form-note strong {
    color: var(--primary-dark);
}

.form-status {
    margin-top: 1rem;
    min-height: 1.4rem;
    font-weight: 700;
    color: var(--ink-light);
}

.form-status.is-success {
    color: #22643f;
}

.form-status.is-error {
    color: #a12a2a;
}

.btn-mandir[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 1rem;
}

.info-grid > *,
.compact-grid > *,
.member-grid > *,
.contact-layout > *,
.media-frame {
    transition: transform 0.42s var(--ease-smooth), box-shadow 0.42s var(--ease-smooth), border-color 0.32s ease, background 0.32s ease;
}

.map-frame iframe {
    min-height: 100%;
    aspect-ratio: 16 / 12;
}

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

.social-card {
    padding: 1.45rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.95) 0%, rgba(255, 246, 229, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.42s var(--ease-smooth), box-shadow 0.42s var(--ease-smooth), border-color 0.32s ease, background 0.32s ease;
}

.social-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
    border-color: rgba(195, 145, 18, 0.26);
}

.social-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.social-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.45rem;
}

.social-card p {
    color: var(--ink-light);
    margin-bottom: 1rem;
}

.footer-mandir {
    position: relative;
    z-index: 1;
    background: linear-gradient(160deg, #2a1a10 0%, #1c1108 60%, #120d06 100%);
    color: #f5e5c8;
    border-radius: 34px 34px 0 0;
    margin-top: 3.2rem;
    border-top: 2px solid rgba(212, 175, 55, 0.45);
    overflow: hidden;
}

.footer-mandir::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(212, 175, 55, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 100%, rgba(159, 52, 52, 0.08) 0%, transparent 55%);
    pointer-events: none;
}

.footer-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 2.5rem;
    max-width: 1220px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.2);
    margin-bottom: 0.4rem;
    flex-shrink: 0;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-trust-name {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8e8c0;
    line-height: 1.3;
}

.footer-trust-sub {
    font-size: 0.82rem;
    color: rgba(212, 175, 55, 0.85);
    font-weight: 600;
}

.footer-tagline {
    margin-top: 0.4rem;
    font-size: 0.84rem;
    color: rgba(245, 229, 200, 0.65);
    font-style: italic;
}

.footer-tagline i {
    color: rgba(212, 175, 55, 0.7);
    margin-right: 0.2rem;
}

.footer-col-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(212, 175, 55, 0.9);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col-title i {
    font-size: 0.78rem;
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(245, 229, 200, 0.75);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.22s ease, gap 0.22s ease;
}

.footer-nav-list a i {
    font-size: 0.78rem;
    color: rgba(212, 175, 55, 0.6);
    width: 14px;
    flex-shrink: 0;
}

.footer-nav-list a:hover {
    color: #f8ca56;
    gap: 0.7rem;
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.2rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: rgba(245, 229, 200, 0.75);
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.footer-contact-list i {
    color: rgba(212, 175, 55, 0.7);
    font-size: 0.82rem;
    margin-top: 0.18rem;
    flex-shrink: 0;
    width: 14px;
}

.footer-contact-list a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.footer-contact-list a:hover {
    color: #f8ca56;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #f8ca56;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.footer-social a:hover {
    background: rgba(212, 175, 55, 0.22);
    border-color: rgba(212, 175, 55, 0.55);
    transform: translateY(-2px);
}

.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    padding: 1.1rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(245, 229, 200, 0.55);
}

.footer-credit a {
    color: #f8ca56;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.footer-credit a:hover {
    color: #ffe39d;
}

@media (max-width: 860px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 2rem 1.4rem 1.4rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 540px) {
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 1.6rem 1.2rem 1rem;
        gap: 0;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
        padding-bottom: 1.2rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    }

    .footer-logo {
        width: 52px;
        height: 52px;
    }

    .footer-trust-name {
        font-size: 0.95rem;
    }

    .footer-links-col {
        display: none;
    }

    .footer-contact-col {
        padding-top: 1.1rem;
    }

    .footer-col-title {
        justify-content: center;
        margin-bottom: 0.75rem;
    }

    .footer-contact-list {
        gap: 0.45rem;
        margin-bottom: 1rem;
    }

    .footer-contact-list li {
        font-size: 0.82rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        padding: 0.85rem 1.2rem;
    }
}

@keyframes badge-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -4px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .motion-reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

@media (max-width: 1024px) {
    .navbar-container {
        padding-inline: 1rem;
    }

    .logo-text p {
        display: none;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    body {
        padding-top: 84px;
    }

    .gallery-lightbox-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-lightbox-meta {
        justify-content: space-between;
    }
}

/* Navbar collapses to the hamburger menu below 1280px (all 8 items only fit inline above that). */
@media (max-width: 1280px) {
    .nav-controls {
        flex-direction: row;
    }

    .lang-toggle {
        order: 1;
    }

    .mobile-toggle {
        order: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.4rem);
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        background: rgba(255, 248, 236, 0.98);
        border: 1px solid rgba(212, 175, 55, 0.3);
        border-radius: 18px;
        padding: 0.8rem;
        box-shadow: 0 24px 36px -24px rgba(55, 31, 13, 0.8);
        min-height: auto;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        justify-content: center;
    }
}

/* Compact the logo (hide tagline, shrink title) from 1280px down so the full nav fits 1024-1280px. */
@media (max-width: 1280px) {
    .logo-text p {
        display: none;
    }

    .logo-text h1 {
        font-size: 1rem;
        white-space: normal;
    }

    .page-hero-content {
        padding-top: 3.5rem;
        padding-bottom: 3.2rem;
    }

    .page-hero {
        min-height: 72vh;
        display: flex;
        align-items: center;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .form-layout {
        grid-template-columns: 1fr;
    }

    .gallery-card-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-controls {
        gap: 0.45rem;
    }

    .lang-toggle {
        padding: 0.62rem 0.82rem;
        font-size: 0.78rem;
    }

    .mobile-toggle {
        width: 42px;
        height: 42px;
    }

    .logo-icon {
        width: 48px;
        height: 48px;
    }

    .logo-text h1 {
        font-size: 0.92rem;
    }

    .logo-text p,
    .trust-chip {
        display: none;
    }

    .page-actions,
    .summary-actions,
    .btn-mandir {
        width: 100%;
    }

    .btn-mandir {
        min-width: auto;
    }

    .section-shell {
        width: min(100% - 0.8rem, var(--container));
        padding: 1.7rem 1rem;
    }

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

    .gallery-lightbox {
        padding: 0.75rem;
    }

    .gallery-lightbox-dialog {
        border-radius: 20px;
    }

    .gallery-lightbox-toolbar {
        padding: 0.9rem;
    }

    .gallery-lightbox-meta {
        width: 100%;
        justify-content: stretch;
    }

    .gallery-lightbox-meta .gallery-action {
        flex: 1 1 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-group-full {
        grid-column: auto;
    }

    .gallery-lightbox-stage {
        padding: 0.75rem;
    }

    .gallery-lightbox-image {
        max-height: calc(100vh - 13rem);
    }
}

/* ── Success Modal ── */
.seva-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 18, 10, 0.72);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.seva-modal-overlay[hidden] {
    display: none;
}

.seva-modal {
    background: #fff9f0;
    border-radius: 20px;
    padding: 2.4rem 2rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(30, 18, 10, 0.28);
    animation: modalIn 0.28s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.seva-modal-icon {
    font-size: 3.2rem;
    color: #2e7d32;
    margin-bottom: 0.8rem;
}

.seva-modal h2 {
    font-size: 1.25rem;
    color: #2f241b;
    margin-bottom: 0.5rem;
}

.seva-modal-msg {
    font-size: 0.93rem;
    color: #5c4b3f;
    margin-bottom: 1.2rem;
}

.seva-modal-ref {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.seva-modal-ref span {
    font-size: 0.8rem;
    color: #7a6248;
}

.seva-modal-ref strong {
    font-size: 1rem;
    color: #2f241b;
    letter-spacing: 0.04em;
    word-break: break-all;
}

.seva-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.seva-modal-trust-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #9f3434;
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.seva-modal-contact-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(46, 125, 50, 0.07);
    border: 1px solid rgba(46, 125, 50, 0.2);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.seva-modal-contact-note i {
    color: #2e7d32;
    font-size: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.seva-modal-contact-note p {
    font-size: 0.88rem;
    color: #2f241b;
    margin: 0;
    line-height: 1.5;
}

.seva-modal-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.4rem;
}

.seva-modal-detail-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.87rem;
    color: #5c4b3f;
}

.seva-modal-detail-row i {
    color: #9f3434;
    width: 14px;
}

/* ── CAPTCHA ── */
.captcha-group {
    margin-top: 0.5rem;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.captcha-question {
    display: inline-flex;
    align-items: center;
    background: rgba(159, 52, 52, 0.08);
    border: 1.5px dashed rgba(159, 52, 52, 0.35);
    border-radius: 10px;
    padding: 0.55rem 1.1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #7a1a1a;
    letter-spacing: 0.06em;
    min-width: 110px;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
}

.captcha-input {
    max-width: 120px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.captcha-refresh {
    background: none;
    border: 1.5px solid rgba(159, 52, 52, 0.3);
    border-radius: 8px;
    color: #9f3434;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.captcha-refresh:hover {
    background: rgba(159, 52, 52, 0.1);
}

/* ============================================================
   Responsive & cross-device smoothness enhancements
   ============================================================ */

/* Crisper text, no tap flash, no iOS text inflation */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
}

/* Remove the 300ms tap delay while keeping pinch-zoom */
a,
button,
label,
input,
select,
textarea,
.btn-mandir,
.nav-link,
.copy-btn,
.gallery-action,
.lang-toggle,
.mobile-toggle,
.captcha-refresh {
    touch-action: manipulation;
}

/* Release GPU layers once the reveal finishes (smoother on low-end devices) */
.motion-reveal.motion-visible {
    will-change: auto;
}

/* Mobile URL-bar–safe hero height (upgrade vh -> dvh where it is used) */
@media (max-width: 1180px) {
    @supports (height: 100dvh) {
        .page-hero {
            min-height: 72dvh;
        }
    }
}

/* Touch devices: don't let the hover lift "stick" after a tap */
@media (hover: none) {

    .btn-mandir:hover,
    .nav-link:hover,
    .lang-toggle:hover,
    .copy-btn:hover,
    .gallery-card:hover,
    .notice-card:hover,
    .member-card:hover,
    .social-card:hover,
    .summary-panel:hover,
    .gallery-action:hover,
    .gallery-drive-link:hover,
    .gallery-lightbox-close:hover,
    .footer-social a:hover,
    .info-grid>*:hover,
    .compact-grid>*:hover,
    .member-grid>*:hover,
    .contact-layout>*:hover,
    .media-frame:hover {
        transform: none;
    }

    .gallery-card:hover img {
        transform: none;
        filter: none;
    }

    .footer-nav-list a:hover {
        gap: 0.5rem;
    }
}

/* Safe-area insets for notched devices */
@supports (padding: max(0px)) {
    .navbar-container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .footer-bottom {
        padding-bottom: max(1.1rem, env(safe-area-inset-bottom));
    }
}

/* Success modal: scrollable on short screens */
.seva-modal-overlay {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.seva-modal {
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
}

/* Ultra-small phones (≤400px) */
@media (max-width: 400px) {
    .section-shell {
        width: min(100% - 0.6rem, var(--container));
        padding: 1.5rem 0.85rem;
    }

    .page-hero-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .notice-card,
    .member-card,
    .social-card {
        padding: 1.15rem;
    }

    .summary-panel {
        padding: 1.25rem;
    }

    .member-avatar {
        width: 92px;
        height: 92px;
    }

    .member-avatar i {
        font-size: 2.2rem;
    }

    .seva-modal {
        padding: 1.8rem 1.2rem;
    }

    .captcha-input {
        max-width: 100%;
        flex: 1 1 auto;
    }
}

/* Short landscape screens */
@media (max-height: 520px) and (orientation: landscape) {
    .page-hero {
        min-height: auto;
    }

    .page-hero-content {
        padding-top: 2.2rem;
        padding-bottom: 2.2rem;
    }
}

/* ============================================================================
   Newsletter — home-page section + site-wide footer strip (Web3Forms)
   ============================================================================ */

/* Shared form layout (used by both the section and the footer variants) */
.newsletter-form {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

/* Honeypot — hidden from people, tempting to bots */
.newsletter-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.newsletter-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: stretch;
}

.newsletter-input {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.8rem 1.05rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.92rem;
    border: 1px solid rgba(159, 52, 52, 0.28);
    background: #fffdf8;
    color: var(--ink, #2f241b);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary, #9f3434);
    box-shadow: 0 0 0 3px rgba(159, 52, 52, 0.15);
}

.newsletter-btn {
    flex: 0 0 auto;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.newsletter-status {
    margin-top: 0.7rem;
    min-height: 1.1em;
    font-size: 0.86rem;
    text-align: center;
}

.newsletter-status.is-error {
    color: #c0392b;
}

.newsletter-status.is-success {
    color: #1e7d4f;
}

.newsletter-status.is-info {
    color: #9a6b1e;
}

/* ── Footer strip variant (sits on the dark footer) ── */
.footer-newsletter {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.footer-newsletter-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 1.8rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem 2.2rem;
    align-items: center;
}

/* Copy beside the form only on wide desktop; stacked below so the inputs never cramp */
@media (min-width: 1201px) {
    .footer-newsletter-inner {
        grid-template-columns: 0.8fr 1.7fr;
    }
}

.footer-newsletter-copy .footer-col-title {
    margin-bottom: 0.35rem;
}

.footer-newsletter-copy p {
    font-size: 0.86rem;
    color: rgba(245, 229, 200, 0.7);
}

.footer-newsletter .newsletter-form {
    margin: 0 auto;
    max-width: 820px;
}

.footer-newsletter .newsletter-input {
    flex: 1 1 260px;
    background: rgba(245, 229, 200, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #f5e5c8;
}

.footer-newsletter .newsletter-input::placeholder {
    color: rgba(245, 229, 200, 0.5);
}

.footer-newsletter .newsletter-input:focus {
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.footer-newsletter .newsletter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 1.3rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #5f3508;
    background: linear-gradient(135deg, #edc453, #c39112);
    box-shadow: 0 12px 22px -14px rgba(212, 162, 37, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-newsletter .newsletter-btn:hover {
    transform: translateY(-2px);
}

.footer-newsletter .newsletter-status {
    text-align: left;
    color: rgba(245, 229, 200, 0.8);
}

.footer-newsletter .newsletter-status.is-error {
    color: #ff9b8a;
}

.footer-newsletter .newsletter-status.is-success {
    color: #9fe0b8;
}

.footer-newsletter .newsletter-status.is-info {
    color: #f0cf7e;
}

@media (max-width: 768px) {
    .footer-newsletter-inner {
        grid-template-columns: 1fr;
        padding: 1.5rem 1.4rem;
        text-align: center;
    }

    .footer-newsletter-copy .footer-col-title {
        justify-content: center;
    }

    .footer-newsletter .newsletter-status {
        text-align: center;
    }
}

/* Stack Name / Email / Button vertically (each full-width) on phones & tablets.
   flex: 0 0 auto resets the flex-basis so it does NOT become the item's height
   once the row becomes a column (otherwise the inputs balloon to 200–260px tall). */
@media (max-width: 768px) {
    .newsletter-fields {
        flex-direction: column;
    }

    .newsletter-input,
    .footer-newsletter .newsletter-input,
    .newsletter-btn {
        width: 100%;
        flex: 0 0 auto;
    }
}

@media (hover: none) {
    .footer-newsletter .newsletter-btn:hover {
        transform: none;
    }
}

/* ============================================================================
   Floating WhatsApp button (site-wide, injected by secondary-pages.js)
   ============================================================================ */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    text-decoration: none;
    box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    z-index: -1;
    animation: wa-pulse 2.4s ease-out infinite;
}

.wa-float:hover {
    transform: scale(1.08);
    background: #1ebe5b;
    color: #ffffff;
    box-shadow: 0 14px 28px -6px rgba(37, 211, 102, 0.65), 0 6px 14px rgba(0, 0, 0, 0.25);
}

.wa-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.5);
    outline-offset: 3px;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    70%,
    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

@supports (padding: max(0px)) {
    .wa-float {
        right: max(20px, env(safe-area-inset-right));
        bottom: max(20px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 640px) {
    .wa-float {
        width: 52px;
        height: 52px;
        font-size: 1.65rem;
        right: 16px;
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-float::before {
        animation: none;
    }

    .wa-float:hover {
        transform: none;
    }
}

/* ============================================================================
   FAQ accordion (faq.html)
   ============================================================================ */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    background: linear-gradient(180deg, #fffdf7 0%, #fff5e6 100%);
    border: 1px solid rgba(216, 172, 67, 0.3);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px -20px rgba(43, 24, 8, 0.55);
}

.faq-q {
    list-style: none;
    cursor: pointer;
    padding: 1rem 3rem 1rem 1.2rem;
    position: relative;
    font-weight: 600;
    color: var(--primary-dark, #7f2626);
    font-size: 1rem;
    line-height: 1.5;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q::after {
    content: "\002B";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-dark, #c39112);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-q {
    color: var(--primary, #9f3434);
}

.faq-item[open] .faq-q::after {
    content: "\2212";
}

.faq-a {
    padding: 0 1.2rem 1.1rem;
    color: var(--ink-light, #5c4b3f);
    font-size: 0.94rem;
    line-height: 1.7;
}

.faq-a p {
    margin: 0;
}

.faq-item[open] .faq-a {
    animation: faq-reveal 0.3s ease;
}

@keyframes faq-reveal {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-q::after,
    .faq-item[open] .faq-a {
        transition: none;
        animation: none;
    }
}

/* ============================================================================
   Member ID verification (verify.html)
   ============================================================================ */
.verify-card {
    max-width: 520px;
    margin: 0 auto;
    background: linear-gradient(180deg, #fffdf7 0%, #fff5e6 100%);
    border: 1px solid rgba(216, 172, 67, 0.3);
    border-radius: 20px;
    padding: 2rem 1.6rem;
    text-align: center;
    box-shadow: 0 14px 30px -22px rgba(43, 24, 8, 0.6);
}

.verify-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    line-height: 1.3;
}

.verify-status i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.verify-idle .verify-status,
.verify-checking .verify-status {
    color: var(--ink-light, #5c4b3f);
    background: #fff3e0;
}

.verify-valid .verify-status {
    color: #1e7d4f;
    background: #e7f7ee;
}

.verify-expired .verify-status {
    color: #a5670f;
    background: #fdf1dc;
}

.verify-invalid .verify-status,
.verify-error .verify-status {
    color: #c0392b;
    background: #fdece9;
}

.verify-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    margin-top: 1.2rem;
}

.verify-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.85rem;
    background: #fff8ec;
    border: 1px solid rgba(216, 172, 67, 0.25);
    border-radius: 10px;
    font-size: 0.94rem;
}

.verify-row span {
    color: var(--ink-light, #5c4b3f);
}

.verify-row strong {
    color: var(--primary-dark, #7f2626);
    text-align: right;
    overflow-wrap: anywhere;
}

.verify-manual {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: stretch;
    margin-top: 1.4rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(216, 172, 67, 0.25);
}

.verify-manual .btn-mandir {
    justify-content: center;
}

.verify-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--ink-light, #5c4b3f);
    opacity: 0.85;
}

/* Donation page — interim notice + trustee QR role labels */
.donate-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    padding: 14px 18px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    color: var(--ink-light, #5c4b3f);
    font-size: 0.9rem;
    line-height: 1.55;
}

.donate-note i {
    color: #b8892f;
    margin-top: 3px;
    flex-shrink: 0;
}

.qr-role {
    color: #7f2626;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: -0.35rem;
}

.qr-role i {
    margin-right: 5px;
}

.qr-upi {
    font-size: 0.92rem;
    color: var(--ink, #2f241b);
    word-break: break-all;
    margin-bottom: 0.35rem;
}

.qr-upi strong {
    color: #7f2626;
    letter-spacing: 0.2px;
}

.qr-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 0.9rem;
}

/* "Pay via UPI" spans both columns at a normal height (not a giant pill) */
.qr-actions .btn-mandir {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 0;
    padding: 12px 18px;
    font-size: 0.9rem;
    border-radius: 12px;
    box-shadow: 0 6px 14px -8px rgba(110, 13, 13, 0.7);
}

/* Copy / Download — matched secondary buttons, side by side */
.qr-actions .copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1.5px solid #c9a24a;
    border-radius: 10px;
    background: #fffdf6;
    color: #7f2626;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.12s ease;
}

.qr-actions .copy-btn:hover {
    background: #faf1dd;
}
