/* ==========================================================================
   Agrawal Yuva Mandal Raipur — Stylesheet
   ========================================================================== */

:root {
    /* Royal indigo, antique gold & crimson — crimson taken from the AYM emblem */
    --primary: #1e2a78;       /* royal indigo */
    --primary-deep: #141c52;
    --primary-ink: #0b1033;
    --accent: #c8102e;        /* emblem crimson */
    --saffron: #e8742b;
    --gold: #d9a93f;          /* antique gold */
    --gold-light: #f1d48a;
    --gold-pale: #fbf1dc;
    --ivory: #fbf8f2;
    --ivory-2: #f2ece0;
    --charcoal: #0e1230;
    --charcoal-2: #161b3d;
    --ink: #1a1d33;
    --muted: #5d6077;

    --gold-grad: linear-gradient(135deg, #f6de9a 0%, #d9a93f 45%, #a8761e 100%);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-hindi: 'Rozha One', 'Mukta', serif;
    --font-body: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --nav-h: 76px;
    --radius: 18px;
    --ease: cubic-bezier(.22, .8, .24, 1);
    --shadow: 0 20px 50px -20px rgba(11, 16, 51, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) - 8px); }

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--ivory);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
::selection { background: var(--gold); color: var(--primary-ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: fixed; top: 10px; left: 10px; z-index: 2000;
    padding: .6rem 1rem; border-radius: 8px;
    background: var(--gold); color: var(--primary-ink); font-weight: 600;
    transform: translateY(-150%); transition: transform .2s;
}
.skip-link:focus { transform: none; color: var(--primary-ink); }

.text-gold { color: var(--gold-light); }
.text-soft { color: rgba(251, 241, 220, .72); }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; letter-spacing: .02em; border-radius: 999px; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s; }
.btn-lg { padding: .85rem 1.7rem; font-size: 1rem; min-height: 52px; display: inline-flex; align-items: center; gap: .55rem; }
.btn i { transition: transform .3s var(--ease); }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }

.btn-gold {
    background: var(--gold-grad); color: var(--primary-ink); border: 0;
    box-shadow: 0 10px 30px -10px rgba(217, 169, 63, .7);
}
.btn-gold:hover, .btn-gold:focus-visible { color: var(--primary-ink); transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(232, 116, 43, .8); }

.btn-ghost { color: var(--gold-pale); border: 1px solid rgba(241, 212, 138, .55); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--primary-ink); background: var(--gold-pale); border-color: var(--gold-pale); transform: translateY(-2px); }

.btn-brand { background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff; border: 0; padding: .8rem 1.6rem; box-shadow: 0 12px 28px -14px rgba(30, 42, 120, .9); }
.btn-brand:hover, .btn-brand:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(30, 42, 120, .9); }

.btn-link-gold {
    padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600;
    display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
}
.btn-link-gold:hover { color: var(--primary); }
.btn-link-gold:hover i { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.site-nav {
    min-height: var(--nav-h);
    padding: .75rem 0;
    transition: background .45s var(--ease), box-shadow .45s, padding .45s var(--ease), backdrop-filter .45s;
}
.site-nav.is-scrolled {
    background: rgba(11, 16, 51, .9);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7);
    padding: .4rem 0;
}
.site-nav.is-scrolled::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 169, 63, .55), transparent);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 55px; height: 55px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(217, 169, 63, .7), 0 6px 18px -6px rgba(0, 0, 0, .6); transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; color: var(--gold-pale); letter-spacing: .01em; }
.brand-sub { font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

.site-nav .nav-link {
    position: relative;
    color: rgba(251, 241, 220, .82);
    font-weight: 500; font-size: .97rem;
    padding: .5rem .85rem !important;
    transition: color .25s;
}
.site-nav .nav-link::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 2px;
    background: var(--gold-grad); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav .nav-link:hover, .site-nav .nav-link:focus-visible, .site-nav .nav-link.active { color: var(--gold-light); }
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }

.site-nav .nav-cta { border: 1px solid rgba(217, 169, 63, .6); border-radius: 999px; margin-left: .5rem; padding: .45rem 1.2rem !important; }
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover, .site-nav .nav-cta.active { background: var(--gold-grad); color: var(--primary-ink) !important; border-color: transparent; }

