@media (max-width: 700px) {
    h1, .page-hero h1 {
        font-size: 1.6rem !important;
        line-height: 1.15 !important;
        word-break: normal;
    }
    h2, .page-hero h2 {
        font-size: 1.15rem !important;
        line-height: 1.18 !important;
    }
    .page-hero p, .hero-copy, .section-heading p, .rich-copy, .content-section p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
}
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body, .content-section, .page-hero, .values-section, .detail-panel, .rich-copy, .section-heading, .committee-grid, .cards, .intro-band, .donation-section, .gallery-section, .bank-panel {
    box-sizing: border-box;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Prevent long words from breaking layout */
.rich-copy, .detail-panel, .section-heading, .page-hero, .values-section, .committee-grid, .cards, .intro-band, .donation-section, .gallery-section, .bank-panel {
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 700px) {
    html, body {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden !important;
    }
    .content-section, .page-hero, .values-section, .detail-panel, .rich-copy, .section-heading, .committee-grid, .cards, .intro-band, .donation-section, .gallery-section, .bank-panel {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden !important;
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }
}
/* Shankaracharyas image panel beside Brahmateertham Services */
.shankara-panel-grid {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 32px;
    align-items: start;
}
.shankara-img-panel {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.shankara-side-img {
    width: 210px;
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(20, 35, 38, 0.13);
    background: #fff;
}
@media (max-width: 900px) {
    .shankara-panel-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .shankara-img-panel {
        margin-top: 18px;
    }
    .shankara-side-img {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }
}
/* Shankaracharya photos row */
.shankara-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 18px;
    margin: 32px 0 0 0;
}
.shankara-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(20, 35, 38, 0.13);
    background: #fff;
}
@media (max-width: 700px) {
    .shankara-row {
        gap: 10px;
    }
    .shankara-photo {
        width: 90px;
        height: 90px;
    }
}
@media (max-width: 700px) {
    .committee-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 18px !important;
        overflow-x: visible !important;
        padding-bottom: 0 !important;
    }
    .member-card {
        min-width: 0 !important;
        width: 90vw !important;
        max-width: 340px !important;
        margin: 0 auto !important;
    }
    .member-card img {
        width: 140px !important;
        height: 140px !important;
        max-width: 80vw !important;
    }
}
@media (max-width: 900px) {
    nav.mobile-dropdown {
        width: 92vw;
        max-width: 210px;
        left: 50%;
        transform: translateX(-50%);
        background: #fff !important;
        backdrop-filter: blur(22px) saturate(1.7);
        box-shadow: 0 8px 30px rgba(24, 34, 37, 0.22);
        border-radius: 0 0 18px 18px;
        border: 1.5px solid rgba(180,180,180,0.22);
        z-index: 15;
    }
    nav.mobile-dropdown.open {
        display: flex !important;
    }
    nav.mobile-dropdown a {
        color: #111 !important;
        background: transparent !important;
        text-shadow: none !important;
        font-weight: 600;
        font-size: 1rem;
    }
}
@media (max-width: 900px) {
    nav {
        width: 92vw;
        max-width: 210px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.97);
            nav a {
                color: #111 !important;
                background: transparent !important;
                text-shadow: 0 1px 2px #fff, 0 0 1px #fff;
            }
            nav {
                background: #fff !important;
            }
        backdrop-filter: blur(22px) saturate(1.7);
        box-shadow: 0 8px 30px rgba(24, 34, 37, 0.22);
        border-radius: 0 0 18px 18px;
        border: 1.5px solid rgba(180,180,180,0.22);
    }
}
/* Return to top button */
#toTopBtn {
    display: none;
    position: fixed;
    bottom: 28px;
    right: 22px;
    z-index: 100;
    background: rgba(13, 107, 101, 0.92);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    box-shadow: 0 4px 18px rgba(20, 35, 38, 0.18);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
