/* =====================================================================
   Akhil Bharatiya Hindu Mahasabha (ABHM) — abhms.org.in
   Shared stylesheet — saffron theme
   ===================================================================== */

:root {
  --saffron:        #ef6c00;
  --saffron-dark:   #c43e00;
  --saffron-deep:   #8a2b00;
  --saffron-light:  #ff9c40;
  --gold:           #f4a900;
  --cream:          #fff8f0;
  --cream-2:        #fff1e2;
  --ink:            #2a2117;
  --muted:          #6f6354;
  --line:           #ecdfce;
  --white:          #ffffff;
  --green:          #1f7a3d;
  --maxw:           1180px;
  --radius:         14px;
  --shadow:         0 10px 30px rgba(138, 43, 0, .10);
  --shadow-sm:      0 4px 14px rgba(138, 43, 0, .08);
  --font:           'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-hi:        'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--saffron-deep); }
.hi { font-family: var(--font-hi); }

.section { padding: 72px 0; }
.section.alt { background: var(--cream-2); }
.section.tight { padding: 48px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head .kicker {
  display: inline-block; font-size: .78rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--saffron-dark); font-weight: 600; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--muted); margin-top: 12px; }
.section-head::after {
  content: ""; display: block; width: 74px; height: 4px; margin: 16px auto 0;
  background: linear-gradient(90deg, var(--gold), var(--saffron)); border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 50px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 2px solid transparent; transition: .25s ease; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--saffron), var(--saffron-dark)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(196,62,0,.32); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--saffron-dark); }