.nav-toggler {
    width: 46px; height: 46px; border: 1px solid rgba(217, 169, 63, .5); border-radius: 12px;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0;
    background: rgba(11, 16, 51, .35);
}
.nav-toggler:focus { box-shadow: none; }
.nav-toggler span { display: block; width: 22px; height: 2px; background: var(--gold-light); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.nav-toggler[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggler[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        margin-top: .75rem;
        background: rgba(11, 16, 51, .97);
        border: 1px solid rgba(217, 169, 63, .25);
        border-radius: 16px;
        padding: .75rem;
        max-height: calc(100vh - 100px); overflow-y: auto;
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    }
    .site-nav .nav-link { padding: .8rem 1rem !important; border-radius: 10px; font-size: 1.05rem; }
    .site-nav .nav-link::after { display: none; }
    .site-nav .nav-link.active, .site-nav .nav-link:hover { background: rgba(217, 169, 63, .1); }
    .site-nav .nav-cta { margin: .5rem 0 0; text-align: center; }
    .site-nav.menu-open { background: rgba(11, 16, 51, .96); }
}
@media (max-width: 379.98px) {
    .brand-name { font-size: 1.1rem; }
    .brand-mark { width: 46px; height: 46px; }
}

/* ---------- Ornaments ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: .75rem; color: var(--gold); margin-top: 1.1rem; }
.ornament svg { flex: none; }
.ornament-line { height: 1px; width: 70px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament-line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament-start { justify-content: flex-start; }
.ornament-start .ornament-line:first-child { display: none; }

.bg-mandala { position: absolute; width: 520px; max-width: none; opacity: .12; pointer-events: none; z-index: 0; }
.bg-mandala-right { top: -120px; right: -200px; }
.bg-mandala-left { bottom: -160px; left: -220px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }
.section-ivory { background: var(--ivory); }
.section-light { background: linear-gradient(180deg, #fffcf7, var(--ivory-2)); }
.section-dark { background: var(--charcoal); color: var(--gold-pale); }
.section-brand { background: radial-gradient(120% 120% at 0% 0%, #2d3ea0 0%, var(--primary-deep) 55%, var(--primary-ink) 100%); color: var(--gold-pale); }

.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
    color: var(--accent); margin-bottom: .8rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.text-center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-dark .eyebrow, .section-brand .eyebrow { color: var(--gold); }

.section-title { margin: 0; display: flex; flex-direction: column; gap: .2rem; }
.title-hi { font-family: var(--font-hindi); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.25; color: var(--primary); }
.title-en { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: var(--muted); font-style: italic; }
.section-dark .title-hi, .section-brand .title-hi {
    background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-dark .title-en, .section-brand .title-en { color: rgba(251, 241, 220, .75); }

.lead-text { font-size: clamp(1.12rem, 1.6vw, 1.28rem); color: var(--ink); font-weight: 500; line-height: 1.6; }
.section-dark .lead-text { color: var(--gold-pale); }
.section-dark p { color: rgba(251, 241, 220, .78); }

/* ---------- Hero (royal jharokha) ---------- */
.hero {
    --arch-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'%3E%3Cpath d='M0 130V52C0 34 16 26 30 19C41 13.5 47 8 50 0C53 8 59 13.5 70 19C84 26 100 34 100 52V130Z'/%3E%3C/svg%3E");
    position: relative;
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--nav-h) + 2.5rem) 0 0;
    overflow: hidden;
    background: var(--primary-ink);
    color: var(--gold-pale);
    isolation: isolate;
}
/* Velvet indigo with a fine gold-dust lattice */
.hero-bg {
    position: absolute; inset: 0; z-index: -4;
    background:
        radial-gradient(55% 70% at 74% 48%, rgba(45, 62, 160, .55) 0%, transparent 65%),
        radial-gradient(45% 55% at 6% 96%, rgba(200, 16, 46, .28) 0%, transparent 60%),
        linear-gradient(160deg, #1a2468 0%, var(--primary-ink) 55%, #060920 100%);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0; opacity: .35;
    background-image:
        radial-gradient(circle, rgba(217, 169, 63, .55) 1px, transparent 1.6px),
        radial-gradient(circle, rgba(217, 169, 63, .3) 1px, transparent 1.6px);
    background-size: 30px 30px; background-position: 0 0, 15px 15px;
    -webkit-mask: radial-gradient(70% 80% at 72% 45%, #000 0%, transparent 80%);
    mask: radial-gradient(70% 80% at 72% 45%, #000 0%, transparent 80%);
}
/* Soft spotlight beams falling from above */
.hero-beams {
    position: absolute; inset: 0; z-index: -3; pointer-events: none;
    background: conic-gradient(from 160deg at 72% -15%,
        transparent 0deg, rgba(241, 212, 138, .11) 6deg, transparent 13deg,
        transparent 17deg, rgba(241, 212, 138, .07) 23deg, transparent 30deg,
        transparent 34deg, rgba(241, 212, 138, .09) 40deg, transparent 47deg);
    -webkit-mask: linear-gradient(180deg, #000 20%, transparent 85%);
    mask: linear-gradient(180deg, #000 20%, transparent 85%);
}
.hero-particles { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }

/* Palace-panel frame with gold corner ornaments */
.hero-frame {
    position: absolute; z-index: -1; pointer-events: none;
    inset: calc(var(--nav-h) + 6px) 20px 72px;
    border: 1px solid rgba(217, 169, 63, .28);
}
.hero-frame span { position: absolute; width: 34px; height: 34px; border: 2px solid var(--gold); }
.hero-frame span::after { content: ""; position: absolute; width: 8px; height: 8px; background: var(--gold); rotate: 45deg; }
.hero-frame span:nth-child(1) { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.hero-frame span:nth-child(2) { top: -6px; right: -6px; border-left: 0; border-bottom: 0; }
.hero-frame span:nth-child(3) { bottom: -6px; left: -6px; border-right: 0; border-top: 0; }
.hero-frame span:nth-child(4) { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.hero-frame span:nth-child(odd)::after { left: 7px; }
.hero-frame span:nth-child(even)::after { right: 7px; }
.hero-frame span:nth-child(-n+2)::after { top: 7px; }
.hero-frame span:nth-child(n+3)::after { bottom: 7px; }

.hero-inner { position: relative; flex: 1; display: flex; align-items: center; padding-bottom: 4.5rem; }
.hero-inner > .row { width: 100%; }
.hero-content { position: relative; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .3rem 1rem .3rem .35rem; border-radius: 999px; margin-bottom: 1.5rem;
    font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light);
    border: 1px solid rgba(217, 169, 63, .4); background: rgba(255, 255, 255, .05); backdrop-filter: blur(6px);
}
.hero-eyebrow img { width: 26px; height: 26px; border-radius: 50%; }

.hero-title { margin: 0 0 1rem; }
.hero-title-hi { display: block; font-family: var(--font-hindi); font-weight: 400; font-size: clamp(2.7rem, 6.4vw, 5.6rem); line-height: 1; }
.hero-title-hi .w { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.3; padding: 0 .02em; margin-right: .18em; }
.hero-title-hi .w > span {
    display: inline-block;
    /* gold foil with a slow travelling shimmer */
    background: linear-gradient(110deg, #b8862c 0%, #f6de9a 22%, #fff7e2 30%, #d9a93f 45%, #a8761e 62%, #f1d48a 80%, #d9a93f 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: foil 7s linear infinite;
}
.hero-title-hi .w:last-child > span {
    background: linear-gradient(110deg, #e0213f 0%, #ff7a8a 30%, #ffd0d6 38%, #ff4d5e 52%, #c8102e 75%, #ff6b7d 100%);
    background-size: 250% 100%; -webkit-background-clip: text; background-clip: text;
}
@keyframes foil { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.hero-title-en {
    display: block; margin-top: .5rem;
    font-family: var(--font-display); font-weight: 600; font-style: italic;
    font-size: clamp(1.35rem, 2.6vw, 2.1rem); color: var(--gold-pale); letter-spacing: .02em;
}
.hero-rule { display: flex; align-items: center; gap: .7rem; max-width: 300px; margin-bottom: 1.2rem; color: var(--gold); }
.hero-rule span { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.hero-rule span:first-child { background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-rule i { font-size: .7rem; }
.hero-tagline { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; margin-bottom: 1.1rem; font-size: .86rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.hero-tagline i { font-style: normal; color: #ff5a6e; letter-spacing: 0; }
.hero-desc { max-width: 560px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: rgba(251, 241, 220, .8); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .8rem; margin: 2.2rem 0 0; padding: 0; }
.hero-meta li {
    display: flex; flex-direction: column; padding: .75rem 1.15rem; border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    border: 1px solid rgba(217, 169, 63, .32); backdrop-filter: blur(6px);
}
.hero-meta b { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.1; color: var(--gold-light); }
.hero-meta b[lang="hi"] { font-family: var(--font-hindi); font-weight: 400; font-size: 1.6rem; }
.hero-meta span { font-size: .78rem; color: rgba(251, 241, 220, .65); letter-spacing: .04em; }

/* Right column: Maharaja Agrasen in a jharokha (onion-dome) arch */
.hero-visual { position: relative; max-width: 420px; margin: 0 auto; padding: 1.5rem 0 1rem; }
.hero-halo {
    position: absolute; z-index: 0; width: 160%; aspect-ratio: 1; left: -30%; top: 45%; margin-top: -80%;
    border-radius: 50%; pointer-events: none;
    background:
        radial-gradient(circle, rgba(241, 212, 138, .32) 0%, rgba(217, 169, 63, .12) 30%, transparent 60%),
        repeating-conic-gradient(from 0deg, rgba(241, 212, 138, .09) 0deg 3deg, transparent 3deg 12deg);
    -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%);
    mask: radial-gradient(circle, #000 25%, transparent 68%);
    animation: halo-turn 160s linear infinite;
}
@keyframes halo-turn { to { rotate: 360deg; } }
.hero-arch { position: relative; z-index: 1; margin: 0; filter: drop-shadow(0 34px 50px rgba(0, 0, 0, .65)); }
.hero-arch::before {
    /* small gold finial above the dome */
    content: ""; position: absolute; z-index: 2; left: 50%; top: -16px; width: 16px; height: 16px; margin-left: -8px;
    background: var(--gold-grad); rotate: 45deg; box-shadow: 0 0 18px rgba(241, 212, 138, .8);
}
.arch-gold, .arch-crimson, .arch-photo {
    -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat;
    mask: var(--arch-mask) center / 100% 100% no-repeat;
}
.arch-gold { aspect-ratio: 100 / 130; padding: 3%; background: var(--gold-grad); }
.arch-crimson { height: 100%; padding: 2.4%; background: linear-gradient(180deg, #e0213f 0%, var(--accent) 45%, #7d0a1d 100%); }
.arch-photo { height: 100%; background: var(--primary-deep); }
.arch-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.arch-plate {
    position: relative; z-index: 2; display: table; margin: -2.2rem auto 0; text-align: center;
    padding: .55rem 1.8rem .6rem; border-radius: 12px;
    background: linear-gradient(180deg, #a50d27, #6e0819); border: 2px solid var(--gold);
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7), inset 0 0 0 3px rgba(11, 16, 51, .25);
}
.arch-plate span { display: block; font-family: var(--font-hindi); font-size: 1.45rem; line-height: 1.2; color: var(--gold-light); }
.arch-plate small { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(251, 241, 220, .8); }

/* Bottom ribbon */
.hero-marquee {
    position: relative; z-index: 1; overflow: hidden; white-space: nowrap;
    background: var(--gold-grad); color: var(--primary-ink); padding: .8rem 0;
    box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .5);
}
.marquee-track { display: inline-flex; align-items: center; gap: 1.6rem; padding-left: 1.6rem; animation: marquee 38s linear infinite; }
.marquee-track span { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .88rem; }
.marquee-track span[lang="hi"] { font-family: var(--font-hindi); font-weight: 400; letter-spacing: .02em; text-transform: none; font-size: 1.05rem; color: var(--accent); }
.marquee-track i { font-style: normal; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Hidden until GSAP intro; safety net reveals after 3s if scripts fail */
.js .reveal-hero, .js .hero-title-en, .js .hero-title-hi .w > span { opacity: 0; animation: heroFallback .6s 3s forwards, foil 7s linear infinite; }
@keyframes heroFallback { to { opacity: 1; transform: none; } }
.gsap-ok .reveal-hero, .gsap-ok .hero-title-en { animation: none; }
.gsap-ok .hero-title-hi .w > span { animation: foil 7s linear infinite; }

@media (max-width: 991.98px) {
    .hero { min-height: auto; }
    .hero-inner { padding-bottom: 5rem; }
    .hero-visual { max-width: 340px; }
}
@media (max-width: 575.98px) {
    .hero { padding-top: calc(var(--nav-h) + 1.5rem); }
    .hero-frame { display: none; }
    .arch-plate small { letter-spacing: .1em; font-size: .62rem; }
    .hero-tagline { letter-spacing: .18em; font-size: .76rem; }
    .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
    .hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
    .hero-meta li { padding: .6rem .6rem; }
    .hero-meta b { font-size: 1.35rem; }
    .hero-meta b[lang="hi"] { font-size: 1.3rem; }
    .hero-meta span { font-size: .68rem; line-height: 1.3; }
    .hero-visual { max-width: 270px; }
    .arch-plate span { font-size: 1.25rem; }
}

/* ---------- About ---------- */
.about-media { position: relative; max-width: 520px; margin: 0 auto; padding: 0 1.5rem 1.5rem 0; }
.about-frame { position: relative; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 9 / 11; }
.about-frame img { width: 100%; height: 115%; object-fit: cover; margin-top: -7.5%; }
.about-media::before {
    content: ""; position: absolute; inset: 1.5rem 0 0 1.5rem; z-index: -1;
    border: 1px solid var(--gold); border-radius: 200px 200px var(--radius) var(--radius);
}
.about-badge {
    position: absolute; left: -.5rem; bottom: 3rem;
    display: flex; align-items: center; gap: .6rem;
    padding: .8rem 1.2rem; border-radius: 999px;
    background: var(--primary); color: var(--gold-pale); font-weight: 600; font-size: .92rem;
    box-shadow: 0 14px 30px -12px rgba(11, 16, 51, .7);
}
.about-badge i { color: var(--gold-light); font-size: 1.2rem; }
.about-badge img { width: 34px; height: 34px; border-radius: 50%; margin-left: -.5rem; }
.about-badge span { font-family: var(--font-hindi); font-weight: 400; font-size: 1.02rem; letter-spacing: .02em; }

/* ---------- Executive committee ---------- */
.member-card {
    height: 100%; text-align: center; padding: 2rem 1rem 1.6rem; border-radius: var(--radius);
    background: #fff; border: 1px solid rgba(217, 169, 63, .28);
    box-shadow: 0 16px 40px -32px rgba(11, 16, 51, .6);
    transition: transform .45s var(--ease), box-shadow .45s;
}
.member-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(30, 42, 120, .5); }
.member-avatar {
    width: 84px; height: 84px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%;
    font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--gold-pale);
    background: linear-gradient(145deg, var(--accent), var(--primary-ink));
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold), 0 14px 26px -12px rgba(30, 42, 120, .8);
}
.member-card.is-lead .member-avatar { background: var(--gold-grad); color: var(--primary-ink); }
.member-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--primary); margin-bottom: .2rem; line-height: 1.2; }
.member-card p { margin: 0; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.team-more {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 0; padding: 1.4rem 1.6rem;
    border-radius: var(--radius); background: rgba(200, 16, 46, .05); border: 1px dashed rgba(200, 16, 46, .25);
}
.team-more dt { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.team-more dd { margin: .2rem 0 0; font-weight: 500; color: var(--ink); line-height: 1.5; }
.team-note { text-align: center; margin: 1.5rem 0 0; color: var(--muted); }
@media (max-width: 991.98px) { .team-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
    .team-more { grid-template-columns: 1fr; padding: 1.2rem; }
    .member-card { padding: 1.5rem .6rem 1.2rem; }
    .member-avatar { width: 66px; height: 66px; font-size: 1.5rem; }
    .member-card h3 { font-size: 1.12rem; }
    .member-card p { font-size: .68rem; letter-spacing: .08em; }
}

.pillars { list-style: none; padding: 0; margin: 1.8rem 0 2.2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.25rem; }
.pillars li { display: flex; align-items: center; gap: .65rem; font-weight: 500; }
.pillars i { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(200, 16, 46, .08); color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat {
    position: relative; text-align: center; padding: 1.3rem .5rem; border-radius: 16px;
    background: #fff; border: 1px solid rgba(217, 169, 63, .3);
    box-shadow: 0 12px 30px -24px rgba(11, 16, 51, .6);
}
.stat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: .45rem; font-size: .82rem; line-height: 1.3; color: var(--muted); font-weight: 500; }

@media (max-width: 575.98px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pillars { grid-template-columns: 1fr; }
}
@media (min-width: 576px) and (max-width: 767.98px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Maharaja Agrasen ---------- */
.agrasen { background: radial-gradient(90% 80% at 80% 40%, #18205a 0%, var(--charcoal) 60%); }
.agrasen-texture {
    position: absolute; inset: 0; opacity: .06; pointer-events: none;
    background-image: url("../images/ornaments/mandala-lotus.svg");
    background-size: 220px 220px;
}
.agrasen-portrait { position: relative; margin: 0 auto; max-width: 440px; padding: 18px; }
.agrasen-portrait::before {
    content: ""; position: absolute; inset: 0; border-radius: 240px 240px 22px 22px;
    padding: 2px; background: var(--gold-grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.agrasen-portrait::after {
    content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 116, 43, .25), transparent 65%);
}
.portrait-inner { border-radius: 225px 225px 14px 14px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--primary-deep); }
.portrait-inner img { width: 100%; height: 115%; object-fit: cover; margin-top: -7.5%; }
.frame-corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--gold); }
.frame-corner.tl { top: -6px; left: -6px; border-right: 0; border-bottom: 0; display: none; }
.frame-corner.tr { top: -6px; right: -6px; border-left: 0; border-bottom: 0; display: none; }
.frame-corner.bl { bottom: -6px; left: -6px; border-right: 0; border-top: 0; }
.frame-corner.br { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.agrasen-portrait figcaption {
    position: absolute; left: 50%; bottom: -2px; transform: translate(-50%, 50%);
    white-space: nowrap; padding: .45rem 1.4rem; border-radius: 999px;
    background: var(--primary); border: 1px solid var(--gold); color: var(--gold-light);
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: .04em;
}

.agrasen-values { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 2rem; }
.agrasen-values .value {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .55rem 1.1rem; border-radius: 999px;
    border: 1px solid rgba(217, 169, 63, .35); color: var(--gold-pale); font-weight: 500; font-size: .95rem;
    background: rgba(217, 169, 63, .06);
}
.agrasen-values i { color: var(--gold); }

.inspiration {
    position: relative; margin: 0; padding: 1.8rem 1.8rem 1.8rem 2.2rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(30, 42, 120, .55), rgba(11, 16, 51, .3));
    border: 1px solid rgba(217, 169, 63, .25);
}
.inspiration::before { content: ""; position: absolute; left: 0; top: 1.5rem; bottom: 1.5rem; width: 3px; border-radius: 3px; background: var(--gold-grad); }
.inspiration-label { display: block; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.inspiration p { font-family: var(--font-hindi); font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 .5rem; color: var(--gold-light) !important; line-height: 1.3; }
.inspiration footer { font-size: .98rem; color: rgba(251, 241, 220, .75); }

@media (max-width: 991.98px) { .agrasen-portrait { max-width: 360px; margin-bottom: 1.5rem; } }

/* ---------- Impact ---------- */
.shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: float 18s ease-in-out infinite; }
.shape.s1 { width: 360px; height: 360px; background: rgba(232, 116, 43, .35); top: -80px; left: -80px; }
.shape.s2 { width: 300px; height: 300px; background: rgba(200, 16, 46, .7); bottom: -100px; right: 10%; animation-delay: -6s; }
.shape.s3 { width: 220px; height: 220px; background: rgba(217, 169, 63, .3); top: 40%; right: -60px; animation-delay: -12s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 25px) scale(.95); } }

.impact-card {
    position: relative; height: 100%; padding: 2.2rem 1.7rem; border-radius: var(--radius);
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(217, 169, 63, .22);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: transform .45s var(--ease), border-color .45s, background .45s;
    overflow: hidden;
}
.impact-card::before {
    content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--gold-grad);
    transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.impact-card:hover { transform: translateY(-8px); border-color: rgba(217, 169, 63, .55); background: rgba(255, 255, 255, .07); }
.impact-card:hover::before { transform: scaleX(1); }
.impact-icon {
    width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1.3rem;
    background: var(--gold-grad); color: var(--primary-ink); font-size: 2rem;
    box-shadow: 0 12px 26px -12px rgba(232, 116, 43, .9);
    transition: transform .5s var(--ease);line-height: 37px;
}
.impact-icon i { display: inline-block; }
.impact-card:hover .impact-icon { transform: rotate(-8deg) scale(1.06); }
.impact-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--gold-pale); margin-bottom: .5rem; }
.impact-card p { color: rgba(251, 241, 220, .75); margin: 0; font-size: 1rem; }

/* ---------- Programs ---------- */
.programs-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.programs-track:focus-visible { outline-offset: 8px; }
.program-card {
    display: flex; flex-direction: column; height: 100%;
    background: #fff; border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(217, 169, 63, .22);
    box-shadow: 0 16px 40px -30px rgba(11, 16, 51, .6);
    transition: transform .45s var(--ease), box-shadow .45s;
}
.program-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(30, 42, 120, .55); }
.program-media { position: relative; aspect-ratio: 10 / 7; overflow: hidden; }
.program-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.program-card:hover .program-media img { transform: scale(1.07); }
.program-date {
    position: absolute; top: 1rem; left: 1rem; min-width: 62px; padding: .45rem .55rem .5rem;
    border-radius: 12px; text-align: center; background: rgba(255, 252, 246, .95); color: var(--accent);
    font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; line-height: 1.1;
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5);
}
.program-date b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--primary); letter-spacing: 0; }
.program-tag {
    position: absolute; top: 1rem; right: 1rem; padding: .3rem .8rem; border-radius: 999px;
    background: rgba(11, 16, 51, .75); color: var(--gold-light); font-size: .75rem; font-weight: 600; letter-spacing: .08em;
    backdrop-filter: blur(6px);
}
.program-tag.static { position: static; display: inline-block; margin-bottom: .8rem; background: var(--primary); }
.program-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1rem; }
.program-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--primary); line-height: 1.2; margin-bottom: .8rem; }
.program-body p { font-size: .97rem; color: var(--muted); margin-bottom: .6rem; flex: 1; }
.program-meta { list-style: none; padding: 0; margin: 0 0 .9rem; display: grid; gap: .3rem; font-size: .92rem; color: var(--ink); }
.program-meta li { display: flex; align-items: flex-start; gap: .55rem; }
.program-meta i { color: var(--saffron); margin-top: .15rem; }
.swipe-hint { text-align: center; color: var(--muted); font-size: .85rem; margin: 1rem 0 0; }

@media (max-width: 991.98px) { .programs-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
    .programs-track {
        display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5); padding: .5rem calc(var(--bs-gutter-x, 1.5rem) * .5) 1.5rem;
        scroll-padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
        scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
        -webkit-overflow-scrolling: touch;
    }
    .program-card { flex: 0 0 82%; max-width: 340px; scroll-snap-align: start; }
    .program-card:hover { transform: none; }
}

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-bottom: 2.4rem; }
.filter-btn {
    min-height: 44px; padding: .45rem 1.15rem; border-radius: 999px;
    border: 1px solid rgba(200, 16, 46, .25); background: transparent; color: var(--primary);
    font-weight: 500; font-size: .93rem; transition: background .3s, color .3s, border-color .3s;
}
.filter-btn:hover { border-color: var(--accent); }
.filter-btn.is-active { background: var(--primary); border-color: var(--primary); color: var(--gold-pale); }