#toTopBtn:hover {
    background: var(--teal-dark);
    transform: translateY(-4px) scale(1.08);
}
@media (max-width: 900px) {
    nav {
        width: 78vw;
        max-width: 290px;
        left: 10px;
        right: auto;
        background: rgba(255, 250, 240, 0.72);
        backdrop-filter: blur(16px) saturate(1.2);
        box-shadow: 0 8px 30px rgba(24, 34, 37, 0.13);
        border-radius: 0 0 18px 18px;
    }
}
@media (max-width: 900px) {
    .site-header {
        position: relative;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        min-height: 60px;
    }
    .brand {
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        left: 0;
        right: 0;
        z-index: 10;
    }
    .nav-toggle {
        display: block;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }
    nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 10px;
        width: 85vw;
        max-width: 340px;
        background: #fffaf0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        box-shadow: 0 8px 30px rgba(24, 34, 37, 0.08);
        padding: 0 0 10px 0;
        z-index: 15;
        border-radius: 0 0 12px 12px;
    }
    nav.open {
        display: flex !important;
    }
    nav a {
        width: 100%;
        padding: 14px 24px;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
    }
}
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
        position: absolute;
        left: 0;
        top: 10px;
    }
    nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fffaf0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        box-shadow: 0 8px 30px rgba(24, 34, 37, 0.08);
        padding: 0 0 10px 0;
        z-index: 15;
    }
    nav.open {
        display: flex !important;
    }
    nav a {
        width: 100%;
        padding: 14px 24px;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
    }
    .site-header {
        position: relative;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
    }
}
/* Hamburger menu using three spans */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: 18px;
    z-index: 20;
    position: relative;
    width: 40px;
    height: 40px;
}
.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    margin: 5px auto;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
}
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
        position: absolute;
        left: 0;
        top: 10px;
    }
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fffaf0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        box-shadow: 0 8px 30px rgba(24, 34, 37, 0.08);
        padding: 0 0 10px 0;
        display: none;
        z-index: 15;
    }
    nav.open {
        display: flex;
    }
    nav a {
        width: 100%;
        padding: 14px 24px;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
    }
    .site-header {
        position: relative;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
        position: absolute;
        left: 0;
        top: 10px;
    }
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fffaf0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        box-shadow: 0 8px 30px rgba(24, 34, 37, 0.08);
        padding: 0 0 10px 0;
        display: none;
        z-index: 15;
    }
    nav.open {
        display: flex;
    }
    nav a {
        width: 100%;
        padding: 14px 24px;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
    }
    .site-header {
        position: relative;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
    }
}
/* Hamburger menu styles */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: 18px;
    z-index: 20;
}

.hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--ink);
    position: relative;
    border-radius: 2px;
    transition: background 0.3s;
}
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    background: var(--ink);
    position: absolute;
    left: 0;
    border-radius: 2px;
    transition: transform 0.3s;
}
.hamburger::before {
    top: -9px;
}
.hamburger::after {
    top: 9px;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
        position: absolute;
        left: 0;
        top: 10px;
    }
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fffaf0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        box-shadow: 0 8px 30px rgba(24, 34, 37, 0.08);
        padding: 0 0 10px 0;
        display: none;
        z-index: 15;
    }
    nav.open {
        display: flex;
    }
    nav a {
        width: 100%;
        padding: 14px 24px;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
    }
    .site-header {
        position: relative;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
    }
}
:root {
    --ink: #182225;
    --muted: #627074;
    --paper: #f7f5ef;
    --surface: #ffffff;
    --line: #dde3df;
    --teal: #0d6b65;
    --teal-dark: #094b49;
    --saffron: #c97a1f;
    --gold: #e2ad4b;
    --rose: #8f2d46;
    --maroon: #68233a;
    --shadow: 0 18px 45px rgba(20, 35, 38, 0.13);
    --shadow-strong: 0 26px 70px rgba(20, 35, 38, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(226, 173, 75, 0.2), transparent 34rem),
        linear-gradient(180deg, #fffaf0 0%, var(--paper) 42%, #eef4f1 100%);
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.65;
}

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

a {
    color: inherit;
}

.top-contact-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 36px;
    padding: 7px clamp(18px, 4vw, 58px);
    color: #fff;
    background: #b9635f;
    font-size: 0.86rem;
    font-weight: 700;
}

.top-contact-bar a {
    color: #fff;
    text-decoration: none;
}

.top-contact-bar a:hover {
    text-decoration: underline;
}

.top-contact-bar .divider {
    opacity: 0.9;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 58px);
    background: rgba(255, 250, 240, 0.9);
    border-bottom: 1px solid rgba(24, 34, 37, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(24, 34, 37, 0.06);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--maroon));
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(13, 107, 101, 0.25);
}