.btn-outline { background: #fff; color: var(--saffron-dark); border-color: var(--saffron); }
.btn-outline:hover { background: var(--saffron); color: #fff; }

/* =====================================================================
   Header
   ===================================================================== */
.topbar {
  background: linear-gradient(90deg, var(--saffron-deep), var(--saffron-dark));
  color: #ffe9d4; font-size: .82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar .tb-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar .tb-contact span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .tb-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.topbar .tb-menu { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.topbar .tb-menu li { white-space: nowrap; }
.topbar .tb-menu li + li::before { content: "|"; color: rgba(255,255,255,.35); margin: 0 12px; }
.topbar .tb-menu a { color: #ffe9d4; font-weight: 500; }
.topbar .tb-menu a:hover, .topbar .tb-menu li.active a { color: var(--gold); }
.topbar .tb-socials { display: flex; gap: 8px; }
.topbar .tb-socials a {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.15); color: #fff; font-size: .82rem; line-height: 1;
  transition: .22s; border: 1px solid rgba(255,255,255,.2);
}
.topbar .tb-socials a:hover { background: var(--gold); color: var(--saffron-deep); transform: translateY(-1px); }

.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: var(--shadow-sm); }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 66px; height: 66px; border-radius: 50%; box-shadow: 0 0 0 3px var(--cream-2); }
.brand .brand-text strong { display: block; font-family: var(--font-hi); font-size: 1.35rem; color: var(--saffron-deep); line-height: 1.1; }
.brand .brand-text small { display: block; font-size: .72rem; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav > ul > li > a {
  display: block; padding: 10px 13px; font-weight: 500; font-size: .92rem; color: var(--ink);
  border-radius: 8px; transition: .2s;
}
.nav > ul > li > a:hover, .nav > ul > li.active > a { color: var(--saffron-dark); background: var(--cream-2); }
.nav .has-dd { position: relative; }
.nav .has-dd > a::after { content: "▾"; font-size: .7rem; margin-left: 5px; opacity: .7; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: #fff;
  border-radius: 12px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .22s; border-top: 3px solid var(--saffron);
}
.nav .has-dd:hover .dropdown, .nav .has-dd.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 14px; border-radius: 8px; font-size: .88rem; color: var(--ink); }
.dropdown a:hover { background: var(--cream-2); color: var(--saffron-dark); }

.nav-cta { margin-left: 8px; }

/* Logo header inside the mobile slide-in menu (hidden on desktop) */
.nav-brand { display: none; }

/* Brand name next to logo + header action buttons — mobile only */
.brand-text { display: none; }
.header-actions { display: none; }
.nav-socials { display: none; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 26px; height: 3px; background: var(--saffron-dark); border-radius: 2px; transition: .3s; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  background-color: var(--saffron-deep);
  background-image:
    linear-gradient(135deg, rgba(138,43,0,.82) 0%, rgba(196,62,0,.72) 55%, rgba(239,108,0,.68) 100%),
    url("../img/banner.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/logo.webp") center/420px no-repeat; opacity: .06;
}
.hero .container { position: relative; padding: 77px 20px; }
.hero .om { font-size: 2.4rem; color: var(--gold); margin-bottom: 8px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-family: var(--font-hi); }
.hero .sub { font-size: clamp(1rem, 2.4vw, 1.3rem); color: #ffe9d4; margin: 14px auto 8px; max-width: 760px; }
.hero .lead { color: #ffd9b3; max-width: 720px; margin: 14px auto 30px; }
.hero .hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .slogans { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .slogans span {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 7px 16px; border-radius: 50px; font-weight: 600; color: var(--gold); font-size: .9rem;
}

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  background-color: var(--saffron-deep);
  background-image:
    linear-gradient(135deg, rgba(138,43,0,.84), rgba(196,62,0,.78)),
    url("../img/banner.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: url("../img/logo.webp") right -40px center/260px no-repeat; opacity: .07; }
.page-banner .container { position: relative; padding: 56px 20px; }
.page-banner h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.breadcrumb { margin-top: 10px; color: #ffd9b3; font-size: .9rem; }
.breadcrumb a:hover { color: #fff; }

/* =====================================================================
   Cards / grids
   ===================================================================== */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: .25s; height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--saffron-light); }
.card .ic {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 16px; color: #fff;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--saffron-deep); }
.card p { color: var(--muted); font-size: .94rem; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.split .kicker { color: var(--saffron-dark); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: .78rem; }
.split p { color: var(--muted); margin: 14px 0; }
.tick { margin: 16px 0; }
.tick li { display: flex; gap: 10px; align-items: flex-start; margin: 9px 0; color: var(--ink); }
.tick li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(135deg, var(--saffron-dark), var(--saffron-deep)); color: #fff; }
.stats .grid-4 { gap: 20px; }
.stat { text-align: center; padding: 18px; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--gold); }
.stat .lbl { color: #ffe9d4; font-size: .92rem; margin-top: 4px; }

/* ---------- Leaders ---------- */
.leader { text-align: center; }
.leader .photo {
  width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover;
  border: 4px solid #fff; box-shadow: var(--shadow); background: var(--cream-2);
}
.leader .photo.placeholder { display: grid; place-items: center; font-size: 3rem; color: var(--saffron-light); }
.leader h4 { font-size: 1.1rem; color: var(--saffron-deep); }
.leader .role { color: var(--saffron-dark); font-weight: 600; font-size: .9rem; }
.leader .meta { color: var(--muted); font-size: .85rem; }

/* ---------- Committee list ---------- */
.committee-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.committee-tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 18px;
  border-radius: 50px; cursor: pointer; font-weight: 500; font-size: .88rem; transition: .2s;
}
.committee-tabs button.active, .committee-tabs button:hover { background: var(--saffron); color: #fff; border-color: var(--saffron); }
.committee-note {
  background: var(--cream-2); border: 1px dashed var(--saffron-light); border-radius: var(--radius);
  padding: 22px; text-align: center; color: var(--muted);
}

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid .g-item {
  aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--cream-2), #fff); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--saffron-light); font-size: 2.4rem;
}
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.gallery-grid .g-item:hover img { transform: scale(1.07); }

/* ---------- Video ---------- */
.video-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); }
.video-card .frame { aspect-ratio: 16/9; background: #000; }
.video-card .frame iframe { width: 100%; height: 100%; border: 0; }
.video-card .vbody { padding: 16px 18px; }
.video-card h4 { color: var(--saffron-deep); font-size: 1.02rem; }

/* ---------- News / Events list ---------- */
.post { display: grid; grid-template-columns: 110px 1fr; gap: 20px; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition:.2s; }
.post:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post .date { text-align:center; background: linear-gradient(135deg,var(--saffron),var(--saffron-dark)); color:#fff; border-radius:12px; padding:14px 8px; align-self:start; }
.post .date .d { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.post .date .m { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; }
.post .date .y { font-size: .75rem; opacity: .85; }
.post h3 { font-size: 1.15rem; margin-bottom: 6px; }
.post .tag { display:inline-block; background: var(--cream-2); color: var(--saffron-dark); font-size:.72rem; padding:3px 10px; border-radius:50px; font-weight:600; margin-bottom:8px; }
.post p { color: var(--muted); font-size: .92rem; }

/* ---------- Forms ---------- */
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display:flex; flex-direction:column; gap:6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit;
  font-size: .95rem; background: var(--cream); transition: .2s; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--saffron); background:#fff; box-shadow: 0 0 0 3px rgba(239,108,0,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #c0392b; background: #fdecec; }
.field-error { color: #c0392b; font-size: .8rem; margin-top: 4px; }
.form-success { display:none; background:#eafaf0; border:1px solid #9bdcb4; color:#1f7a3d; padding:14px 18px; border-radius:10px; margin-bottom:18px; font-weight:600; }

/* ---------- Info / contact ---------- */
.info-list li { display:flex; gap:14px; align-items:flex-start; margin: 16px 0; }
.info-list .ic { width:44px; height:44px; flex:0 0 44px; border-radius:12px; display:grid; place-items:center; color:#fff; font-size:1.1rem; background: linear-gradient(135deg,var(--saffron),var(--saffron-dark)); }
.info-list .it strong { display:block; color: var(--saffron-deep); }
.info-list .it span, .info-list .it a { color: var(--muted); font-size:.94rem; }
.map-embed { border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); border:1px solid var(--line); }
.map-embed iframe { width:100%; height:340px; border:0; display:block; }

/* ---------- Reg details table ---------- */
.reg-table { width:100%; border-collapse: collapse; background:#fff; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); border:1px solid var(--line); }
.reg-table th, .reg-table td { text-align:left; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size:.94rem; }
.reg-table th { background: var(--cream-2); color: var(--saffron-deep); width: 42%; font-weight:600; }
.reg-table tr:last-child th, .reg-table tr:last-child td { border-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--saffron), var(--saffron-dark)); color:#fff; text-align:center; }
.cta-band h2 { color:#fff; font-size: clamp(1.5rem,3vw,2.2rem); }
.cta-band p { color:#ffe9d4; max-width:620px; margin: 12px auto 26px; }

/* ---------- Donation ---------- */
.donate-box { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:30px; box-shadow:var(--shadow-sm); }
.donate-box h3 { color: var(--saffron-deep); margin-bottom: 12px; }
.bank-row { display:flex; justify-content:space-between; gap:10px; padding:9px 0; border-bottom:1px dashed var(--line); font-size:.94rem; }
.bank-row span:first-child { color: var(--muted); }
.bank-row span:last-child { font-weight:600; color: var(--ink); }

/* ---------- Crowdfunding ---------- */
.campaign { background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; height:100%; transition:.25s; }
.campaign:hover { transform:translateY(-5px); box-shadow:var(--shadow); border-color:var(--saffron-light); }
.campaign .c-media { aspect-ratio:16/9; display:grid; place-items:center; font-size:2.8rem; color:#fff; background:linear-gradient(135deg,var(--saffron),var(--saffron-dark)); position:relative; overflow:hidden; }
.campaign .c-media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.campaign:hover .c-media img { transform:scale(1.06); }
.campaign .c-cat { position:absolute; top:12px; left:12px; z-index:2; background:rgba(255,255,255,.92); color:var(--saffron-dark); font-size:.72rem; font-weight:600; padding:3px 10px; border-radius:50px; box-shadow:0 2px 8px rgba(0,0,0,.15); }
.campaign .c-body { padding:20px; display:flex; flex-direction:column; flex:1; }
.campaign h3 { font-size:1.1rem; color:var(--saffron-deep); margin-bottom:8px; }
.campaign p { color:var(--muted); font-size:.9rem; margin-bottom:14px; flex:1; }
.progress { height:10px; background:var(--cream-2); border-radius:50px; overflow:hidden; }
.progress > span { display:block; height:100%; width:0; border-radius:50px; background:linear-gradient(90deg,var(--gold),var(--saffron)); transition:width 1.4s cubic-bezier(.2,.7,.2,1); }
.c-stats { display:flex; justify-content:space-between; font-size:.85rem; color:var(--muted); margin:10px 0 16px; flex-wrap:wrap; gap:4px; }
.c-stats b { color:var(--saffron-deep); }
.c-pct { text-align:right; font-size:.78rem; color:var(--saffron-dark); font-weight:600; margin-top:6px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 1.25rem; margin: 30px 0 10px; color: var(--saffron-deep); }
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--ink); margin: 10px 0; }
.legal ul { list-style: disc; padding-left: 22px; margin: 10px 0; }
.legal li { margin: 7px 0; color: var(--ink); }
.legal a { color: var(--saffron-dark); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.footer-legal { margin-bottom: 10px; }
.footer-legal a { color: #cdbfae; }
.footer-legal a:hover { color: var(--saffron-light); }
.footer-credit { margin-top: 10px; font-size: .82rem; color: #9b8d7c; }
.footer-credit a { color: var(--saffron-light); font-weight: 600; }

/* ---------- Photo cards (objectives / programs) ---------- */
.card.card-photo { padding: 0; overflow: hidden; }
.card.card-photo .card-media { aspect-ratio: 16/9; overflow: hidden; }
.card.card-photo .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card.card-photo:hover .card-media img { transform: scale(1.06); }
.card.card-photo .card-pad { padding: 22px; }
.card.card-photo::after { z-index: 3; }

/* ---------- Mobile bottom navigation ---------- */
.bottom-nav { display: none; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: #1c140d; color: #d8cabb; padding-top: 60px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; }
.site-footer h4 { color:#fff; margin-bottom: 18px; font-size: 1.05rem; position:relative; padding-bottom:10px; }
.site-footer h4::after { content:""; position:absolute; left:0; bottom:0; width:38px; height:3px; background: var(--saffron); border-radius:3px; }
.footer-brand { display:flex; gap:14px; align-items:center; margin-bottom:16px; }
.footer-brand img { width:56px; height:56px; border-radius:50%; }
.footer-brand strong { font-family: var(--font-hi); font-size:1.2rem; color:#fff; display:block; }
.site-footer p { font-size:.9rem; color:#bcae9d; }
.footer-links li { margin:9px 0; }
.footer-links a { font-size:.92rem; color:#cdbfae; transition:.2s; }
.footer-links a:hover { color: var(--saffron-light); padding-left:5px; }
.footer-contact li { display:flex; gap:10px; margin:11px 0; font-size:.9rem; color:#cdbfae; }
.footer-contact .ic { color: var(--saffron-light); }
.socials { display:flex; gap:10px; margin-top:16px; }
.socials a { width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:#2c2014; color:#fff; transition:.25s; }
.socials a:hover { background: var(--saffron); transform: translateY(-3px); }
.footer-bottom { border-top:1px solid #2c2014; margin-top:46px; padding:18px 0; text-align:center; font-size:.85rem; color:#9b8d7c; }
.footer-bottom a { color: var(--saffron-light); }

/* ---------- Floating slogans ribbon ---------- */
.ribbon { background: var(--gold); color: var(--saffron-deep); text-align:center; font-weight:700; padding:8px; font-size:.9rem; letter-spacing:.5px; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .media { order: -1; }
}
@media (max-width: 860px) {
  .topbar .container { justify-content: center; }
  .menu-toggle { display: flex; }
  /* fixed bottom navigation */
  body { padding-bottom: 64px; }
  #toTop { bottom: 76px; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    background: linear-gradient(90deg, var(--saffron-dark), var(--saffron));
    border-top: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 -4px 18px rgba(138,43,0,.28); justify-content: space-around;
    padding: 6px 2px;
  }
  .bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 4px 2px; color: rgba(255,255,255,.85); font-size: .64rem; text-align: center; line-height: 1.1;
  }
  .bottom-nav a .bn-ic { font-size: 1.2rem; line-height: 1; }
  .bottom-nav a.active { color: #fff; font-weight: 700; }
  .bottom-nav a.active .bn-lb { color: var(--gold); }
  .bottom-nav a.active .bn-ic { transform: translateY(-1px); }
  /* Mobile header: logo | name (2 lines) | सदस्य बनें | hamburger — single row */
  .header-main .container { flex-wrap: nowrap; gap: 8px; align-items: center; }
  .brand { order: 1; gap: 8px; min-width: 0; flex-shrink: 1; }
  .brand img { width: 44px; height: 44px; }
  .menu-toggle { order: 3; flex-shrink: 0; }
  .brand-text {
    display: block; font-size: .76rem; line-height: 1.12; font-weight: 700;
    color: var(--saffron-deep); white-space: nowrap;
  }
  .nav-socials {
    display: flex; gap: 10px; justify-content: center; margin-top: 18px;
    padding-top: 18px; border-top: 1px solid var(--line);
  }
  .nav-socials a {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: var(--cream-2); color: var(--saffron-dark); font-size: .9rem; transition: .25s;
  }
  .nav-socials a:hover { background: var(--saffron); color: #fff; transform: translateY(-2px); }
  .header-actions {
    display: flex; order: 2; margin-left: auto; flex-shrink: 0;
  }
  .header-actions .btn { padding: 7px 12px; font-size: .72rem; }
  .nav {
    position: fixed; top: 0; right: -100%; width: 290px; max-width: 85vw; height: 100vh;
    background: #fff; flex-direction: column; align-items: stretch; padding: 18px 18px 30px;
    box-shadow: -10px 0 40px rgba(0,0,0,.2); transition: right .3s ease; overflow-y: auto; z-index: 1200;
  }
  .nav.open { right: 0; }
  .nav-brand {
    display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .nav-brand img { width: 46px; height: 46px; border-radius: 50%; }
  .nav-brand span { font-size: 1rem; line-height: 1.2; color: var(--saffron-deep); font-weight: 700; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav > ul > li > a { padding: 12px 14px; border-radius: 8px; }
  .nav .has-dd > a::after { float: right; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border-top: 0; max-height: 0; overflow: hidden; transition: max-height .3s; padding: 0 0 0 12px;
    background: var(--cream);
  }
  .nav .has-dd.open .dropdown { max-height: 600px; padding: 6px 0 6px 12px; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1100; opacity: 0; visibility: hidden; transition: .3s; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 720px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 52px 0; }
  /* responsive hero / banner height */
  .hero .container { padding: 42px 18px; }
  .hero::before { background-size: 300px; }
  .page-banner .container { padding: 42px 18px; }
  /* hide email in the top bar on mobile (keep phone) */
  .topbar .tb-contact span:nth-child(2) { display: none; }
}
@media (max-width: 480px) {
  .hero .container { padding: 32px 16px; }
  .hero .om { font-size: 2rem; margin-bottom: 4px; }
  .hero .slogans { margin-top: 22px; }
  .page-banner .container { padding: 34px 16px; }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
  .post .date { display: inline-flex; gap: 8px; align-items: baseline; }
  .reg-table th { width: 50%; }
  .topbar .tb-contact { font-size: .76rem; gap: 12px; }
  .brand .brand-text small { display: none; }
  #toTop { bottom: 16px; right: 16px; }
}

/* =====================================================================
   Animations & pro polish
   ===================================================================== */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes zoomIn   { from { opacity: 0; transform: scale(.85); }      to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; }                              to { opacity: 1; } }
@keyframes floaty   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes shine    { 0% { left: -60%; } 60%,100% { left: 130%; } }

/* ---- Hero entrance (plays on load) ---- */
.hero .om       { animation: zoomIn .8s .10s both, floaty 4.5s 1s ease-in-out infinite; }
.hero h1        { animation: fadeUp .9s .25s both; }
.hero .sub      { animation: fadeUp .9s .40s both; }
.hero .lead     { animation: fadeUp .9s .55s both; }
.hero .hero-btns{ animation: fadeUp .9s .70s both; }
.hero .slogans  { animation: fadeUp .9s .85s both; }
.hero .slogans span { transition: transform .25s, background .25s; }
.hero .slogans span:hover { transform: translateY(-3px) scale(1.04); background: rgba(255,255,255,.2); }

/* ---- Interior banner entrance ---- */
.page-banner h1          { animation: fadeUp .7s .10s both; }
.page-banner .breadcrumb { animation: fadeUp .7s .28s both; }

/* ---- Scroll reveal (gated by .anim added before first paint) ---- */
.anim .card, .anim .section-head, .anim .post, .anim .leader,
.anim .split .media, .anim .split .content, .anim .video-card,
.anim .reg-table, .anim .form-card, .anim .info-list li,
.anim .gallery-grid .g-item, .anim .donate-box, .anim .map-embed,
.anim .committee-tabs, .anim .committee-note, .anim .stat, .anim .campaign,
.anim [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s ease, transform .75s cubic-bezier(.2,.75,.25,1);
  will-change: opacity, transform;
}
.anim .in-view { opacity: 1 !important; transform: none !important; }

/* stagger within grids */
.anim .grid > *:nth-child(2),  .anim .gallery-grid > *:nth-child(2)  { transition-delay: .07s; }
.anim .grid > *:nth-child(3),  .anim .gallery-grid > *:nth-child(3)  { transition-delay: .14s; }
.anim .grid > *:nth-child(4),  .anim .gallery-grid > *:nth-child(4)  { transition-delay: .21s; }
.anim .grid > *:nth-child(5),  .anim .gallery-grid > *:nth-child(5)  { transition-delay: .28s; }
.anim .grid > *:nth-child(6),  .anim .gallery-grid > *:nth-child(6)  { transition-delay: .35s; }
.anim .grid > *:nth-child(7),  .anim .gallery-grid > *:nth-child(7)  { transition-delay: .42s; }
.anim .grid > *:nth-child(8),  .anim .gallery-grid > *:nth-child(8)  { transition-delay: .49s; }
.anim .grid > *:nth-child(9),  .anim .gallery-grid > *:nth-child(9)  { transition-delay: .56s; }
.anim .info-list li:nth-child(2){ transition-delay:.06s } .anim .info-list li:nth-child(3){ transition-delay:.12s }
.anim .info-list li:nth-child(4){ transition-delay:.18s } .anim .info-list li:nth-child(5){ transition-delay:.24s }

/* ---- Card hover shine sweep ---- */
.card { position: relative; overflow: hidden; }
.card::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); pointer-events: none; opacity: 0;
}
.card:hover::after { opacity: 1; animation: shine .9s ease; }
.card .ic { transition: transform .35s ease, box-shadow .35s ease; }
.card:hover .ic { transform: translateY(-4px) rotate(-6deg); box-shadow: 0 10px 22px rgba(196,62,0,.35); }

/* ---- Leader photo ring ---- */
.leader .photo { transition: transform .35s ease, box-shadow .35s ease; }
.card.leader:hover .photo { transform: scale(1.06); box-shadow: 0 0 0 6px var(--cream-2), var(--shadow); }

/* ---- Nav link underline ---- */
.nav > ul > li > a { position: relative; }
.nav > ul > li > a::before {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--saffron); transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.nav > ul > li:not(.has-dd) > a:hover::before, .nav > ul > li.active:not(.has-dd) > a::before { transform: scaleX(1); }

/* ---- Buttons ---- */
.btn { position: relative; overflow: hidden; }
.btn:active { transform: scale(.97); }

/* ---- Sticky header scroll state ---- */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(138,43,0,.16); }
.site-header.scrolled .header-main .container { padding-top: 6px; padding-bottom: 6px; }
.brand img { transition: width .3s ease, height .3s ease; }
.site-header.scrolled .brand img { width: 52px; height: 52px; }

/* ---- Back to top ---- */
#toTop {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark)); color: #fff;
  font-size: 1.3rem; line-height: 1; box-shadow: 0 8px 22px rgba(196,62,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.8); transition: .3s ease;
}
#toTop.show { opacity: 1; visibility: visible; transform: none; }
#toTop:hover { transform: translateY(-3px) scale(1.06); }

/* ---- Gallery lightbox ---- */
.gallery-grid .g-item img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(20,12,6,.92);
  display: flex; align-items: center; justify-content: center; padding: 30px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92%; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: zoomIn .3s ease; }
.lightbox .lb-close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* ---- Top-bar social hover spin ---- */
.topbar .tb-socials a:hover { animation: none; }

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .anim .card, .anim .section-head, .anim .post, .anim .leader,
  .anim .split .media, .anim .split .content, .anim .video-card,
  .anim .reg-table, .anim .form-card, .anim .info-list li,
  .anim .gallery-grid .g-item, .anim .donate-box, .anim .map-embed,
  .anim .committee-tabs, .anim .committee-note, .anim .stat, .anim .campaign,
  .anim [data-reveal] { opacity: 1 !important; transform: none !important; }
}