.gallery-grid { columns: 4 240px; column-gap: 1.1rem; }
.gallery-item { break-inside: avoid; margin: 0 0 1.1rem; }
.gallery-item.is-hidden { display: none; }
.gallery-open {
    position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--primary-deep);
    border-radius: 14px; overflow: hidden; cursor: zoom-in;
}
.gallery-open img { width: 100%; transition: transform .9s var(--ease), opacity .5s; }
.gallery-open figcaption {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
    padding: 1.2rem; text-align: left;
    background: linear-gradient(0deg, rgba(11, 16, 51, .88) 0%, rgba(11, 16, 51, .1) 55%, transparent 100%);
    opacity: 0; transition: opacity .45s var(--ease);
}
.g-cat { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.g-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #fff; transform: translateY(10px); transition: transform .45s var(--ease); }
.gallery-open figcaption i { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 252, 246, .9); color: var(--primary); transform: scale(.6); transition: transform .45s var(--ease); }
.gallery-open:hover img, .gallery-open:focus-visible img { transform: scale(1.08); }
.gallery-open:hover figcaption, .gallery-open:focus-visible figcaption { opacity: 1; }
.gallery-open:hover .g-title, .gallery-open:focus-visible .g-title { transform: none; }
.gallery-open:hover figcaption i, .gallery-open:focus-visible figcaption i { transform: scale(1); }