.brand-logo {
    width: 160px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(20, 35, 38, 0.12);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
    letter-spacing: 0;
}

.brand small {
    color: var(--muted);
    font-size: 0.72rem;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
}

nav a {
    position: relative;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
}

nav a::after {
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--saffron), var(--rose));
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms ease;
}

nav a:hover {
    color: var(--teal);
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

nav a.active {
    color: var(--teal);
}

.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(260px, 360px);
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 80px clamp(20px, 7vw, 96px);
    color: #fff;
    background:
        linear-gradient(90deg, rgba(7, 31, 34, 0.9), rgba(7, 31, 34, 0.62), rgba(104, 35, 58, 0.28)),
        url("assets/documents/photo-gallery/image15.jpeg") center/cover;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    position: absolute;
    inset: auto -12vw -26vw auto;
    width: 48vw;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    content: "";
    opacity: 0.7;
    z-index: -1;
    animation: slowSpin 28s linear infinite;
}

.hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(7, 31, 34, 0.42));
    content: "";
    z-index: -1;
}

.hero-content {
    max-width: 760px;
    animation: riseIn 820ms ease both;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--saffron);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #f2b760;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 820px;
    margin-bottom: 20px;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.05;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    line-height: 1.14;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.hero-copy {
    max-width: 650px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), #b7512c);
    box-shadow: 0 14px 28px rgba(143, 45, 70, 0.26);
}

.btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
    color: var(--teal-dark);
    border-color: rgba(13, 107, 101, 0.28);
    background: #fff;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(24, 34, 37, 0.2);
}

.hero-card {
    max-width: 360px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.14);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    animation: riseIn 820ms 180ms ease both;
}

.hero-card span,
.hero-card strong {
    display: block;
}

.hero-card span {
    color: #f2c06f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-card strong {
    margin: 6px 0 10px;
    font-size: 1.7rem;
    line-height: 1.15;
}

.hero-card p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

.intro-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.intro-band article {
    padding: 30px clamp(20px, 4vw, 48px);
    background: var(--surface);
    transition: transform 220ms ease, background 220ms ease;
}

.intro-band article:hover {
    background: #fff8ea;
    transform: translateY(-3px);
}

.intro-band strong {
    display: block;
    color: var(--teal-dark);
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    line-height: 1.1;
}

.intro-band span {
    color: var(--muted);
}

.page-hero {
    min-height: 440px;
    display: grid;
    align-content: center;
    padding: clamp(78px, 12vw, 138px) clamp(20px, 7vw, 96px);
    color: #fff;
    background:
        linear-gradient(90deg, rgba(7, 31, 34, 0.92), rgba(7, 31, 34, 0.62), rgba(104, 35, 58, 0.3)),
        var(--teal-dark);
}

.page-hero h1,
.page-hero p {
    max-width: 850px;
}

.page-hero h1 {
    margin-bottom: 16px;
}

.page-hero p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.shiva-hero {
    background:
        linear-gradient(90deg, rgba(7, 31, 34, 0.92), rgba(7, 31, 34, 0.62), rgba(104, 35, 58, 0.28)),
        url("assets/documents/photo-gallery/image19.png") center/cover;
}

.ritual-hero,
.donate-hero {
    background:
        linear-gradient(90deg, rgba(7, 31, 34, 0.9), rgba(7, 31, 34, 0.54), rgba(104, 35, 58, 0.3)),
        url("assets/documents/photo-gallery/image22.png") center/cover;
}

.temple-hero,
.gallery-hero {
    background:
        linear-gradient(90deg, rgba(7, 31, 34, 0.92), rgba(7, 31, 34, 0.58), rgba(104, 35, 58, 0.26)),
        url("assets/documents/photo-gallery/image17.png") center/cover;
}

.contact-hero {
    background:
        linear-gradient(90deg, rgba(7, 31, 34, 0.92), rgba(7, 31, 34, 0.58), rgba(104, 35, 58, 0.28)),
        url("assets/documents/photo-gallery/image2.png") center/cover;
}

