:root {
    --maroon: #6B1D2A;
    --maroon-deep: #4A121C;
    --saffron: #C45C26;
    --gold: #D4A017;
    --gold-soft: #E8C56B;
    --cream: #F7F0E4;
    --ivory: #FDF9F2;
    --ink: #1F1A17;
    --muted: #6A5E55;
    --teal: #2C5F4E;
    --white: #fff;
    --shadow: 0 18px 50px rgba(75, 18, 28, 0.12);
    --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Noto Sans Devanagari", Outfit, system-ui, sans-serif;
    color: var(--ink);
    background: var(--ivory);
    line-height: 1.8;
}
h1, h2, h3, h4, .display, .brand-text strong, .hero-title {
    font-family: "Noto Serif Devanagari", "Cormorant Garamond", Georgia, serif;
    letter-spacing: 0;
    line-height: 1.35;
}
img { max-width: 100%; height: auto; }
a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--saffron); }
.skip-link {
    position: absolute; left: -999px; top: 0;
}
.skip-link:focus { left: 12px; z-index: 9999; background: #fff; padding: 8px 12px; }

.topbar {
    background: var(--maroon-deep);
    color: #f3e6d2;
    font-size: 0.85rem;
    padding: 0.45rem 0;
}
.topbar a { color: #f3e6d2; }
.topbar-left, .topbar-right { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.site-header {
    background: rgba(253, 249, 242, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(107, 29, 42, 0.08);
    position: sticky; top: 0; z-index: 1000;
}
.navbar { padding: 0.55rem 0; }
.navbar-brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(145deg, var(--gold), var(--saffron));
    color: var(--maroon-deep); font-weight: 700; font-family: "Cormorant Garamond", serif;
    border: 2px solid #fff; box-shadow: 0 0 0 2px var(--maroon);
    font-size: 1.05rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--maroon); font-size: 1.02rem; max-width: 240px; }
.brand-text small { color: var(--muted); font-size: 0.75rem; font-family: Outfit, sans-serif; }
.nav-link { color: var(--ink) !important; font-weight: 500; padding: 0.5rem 0.48rem !important; font-size: 0.88rem; white-space: nowrap; }
.nav-link.active, .nav-link:hover { color: var(--maroon) !important; }
.btn-gold {
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    color: var(--maroon-deep) !important;
    border: 0; font-weight: 600;
    padding: 0.55rem 1.15rem; border-radius: 999px;
    box-shadow: 0 8px 18px rgba(212, 160, 23, 0.28);
}
.btn-gold:hover { filter: brightness(1.05); color: var(--maroon-deep) !important; }
.btn-maroon {
    background: var(--maroon); color: #fff !important; border: 0;
    border-radius: 999px; padding: 0.65rem 1.4rem; font-weight: 600;
}
.btn-maroon:hover { background: var(--maroon-deep); color: #fff !important; }
.btn-outline-maroon {
    border: 1.5px solid var(--maroon); color: var(--maroon); border-radius: 999px; padding: 0.6rem 1.3rem; font-weight: 600;
}
.btn-outline-maroon:hover { background: var(--maroon); color: #fff; }

.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1800 / 750;
    min-height: 280px;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(74,18,28,0.88), rgba(196,92,38,0.45)),
        radial-gradient(circle at 20% 20%, rgba(232,197,107,0.25), transparent 40%),
        var(--maroon-deep);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 4 L34 22 L52 22 L38 32 L44 50 L30 38 L16 50 L22 32 L8 22 L26 22 Z' fill='none' stroke='%23E8C56B' stroke-opacity='0.12' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.7;
}
.hero-slide {
    position: absolute; inset: 0;
    display: grid; place-items: end stretch;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    pointer-events: none;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}
.hero-slide[hidden] { display: grid !important; }
.hero-photo {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-slide:not(.no-photo)::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(74,18,28,0.08) 40%, rgba(42,12,18,0.82) 100%);
}
.hero-slide.text-free:not(.no-photo)::after {
    background: linear-gradient(180deg, rgba(74,18,28,0.08), rgba(74,18,28,0.22));
}
.hero-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: none;
    text-align: left;
    padding: 2.4rem 4.8rem 2.6rem;
}
.hero-title {
    font-size: clamp(1.35rem, 3vw, 2.15rem);
    line-height: 1.2;
    margin: 0 0 0.35rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.hero-sub {
    font-size: 1rem;
    color: #f3e6d2;
    margin: 0 0 0.7rem;
    max-width: 720px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
.hero-actions { display: flex; gap: 0.8rem; justify-content: flex-start; flex-wrap: wrap; }
.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 4; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(74, 18, 28, 0.55); color: #fff; font-size: 1.8rem; line-height: 1;
    display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.hero-nav:hover { background: var(--gold); color: var(--maroon-deep); }
.hero-prev { left: 0.9rem; }
.hero-next { right: 0.9rem; }
.hero-dots { position: absolute; bottom: 0.7rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.45rem; z-index: 4; }
.hero-dots button {
    width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.4);
}
.hero-dots button.active { background: var(--gold); width: 22px; border-radius: 999px; }

.section { padding: 4.5rem 0; }
.section-cream { background: var(--cream); }
.section-white { background: #fff; }
.section-maroon { background: var(--maroon-deep); color: #fff; }
.section-head { text-align: center; margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--maroon); margin-bottom: 0.35rem; }
.section-maroon .section-head h2 { color: var(--gold-soft); }
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.ornament {
    width: 72px; height: 10px; margin: 0.6rem auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    clip-path: polygon(0 50%, 45% 0, 55% 0, 100% 50%, 55% 100%, 45% 100%);
}

.card-soft {
    background: #fff; border: 0; border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.card-soft:hover { transform: translateY(-4px); box-shadow: 0 24px 55px rgba(75,18,28,0.16); }
.card-soft.video-card:hover { transform: none; }
.card-soft img, .card-media {
    width: 100%; height: 210px; object-fit: cover; display: block;
}
.video-card .video-frame img,
.video-card .ratio img {
    height: 100%; object-fit: cover;
}
.video-frame { background: #1a1012; }
.video-frame iframe,
.video-frame video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border: 0; background: #000;
}
.video-play-btn {
    position: absolute; inset: 0; z-index: 2; border: 0; cursor: pointer;
    background: transparent; color: #fff;
    display: grid; place-items: center;
}
.video-play-btn i {
    width: 68px; height: 68px; border-radius: 50%;
    background: rgba(107, 29, 42, 0.88); color: #fff;
    display: grid; place-items: center; font-size: 2.2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.video-play-btn:hover i { background: var(--gold); color: var(--maroon-deep); }
.bhavan-poster-wrap img,
img.bhavan-poster,
.board-photo-wrap img,
img.board-photo {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center top;
}
.card-media {
    background: linear-gradient(145deg, var(--maroon), var(--saffron));
    display: grid; place-items: center; color: var(--gold-soft); font-size: 2.4rem;
}
.card-body-pad { padding: 1.25rem 1.35rem 1.5rem; }
.meta { color: var(--muted); font-size: 0.86rem; }
.pill {
    display: inline-block; background: #f3e6d2; color: var(--maroon);
    border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.75rem; font-weight: 600;
}

.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.mv-grid.split-2 {
    grid-template-columns: 1fr 1fr;
    height: 100%;
}
.mv-grid.split-2 .mv-card { height: 100%; }
.split-50 > [class*="col-"] .card-soft.h-100,
.split-50 > [class*="col-"] .board-photo-wrap.h-100 {
    height: 100%;
}
.mv-card {
    background: #fff; border-radius: var(--radius); padding: 1.6rem;
    border-top: 4px solid var(--gold); box-shadow: var(--shadow);
}
.mv-card i { color: var(--saffron); font-size: 1.6rem; }

.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    margin-top: -3.2rem; position: relative; z-index: 3;
}
.stat {
    background: #fff; border-radius: 16px; padding: 1.3rem; text-align: center; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 1.8rem; color: var(--maroon); font-family: "Cormorant Garamond", serif; }

.quote-card {
    display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; align-items: center;
    background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow);
}
.quote-avatar {
    width: 140px; height: 140px; border-radius: 50%;
    background: linear-gradient(145deg, var(--maroon), var(--gold));
    display: grid; place-items: center; color: #fff; font-size: 2.4rem;
    border: 4px solid var(--gold-soft);
}
.page-hero {
    background: linear-gradient(120deg, var(--maroon-deep), var(--maroon) 55%, var(--saffron));
    color: #fff; padding: 3.2rem 0 2.6rem;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
.breadcrumb-light { color: #f3e6d2; font-size: 0.9rem; margin-top: 0.4rem; }
.breadcrumb-light a { color: var(--gold-soft); }

.member-card { text-align: center; padding: 1.4rem 1rem; }
.member-photo {
    width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 0.9rem;
    object-fit: cover; border: 3px solid var(--gold); background: var(--cream);
}
.member-photo.placeholder {
    display: grid; place-items: center; font-size: 2.4rem; color: var(--maroon);
    background: linear-gradient(145deg, #f3e6d2, #fff);
}
.member-mobile { color: var(--muted); font-size: 0.82rem; margin-top: 0.25rem; }
.form-card { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.form-control, .form-select {
    border-radius: 12px; border-color: #e4d5c4; padding: 0.7rem 0.9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold); box-shadow: 0 0 0 0.2rem rgba(212,160,23,.2);
}
.alert-trust { background: #eef7f1; color: var(--teal); border: 0; border-radius: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-item {
    aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; position: relative; cursor: pointer;
    background: var(--maroon);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item.contain { background: #f4eee3; }
.gallery-item.contain img { object-fit: contain; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.contain:hover img { transform: none; }
.lightbox {
    display: none; position: fixed; inset: 0; background: rgba(20,10,10,0.92);
    z-index: 2000; place-items: center;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 86vw; max-height: 82vh; border-radius: 8px; }
.lightbox .close-lb {
    position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.2rem;
    z-index: 2; line-height: 1; cursor: pointer;
}
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border: 0; border-radius: 50%;
    background: rgba(107, 29, 42, 0.88); color: #E8C56B;
    font-size: 2rem; line-height: 1; cursor: pointer;
    display: grid; place-items: center; z-index: 2;
}
.lb-nav:hover { background: var(--maroon); color: #fff; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-meta {
    position: absolute; left: 0; right: 0; bottom: 18px;
    display: flex; justify-content: center; align-items: center; gap: 1rem;
    color: #f3e6d2; font-size: 0.95rem; padding: 0 4rem; text-align: center;
}
.lb-count { color: var(--gold-soft); font-weight: 600; white-space: nowrap; }
@media (max-width: 575px) {
    .lb-nav { width: 42px; height: 42px; font-size: 1.6rem; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
    .lightbox img { max-width: 94vw; max-height: 72vh; }
}

.site-footer {
    background: #1a1012; color: #eadfce; padding: 3.5rem 0 1.2rem; position: relative;
}
.footer-ornament {
    height: 6px; background: linear-gradient(90deg, var(--maroon), var(--gold), var(--saffron));
    position: absolute; top: 0; left: 0; right: 0;
}
.footer-brand { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.8rem; }
.footer-brand h3 { color: #fff; font-size: 1.35rem; margin: 0; }
.footer-brand p { margin: 0; color: var(--gold-soft); font-size: 0.85rem; }
.site-footer h4 { color: var(--gold-soft); font-size: 1.15rem; margin-bottom: 0.8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #eadfce; }
.footer-intro { font-size: 0.92rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2rem; padding-top: 1rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem;
}
.footer-credit a { color: var(--gold-soft); font-weight: 600; }
.footer-credit a:hover { color: #fff; }
.ratio iframe, .ratio video { border-radius: 14px; }
.map-block { width: 100%; }
.map-embed {
    position: relative;
    width: 100%;
    height: 450px;
    min-height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #dce6d4;
}
.map-embed iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 0;
    border-radius: 0;
}
.announcement { border-left: 4px solid var(--gold); padding: 0.9rem 1rem; background: #fff; border-radius: 0 12px 12px 0; margin-bottom: 0.8rem; box-shadow: var(--shadow); }
.filter-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.filter-bar a, .filter-bar span {
    border: 1px solid #e4d5c4; border-radius: 999px; padding: 0.3rem 0.9rem; color: var(--ink); background: #fff;
}
.filter-bar a.active { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); background: #fff; border-radius: var(--radius); }
.progress-wrap { margin: 1rem 0 0; }
.progress-bhavan {
    height: 16px; background: #ead9c4; border-radius: 999px; overflow: hidden;
}
.progress-bhavan > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--saffron));
}
.donate-panel { background: linear-gradient(145deg, #6B1D2A, #C45C26) !important; color: #fff; }
.donate-panel p, .donate-panel h2 { color: #fff; }
.seva-icon { font-size: 1.7rem; color: var(--saffron); }
.tax-box { border-top: 4px solid var(--gold); }
.bhavan-poster-wrap {
    background: linear-gradient(180deg, #6eadd8 0%, #d7eef8 55%, #f4f7ea 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: visible;
    margin: 0;
}
.bhavan-poster {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
}
.bhavan-poster-sticky {
    position: sticky;
    top: 88px;
}
.board-photo-wrap {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.board-photo-wrap a[data-full] {
    display: block;
    cursor: zoom-in;
}
.board-photo {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

@media (max-width: 991px) {
    .bhavan-poster-sticky { position: static; }
    .mv-grid, .stats { grid-template-columns: 1fr 1fr; }
    .quote-card { grid-template-columns: 1fr; text-align: center; }
    .quote-avatar { margin: 0 auto; }
    .hero { aspect-ratio: auto; min-height: 420px; }
    .hero-nav { width: 36px; height: 36px; font-size: 1.45rem; }
    .hero-prev { left: 0.45rem; }
    .hero-next { right: 0.45rem; }
    .hero-inner { padding: 1.6rem 1rem 2.4rem; }
}
@media (max-width: 575px) {
    .mv-grid, .stats { grid-template-columns: 1fr; }
    .topbar { display: none; }
    .stats { margin-top: 1.5rem; }
    .map-embed,
    .map-embed iframe { height: 320px; min-height: 320px; }
}