@media (hover: none) {
    .gallery-open figcaption { opacity: 1; background: linear-gradient(0deg, rgba(11, 16, 51, .8) 0%, transparent 45%); }
    .g-title { transform: none; font-size: 1.1rem; }
    .gallery-open figcaption i { display: none; }
}
@media (max-width: 575.98px) {
    .gallery-grid { columns: 2; column-gap: .7rem; }
    .gallery-item { margin-bottom: .7rem; }
    .gallery-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -12px 1.8rem; padding: 0 12px 6px; scrollbar-width: none; }
    .gallery-filters::-webkit-scrollbar { display: none; }
    .filter-btn { flex: none; }
    .gallery-open figcaption { padding: .7rem; }
    .g-cat { font-size: .62rem; letter-spacing: .12em; }
}

/* Lightbox */
.lightbox .modal-content { background: transparent; border: 0; }
.lightbox .modal-dialog { max-width: min(1100px, 94vw); }
.lb-figure { text-align: center; }
.lb-img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-caption { margin-top: 1rem; color: var(--gold-pale); font-family: var(--font-display); font-size: 1.3rem; }
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(241, 212, 138, .5);
    background: rgba(11, 16, 51, .7); color: var(--gold-light); font-size: 1.3rem; display: grid; place-items: center;
    transition: background .3s, color .3s;
}
.lb-nav:hover { background: var(--gold); color: var(--primary-ink); }
.lb-prev { left: -10px; } .lb-next { right: -10px; }
.modal-x { position: absolute; top: -.5rem; right: 0; z-index: 3; padding: .8rem; opacity: .9; }
.lightbox .modal-x { top: -3rem; }
@media (max-width: 767.98px) {
    .lb-nav { top: auto; bottom: -4.2rem; transform: none; }
    .lb-prev { left: calc(50% - 62px); } .lb-next { right: calc(50% - 62px); }
    .lightbox .modal-dialog { margin-bottom: 6rem; }
}
.modal-backdrop.show { opacity: .88; }