.committee-hero {
    background:
        linear-gradient(90deg, rgba(7, 31, 34, 0.92), rgba(7, 31, 34, 0.62), rgba(104, 35, 58, 0.28)),
        url("assets/documents/photo-gallery/image20.png") center/cover;
}

.membership-hero {
    background:
        linear-gradient(90deg, rgba(7, 31, 34, 0.92), rgba(7, 31, 34, 0.58), rgba(104, 35, 58, 0.28)),
        url("assets/documents/photo-gallery/image16.jpeg") center/cover;
}

.split-section,
.activities-section,
.gallery-section,
.donation-section,
.contact-section {
    padding: clamp(68px, 9vw, 118px) clamp(20px, 7vw, 96px);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: center;
    gap: clamp(30px, 6vw, 80px);
    background: #fff;
}

.section-copy {
    max-width: 650px;
}

.section-copy p,
.section-heading p,
.project-content p,
.contact-section p {
    color: var(--muted);
}

.image-panel {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: rotate(-1deg);
}

.image-panel.fit-text {
    align-self: stretch;
    display: flex;
    min-height: 100%;
    background: #fff;
    transform: none;
}

.image-panel img {
    aspect-ratio: 4 / 3;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.image-panel:hover img {
    transform: scale(1.05);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.text-link {
    display: inline-flex;
    margin-top: 8px;
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
}

.text-link::after {
    margin-left: 8px;
    content: ">";
}

.text-link.light {
    color: #f2c06f;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.cards.expanded {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.donation-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(20, 35, 38, 0.08);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.card img {
    height: 220px;
    object-fit: cover;
    transition: transform 550ms ease;
}

.card::before,
.donation-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron), var(--rose), var(--teal));
    content: "";
    opacity: 0;
    transition: opacity 220ms ease;
}

.card:hover,
.donation-card:hover {
    border-color: rgba(201, 122, 31, 0.34);
    box-shadow: var(--shadow-strong);
    transform: translateY(-6px);
}

.card:hover::before,
.donation-card:hover::before {
    opacity: 1;
}

.card:hover img {
    transform: scale(1.06);
}

.card div {
    padding: 22px;
}

.card p {
    margin-bottom: 0;
    color: var(--muted);
}

.project-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    min-height: 620px;
    background:
        radial-gradient(circle at 85% 15%, rgba(226, 173, 75, 0.18), transparent 24rem),
        linear-gradient(135deg, var(--teal-dark), #102f33 55%, #351d2c);
    color: #fff;
}

.project-visual {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    background: #172326;
}

.project-visual::before {
    position: absolute;
    inset: -24%;
    background: url("assets/siwasthan-centre-building-rotated.png") center/cover no-repeat;
    content: "";
}

.project-visual::after {
    position: absolute;
    inset: 0;
    background: rgba(9, 75, 73, 0.12);
    content: "";
}

.project-content {
    align-self: center;
    padding: clamp(48px, 7vw, 86px);
}

.project-content p {
    color: rgba(255, 255, 255, 0.78);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 30px;
}

.project-button {
    margin-top: 28px;
}

.project-grid div {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 220ms ease, background 220ms ease;
}

.project-grid div:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
}

.project-grid strong,
.project-grid span {
    display: block;
}

.project-grid strong {
    font-size: 1.35rem;
}

.project-grid span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.donation-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(238, 244, 241, 0.92)),
        #eef4f1;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.section-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.values-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 0 clamp(20px, 7vw, 96px) clamp(68px, 9vw, 118px);
    background: var(--line);
}

.values-section article {
    padding: 30px;
    background: #fff;
}

.values-section strong,
.values-section span {
    display: block;
}

.values-section strong {
    color: var(--teal-dark);
    font-size: 1.24rem;
}

.values-section span {
    margin-top: 6px;
    color: var(--muted);
}

.donation-card {
    padding: 22px;
}

.donation-card span,
.donation-card strong {
    display: block;
}

.donation-card span {
    color: var(--muted);
    font-size: 0.9rem;
}

.donation-card strong {
    margin-top: 6px;
    color: var(--teal-dark);
    font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

.bank-panel {
    display: grid;
    grid-template-columns: 0.75fr 1.05fr minmax(180px, 0.45fr);
    gap: 28px;
    padding: clamp(24px, 4vw, 36px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.gallery-section {
    background:
        linear-gradient(180deg, #fff 0%, #fff8ea 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-auto-rows: minmax(250px, auto);
    gap: 18px;
}

.gallery-grid figure {
    position: relative;
    min-height: 260px;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #172326;
    box-shadow: var(--shadow);
}

.gallery-grid img {
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 700ms ease, opacity 300ms ease;
}

.gallery-grid figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 20px;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(7, 31, 34, 0.88));
}

.gallery-grid strong,
.gallery-grid span {
    display: block;
}

.gallery-grid strong {
    font-size: 1.08rem;
}

.gallery-grid span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.gallery-grid figure:hover img {
    opacity: 1;
    transform: scale(1.07);
}

.gallery-feature {
    grid-row: span 2;
}

.bank-panel p {
    margin-bottom: 0;
    color: var(--muted);
}

.upi-qr {
    align-self: start;
    margin: 0;
    text-align: center;
}

.upi-qr img {
    width: min(220px, 100%);
    margin: 0 auto;
    aspect-ratio: 1;
    object-fit: contain;
    border: 8px solid #fff;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(20, 35, 38, 0.12);
}

.upi-qr figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

dt {
    color: var(--muted);
    font-size: 0.82rem;
}

dd {
    margin: 0;
    font-weight: 700;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    gap: 30px;
    align-items: start;
    background: #fff;
}

.content-section {
    padding: clamp(68px, 9vw, 118px) clamp(20px, 7vw, 96px);
    background: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: start;
}

.rich-copy {
    max-width: 860px;
    overflow-x: auto;
}

.rich-copy p,
.rich-copy li {
    color: var(--muted);
}

.rich-copy ul,
.rich-copy ol {
    padding-left: 1.2rem;
}

.detail-panel {
    padding: clamp(22px, 4vw, 34px);
    background: #f7f9f7;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.detail-list div {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.detail-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.committee-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}

.committee-grid .member-card {
    flex: 1 0 235px;
    scroll-snap-align: start;
}

.committee-grid .member-card img {
    width: min(230px, calc(100% - 32px));
    height: auto;
    aspect-ratio: 1;
}

.committee-grid .member-card h3 {
    min-height: 2.6em;
}

.committee-grid::-webkit-scrollbar {
    height: 8px;
}

.committee-grid::-webkit-scrollbar-thumb {
    background: rgba(13, 107, 101, 0.28);
    border-radius: 999px;
}

.committee-grid::-webkit-scrollbar-track {
    background: rgba(221, 227, 223, 0.55);
    border-radius: 999px;
}

.member-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(20, 35, 38, 0.08);
    text-align: center;
    transform-origin: center;
    animation: memberCardZoomIn 680ms ease both;
}

.member-card img {
    width: 190px;
    height: 190px;
    margin: 22px auto 0;
    object-fit: cover;
    object-position: center 18%;
    background: #eef4f1;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(20, 35, 38, 0.16);
    transition: transform 420ms ease, box-shadow 420ms ease;
}

.member-card:hover img {
    transform: scale(1.08);
    box-shadow: 0 18px 38px rgba(20, 35, 38, 0.22);
}

.member-card img[src$="image11.jpeg"] {
    object-position: center 8%;
}

.member-card:nth-child(2) {
    animation-delay: 80ms;
}

.member-card:nth-child(3) {
    animation-delay: 160ms;
}

.member-card:nth-child(4) {
    animation-delay: 240ms;
}

.member-card:nth-child(5) {
    animation-delay: 320ms;
}

.member-card:nth-child(6) {
    animation-delay: 400ms;
}

.member-card div {
    padding: 16px;
}

.member-card h3 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.member-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.options-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.options-table th,
.options-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.options-table th {
    color: var(--teal-dark);
    background: #f7f9f7;
}

.options-table tr:last-child td {
    border-bottom: 0;
}

.logo-display {
    display: grid;
    place-items: center;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.logo-display img {
    max-width: 520px;
    object-fit: contain;
}

.contact-list {
    display: grid;
    gap: 12px;
}

.contact-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    color: var(--ink);
    background: #f7f9f7;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.contact-list span {
    color: var(--teal);
}

.contact-list a:hover {
    border-color: rgba(13, 107, 101, 0.3);
    box-shadow: 0 12px 28px rgba(20, 35, 38, 0.09);
    transform: translateX(4px);
}

footer {
    padding: 24px clamp(20px, 7vw, 96px);
    color: rgba(255, 255, 255, 0.78);
    background: #172326;
}

footer p {
    margin: 0;
}

.image-credits {
    max-width: 980px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
}

.image-credits a {
    color: rgba(255, 255, 255, 0.78);
}

.split-section,
.activities-section,
.project-section,
.gallery-section,
.donation-section,
.contact-section,
.intro-band article {
    animation: fadeUp 680ms ease both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0.25;
        transform: translateY(34px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slowSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes memberCardZoomIn {
    from {
        opacity: 0;
        transform: scale(0.78);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 900px) {
    .site-header,
    .split-section,
    .contact-section,
    .bank-panel {
        grid-template-columns: 1fr;
    }

    .site-header {
        display: grid;
        gap: 14px;
    }

    nav {
        justify-content: flex-start;
    }

    .hero,
    .intro-band,
    .cards,
    .cards.expanded,
    .project-section,
    .gallery-grid,
    .donation-grid,
    .values-section,
    .content-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 520px;
    }

    .gallery-feature {
        grid-row: auto;
    }

    .project-grid,
    dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bank-panel {
        gap: 22px;
    }

    .upi-qr {
        justify-self: start;
    }
}

@media (max-width: 560px) {
    body {
        line-height: 1.58;
    }

    .top-contact-bar {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 3px 8px;
        padding: 8px 14px;
        font-size: 0.74rem;
        line-height: 1.35;
    }

    .site-header {
        position: static;
        padding: 12px 14px;
    }

    .brand-logo {
        width: 132px;
        max-height: 44px;
    }

    nav {
        gap: 6px 12px;
    }

    nav a {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    nav a::after {
        bottom: -3px;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 58px 18px;
        gap: 24px;
    }

    h1 {
        font-size: clamp(2rem, 12vw, 3.05rem);
        line-height: 1.08;
    }

    h2 {
        font-size: clamp(1.55rem, 8vw, 2.25rem);
    }

    .page-hero {
        min-height: 320px;
        padding: 64px 18px;
    }

    .hero-card {
        padding: 20px;
    }

    .hero-actions,
    .btn,
    .contact-list a {
        width: 100%;
    }

    .split-section,
    .activities-section,
    .gallery-section,
    .donation-section,
    .contact-section,
    .content-section {
        padding: 48px 18px;
    }

    .values-section {
        padding: 0 18px 48px;
    }

    .cards,
    .cards.expanded,
    .donation-grid {
        gap: 16px;
    }

    .card img,
    .card-image-frame {
        height: 190px;
    }

    .image-panel {
        transform: none;
    }

    .image-panel img {
        aspect-ratio: 4 / 3;
    }

    .image-panel.fit-text {
        min-height: 320px;
    }

    .project-section {
        min-height: auto;
    }

    .project-visual {
        min-height: 320px;
    }

    .project-content {
        padding: 42px 18px;
    }

    .contact-list a {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .project-grid,
    dl {
        grid-template-columns: 1fr;
    }

    .bank-panel {
        padding: 22px 16px;
    }

    .upi-qr {
        justify-self: center;
        width: 100%;
    }

    .upi-qr img {
        width: min(260px, 100%);
        border-width: 6px;
    }

    .gallery-grid figure,
    .gallery-grid img {
        min-height: 230px;
    }

    .gallery-grid {
        gap: 14px;
    }

    .committee-grid {
        gap: 14px;
        margin-right: -18px;
        padding-right: 18px;
    }

    .committee-grid .member-card {
        flex-basis: 210px;
    }

    .committee-grid .member-card img {
        width: min(178px, calc(100% - 28px));
    }

    .options-table {
        min-width: 640px;
        font-size: 0.9rem;
    }

    .options-table th,
    .options-table td {
        padding: 12px;
    }
}

@media (max-width: 380px) {
    .top-contact-bar {
        font-size: 0.7rem;
    }

    nav a {
        font-size: 0.74rem;
    }

    .brand-logo {
        width: 118px;
    }

    .page-hero,
    .hero {
        padding-right: 14px;
        padding-left: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