/* ---------- Timeline ---------- */
.timeline-wrap { position: relative; max-width: 1080px; margin: 0 auto; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: rgba(217, 169, 63, .25); border-radius: 2px; }
.timeline-progress { position: absolute; inset: 0; background: linear-gradient(180deg, var(--saffron), var(--gold), var(--accent)); transform-origin: top; }
.timeline-item { position: relative; width: 50%; padding: 0 3rem 3rem 0; }
.timeline-item.is-right { margin-left: 50%; padding: 0 0 3rem 3rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute; top: 1.6rem; right: -10px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--ivory); border: 3px solid var(--gold); box-shadow: 0 0 0 6px rgba(217, 169, 63, .15); z-index: 1;
}
.timeline-item.is-right .timeline-dot { right: auto; left: -10px; }
.timeline-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(217, 169, 63, .25); box-shadow: 0 18px 44px -30px rgba(11, 16, 51, .55);
    transition: transform .45s var(--ease), box-shadow .45s;
}
.timeline-card:hover { transform: translateY(-6px); box-shadow: 0 28px 54px -30px rgba(30, 42, 120, .55); }
.timeline-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.timeline-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.timeline-card:hover .timeline-img img { transform: scale(1.06); }
.timeline-cat { position: absolute; left: 1rem; bottom: 1rem; padding: .25rem .8rem; border-radius: 999px; background: var(--saffron); color: var(--primary-ink); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.timeline-body { padding: 1.3rem 1.5rem 1.5rem; }
.timeline-date { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.timeline-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--primary); margin-bottom: .4rem; line-height: 1.2; }
.timeline-body p { margin: 0; color: var(--muted); font-size: .97rem; }

@media (min-width: 1200px) {
    .timeline-item { padding-bottom: 2.25rem; }
    .timeline-item.is-right { padding-bottom: 2.25rem; }
    .timeline-card { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
    .timeline-img { aspect-ratio: auto; min-height: 220px; height: 100%; }
    .timeline-img img { position: absolute; inset: 0; }
    .timeline-body { display: flex; flex-direction: column; justify-content: center; }
    .timeline-body p { font-size: .94rem; }
}
@media (max-width: 767.98px) {
    .timeline-line { left: 9px; margin-left: 0; }
    .timeline-item, .timeline-item.is-right { width: auto; margin-left: 0; padding: 0 0 2rem 2.5rem; }
    .timeline-dot, .timeline-item.is-right .timeline-dot { left: 0; right: auto; }
}

/* ---------- Quote ---------- */
.quote-section { position: relative; overflow: hidden; padding: clamp(6rem, 14vw, 10rem) 0; color: var(--gold-pale); isolation: isolate; }
.quote-bg { position: absolute; inset: -15% 0; z-index: -2; }
.quote-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.quote-overlay { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 50%, rgba(20, 28, 82, .78), rgba(6, 9, 28, .94) 75%); }
.motto { max-width: 900px; margin: 0 auto; }
.motto-logo { width: 96px; height: 96px; margin: 0 auto 1.4rem; border-radius: 50%; box-shadow: 0 0 0 3px rgba(217, 169, 63, .7), 0 0 60px rgba(232, 116, 43, .35); }
.motto-mark { display: none; font-size: 3.5rem; color: var(--gold); line-height: 1; margin-bottom: .5rem; }
.motto blockquote { margin: 0; }
.motto blockquote p { font-family: var(--font-hindi); font-size: clamp(2rem, 5.4vw, 4rem); line-height: 1.35; margin: 0 0 1.4rem; color: #fff; }
.motto blockquote .text-gold { display: inline-block; }
.motto figcaption { font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.4rem); color: rgba(251, 241, 220, .8); }
.motto figcaption span { display: block; margin-top: .4rem; font-family: var(--font-body); font-style: normal; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }

/* ---------- Social ---------- */
.social-card {
    --brand: var(--accent);
    position: relative; display: flex; flex-direction: column; height: 100%;
    padding: 2rem 1.6rem; border-radius: var(--radius); text-decoration: none; color: var(--ink);
    background: #fff; border: 1px solid rgba(217, 169, 63, .25); overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s, color .45s;
    box-shadow: 0 16px 40px -32px rgba(11, 16, 51, .6);
}
.social-card::before {
    content: ""; position: absolute; inset: 0; z-index: 0; background: var(--brand);
    clip-path: circle(0% at 100% 0%); transition: clip-path .6s var(--ease);
}
.social-card > * { position: relative; z-index: 1; }
.sc-facebook { --brand: #1877f2; }
.sc-instagram { --brand: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.sc-youtube { --brand: #d61f1f; }
.sc-whatsapp { --brand: #1fa855; }
.social-icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
    background: var(--brand); color: #fff; margin-bottom: 1.2rem; transition: background .45s, color .45s, transform .45s var(--ease);
}
.social-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; margin-bottom: .1rem; color: var(--primary); transition: color .45s; }
.social-handle { font-size: .88rem; font-weight: 600; color: var(--accent); transition: color .45s; }
.social-card p { margin: .7rem 0 1.2rem; font-size: .96rem; color: var(--muted); flex: 1; transition: color .45s; }
.social-cta { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; color: var(--primary); transition: color .45s; }
a.social-card:hover, a.social-card:focus-visible { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(11, 16, 51, .6); }
a.social-card:hover::before, a.social-card:focus-visible::before { clip-path: circle(150% at 100% 0%); }
a.social-card:hover *, a.social-card:focus-visible * { color: #fff; }
a.social-card:hover .social-icon, a.social-card:focus-visible .social-icon { background: rgba(255, 255, 255, .18); transform: rotate(-8deg); }
.social-card.is-soon { opacity: .82; }
.social-card.is-soon .social-icon { filter: saturate(.6); }
.social-card.is-soon .social-cta { color: var(--muted); font-weight: 500; font-style: italic; }

@media (max-width: 575.98px) {
    .social-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; padding: 1.2rem; align-items: center; }
    .social-icon { grid-row: span 3; margin: 0; width: 52px; height: 52px; }
    .social-card h3 { font-size: 1.35rem; margin: 0; }
    .social-card p { display: none; }
    .social-handle, .social-cta { font-size: .88rem; }
    .social-cta { margin-top: .15rem; }
}

/* ---------- Contact (address left, map right) ---------- */
.contact-panel {
    border-radius: calc(var(--radius) + 6px); overflow: hidden; background: #fff;
    border: 1px solid rgba(217, 169, 63, .35); box-shadow: 0 30px 70px -40px rgba(11, 16, 51, .55);
}
.contact-info {
    height: 100%; padding: clamp(1.8rem, 4vw, 2.8rem); position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-ink) 100%); color: var(--gold-pale);
}
.contact-info::before {
    /* fine gold-dust lattice, matching the landing section */
    content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none;
    background-image: radial-gradient(circle, rgba(217, 169, 63, .6) 1px, transparent 1.6px);
    background-size: 26px 26px;
    -webkit-mask: linear-gradient(200deg, #000, transparent 60%); mask: linear-gradient(200deg, #000, transparent 60%);
}
.contact-info > * { position: relative; }
.contact-logo { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 1rem; box-shadow: 0 0 0 3px var(--gold), 0 12px 26px -10px rgba(0, 0, 0, .6); }
.contact-info h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; margin-bottom: .2rem; color: var(--gold-light); }
.contact-sub { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(251, 241, 220, .7); margin-bottom: 1.6rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 1.15rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.ci { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(217, 169, 63, .15); border: 1px solid rgba(217, 169, 63, .3); color: var(--gold-light); font-size: 1.1rem; }
.contact-list b { display: block; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.contact-list address, .contact-list a { color: var(--gold-pale); text-decoration: none; word-break: break-word; font-style: normal; font-size: 1.05rem; }
.contact-list a:hover { color: #fff; text-decoration: underline; }
.contact-social, .footer-social { display: flex; gap: .6rem; margin-bottom: 1.6rem; }
.contact-social a, .footer-social a {
    width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid rgba(217, 169, 63, .45); color: var(--gold-light); text-decoration: none; transition: background .3s, color .3s, transform .3s var(--ease);
}
.contact-social a:hover, .footer-social a:hover { background: var(--gold-grad); color: var(--primary-ink); transform: translateY(-3px); }
.map-wrap { position: relative; height: 100%; min-height: 460px; background: var(--ivory-2); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 991.98px) { .map-wrap { min-height: 360px; } }
@media (max-width: 575.98px) { .map-wrap { min-height: 300px; } .contact-info .btn { width: 100%; justify-content: center; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding: 4.5rem 0 1.5rem; background: #080b24; color: rgba(251, 241, 220, .72); }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-mandala { position: absolute; width: 520px; max-width: none; right: -180px; bottom: -200px; opacity: .08; pointer-events: none; }
.footer-brand { margin-bottom: 1.2rem; }
.footer-brand .brand-name { font-size: 1.4rem; }
.footer-brand .brand-sub { letter-spacing: .05em; text-transform: none; font-size: .95rem; }
.footer-about { max-width: 420px; font-size: .97rem; }
.footer-motto { font-family: var(--font-hindi); font-size: 1.25rem; color: var(--gold); margin-bottom: .6rem; }
.footer-brand .brand-mark { width: 56px; height: 56px; }
.footer-title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--gold-light); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .35rem; }
.footer-links a { color: rgba(251, 241, 220, .75); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; transition: color .25s, transform .25s; word-break: break-word; }
.footer-links a:hover { color: var(--gold-light); transform: translateX(4px); }
.footer-contact li { display: flex; gap: .5rem; align-items: center; word-break: break-word; }
.footer-contact i { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(217, 169, 63, .15); font-size: .9rem; }
.to-top { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-grad); color: var(--primary-ink); text-decoration: none; transition: transform .3s var(--ease); }
.to-top:hover { color: var(--primary-ink); transform: translateY(-4px); }
@media (max-width: 575.98px) {
    .footer-contact { font-size: .9rem; }
    .site-footer .col-6 { flex: 0 0 100%; max-width: 100%; }
    .footer-links:not(.footer-contact) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
}

/* ---------- Program modal ---------- */
.theme-modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; background: var(--ivory); }
.theme-modal .pm-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.theme-modal .modal-x { top: .5rem; right: .5rem; background-color: rgba(11, 16, 51, .6); border-radius: 50%; padding: .9rem; }
.theme-modal .pm-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--primary); margin-bottom: 1rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .hero-halo, .shape, .marquee-track, .hero-title-hi .w > span { animation: none !important; }
    .js .reveal-hero, .js .hero-title-en, .js .hero-title-hi .w > span { opacity: 1; animation: none; }
}

/* ==========================================================================
   Responsive refinements (phones → tablets → laptops)
   ========================================================================== */

/* Long handles/emails never overflow their cards */
.social-handle, .contact-list a, .contact-list address, .footer-contact a { overflow-wrap: anywhere; }

/* Minimum readable size for the nameplate subtitle */
.arch-plate small { font-size: max(.68rem, 11px); }

/* ---- Tablets (768–991px): hero sits side by side ---- */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-inner > .row { --bs-gutter-x: 2rem; }
    .hero-title-hi { font-size: clamp(2.4rem, 6vw, 3.4rem); }
    .hero-desc { font-size: 1rem; }
    .hero-actions .btn-lg { padding: .75rem 1.3rem; font-size: .95rem; }
    .hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
    .hero-meta li { padding: .6rem .7rem; }
    .hero-meta b { font-size: 1.4rem; }
    .hero-meta b[lang="hi"] { font-size: 1.3rem; }
    .hero-visual { max-width: 290px; }
    .arch-plate { padding: .45rem 1.1rem .5rem; }
    .arch-plate span { font-size: 1.2rem; }
    .arch-plate small { letter-spacing: .08em; }
}

/* ---- Tablets & small laptops (768–1199px): one-sided timeline with side-by-side cards ---- */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .timeline-wrap { max-width: 860px; }
    .timeline-line { left: 9px; margin-left: 0; }
    .timeline-item, .timeline-item.is-right { width: auto; margin-left: 0; padding: 0 0 1.75rem 2.75rem; }
    .timeline-dot, .timeline-item.is-right .timeline-dot { left: 0; right: auto; }
    .timeline-card { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); }
    .timeline-img { aspect-ratio: auto; min-height: 210px; height: 100%; }
    .timeline-img img { position: absolute; inset: 0; }
    .timeline-body { display: flex; flex-direction: column; justify-content: center; }
}

/* ---- Laptops (992–1199px): keep the menu on one line ---- */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-nav .nav-link { padding: .5rem .6rem !important; font-size: .93rem; }
    .site-nav .nav-link::after { left: .6rem; right: .6rem; }
    .brand-name { font-size: 1.2rem; }
}

/* ---- Phones (≤575px) ---- */
@media (max-width: 575.98px) {
    .section { padding: 3.75rem 0; }
    .section-head { margin-bottom: 2rem; }

    /* Impact cards: compact icon-left rows instead of tall tiles */
    .impact-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; padding: 1.3rem; }
    .impact-icon { grid-row: span 2; width: 52px; height: 52px; font-size: 1.4rem; margin: 0; border-radius: 14px; }
    .impact-card h3 { font-size: 1.35rem; margin-bottom: .2rem; }
    .impact-card p { font-size: .95rem; }

    .g-cat { font-size: .7rem; }
    .hero-meta span { font-size: .72rem; }
    .agrasen-values .value { font-size: .9rem; }
    .contact-info .contact-sub { font-size: .74rem; letter-spacing: .12em; }
}

/* ---- Small phones (≤399px: 320–390px devices) ---- */
@media (max-width: 399.98px) {
    .hero-eyebrow { font-size: .7rem; letter-spacing: .1em; }
    .hero-tagline { gap: .3rem .45rem; font-size: .72rem; letter-spacing: .1em; }
    /* two cards on top, the third spans the full width as a row */
    .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-meta li:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: .6rem; }
    .hero-meta b { font-size: 1.3rem; }
    .hero-visual { max-width: 250px; }

    .contact-info { padding: 1.5rem 1.25rem; }
    .contact-list li { gap: .75rem; }
    .ci { width: 40px; height: 40px; font-size: 1rem; }
    .contact-list address, .contact-list a { font-size: .98rem; }
    .contact-info h3 { font-size: 1.55rem; }

    .stat-label { font-size: .76rem; }
    .program-card { flex-basis: 88%; }
}

/* Timeline card without a photo: indigo panel with a gold icon */
.timeline-img.is-empty {
    display: grid; place-items: center; min-height: 170px;
    background: radial-gradient(circle at 50% 40%, var(--primary) 0%, var(--primary-ink) 75%);
}
.timeline-img.is-empty::before {
    content: ""; position: absolute; inset: 0; opacity: .3;
    background-image: radial-gradient(circle, rgba(217, 169, 63, .6) 1px, transparent 1.6px); background-size: 22px 22px;
}
.timeline-img.is-empty i {
    position: relative; width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%;
    font-size: 2.1rem; color: var(--primary-ink); background: var(--gold-grad);
    box-shadow: 0 0 0 6px rgba(217, 169, 63, .18), 0 14px 30px -10px rgba(0, 0, 0, .6);
}
