/* ==========================================================================
   BASE ICON RULE — MUST BE FIRST
   All SVG icons from sprite.svg need explicit dimensions.
   Without this, icons render at full SVG natural size (HUGE).
   ========================================================================== */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    flex-shrink: 0;
}

/* Sprite container: hidden, zero size */
svg.sprite-container,
body > svg:first-of-type {
    display: none !important;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ==========================================================================
   96 Kuli Maratha — 40 Gaon Vivah Parichay Mandal
   Premium Redesign: Deep Saffron + Dark Maroon palette
   Primary: #CC4400 (deep saffron-red, Maratha fire)
   Secondary: #2C0A00 / #1A0500 (dark maroon, heritage depth)
   ========================================================================== */

:root {
  /* Primary — deep Maratha saffron-red: bold, vivid, unmistakably Maratha */
  --color-primary:        #CC4400;
  --color-primary-dark:   #A33600;
  --color-primary-light:  #FDEADC;
  --color-primary-xlight: #FEF5EE;

  /* Gold accent */
  --color-gold:           #D4940A;
  --color-gold-light:     #FBF0CC;
  --color-gold-dark:      #A87200;

  /* Secondary: deep maroon — structural color for hero bg, footer, admin sidebar */
  --color-secondary:      #2C0A00;
  --color-secondary-dark: #1A0500;
  --color-secondary-mid:  #4A1800;
  --color-secondary-light:#F5EAE4;

  /* Heritage gradient — the signature of this palette */
  --gradient-fire:        linear-gradient(135deg, #CC4400 0%, #2C0A00 100%);
  --gradient-hero:        linear-gradient(160deg, #1A0500 0%, #2C0A00 50%, #4A1800 100%);
  --gradient-warm:        linear-gradient(135deg, #FEF5EE 0%, #FBF0CC 100%);
  --gradient-primary:     linear-gradient(135deg, #CC4400 0%, #A33600 100%);

  /* Surface / background */
  --color-bg:             #FFFBF7;
  --color-surface:        #FFF5EE;
  --color-surface-2:      #FDE8D8;

  /* Ink */
  --color-ink:            #1A0500;
  --color-ink-soft:       #4A1800;
  --color-ink-muted:      #8C5A40;

  /* Supporting */
  --color-green:          #1F6B35;
  --color-green-light:    #E0F0E8;
  --color-border:         #EEDDD4;
  --color-border-soft:    #F5EDE6;

  /* Typography */
  --font-display: 'Tiro Devanagari Marathi', 'Poppins', serif;
  --font-body:    'Poppins', 'Tiro Devanagari Marathi', sans-serif;
  --font-data:    'Poppins', monospace;

  /* Spacing / radii */
  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  /* Shadows */
  --shadow-soft:       0 4px 24px rgba(44, 10, 0, 0.08);
  --shadow-card:       0 2px 16px rgba(44, 10, 0, 0.09);
  --shadow-card-hover: 0 8px 32px rgba(204, 68, 0, 0.18);
  --shadow-lift:       0 12px 32px rgba(204, 68, 0, 0.22);
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background-color: var(--color-bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; }

/* ==========================================================================
   Scroll-reveal animation system
   IntersectionObserver adds .is-visible when element enters viewport.
   Keep transitions short — "lightweight" is in the brief.
   Respects prefers-reduced-motion unconditionally.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.08s; }
  .reveal-delay-2 { transition-delay: 0.16s; }
  .reveal-delay-3 { transition-delay: 0.24s; }
  .reveal-delay-4 { transition-delay: 0.32s; }

  /* Hero entrance — staggered, runs once on page load */
  @keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .hero-animate-1 { animation: fadeSlideUp 0.55s ease both; }
  .hero-animate-2 { animation: fadeSlideUp 0.55s 0.12s ease both; }
  .hero-animate-3 { animation: fadeSlideUp 0.55s 0.24s ease both; }
  .hero-animate-4 { animation: fadeSlideUp 0.55s 0.36s ease both; }
  .hero-animate-img { animation: fadeIn 0.7s 0.2s ease both; }

  /* Stagger profile / committee cards */
  .stagger-child:nth-child(1) { transition-delay: 0s; }
  .stagger-child:nth-child(2) { transition-delay: 0.06s; }
  .stagger-child:nth-child(3) { transition-delay: 0.12s; }
  .stagger-child:nth-child(4) { transition-delay: 0.18s; }
  .stagger-child:nth-child(5) { transition-delay: 0.24s; }
  .stagger-child:nth-child(6) { transition-delay: 0.30s; }
  .stagger-child:nth-child(7) { transition-delay: 0.36s; }
  .stagger-child:nth-child(8) { transition-delay: 0.42s; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-animate-1, .hero-animate-2,
  .hero-animate-3, .hero-animate-4, .hero-animate-img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal.is-visible { opacity: 1; }
}

/* ==========================================================================
   Toran Divider — signature decorative element.
   Mango-leaf / gejje pattern evoking the toran hung over doorways.
   ========================================================================== */

.toran-divider {
  width: 100%;
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cpath d='M28 0 C28 0 18 4 18 12 C18 18 23 22 28 22 C33 22 38 18 38 12 C38 4 28 0 28 0 Z' fill='%23E07020' opacity='0.22'/%3E%3Ccircle cx='28' cy='24' r='2.5' fill='%23C8A04A' opacity='0.45'/%3E%3Cpath d='M0 1 H56' stroke='%23E07020' stroke-width='1' opacity='0.18'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center top;
  margin: 0;
}
.toran-divider--lg {
  height: 40px;
  background-size: 80px 40px;
}

/* ==========================================================================
   Navbar — accent bar on top, clean white body
   ========================================================================== */

/* ==========================================================================
   TOP BAR + NAVBAR — complete rewrite 2025
   Design tokens from spec:
     Primary:    #C45A12   Secondary:  #7A2E0E
     Background: #FFF9F4   Text:       #2B2B2B
     Border:     #E8E8E8
   ========================================================================== */

/* Remove old body::before accent bar */
body::before { display: none; }

:root {
  --navbar-h: 100px;   /* announce(40px) + nav(60px) — JS measures actual */
  /* Override colours to match spec */
  --c-primary:    #C45A12;
  --c-secondary:  #7A2E0E;
  --c-bg:         #FFF9F4;
  --c-text:       #2B2B2B;
  --c-border:     #E8E8E8;
  --c-primary-l:  #FDE8D8;
  /* 8-px spacing system */
  --sp1: 8px; --sp2: 16px; --sp3: 24px; --sp4: 32px; --sp5: 40px;
  --sp6: 48px; --sp7: 56px; --sp8: 64px; --sp10: 80px;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  padding-top: var(--navbar-h, 100px);
  overflow-x: hidden;
}

/* ── ANNOUNCEMENT BAR ───────────────────────────────────────────────────── */
.announce-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(90deg, var(--c-secondary) 0%, #9C3A10 100%);
  z-index: 1060;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.announce-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--sp3);
  gap: var(--sp2);
  height: 100%;
}
.announce-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.2);
  margin-right: var(--sp1);
}
.announce-label .icon { width: 0.9em; height: 0.9em; }
.announce-track-wrap { flex: 1; position: relative; height: 100%; overflow: hidden; }
.announce-item {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announce-item .icon { flex-shrink: 0; width: 0.85em; height: 0.85em; color: var(--color-gold, #D4940A); }
.announce-item.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.announce-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  flex-shrink: 0;
}
.announce-close:hover { color: #fff; }
.announce-close .icon { width: 0.85em; height: 0.85em; }

/* ── NAVBAR ──────────────────────────────────────────────────────────────── */
.navbar-mandal {
  position: fixed;
  top: 40px;    /* below announce bar */
  left: 0; right: 0;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  box-shadow: none;
  z-index: 1050;
  transition: box-shadow 0.25s ease, top 0.25s ease;
}
/* When user scrolls: announce bar hides, nav slides up and gets shadow */
.navbar-mandal.navbar-scrolled {
  top: 0;
  box-shadow: 0 2px 20px rgba(44,10,0,0.1);
}
.navbar-mandal.navbar-scrolled ~ #announceBar,
body.bar-hidden .announce-bar { display: none; }

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp3);
  padding: 0 var(--sp3);
}
@media (min-width: 1400px) { .navbar-inner { max-width: 1400px; margin: 0 auto; } }

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp2);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.nav-brand-name {
  font-family: 'Tiro Devanagari Marathi', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-secondary);
  white-space: nowrap;
}
.nav-brand-sub {
  font-size: 0.62rem;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.nav-link {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  position: relative;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
  pointer-events: none;
}
.nav-link:hover { color: var(--c-primary); background: var(--c-primary-l); }
.nav-link:hover::after, .nav-link.nav-active::after { transform: scaleX(1); }
.nav-link.nav-active { color: var(--c-primary); font-weight: 600; }

/* Right action area */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp1);
  flex-shrink: 0;
}

/* Language pill toggle */
.lang-pill-wrap {
  display: flex;
  background: var(--c-border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.lang-pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.lang-pill:hover { color: var(--c-primary); text-decoration: none; }
.lang-active {
  background: var(--c-primary);
  color: #fff !important;
  box-shadow: 0 1px 6px rgba(196,90,18,0.25);
}

/* Navbar buttons */
.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--c-primary);
  color: #fff;
  border: 2px solid var(--c-primary);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  line-height: 1;
}
.btn-nav-primary:hover {
  background: var(--c-secondary);
  border-color: var(--c-secondary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(196,90,18,0.35);
}
.btn-nav-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  line-height: 1;
}
.btn-nav-outline:hover {
  background: var(--c-primary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-nav-ghost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  background: transparent;
  color: #888;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.18s;
  line-height: 1;
}
.btn-nav-ghost:hover { border-color: #999; color: var(--c-text); }
.btn-nav-ghost .icon { width: 1.1em; height: 1.1em; }
.btn-nav-primary .icon, .btn-nav-outline .icon { width: 0.95em; height: 0.95em; }

/* ── HAMBURGER ────────────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-hamburger:hover { background: var(--c-primary-l); border-color: var(--c-primary); }
.ham-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s;
}
.nav-hamburger.open .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open .ham-bar:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ──────────────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 1049;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding-top: 72px;   /* below navbar */
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-inner { padding: var(--sp3); }
.mobile-nav-links { list-style: none; margin: 0 0 var(--sp3); padding: 0; }
.mobile-nav-links li { border-bottom: 1px solid var(--c-border); }
.mob-link {
  display: flex;
  align-items: center;
  padding: 15px var(--sp1);
  color: var(--c-text);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, padding-left 0.18s;
}
.mob-link:hover, .mob-link.nav-active {
  color: var(--c-primary);
  padding-left: 16px;
  text-decoration: none;
}
.mob-link .icon { color: var(--c-primary); width: 1.1em; height: 1.1em; }
.mobile-actions { padding-top: var(--sp2); }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1399.98px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-brand-sub { display: none; }
  .nav-logo-img { width: 44px; height: 44px; }
  .navbar-mandal { height: 58px; }
  .announce-bar { height: 36px; }
  .announce-bar .announce-label { display: none; }
}
@media (max-width: 575.98px) {
  .nav-logo-img { width: 38px; height: 38px; }
  .nav-brand-name { font-size: 0.88rem; }
  .announce-item { font-size: 0.72rem; }
  .navbar-inner { padding: 0 var(--sp2); }
}

.btn-mandal {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.6rem;
  transition: background-color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  letter-spacing: 0.01em;
}
.btn-mandal:hover, .btn-mandal:focus-visible {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.btn-mandal:active { transform: translateY(0); box-shadow: none; }

.btn-mandal-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.5rem;
  transition: background-color 0.18s, color 0.18s, transform 0.18s;
}
.btn-mandal-outline:hover, .btn-mandal-outline:focus-visible {
  background-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-mandal-outline:active { transform: translateY(0); }

.btn-gold {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background-color 0.18s, transform 0.18s;
}
.btn-gold:hover { background-color: var(--color-gold-dark); border-color: var(--color-gold-dark); color: #fff; transform: translateY(-2px); }

/* ==========================================================================
   Hero — Light warm peach background (matching screenshot reference).
   Cream/peach bg, dark ink text, saffron highlight, large orange circle illustration.
   ========================================================================== */

.hero {
  background: linear-gradient(145deg, #FFF5EE 0%, #FFE8D4 50%, #FFF0E0 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
}

/* Subtle decorative dots/spots in background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 4px at 20% 30%, rgba(204,68,0,0.12) 0%, transparent 100%),
    radial-gradient(circle 3px at 75% 20%, rgba(204,68,0,0.08) 0%, transparent 100%),
    radial-gradient(circle 5px at 45% 70%, rgba(204,68,0,0.07) 0%, transparent 100%),
    radial-gradient(circle 3px at 85% 60%, rgba(212,148,10,0.1) 0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.hero::after { display: none; }

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(204,68,0,0.1);
  border: 1px solid rgba(204,68,0,0.2);
  border-radius: 999px;
  padding: 0.38rem 1rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  color: var(--color-ink);
  font-weight: 800;
}
.hero h1 .hero-highlight {
  color: var(--color-primary);
  display: block;
}

.hero p.lead {
  color: var(--color-ink-soft);
  font-size: 1.05rem;
  max-width: 500px;
  line-height: 1.7;
  margin-top: 0.75rem;
}

/* Hero illustration — big orange circle with couple inside */
.hero-visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual {
  background: linear-gradient(155deg, #FF7A2F 0%, #CC4400 55%, #A33600 100%);
  border-radius: 50% 50% 50% 50% / 52% 52% 48% 48%;
  width: 420px;
  height: 460px;
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(204,68,0,0.3), 0 4px 16px rgba(204,68,0,0.2);
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,180,80,0.35) 0%, transparent 60%);
  pointer-events: none;
}
.hero-visual-icon {
  font-size: 4rem;
  color: rgba(255,255,255,0.2);
  position: relative;
  z-index: 1;
}

/* Hero couple illustration (SVG inline) */
.hero-illustration {
  position: relative;
  z-index: 1;
  width: 78%;
  max-width: 290px;
  margin-bottom: -4px;
}

/* Floating stat badges on hero */
.hero-badge {
  position: absolute;
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-ink);
  box-shadow: 0 8px 24px rgba(44,10,0,0.15);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 10;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.8);
}
.hero-badge .badge-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-badge .badge-dot.gold { background: var(--color-gold); }
.hero-badge .badge-dot .icon { color: #fff; width: 0.7em; height: 0.7em; }
.hero-badge.badge-verified { top: 18%; left: -8%; }
.hero-badge.badge-matches  { bottom: 22%; right: -5%; }

/* Hero bottom stat pills */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}
.hero-stat-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(204,68,0,0.08);
  border: 1px solid rgba(204,68,0,0.18);
  border-radius: 999px;
  padding: 0.38rem 0.9rem;
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  font-weight: 500;
}
.hero-stat-pill .icon { color: var(--color-primary); width: 0.9em; height: 0.9em; }

/* ==========================================================================
   Section layout
   ========================================================================== */

.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

.section-heading {
  text-align: center;
  margin-bottom: 2.75rem;
}
.section-heading .eyebrow {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 0.5rem;
}
.section-heading h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.section-heading p {
  color: var(--color-ink-soft);
  max-width: 580px;
  margin: 0 auto;
}

.section-bg-surface { background-color: var(--color-surface); }
.section-bg-surface-2 { background-color: var(--color-surface-2); }

/* ==========================================================================
   Stat Cards
   ========================================================================== */

.stat-card {
  text-align: center;
  padding: 1.75rem 1rem;
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.stat-card .stat-label {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
}

/* ==========================================================================
   Profile / Biodata Cards
   ========================================================================== */

.profile-card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  height: 100%;
  position: relative;
}
.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}
.profile-card .ribbon {
  position: absolute;
  top: 12px;
  inset-inline-start: -4px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.8rem 0.22rem 0.9rem;
  border-radius: 0 999px 999px 0;
  box-shadow: var(--shadow-card);
  z-index: 2;
}
.profile-card .profile-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--color-surface);
  overflow: hidden;
}
.profile-card .profile-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.profile-card:hover .profile-photo-wrap img {
  transform: scale(1.04);
}
.profile-card .profile-photo-wrap .placeholder-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  color: var(--color-gold-light);
}
.profile-card .profile-body { padding: 1rem 1.1rem 1.25rem; }
.profile-card .profile-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.profile-card .profile-meta {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  margin-bottom: 0.55rem;
}
.profile-card .profile-tags {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
}
.profile-card .profile-tags .badge {
  background-color: var(--color-gold-light);
  color: var(--color-gold-dark);
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.3em 0.6em;
  border-radius: 4px;
}
.profile-card .profile-code {
  position: absolute;
  bottom: 0; inset-inline-end: 0;
  background-color: rgba(28, 20, 16, 0.5);
  color: #fff;
  font-size: 0.68rem;
  font-family: var(--font-data);
  padding: 0.12rem 0.55rem;
  border-radius: var(--radius-sm) 0 0 0;
}

/* ==========================================================================
   Skeleton Loader — lightweight, CSS-only loading placeholder shaped like
   a real .profile-card. Used while search results are being fetched, so
   the page feels instantly responsive instead of showing a blank gap.
   No JS animation library; a single CSS gradient + keyframe handles the
   shimmer, and prefers-reduced-motion turns it into a static placeholder.
   ========================================================================== */

.skeleton-card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  height: 100%;
}
.skeleton-card .skeleton-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
}
.skeleton-card .skeleton-body {
  padding: 1rem 1.1rem 1.25rem;
}
.skeleton-line {
  height: 0.8rem;
  border-radius: 4px;
  margin-bottom: 0.55rem;
}
.skeleton-line.skeleton-line-name { width: 70%; height: 1rem; }
.skeleton-line.skeleton-line-meta { width: 50%; }
.skeleton-line.skeleton-line-badge { width: 40%; height: 1.4rem; border-radius: 999px; margin-bottom: 0; }

.skeleton-photo,
.skeleton-line {
  background: linear-gradient(
    90deg,
    var(--color-surface-2) 25%,
    var(--color-border-soft) 37%,
    var(--color-surface-2) 63%
  );
  background-size: 400% 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .skeleton-photo, .skeleton-line {
    animation: skeleton-shimmer 1.6s ease-in-out infinite;
  }
  @keyframes skeleton-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  /* Static placeholder, no shimmer — respects the user's motion preference */
  .skeleton-photo, .skeleton-line { background: var(--color-surface-2); }
}

/* ==========================================================================
   Committee section — pill tabs, responsive
   ========================================================================== */

.committee-tabs .nav-pills .nav-link {
  color: var(--color-ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: #fff;
  transition: all 0.18s;
  white-space: nowrap;
}
.committee-tabs .nav-pills .nav-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.committee-tabs .nav-pills .nav-link.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 3px 12px rgba(224, 112, 32, 0.28);
}

/* Horizontally scrollable on mobile so tabs don't wrap messily */
.committee-tabs .nav-pills {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  justify-content: flex-start !important;
}
.committee-tabs .nav-pills::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .committee-tabs .nav-pills {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center !important;
  }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-ink);
  margin-bottom: 0.35rem;
}
.form-control,
.form-select {
  border-color: var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(224, 112, 32, 0.14);
  outline: none;
}
.form-section {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.form-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--color-gold-light);
}
.required-star { color: var(--color-primary); }

/* ==========================================================================
   Registration Wizard Steps
   ========================================================================== */

.wizard-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  list-style: none;
  padding: 0;
}
.wizard-steps li {
  display: flex;
  align-items: center;
  font-family: var(--font-data);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-ink-soft);
}
.wizard-steps li .step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  background-color: #fff;
  transition: background-color 0.2s, border-color 0.2s;
}
.wizard-steps li.active .step-circle,
.wizard-steps li.completed .step-circle {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: #fff;
}
.wizard-steps li.active { color: var(--color-primary); }
.wizard-steps li .step-line {
  width: 50px; height: 2px;
  background-color: var(--color-border);
  margin: 0 0.75rem;
}
.wizard-steps li.completed .step-line { background-color: var(--color-primary); }

@media (max-width: 575.98px) {
  .wizard-steps li span.step-label { display: none; }
  .wizard-steps li .step-line { width: 24px; }
}

/* ==========================================================================
   Status Badges
   ========================================================================== */

.status-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  letter-spacing: 0.03em;
  background-color: var(--color-gold-light);
  color: var(--color-gold-dark);
}
.status-badge.status-draft,
.status-badge.status-secondary { background: #EDE8E0; color: #6B5D4F; }
.status-badge.status-pending,
.status-badge.status-pending_payment,
.status-badge.status-pending_documents,
.status-badge.status-pending_approval { background: var(--color-gold-light); color: var(--color-gold-dark); }
.status-badge.status-success,
.status-badge.status-approved,
.status-badge.status-accepted,
.status-badge.status-published,
.status-badge.status-replied { background: var(--color-green-light); color: var(--color-green); }
.status-badge.status-danger,
.status-badge.status-rejected,
.status-badge.status-suspended { background: var(--color-primary-light); color: var(--color-primary-dark); }
.status-badge.status-new { background: var(--color-primary-light); color: var(--color-primary-dark); }
.status-badge.status-active { background: var(--color-green-light); color: var(--color-green); }
.status-badge.status-inactive { background: #EDE8E0; color: #6B5D4F; }
.status-badge.status-read,
.status-badge.status-registered,
.status-badge.status-payment_done,
.status-badge.status-documents_uploaded,
.status-badge.status-admin_review { background: var(--color-gold-light); color: var(--color-gold-dark); }

/* ==========================================================================
   Dashboard Workflow Tracker
   ========================================================================== */

.workflow-tracker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.workflow-tracker .wf-item {
  flex: 1 1 140px;
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: transform 0.18s;
}
.workflow-tracker .wf-item:hover { transform: translateY(-2px); }
.workflow-tracker .wf-item.done {
  border-color: var(--color-green);
  background-color: var(--color-green-light);
}
.workflow-tracker .wf-item.current {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}
.workflow-tracker .wf-icon { font-size: 1.6rem; margin-bottom: 0.4rem; }
.workflow-tracker .wf-label { font-weight: 600; font-size: 0.85rem; }

/* ==========================================================================
   Admin Panel
   ========================================================================== */


/* ==========================================================================
   ADMIN PANEL — Sidebar + layout
   ========================================================================== */

.admin-body { margin: 0; padding: 0; background: var(--color-bg); }

.admin-shell {
  display: block;
  min-height: 100vh;
  background: var(--color-bg);
}

/* ── Admin sidebar — fixed like AdminLTE ── */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 256px;
  height: 100vh;
  background: linear-gradient(180deg, #2C0A00 0%, #1A0500 100%);
  color: rgba(255,255,255,0.72);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 600;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

/* Brand area */
.admin-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  flex-shrink: 0;
}
.admin-sidebar .brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-sidebar .brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.admin-sidebar .brand-text { flex: 1; min-width: 0; }
.admin-sidebar .brand-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.25;
  display: block;
}
.admin-sidebar .brand-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav */
.admin-nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.75rem 1rem;
  flex: 1;
  gap: 1px;
}
.nav-section-title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  padding: 0.9rem 0.5rem 0.3rem;
  margin-top: 0.25rem;
}
.nav-section-title:first-child { padding-top: 0.25rem; }

.admin-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.855rem;
  font-weight: 500;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
}
.admin-sidebar .nav-link .icon { width: 1em; height: 1em; flex-shrink: 0; opacity: 0.75; }
.admin-sidebar .nav-link span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.admin-sidebar .nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  text-decoration: none;
}
.admin-sidebar .nav-link:hover .icon { opacity: 1; }
.admin-sidebar .nav-link.active {
  background: rgba(204,68,0,0.2);
  color: #fff;
  border-left-color: #CC4400;
  font-weight: 600;
}
.admin-sidebar .nav-link.active .icon { opacity: 1; }
.admin-sidebar .nav-link-exit {
  margin-top: auto;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

/* Pending count badges */
.badge-count {
  margin-left: auto;
  background: #CC4400;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  flex-shrink: 0;
}
.admin-sidebar .nav-link.active .badge-count { background: rgba(255,255,255,0.3); }

/* ── Admin main — offset by sidebar width ── */
.admin-main {
  margin-left: 256px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Topbar */
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 60px;
}
.admin-topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  color: var(--color-ink);
  flex-shrink: 0;
}
.admin-sidebar-toggle .icon { width: 1.2em; height: 1.2em; }
.admin-topbar-user { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.admin-user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem 0.3rem 0.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}
.admin-user-avatar { color: var(--color-primary); font-size: 1.35rem; display: flex; }
.admin-user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.admin-user-meta strong { font-size: 0.82rem; color: var(--color-ink); }
.admin-user-meta small { font-size: 0.68rem; color: var(--color-ink-muted); }
.admin-logout-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  color: var(--color-ink-soft);
  transition: all 0.15s;
}
.admin-logout-btn:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }

.admin-content {
  padding: 1.75rem;
  flex: 1;
}

/* Mobile: admin sidebar as drawer */
.admin-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 599;
  backdrop-filter: blur(2px);
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    left: -256px;
    z-index: 600;
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .admin-sidebar.open { left: 0; }
  .admin-backdrop.open { display: block; }
  .admin-sidebar-toggle { display: flex !important; align-items: center; }
  .admin-main { margin-left: 0 !important; }
  .admin-topbar { padding: 0.65rem 1rem; }
  .admin-content { padding: 1rem; }
  .admin-user-meta { display: none; }
}
@media (max-width: 575.98px) {
  .admin-content { padding: 0.75rem; }
}

/* ==========================================================================
   USER PORTAL — Sidebar + main layout
   ========================================================================== */

/* Shell */


/* ==========================================================================
   USER PORTAL — AdminLTE-style layout
   Sidebar: position:fixed, full height
   Main: margin-left to avoid sidebar, independent scroll
   ========================================================================== */

/* ── Page body when inside portal ── */
body.portal-body {
  overflow-y: scroll;   /* page itself scrolls */
  overflow-x: hidden;
}

/* ── Sidebar: truly fixed, full height ── */
.portal-sidebar {
  position: fixed;
  top: var(--navbar-h, 72px);
  left: 0;
  width: 256px;
  height: calc(100vh - var(--navbar-h, 72px));
  background: linear-gradient(180deg, #2C0A00 0%, #1A0500 100%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 400;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.portal-sidebar::-webkit-scrollbar { width: 4px; }
.portal-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 2px; }

/* ── Layout wrapper: not a flex container — just sets margin ── */
.portal-layout {
  display: block;
  min-height: calc(100vh - var(--navbar-h, 72px));
  background: var(--color-bg);
}

/* ── Main content: offset by sidebar width ── */
.portal-main {
  margin-left: 256px;
  min-height: calc(100vh - var(--navbar-h, 72px));
  padding: 2rem 2rem 3rem;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ── Sidebar internals ── */
.portal-sidebar-head {
  padding: 1.5rem 1.25rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.portal-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(204,68,0,0.5);
  margin-bottom: 0.75rem;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.portal-avatar .icon { color: rgba(255,255,255,0.35); font-size: 2.2rem; display: block; }
.portal-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 0.2rem;
  overflow-wrap: break-word;
}
.portal-code {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
}
.portal-status-chip {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(204,68,0,0.28);
  color: #ffb88a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.portal-status-chip.chip-approved {
  background: rgba(22,101,52,0.35);
  color: #6ee298;
}

.portal-nav { padding: 0.6rem 0.75rem 0.5rem; flex: 1; }
.portal-nav-section {
  padding: 0.75rem 0.5rem 0.25rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.26);
}
.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  color: rgba(255,255,255,0.64);
  text-decoration: none;
  font-size: 0.855rem;
  font-weight: 500;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 1px;
}
.portal-nav-link .icon { width: 1em; height: 1em; flex-shrink: 0; opacity: 0.7; }
.portal-nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; text-decoration: none; }
.portal-nav-link:hover .icon { opacity: 1; }
.portal-nav-link.active {
  background: rgba(204,68,0,0.2);
  color: #fff;
  border-left-color: #CC4400;
  font-weight: 600;
}
.portal-nav-link.active .icon { opacity: 1; }
.portal-nav-link.disabled { opacity: 0.32; pointer-events: none; cursor: not-allowed; }
.portal-nav-badge {
  margin-left: auto;
  background: #CC4400;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  flex-shrink: 0;
}

.portal-sidebar-foot {
  padding: 0.75rem 1.25rem 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.portal-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: none;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.portal-logout-btn:hover { background: rgba(204,68,0,0.18); border-color: rgba(204,68,0,0.4); color: #fff; }

/* ── Dashboard elements ── */
.portal-page-title { font-size: 1.4rem; font-weight: 700; color: var(--color-ink); margin-bottom: 0.2rem; }
.portal-page-sub { color: var(--color-ink-muted); font-size: 0.88rem; margin-bottom: 1.75rem; }
.portal-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.75rem; }
.portal-stat { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: inherit; transition: box-shadow 0.18s, transform 0.18s; }
.portal-stat:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.portal-stat-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--color-primary-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.portal-stat-icon .icon { color: var(--color-primary); width: 1.2em; height: 1.2em; }
.portal-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--color-ink); line-height: 1; }
.portal-stat-label { font-size: 0.75rem; color: var(--color-ink-muted); margin-top: 0.15rem; }

.portal-progress-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.75rem; }
.portal-progress-title { font-weight: 700; font-size: 0.95rem; color: var(--color-ink); margin-bottom: 1.25rem; }
.portal-steps { display: flex; align-items: flex-start; }
.portal-step { flex: 1; text-align: center; position: relative; }
.portal-step:not(:last-child)::after { content: ''; position: absolute; top: 18px; left: 50%; width: 100%; height: 2px; background: var(--color-border); z-index: 0; pointer-events: none; }
.portal-step.done:not(:last-child)::after { background: var(--color-primary); }
.portal-step-dot { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--color-border); background: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.5rem; position: relative; z-index: 1; font-size: 0.85rem; font-weight: 700; color: var(--color-ink-muted); }
.portal-step.done .portal-step-dot { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.portal-step.current .portal-step-dot { border-color: var(--color-primary); color: var(--color-primary); box-shadow: 0 0 0 4px rgba(204,68,0,0.12); }
.portal-step-label { font-size: 0.72rem; color: var(--color-ink-muted); font-weight: 500; line-height: 1.3; }
.portal-step.done .portal-step-label, .portal-step.current .portal-step-label { color: var(--color-ink); }

.portal-info-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.portal-info-header { background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-gold-light) 100%); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--color-border); }
.portal-info-photo { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: var(--shadow-soft); flex-shrink: 0; background: var(--color-surface); display: flex; align-items: center; justify-content: center; }
.portal-info-photo img { width: 100%; height: 100%; object-fit: cover; }
.portal-info-photo .icon { font-size: 2.5rem; color: var(--color-ink-muted); }
.portal-info-name { font-size: 1.15rem; font-weight: 700; color: var(--color-ink); margin-bottom: 0.15rem; }
.portal-info-meta { font-size: 0.82rem; color: var(--color-ink-soft); }
.portal-info-body { padding: 1.25rem 1.5rem; }
.portal-info-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; }
.portal-info-item { padding: 0.5rem 0; border-bottom: 1px solid var(--color-border-soft); }
.portal-info-item:nth-last-child(-n+2) { border-bottom: none; }
.portal-info-key { font-size: 0.72rem; font-weight: 600; color: var(--color-ink-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.15rem; }
.portal-info-val { font-size: 0.9rem; color: var(--color-ink); font-weight: 500; }

.interest-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; transition: box-shadow 0.18s; margin-bottom: 0.75rem; }
.interest-card:hover { box-shadow: var(--shadow-card); }
.interest-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--color-surface); border: 2px solid var(--color-border); display: flex; align-items: center; justify-content: center; }
.interest-avatar img { width: 100%; height: 100%; object-fit: cover; }
.interest-avatar .icon { color: var(--color-ink-muted); font-size: 1.6rem; }
.interest-name { font-weight: 700; color: var(--color-ink); font-size: 0.95rem; overflow-wrap: break-word; }
.interest-meta { font-size: 0.8rem; color: var(--color-ink-soft); margin-top: 0.1rem; }
.interest-actions { margin-left: auto; display: flex; gap: 0.5rem; flex-shrink: 0; }
.interest-status-badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 700; padding: 0.22rem 0.65rem; border-radius: 999px; margin-left: auto; }
.interest-status-badge.pending  { background: var(--color-gold-light); color: var(--color-gold-dark); }
.interest-status-badge.accepted { background: var(--color-green-light); color: var(--color-green); }
.interest-status-badge.rejected { background: #fde8e8; color: #b91c1c; }

.notif-item { display: flex; gap: 0.85rem; padding: 0.9rem 0; border-bottom: 1px solid var(--color-border-soft); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--color-primary-xlight); margin: 0 -1rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); }
.notif-icon-wrap { width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-icon-wrap .icon { color: var(--color-primary); width: 1em; height: 1em; }
.notif-text { font-size: 0.88rem; color: var(--color-ink); line-height: 1.5; }
.notif-time { font-size: 0.72rem; color: var(--color-ink-muted); margin-top: 0.15rem; }

.portal-empty { text-align: center; padding: 3rem 1rem; color: var(--color-ink-muted); }
.portal-empty .icon { font-size: 3rem; opacity: 0.28; display: block; margin-bottom: 0.75rem; }
.portal-empty h5 { color: var(--color-ink-soft); margin-bottom: 0.35rem; }

/* ── Sidebar overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 399;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ── Mobile toggle button ── */
.portal-sidebar-toggle {
  display: none;
  position: fixed;
  top: calc(var(--navbar-h, 72px) + 10px);
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 0 6px 6px 0;
  background: #2C0A00;
  color: rgba(255,255,255,0.75);
  border: none;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.35);
  align-items: center;
  justify-content: center;
  z-index: 401;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
}
.portal-sidebar-toggle:hover { background: #CC4400; color: #fff; }

/* ── Bottom nav (mobile) ── */
.portal-bottom-nav { display: none; }

/* ==========================================================================
   PORTAL RESPONSIVE
   ========================================================================== */

/* Tablet (768–991px): collapsible sidebar */
@media (max-width: 991.98px) {
  .portal-sidebar {
    left: -256px;
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 401;
  }
  .portal-sidebar.open { left: 0; }
  .portal-main { margin-left: 0; padding: 1.5rem 1.25rem 5.5rem; }
  .portal-sidebar-toggle { display: flex; }
  .portal-stats { grid-template-columns: repeat(2, 1fr); }

  .portal-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #2C0A00;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 398;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .portal-bottom-nav-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0.55rem 0.25rem;
    color: rgba(255,255,255,0.52);
    text-decoration: none;
    font-size: 0.58rem; font-weight: 600;
    gap: 0.18rem; border: none; background: none; cursor: pointer;
    position: relative; transition: color 0.15s, background 0.15s;
  }
  .portal-bottom-nav-item .icon { width: 1.35em; height: 1.35em; }
  .portal-bottom-nav-item.active,
  .portal-bottom-nav-item:hover { color: #fff; background: rgba(204,68,0,0.22); }
  .pbn-badge {
    position: absolute; top: 0.3rem; right: calc(50% - 16px);
    background: #CC4400; color: #fff;
    font-size: 0.55rem; min-width: 14px; height: 14px;
    border-radius: 999px; display: flex; align-items: center; justify-content: center;
    padding: 0 3px; font-weight: 800;
  }
}

/* Small phones (< 576px) */
@media (max-width: 575.98px) {
  .portal-main { padding: 1rem 0.875rem 5.5rem; }
  .portal-page-title { font-size: 1.1rem; }
  .portal-stats { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .portal-stat { padding: 0.75rem 0.65rem; gap: 0.5rem; }
  .portal-stat-num { font-size: 1.25rem; }
  .portal-stat-icon { width: 36px; height: 36px; }
  .portal-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .portal-step:not(:last-child)::after { display: none; }
  .portal-step-dot { width: 28px; height: 28px; font-size: 0.72rem; margin-bottom: 0.35rem; }
  .portal-step-label { font-size: 0.65rem; }
  .portal-progress-card { padding: 1rem; }
  .portal-info-row { grid-template-columns: 1fr; }
  .portal-info-header { flex-wrap: wrap; padding: 0.85rem; gap: 0.6rem; }
  .portal-info-photo { width: 52px; height: 52px; }
  .portal-info-body { padding: 0.75rem; }
  .interest-card { flex-wrap: wrap; padding: 0.85rem; }
  .interest-actions { width: 100%; justify-content: flex-end; }
}




/* ==========================================================================
   HERITAGE SECTION — Large portrait cards  (replaces community-hero)
   ========================================================================== */

.heritage-section {
  background: linear-gradient(165deg, #1A0500 0%, #2C0A00 45%, #3D1000 75%, #2C0A00 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.heritage-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 55% 55% at 50% 50%, rgba(204,68,0,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 35% 50% at 5%  80%, rgba(212,148,10,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 30% 50% at 95% 20%, rgba(204,68,0,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.heritage-inner { position: relative; z-index: 1; }

/* Flags */
.flag { position: absolute; top: 6%; width: 40px; height: 68px; animation: flagWave 3s ease-in-out infinite; pointer-events: none; }
.flag-left  { left: 3%; animation-delay: 0s; }
.flag-right { right: 3%; animation-delay: 0.6s; }
.flag svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 8px rgba(204,68,0,0.5)); }
@keyframes flagWave {
  0%, 100% { transform: rotate(-4deg); }
  50%       { transform: rotate(6deg); }
}

/* Section heading */
.heritage-head { text-align: center; margin-bottom: 3.5rem; }
.heritage-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.85rem;
}
.he-line { display: block; width: 28px; height: 1.5px; background: var(--color-gold); opacity: 0.5; }
.heritage-heading {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}
.heritage-sub {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Two king cards side by side — smaller, elegant */
.heritage-kings {
  display: grid;
  grid-template-columns: 220px auto 220px;
  gap: 0;
  align-items: stretch;
  margin-bottom: 3rem;
  justify-content: center;
}

/* Each king card */
.heritage-king-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.heritage-king-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
}

/* Glow effects */
.hkc-glow {
  position: absolute;
  top: -40%;
  width: 200%;
  height: 200%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hkc-glow-saffron {
  left: -50%;
  background: radial-gradient(circle, rgba(204,68,0,0.25) 0%, transparent 55%);
}
.hkc-glow-gold {
  right: -50%;
  background: radial-gradient(circle, rgba(212,148,10,0.2) 0%, transparent 55%);
}

/* Portrait image — smaller, elegant */
.hkc-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.hkc-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}
.heritage-king-card:hover .hkc-portrait { transform: scale(1.04); }

/* Gradient overlay at bottom of image */
.hkc-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(20,5,0,0.97) 0%, rgba(20,5,0,0.6) 45%, transparent 100%);
  pointer-events: none;
}

/* Text content overlaid on image bottom */
.hkc-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.5rem 1.75rem;
  z-index: 2;
}
.hkc-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(212,148,10,0.15);
  border: 1px solid rgba(212,148,10,0.3);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.6rem;
}
.hkc-badge-gold {
  color: #CC4400;
  background: rgba(204,68,0,0.15);
  border-color: rgba(204,68,0,0.3);
}
.hkc-name {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.2;
  font-family: var(--font-display);
}
.hkc-quote {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.68);
  font-style: italic;
  line-height: 1.55;
  margin: 0 0 0.5rem;
  padding-left: 0.75rem;
  border-left: 2.5px solid var(--color-primary);
}
.hkc-years {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* Centre divider */
.heritage-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 2rem;
}
.hd-line { flex: 1; width: 1.5px; background: linear-gradient(to bottom, transparent, rgba(212,148,10,0.4), transparent); min-height: 40px; }
.hd-symbol { color: var(--color-gold); font-size: 1.4rem; opacity: 0.7; flex-shrink: 0; }

/* Tagline */
.heritage-tagline-wrap { text-align: center; margin-bottom: 2.5rem; }
.heritage-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(212,148,10,0.1);
  border: 1.5px solid rgba(212,148,10,0.22);
  border-radius: 999px;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  font-style: italic;
  max-width: 700px;
  flex-wrap: wrap;
  justify-content: center;
}
.ht-ornament { color: var(--color-gold); font-size: 0.7rem; flex-shrink: 0; }

/* CTA */
.heritage-cta { text-align: center; }
.ch-cta-note { color: rgba(255,255,255,0.38); font-size: 0.8rem; margin-top: 0.75rem; margin-bottom: 0; }

/* ── Heritage responsive ── */
@media (max-width: 991.98px) {
  .heritage-kings { grid-template-columns: 1fr 1fr; }
  .heritage-divider { display: none; }
  .heritage-section { padding: 3.5rem 0 3rem; }
  .hkc-content { padding: 1.1rem 1.1rem 1.25rem; }
  .hkc-name { font-size: clamp(0.9rem, 2.5vw, 1.2rem); }
  .hkc-quote { font-size: 0.76rem; }
}
@media (max-width: 575.98px) {
  .heritage-section { padding: 2.5rem 0 2.5rem; }
  .heritage-kings { grid-template-columns: 1fr; gap: 1.25rem; }
  .hkc-img-wrap { aspect-ratio: 4 / 5; }
  .heritage-heading { font-size: 1.6rem; }
  .heritage-tagline { font-size: 0.82rem; padding: 0.6rem 1.1rem; }
  .flag { width: 28px; height: 48px; }
  .heritage-sub { font-size: 0.88rem; }
  .hkc-content { padding: 1rem; }
  .hkc-name { font-size: 1rem; }
  .hkc-quote { font-size: 0.74rem; }
  .btn-explore-profiles { width: 100%; justify-content: center; }
}

/* ==========================================================================
   TARGETED FIXES — July 2026
   ========================================================================== */

/* 1. Matrimony hero circle — smaller (was 420×460) */
.mh-circle {
  width: 320px !important;
  height: 355px !important;
}

/* 2. Heritage king cards — smaller (3:4 → 2:3 ratio, narrower) */
.heritage-king-card { max-width: 280px; }
.heritage-kings { justify-content: center; gap: 2rem; }
@media (min-width: 992px) {
  .heritage-kings { grid-template-columns: 280px auto 280px; max-width: 700px; margin: 0 auto 3rem; }
}
@media (max-width: 991.98px) {
  .heritage-king-card { max-width: 240px; }
  .heritage-kings { gap: 1.5rem; }
}

/* 3. Portal sidebar — rock-solid sticky on desktop */
@media (min-width: 992px) {
  .portal-layout {
    display: flex !important;
    align-items: flex-start !important;
  }
  .portal-sidebar {
    position: sticky !important;
    top: 56px !important;
    left: 0 !important;
    height: calc(100vh - 56px) !important;
    overflow-y: auto !important;
    flex-shrink: 0 !important;
    width: 260px !important;
    min-width: 260px !important;
    align-self: flex-start !important;
    z-index: 10 !important;
  }
  .portal-main {
    flex: 1 !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }
}

/* 4. Admin sidebar — always sticky */
@media (min-width: 768px) {
  .admin-shell { display: flex !important; align-items: flex-start !important; }
  .admin-sidebar {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    flex-shrink: 0 !important;
    align-self: flex-start !important;
  }
  .admin-main { flex: 1 !important; min-width: 0 !important; overflow-x: hidden !important; }
}

/* ==========================================================================
   GALLERY SECTION — about.php (4 images)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 0.75rem;
  grid-template-areas:
    "land port1 port2"
    "wide wide port2";
}
.gallery-landscape { grid-area: land; }
.gallery-portrait  { grid-area: port1; }
.gallery-portrait + .gallery-portrait { grid-area: port2 !important; grid-row: 1 / 3; }
.gallery-wide      { grid-area: wide; }

.gallery-item { border-radius: 12px; overflow: hidden; cursor: pointer; }
.gallery-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-img-wrap img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(20,5,0,0.82), transparent);
  padding: 1.5rem 1rem 0.85rem;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.28s ease;
  pointer-events: none;
}
.gallery-item:hover .gallery-overlay { transform: translateY(0); }

@media (max-width: 767.98px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
    grid-template-areas:
      "land port1"
      "wide port2";
  }
  .gallery-portrait + .gallery-portrait { grid-row: auto; }
}
@media (max-width: 575.98px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 160px;
    grid-template-areas:
      "land port1"
      "wide port2";
  }
  .gallery-overlay { transform: translateY(0); }
}

/* ==========================================================================
   TESTIMONIAL CARDS
   ========================================================================== */
.testimonial-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem;
  width: 40px; height: 4px;
  background: var(--color-primary);
  border-radius: 0 0 4px 4px;
  pointer-events: none;
}

.tc-quote-icon {
  color: var(--color-primary);
  opacity: 0.25;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.tc-quote-icon .icon { width: 2rem; height: 2rem; }

.tc-message {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}
.tc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--color-primary-light);
}
.tc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tc-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.25rem;
}
.tc-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-ink);
  line-height: 1.3;
}
.tc-village {
  font-size: 0.75rem;
  color: var(--color-ink-muted);
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
}
.tc-village .icon { width: 0.8em; height: 0.8em; }

/* ==========================================================================
   FIX BATCH — July 2026
   1. Ad Banner / Slider
   2. Gallery redesign
   3. Navbar mobile
   4. Portal sidebar sticky
   5. Admin sidebar sticky
   6. Overall spacing
   ========================================================================== */

/* ── 1. ADVERTISEMENT BANNER SLIDER ── */
.ad-section {
  padding: 0;
  background: #000;
}
.ad-section .container {
  max-width: 100% !important;
  padding: 0 !important;
}
.ad-single-wrap,
.ad-carousel-frame {
  border-radius: 0;
  overflow: hidden;
  position: relative;
}
.ad-banner-img {
  width: 100%;
  aspect-ratio: 16 / 5;     /* maintains proper ratio — no cropping */
  object-fit: contain;       /* show full image without cropping */
  object-position: center;
  display: block;
  background: #1a0500;       /* dark letterbox when image doesn't fill */
}
/* Carousel controls */
.ad-carousel-frame .carousel-control-prev,
.ad-carousel-frame .carousel-control-next {
  width: 48px;
  background: rgba(0,0,0,0.35);
  border-radius: 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.ad-carousel-frame .carousel-control-prev:hover,
.ad-carousel-frame .carousel-control-next:hover { opacity: 1; }
/* Dot indicators */
.ad-carousel-frame .carousel-indicators {
  margin-bottom: 0.75rem;
}
.ad-carousel-frame .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  margin: 0 4px;
  transition: all 0.2s;
}
.ad-carousel-frame .carousel-indicators .active {
  background: var(--color-primary);
  width: 28px;
  border-radius: 5px;
}
/* Smooth slide transition */
.ad-carousel-frame .carousel-item {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 575.98px) {
  .ad-banner-img { aspect-ratio: 4 / 3; object-fit: cover; }
}

/* ── 2. GALLERY — About page redesign ── */
.about-gallery-section {
  background: linear-gradient(135deg, #fff 0%, var(--color-surface) 100%);
  padding: 5rem 0;
}
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 1rem;
}
/* Define areas for 4 images in a premium layout */
.gallery-masonry .gm-item:nth-child(1) { grid-row: 1 / 3; grid-column: 1; }   /* tall left */
.gallery-masonry .gm-item:nth-child(2) { grid-row: 1;     grid-column: 2; }   /* top center */
.gallery-masonry .gm-item:nth-child(3) { grid-row: 2;     grid-column: 2; }   /* bottom center */
.gallery-masonry .gm-item:nth-child(4) { grid-row: 1 / 3; grid-column: 3; }   /* tall right */

.gm-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--color-surface-2);
}
.gm-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.gm-item:hover img { transform: scale(1.07); }

/* Overlay */
.gm-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,5,0,0.75) 0%, rgba(20,5,0,0.1) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gm-item:hover .gm-overlay { opacity: 1; }
.gm-label {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}
.gm-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.15rem;
  font-weight: 400;
}
/* Premium badge on hover */
.gm-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  transition: border-color 0.3s ease;
  pointer-events: none;
}
.gm-item:hover::after { border-color: rgba(204,68,0,0.5); }

@media (max-width: 767.98px) {
  .gallery-masonry {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px;
  }
  .gallery-masonry .gm-item:nth-child(1) { grid-row: 1; grid-column: 1; }
  .gallery-masonry .gm-item:nth-child(2) { grid-row: 1; grid-column: 2; }
  .gallery-masonry .gm-item:nth-child(3) { grid-row: 2; grid-column: 1; }
  .gallery-masonry .gm-item:nth-child(4) { grid-row: 2; grid-column: 2; }
}
@media (max-width: 575.98px) {
  .gallery-masonry { grid-template-columns: 1fr; grid-template-rows: auto; gap: 0.75rem; }
  .gallery-masonry .gm-item { height: 200px; grid-row: auto !important; grid-column: auto !important; }
  .gm-overlay { opacity: 1; }
}

/* ── 3. NAVBAR MOBILE ── */
@media (max-width: 991.98px) {
  .navbar-logo-img { height: 38px; }
  .navbar-mandal .navbar-collapse {
    background: #fff;
    padding: 0.75rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 0.5rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(44,10,0,0.1);
  }
  .navbar-mandal .nav-link { padding: 0.65rem 1rem !important; border-radius: 8px; }
  .navbar-actions {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.5rem !important;
    padding: 0.65rem 0 0.25rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.25rem;
  }
  .navbar-actions .btn { width: 100%; justify-content: center; }
  .navbar-actions .lang-row { justify-content: center; }
  .navbar-actions form { width: 100%; }
  .navbar-actions form button { width: 100%; }
}

/* ── 4. PORTAL SIDEBAR — fixed sticky, never overlaps content ── */
@media (min-width: 992px) {
  .portal-layout {
    display: flex !important;
    align-items: flex-start !important;
    min-height: calc(100vh - var(--navbar-h, 72px)) !important;
  }
  .portal-sidebar {
    position: sticky !important;
    top: var(--navbar-h, 72px) !important;
    height: calc(100vh - var(--navbar-h, 72px)) !important;
    align-self: flex-start !important;
    flex-shrink: 0 !important;
    width: 256px !important;
    min-width: 256px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 10 !important;
  }
  .portal-main {
    flex: 1 !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }
}

/* ── 5. ADMIN SIDEBAR — fixed sticky ── */
@media (min-width: 992px) {
  .admin-shell { display: flex !important; align-items: flex-start !important; }
  .admin-sidebar {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    align-self: flex-start !important;
    flex-shrink: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 200 !important;
  }
  .admin-main { flex: 1 !important; min-width: 0 !important; overflow-x: hidden !important; }
}

/* ── 6. OVERALL SPACING ── */
html { overflow-x: clip; scroll-behavior: smooth; }
.mat-section { padding: 4.5rem 0; }
@media (max-width: 767.98px) { .mat-section { padding: 3rem 0; } .section { padding: 2.5rem 0; } }
@media (max-width: 575.98px) { .mat-section { padding: 2.25rem 0; } .section { padding: 2rem 0; } }


/* ==========================================================================
   ABOUT PAGE — Yojana cards & village grid
   ========================================================================== */
.about-yojana-card {
  display: flex;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}
.about-yojana-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.ayc-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 1.2rem;
}
.ayc-icon .icon { width: 1.2em; height: 1.2em; }
.ayc-title { font-weight: 700; font-size: 0.88rem; color: var(--color-ink); margin-bottom: 0.25rem; }
.ayc-desc { font-size: 0.78rem; color: var(--color-ink-muted); margin: 0; line-height: 1.55; }

.about-reg-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem;
  color: var(--color-ink-soft);
}

.villages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}
.vg-pill {
  display: inline-block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  color: var(--color-ink-soft);
  white-space: nowrap;
}
.vg-extra {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

/* Donation scheme chips */
.donation-schemes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.donation-scheme-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
}
.donation-scheme-chip .icon { width: 0.85em; height: 0.85em; }

@media (max-width: 575.98px) {
  .sm-label { font-size: 0.72rem; padding: 0.5rem 0.75rem; }
  .sm-track { font-size: 0.76rem; }
}

/* ==========================================================================
   CREATIVE BANNER SLIDER — compact, max 380px height
   ========================================================================== */
.banner-section {
  background: #111;
  padding: 0;
}
.banner-wrapper {
  position: relative;
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  background: #111;
}
.banner-slider {
  display: flex;
  position: relative;
  width: 100%;
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.banner-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.banner-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* Caption overlay */
.banner-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  padding: 2rem 1.5rem 0.75rem;
  pointer-events: none;
}
.banner-caption-text {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Navigation arrows */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.18s, transform 0.18s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.banner-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.banner-prev { left: 16px; }
.banner-next { right: 16px; }

/* Dot indicators */
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: all 0.22s;
  padding: 0;
}
.banner-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* Progress bar */
.banner-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
  z-index: 10;
}
.banner-progress-bar {
  height: 100%;
  width: 0;
  background: var(--c-primary, #C45A12);
  border-radius: 0 2px 2px 0;
}

@media (max-width: 767.98px) {
  .banner-wrapper { max-height: 220px; }
  .banner-img { max-height: 220px; }
  .banner-arrow { width: 32px; height: 32px; }
  .banner-prev { left: 8px; }
  .banner-next { right: 8px; }
}
@media (max-width: 575.98px) {
  .banner-wrapper { max-height: 180px; }
  .banner-img { max-height: 180px; }
  .banner-arrow { display: none; }
}

/* ==========================================================================
   DONATION SECTION — premium two-column grid
   ========================================================================== */
.donation-section {
  padding: 72px 0;
  background: linear-gradient(135deg, #FFF9F4 0%, #FFF0E5 100%);
}

.donation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Left CTA card */
.donation-cta-card {
  background: linear-gradient(145deg, #7A2E0E 0%, #C45A12 60%, #A33600 100%);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(196,90,18,0.3);
}
.donation-cta-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.donation-cta-card::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.donation-cta-inner { position: relative; z-index: 1; }
.donation-eyebrow {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.donation-eyebrow .icon { width: 0.9em; height: 0.9em; }
.donation-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  font-family: 'Tiro Devanagari Marathi', serif;
}
.donation-desc {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.donation-tax-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.donation-tax-note .icon { color: #a3e6b0; width: 1em; height: 1em; flex-shrink: 0; margin-top: 1px; }
.donation-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #C45A12;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  margin-bottom: 1.25rem;
}
.donation-btn:hover {
  background: #FFF9F4;
  color: #7A2E0E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  text-decoration: none;
}
.donation-btn .icon { width: 1.1em; height: 1.1em; }
.donation-bank {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  margin-top: 0.25rem;
}
.db-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: rgba(255,255,255,0.65);
  font-size: 0.75rem;
  font-family: monospace;
  line-height: 1.5;
}
.db-row .icon { width: 0.9em; height: 0.9em; margin-top: 2px; flex-shrink: 0; }

/* Right: Scheme cards grid */
.donation-schemes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.scheme-card {
  background: #fff;
  border: 1px solid #EEE;
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.scheme-card:hover {
  box-shadow: 0 6px 24px rgba(196,90,18,0.12);
  transform: translateY(-2px);
}
.scheme-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.scheme-icon .icon { width: 1.1em; height: 1.1em; }
.scheme-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #2B2B2B;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  font-family: 'Tiro Devanagari Marathi', serif;
}
.scheme-desc {
  font-size: 0.74rem;
  color: #777;
  line-height: 1.45;
}

/* Responsive */
@media (max-width: 991.98px) {
  .donation-grid { grid-template-columns: 1fr; }
  .donation-cta-card { padding: 2rem; }
  .donation-title { font-size: 1.45rem; }
  .donation-schemes-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .donation-section { padding: 48px 0; }
  .donation-schemes-grid { grid-template-columns: 1fr 1fr; }
  .donation-title { font-size: 1.3rem; }
  .donation-cta-card { padding: 1.5rem; }
  .scheme-card { padding: 0.85rem; }
}

/* ==========================================================================
   COMPREHENSIVE UI FIX — All pages
   Color theme: #4A1600 / #8A3B12 / #C85A17 / #E58B3A / #FFF7F1
   ========================================================================== */

/* ── COMMON HELPERS ── */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4A1600, #8A3B12);
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  border-radius: inherit;
  width: 100%;
  height: 100%;
}
img[src=""], img:not([src]) { display: none; }

/* ── DONATION PAGE ── */
.donation-hero {
  background: linear-gradient(135deg, #4A1600 0%, #8A3B12 60%, #C85A17 100%);
  padding: 3.5rem 0 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.donation-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.donation-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.5rem); }
.donation-hero .lead { color: rgba(255,255,255,0.82); }

/* Donation type cards */
.donation-type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.donation-type-card {
  background: #fff;
  border: 2px solid #E8E8E8;
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.donation-type-card:hover { border-color: #C85A17; box-shadow: 0 4px 20px rgba(200,90,23,0.15); transform: translateY(-2px); }
.donation-type-card.selected { border-color: #C85A17; background: #FFF7F1; }
.donation-type-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFF7F1, #FFE8D0);
  color: #C85A17;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 0.75rem;
}
.donation-type-icon .icon { width: 1.4em; height: 1.4em; }
.donation-type-name { font-weight: 700; font-size: 0.88rem; color: #4A1600; }

/* QR section */
.qr-section {
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(74,22,0,0.07);
}
.qr-section img { max-width: 220px; border-radius: 12px; border: 4px solid #FFF7F1; }
.bank-details {
  background: #FFF7F1;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  padding: 1.1rem;
  text-align: left;
  margin-top: 1rem;
}
.bank-details .bd-row { display: flex; justify-content: space-between; align-items: center; padding: 0.3rem 0; border-bottom: 1px solid #E8E8E8; font-size: 0.83rem; }
.bank-details .bd-row:last-child { border-bottom: none; }
.bank-details .bd-label { color: #8A3B12; font-weight: 600; }
.bank-details .bd-val { color: #4A1600; font-family: monospace; font-size: 0.82rem; }

/* Donation form card */
.donation-form-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E8E8E8;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(74,22,0,0.07);
}
.donation-form-card .form-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4A1600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #FFF7F1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── COMMITTEE PAGE ── */
.committee-hero {
  background: linear-gradient(135deg, #4A1600 0%, #8A3B12 100%);
  padding: 2.5rem 0 2rem;
  color: #fff;
}
.committee-hero h1 { color: #fff; }
.committee-hero p { color: rgba(255,255,255,0.75); }

.committee-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid #E8E8E8;
  background: #fff;
  color: #4A1600;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s;
  white-space: nowrap;
}
.committee-tab:hover { border-color: #C85A17; color: #C85A17; }
.committee-tab.active { background: #C85A17; border-color: #C85A17; color: #fff; }
.committee-tabs-wrap { overflow-x: auto; padding-bottom: 4px; }
.committee-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Committee member card */
.committee-member-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E8E8E8;
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.committee-member-card:hover { box-shadow: 0 8px 28px rgba(200,90,23,0.15); transform: translateY(-3px); }

.committee-member-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF7F1, #FFE8D0);
  position: relative;
  flex-shrink: 0;
}
.committee-member-photo img,
.committee-member-photo picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}
.committee-member-card:hover .committee-member-photo img { transform: scale(1.05); }

.committee-member-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8A3B12, #C85A17);
  color: rgba(255,255,255,0.5);
  font-size: 2.8rem;
}
.committee-member-placeholder .icon { width: 2.5rem; height: 2.5rem; }

.committee-member-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.committee-member-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #4A1600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  overflow-wrap: break-word;
}
.committee-member-designation {
  font-size: 0.78rem;
  color: #C85A17;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.committee-member-village {
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 0.3rem;
}
.committee-member-contact {
  font-size: 0.75rem;
  color: #8A3B12;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #F5EDE6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Committee search */
.committee-search-box .form-control {
  border-color: #E8E8E8;
  border-radius: 10px 0 0 10px !important;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
}
.committee-search-box .btn { border-radius: 0 10px 10px 0 !important; }

/* ── MATRIMONY PAGE ── */
.matrimony-hero {
  background: linear-gradient(160deg, #FFF7F1 0%, #FFE8D0 50%, #FFF7F1 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.matrimony-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(200,90,23,0.07) 0, transparent 70%);
  pointer-events: none;
}

/* Matrimony stats pills */
.mh-stat-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.mh-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(200,90,23,0.08);
  border: 1px solid rgba(200,90,23,0.2);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  color: #4A1600;
  font-weight: 500;
}
.mh-pill .icon { color: #C85A17; width: 0.9em; height: 0.9em; }

/* Profile cards on matrimony page */
.mat-profile-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E8E8E8;
  box-shadow: 0 2px 12px rgba(74,22,0,0.07);
  transition: box-shadow 0.22s, transform 0.22s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.mat-profile-card:hover { box-shadow: 0 10px 32px rgba(200,90,23,0.18); transform: translateY(-4px); }

.mat-profile-photo {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #FFF7F1, #FFE8D0);
  overflow: hidden;
  flex-shrink: 0;
}
.mat-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.35s;
}
.mat-profile-card:hover .mat-profile-photo img { transform: scale(1.04); }
.mat-profile-photo .no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(200,90,23,0.3);
  font-size: 4rem;
}
.mat-profile-type-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: #C85A17;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mat-profile-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mat-profile-name { font-weight: 700; font-size: 0.95rem; color: #4A1600; margin-bottom: 0.25rem; }
.mat-profile-age-loc { font-size: 0.78rem; color: #777; margin-bottom: 0.5rem; }
.mat-profile-details { flex: 1; }
.mat-profile-detail { font-size: 0.76rem; color: #555; display: flex; align-items: center; gap: 4px; margin-bottom: 0.2rem; }
.mat-profile-detail .icon { color: #C85A17; width: 0.85em; height: 0.85em; flex-shrink: 0; }
.mat-profile-code { font-size: 0.65rem; color: #aaa; font-family: monospace; margin-top: 0.4rem; }
.mat-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 0.6rem;
  background: linear-gradient(135deg, #8A3B12, #C85A17);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.85rem;
  transition: all 0.18s;
}
.mat-profile-btn:hover { background: linear-gradient(135deg, #4A1600, #8A3B12); color: #fff; text-decoration: none; transform: none; }

/* Matrimony steps */
.mat-step-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border: 1px solid #E8E8E8;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}
.mat-step-card:hover { box-shadow: 0 6px 24px rgba(200,90,23,0.12); transform: translateY(-2px); }
.mat-step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8A3B12, #C85A17);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.85rem;
}

/* ── ADMIN PANEL FIXES ── */
.admin-stat-card {
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.18s, transform 0.18s;
  height: 100%;
}
.admin-stat-card:hover { box-shadow: 0 6px 24px rgba(74,22,0,0.1); transform: translateY(-2px); }
.admin-stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFF7F1, #FFE8D0);
  color: #C85A17;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.admin-stat-icon .icon { width: 1.4em; height: 1.4em; }
.admin-stat-icon.green { background: #E8F5E9; color: #2E7D32; }
.admin-stat-icon.blue  { background: #E3F2FD; color: #1565C0; }
.admin-stat-icon.gold  { background: #FFF8E1; color: #F57F17; }
.admin-stat-number { font-size: 1.75rem; font-weight: 800; color: #4A1600; line-height: 1; }
.admin-stat-label  { font-size: 0.8rem; color: #777; margin-top: 0.15rem; font-weight: 500; }

/* Admin needs-attention bar */
.admin-attention-bar {
  background: linear-gradient(135deg, #4A1600, #8A3B12);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.admin-attention-title { color: #fff; font-weight: 700; font-size: 0.88rem; margin-right: 0.5rem; }
.admin-attention-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s;
}
.admin-attention-chip:hover { background: rgba(255,255,255,0.25); color: #fff; text-decoration: none; }
.admin-attention-chip .num {
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0 6px;
  font-weight: 800;
  font-size: 0.78rem;
}

/* Admin table improvements */
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.admin-table th { background: #FFF7F1; color: #4A1600; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.75rem 1rem; border-bottom: 2px solid #E8E8E8; white-space: nowrap; }
.admin-table td { padding: 0.85rem 1rem; border-bottom: 1px solid #F5EDE6; vertical-align: middle; font-size: 0.88rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #FFFAF7; }
.admin-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid #E8E8E8; background: #fff; }

/* ── USER PORTAL FIXES ── */
/* Portal stat cards */
.portal-stat {
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, transform 0.18s;
}
.portal-stat:hover { box-shadow: 0 6px 20px rgba(200,90,23,0.12); transform: translateY(-2px); }
.portal-stat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #FFF7F1;
  display: flex; align-items: center; justify-content: center;
  color: #C85A17;
  flex-shrink: 0;
}
.portal-stat-icon .icon { width: 1.2em; height: 1.2em; }
.portal-stat-num { font-size: 1.5rem; font-weight: 800; color: #4A1600; line-height: 1; }
.portal-stat-label { font-size: 0.74rem; color: #777; margin-top: 0.1rem; }

/* ── AVATAR PLACEHOLDER FIX ── */
/* If an img fails to load, show a background placeholder */
.avatar-clip img { object-fit: cover; }
.committee-member-photo img:not([src]):not([src=""]),
.committee-member-photo img[src=""],
.mat-profile-photo img:not([src]):not([src=""]),
.mat-profile-photo img[src=""] {
  display: none;
}

/* ── FORMS — global improvements ── */
.form-control, .form-select {
  border-color: #E8E8E8;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.93rem;
  transition: border-color 0.18s, box-shadow 0.18s;
  color: #4A1600;
}
.form-control:focus, .form-select:focus {
  border-color: #C85A17;
  box-shadow: 0 0 0 3px rgba(200,90,23,0.14);
  outline: none;
}
.form-label {
  font-weight: 600;
  font-size: 0.86rem;
  color: #4A1600;
  margin-bottom: 0.35rem;
}
.required-star { color: #C85A17; }
.input-group-text {
  background: #FFF7F1;
  border-color: #E8E8E8;
  color: #8A3B12;
}

/* ── BUTTONS ── */
.btn-mandal {
  background: linear-gradient(135deg, #8A3B12, #C85A17);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.65rem 1.6rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-mandal:hover {
  background: linear-gradient(135deg, #4A1600, #8A3B12);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,90,23,0.3);
}
.btn-mandal:active { transform: translateY(0); }
.btn-mandal-outline {
  background: transparent;
  border: 2px solid #C85A17;
  color: #C85A17;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1.5rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-mandal-outline:hover {
  background: #C85A17;
  color: #fff;
  transform: translateY(-1px);
}

/* ── PAGE SECTION STANDARDS ── */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #FFF7F1;
}
.section-title-bar h2, .section-title-bar h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #4A1600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── ALERT IMPROVEMENTS ── */
.alert { border-radius: 12px; border: none; }
.alert-success { background: #E8F5E9; color: #2E7D32; }
.alert-danger  { background: #FEEBE8; color: #B71C1C; }
.alert-warning { background: #FFF8E1; color: #F57F17; }
.alert-info    { background: #E3F2FD; color: #1565C0; }

/* ── FOOTER FIX ── */
.footer-mandal { background: linear-gradient(160deg, #2C0A00 0%, #4A1600 100%); }

/* ── RESPONSIVE GRID FIXES ── */
@media (max-width: 575.98px) {
  .donation-type-cards { grid-template-columns: 1fr 1fr; }
  .admin-stat-card { padding: 1rem; }
  .admin-stat-number { font-size: 1.4rem; }
  .committee-member-card .committee-member-name { font-size: 0.82rem; }
  .mat-profile-body { padding: 0.75rem; }
}
@media (max-width: 399.98px) {
  .donation-type-cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS — Comprehensive Fix
   Breakpoints: 375px / 480px / 576px / 768px / 992px / 1200px
   ========================================================================== */

/* ── BASE: prevent horizontal overflow on all devices ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe, table { max-width: 100%; }

/* ── AUTH SECTION (login / register) ── */
.auth-section {
  padding: 2rem 0;
  min-height: calc(100vh - var(--navbar-h, 100px));
  display: flex;
  align-items: center;
}
.auth-section .form-section {
  padding: 2rem;
  border-radius: 16px;
}
@media (max-width: 575.98px) {
  .auth-section { padding: 1rem 0; align-items: flex-start; }
  .auth-section .form-section { padding: 1.25rem; border-radius: 12px; }
  .auth-section .col-md-7 { padding: 0 12px; }
}

/* ── SECTION PADDING ── */
@media (max-width: 991.98px) {
  .section { padding: 2.5rem 0; }
  .section-heading { margin-bottom: 1.75rem; }
}
@media (max-width: 575.98px) {
  .section { padding: 2rem 0; }
  .container { padding-left: 16px; padding-right: 16px; }
}

/* ── ANNOUNCE BAR ── */
@media (max-width: 575.98px) {
  .announce-bar { height: 34px; }
  .announce-item { font-size: 0.68rem; }
}

/* ── NAVBAR ── */
@media (max-width: 575.98px) {
  .navbar-mandal { height: 54px; top: 34px; }
  .navbar-mandal.navbar-scrolled { top: 0; }
  :root { --navbar-h: 88px; }
  .nav-brand-name { font-size: 0.82rem; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-logo-img { width: 36px; height: 36px; }
}

/* ── MOBILE MENU ── */
.mobile-menu { padding-top: 60px; }
@media (max-width: 575.98px) {
  .mobile-menu-inner { padding: 16px; }
  .mob-link { padding: 12px 8px; font-size: 0.95rem; }
  .mobile-actions .btn-nav-primary,
  .mobile-actions .btn-nav-outline { padding: 10px 16px; font-size: 0.9rem; width: 100%; justify-content: center; margin-bottom: 8px; }
}

/* ── BANNER SLIDER ── */
@media (max-width: 480px) {
  .banner-wrapper { max-height: 160px; }
  .banner-img { max-height: 160px; }
}

/* ── DONATION SECTION ── */
@media (max-width: 575.98px) {
  .donation-section { padding: 32px 0; }
  .donation-grid { grid-template-columns: 1fr; gap: 1rem; }
  .donation-cta-card { padding: 1.25rem; border-radius: 14px; }
  .donation-title { font-size: 1.2rem; }
  .donation-schemes-grid { grid-template-columns: 1fr; gap: 0.65rem; }
  .scheme-card { padding: 0.75rem; }
  .donation-btn { width: 100%; justify-content: center; padding: 10px 20px; }
}

/* ── COMMITTEE PAGE ── */
@media (max-width: 575.98px) {
  .committee-hero { padding: 1.75rem 0 1.5rem; }
  .committee-hero h1 { font-size: 1.5rem; }
  .committee-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .committee-tab { font-size: 0.78rem; padding: 0.4rem 0.85rem; }
  .committee-search-box { flex-direction: column; }
  .committee-search-box .form-control { border-radius: 10px !important; margin-bottom: 8px; }
  .committee-search-box .btn { border-radius: 10px !important; width: 100%; }
}
@media (max-width: 399.98px) {
  .committee-member-card .committee-member-name { font-size: 0.78rem; }
  .committee-member-designation { font-size: 0.7rem; }
}

/* ── MATRIMONY PAGE ── */
@media (max-width: 767.98px) {
  .matrimony-hero { padding: 3rem 0 2.5rem; }
  .matrimony-hero h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .mh-stat-pills { gap: 0.35rem; }
  .mh-pill { font-size: 0.75rem; padding: 0.25rem 0.65rem; }
}
@media (max-width: 575.98px) {
  .matrimony-hero { padding: 2rem 0 1.75rem; }
  .mat-profile-body { padding: 0.75rem; }
  .mat-profile-name { font-size: 0.88rem; }
  .mat-profile-btn { font-size: 0.8rem; padding: 0.5rem; }
}

/* ── ABOUT PAGE ── */
@media (max-width: 767.98px) {
  .villages-grid { max-height: 180px; }
  .about-reg-card { padding: 1rem; }
}
@media (max-width: 575.98px) {
  .gallery-masonry { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 0.5rem; }
  .gallery-masonry .gm-item { height: 150px; grid-row: auto !important; grid-column: auto !important; }
  .about-yojana-card { flex-direction: column; }
  .ayc-icon { width: 36px; height: 36px; }
}

/* ── DONATION PAGE ── */
@media (max-width: 767.98px) {
  .donation-hero { padding: 2.5rem 0 2rem; }
  .donation-hero h1 { font-size: 1.5rem; }
  .donation-type-cards { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .donation-type-icon { width: 40px; height: 40px; }
  .qr-section { padding: 1.25rem; }
  .qr-section img { max-width: 160px; }
  .donation-form-card { padding: 1.25rem; }
}
@media (max-width: 575.98px) {
  .donation-hero { padding: 1.75rem 0 1.5rem; }
  .donation-type-cards { grid-template-columns: 1fr; }
  .bank-details .bd-row { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ── ADMIN PANEL ── */
@media (max-width: 991.98px) {
  .admin-shell { display: block !important; }
  .admin-sidebar { position: fixed; left: -256px; transition: left 0.28s; z-index: 600; }
  .admin-sidebar.open { left: 0; }
  .admin-main { margin-left: 0 !important; }
  .admin-topbar { padding: 0.65rem 1rem; }
  .admin-content { padding: 1rem; }
  .admin-user-meta { display: none; }
  .admin-sidebar-toggle { display: flex !important; align-items: center; }
}
@media (max-width: 575.98px) {
  .admin-content { padding: 0.75rem; }
  .admin-stat-card { padding: 0.85rem; gap: 0.65rem; }
  .admin-stat-number { font-size: 1.3rem; }
  .admin-stat-icon { width: 40px; height: 40px; }
  .admin-topbar-title { font-size: 0.95rem; }
  .admin-attention-bar { padding: 0.85rem 1rem; }
  .admin-attention-chip { font-size: 0.72rem; padding: 0.2rem 0.6rem; }
  .admin-table th { padding: 0.6rem 0.65rem; font-size: 0.72rem; }
  .admin-table td { padding: 0.7rem 0.65rem; font-size: 0.82rem; }
}

/* ── USER PORTAL ── */
@media (max-width: 991.98px) {
  .portal-layout { display: block !important; }
  .portal-sidebar { position: fixed; left: -256px; transition: left 0.28s; z-index: 401; }
  .portal-sidebar.open { left: 0; }
  .portal-main { margin-left: 0 !important; padding: 1.25rem 1rem 5.5rem; }
  .portal-stats { grid-template-columns: repeat(2, 1fr); }
  .portal-sidebar-toggle { display: flex; }
  .portal-bottom-nav { display: flex; }
}
@media (max-width: 575.98px) {
  .portal-main { padding: 1rem 0.875rem 5.5rem; }
  .portal-page-title { font-size: 1.1rem; }
  .portal-stats { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .portal-stat { padding: 0.75rem 0.65rem; }
  .portal-stat-num { font-size: 1.25rem; }
  .portal-info-row { grid-template-columns: 1fr; }
  .portal-info-body { padding: 0.75rem; }
  .portal-info-header { flex-wrap: wrap; padding: 0.85rem; }
  .portal-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .portal-step:not(:last-child)::after { display: none; }
  .portal-step-dot { width: 28px; height: 28px; font-size: 0.72rem; }
  .portal-step-label { font-size: 0.65rem; }
  .interest-card { flex-wrap: wrap; }
  .interest-actions { width: 100%; justify-content: flex-end; }
}

/* ── FORMS (global) ── */
@media (max-width: 575.98px) {
  .form-section { padding: 1.25rem; }
  .wizard-steps li .step-line { width: 20px; }
  .wizard-steps li span.step-label { display: none; }
}

/* ── FOOTER ── */
@media (max-width: 767.98px) {
  .footer-mandal .col-md-4 { margin-bottom: 1.5rem; }
  .footer-mandal { padding-top: 2rem; }
}
@media (max-width: 575.98px) {
  .footer-mandal .col-12 { text-align: center; }
  .footer-mandal ul { list-style: none; padding: 0; text-align: center; }
}

/* ── TABLES ── */
@media (max-width: 767.98px) {
  .admin-table-wrap { font-size: 0.82rem; }
}

/* ── PROFILE CARDS GRID ── */
@media (max-width: 575.98px) {
  .row.g-3.g-md-4 > [class*="col-6"] { padding-right: 6px; padding-left: 6px; }
}

/* ── NO HORIZONTAL SCROLL ── */
@media (max-width: 575.98px) {
  .row { margin-left: -12px; margin-right: -12px; }
  .col, [class*="col-"] { padding-left: 12px; padding-right: 12px; }
}
/* ==========================================================================
   SIDEBAR FIX — Admin + Portal
   The key: parent must be display:flex for position:sticky to work.
   Using position:fixed approach instead which is more reliable.
   ========================================================================== */

/* ── ADMIN SIDEBAR: fixed, always visible on desktop ── */
.admin-shell {
    display: flex !important;
    min-height: 100vh;
    align-items: stretch;
}
.admin-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 256px;
    height: 100vh !important;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 600;
    flex-shrink: 0;
}
.admin-main {
    margin-left: 256px !important;
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

/* ── PORTAL SIDEBAR: fixed below navbar ── */
.portal-layout {
    display: flex !important;
    min-height: calc(100vh - var(--navbar-h, 100px));
    align-items: stretch;
}
.portal-sidebar {
    position: fixed !important;
    top: var(--navbar-h, 100px);
    left: 0;
    width: 256px;
    height: calc(100vh - var(--navbar-h, 100px)) !important;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 400;
    flex-shrink: 0;
}
.portal-main {
    margin-left: 256px !important;
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

/* ── MOBILE: slide-in sidebars ── */
@media (max-width: 991.98px) {
    .admin-shell { display: block !important; }
    .admin-sidebar { left: -256px !important; transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important; }
    .admin-sidebar.open { left: 0 !important; }
    .admin-main { margin-left: 0 !important; }

    .portal-layout { display: block !important; }
    .portal-sidebar { left: -256px !important; transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important; }
    .portal-sidebar.open { left: 0 !important; }
    .portal-main { margin-left: 0 !important; }
}

/* ==========================================================================
   HOME BANNER SLIDER — Full width, centered, creative
   ========================================================================== */
.home-banner-section {
    position: relative;
    width: 100%;
    background: #0a0500;
    overflow: hidden;
    /* Height: 520px desktop, scales down on mobile */
    height: 520px;
    user-select: none;
}

.home-banner-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.home-banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.home-banner-img {
    width: 100%;
    height: 100%;
    object-fit: contain;       /* show full image without cropping */
    object-position: center center;
    display: block;
    background: #0a0500;
}

.home-banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4A1600, #8A3B12, #C85A17);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hbp-inner { text-align: center; color: #fff; }
.hbp-title { font-size: 1.5rem; font-weight: 700; }

.home-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(10, 5, 0, 0.55) 100%
    );
    pointer-events: none;
}

.home-banner-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.home-banner-caption {
    position: absolute;
    bottom: 52px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
    pointer-events: none;
}
.home-banner-caption span {
    display: inline-block;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

/* Arrows */
.hb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: none;
    color: #4A1600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: background 0.2s, transform 0.2s;
}
.hb-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}
.hb-prev { left: 20px; }
.hb-next { right: 20px; }

/* Dots */
.hb-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.hb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}
.hb-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
    border-color: #fff;
}

/* Progress bar */
.hb-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.2);
    z-index: 10;
}
.hb-progress-fill {
    height: 100%;
    width: 0;
    background: #C85A17;
    border-radius: 0 2px 2px 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .home-banner-section { height: 400px; }
    .hb-arrow { width: 38px; height: 38px; }
    .hb-prev { left: 12px; }
    .hb-next { right: 12px; }
}
@media (max-width: 767.98px) {
    .home-banner-section { height: 280px; }
    .hb-arrow { width: 32px; height: 32px; }
    .hb-prev { left: 8px; }
    .hb-next { right: 8px; }
}
@media (max-width: 480px) {
    .home-banner-section { height: 220px; }
    .hb-arrow { display: none; }
    .home-banner-caption span { font-size: 0.75rem; padding: 4px 12px; }
}

/* ==========================================================================
   FOOTER — Proper text colors for dark background
   ========================================================================== */
.footer-mandal {
    background: linear-gradient(160deg, #2C0A00 0%, #4A1600 100%);
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 0;
}
.footer-mandal h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.footer-mandal p,
.footer-mandal li,
.footer-mandal .small,
.footer-mandal small {
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 0.85rem;
}
.footer-mandal a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.18s;
}
.footer-mandal a:hover {
    color: #E58B3A;
    text-decoration: none;
}
.footer-mandal .icon {
    color: rgba(255, 255, 255, 0.55);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45) !important;
}
.footer-bottom p {
    color: rgba(255, 255, 255, 0.45) !important;
}
.footer-bottom .icon {
    color: #C85A17;
}
/* Google Maps button in footer */
.footer-mandal .btn.btn-sm {
    background: rgba(200, 90, 23, 0.2) !important;
    border: 1px solid rgba(200, 90, 23, 0.4) !important;
    color: rgba(255,255,255,0.85) !important;
    border-radius: 8px;
}
.footer-mandal .btn.btn-sm:hover {
    background: rgba(200, 90, 23, 0.4) !important;
    color: #fff !important;
}

/* ==========================================================================
   SAMAJIK UPKRAM PAGE
   ========================================================================== */
.upkram-hero {
    background: linear-gradient(135deg, #4A1600 0%, #8A3B12 60%, #C85A17 100%);
    padding: 3.5rem 0 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.upkram-hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.upkram-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); position: relative; }
.upkram-hero .lead { color: rgba(255,255,255,0.82); max-width: 720px; position: relative; }

/* Scheme cards grid */
.upkram-schemes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.upkram-scheme-card {
    background: #fff;
    border: 1px solid #EEDDD4;
    border-radius: 16px;
    padding: 1.5rem;
    transition: box-shadow 0.22s, transform 0.22s;
}
.upkram-scheme-card:hover {
    box-shadow: 0 10px 30px rgba(200,90,23,0.15);
    transform: translateY(-3px);
}
.usc-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.usc-icon .icon { width: 1.5em; height: 1.5em; }
.usc-name {
    font-weight: 700;
    font-size: 1rem;
    color: #4A1600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-family: 'Tiro Devanagari Marathi', serif;
}
.usc-desc {
    font-size: 0.86rem;
    color: #6b5a50;
    line-height: 1.6;
    margin: 0;
}

/* "What you can give" list */
.upkram-give-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.upkram-give-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0;
    font-size: 0.92rem;
    color: #4A1600;
    line-height: 1.5;
}
.usc-check {
    color: #1F6B35;
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Bank details card */
.upkram-bank-card {
    background: linear-gradient(145deg, #4A1600, #8A3B12);
    border-radius: 18px;
    padding: 2rem;
    color: #fff;
    box-shadow: 0 12px 36px rgba(74,22,0,0.25);
}
.upkram-bank-card h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}
.ubc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 0.9rem;
}
.ubc-row span { color: rgba(255,255,255,0.6); }
.ubc-row strong { color: #fff; font-family: monospace; }
.ubc-note {
    margin-top: 1.25rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
}
.ubc-note .icon { color: #a3e6b0; }

/* Responsive */
@media (max-width: 767.98px) {
    .upkram-hero { padding: 2.5rem 0 2rem; }
    .upkram-schemes-grid { grid-template-columns: 1fr; }
    .upkram-bank-card { padding: 1.5rem; }
}

/* ==========================================================================
   FULL-SCREEN HERO BANNER (100vh)
   ========================================================================== */
.hero-banner-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 480px;
    margin-top: calc(-1 * var(--navbar-h, 100px)); /* pull under fixed navbar */
    background: #0a0500;
    overflow: hidden;
}
.hero-banner-track { position: relative; width: 100%; height: 100%; }
.hero-banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.hero-banner-slide.active { opacity: 1; pointer-events: auto; }
.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.hero-banner-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,5,0,0.15) 0%, transparent 30%, transparent 65%, rgba(10,5,0,0.35) 100%);
    pointer-events: none;
}
.hbf-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    color: #4A1600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    transition: background 0.2s, transform 0.2s;
}
.hbf-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.hbf-prev { left: 28px; }
.hbf-next { right: 28px; }
.hbf-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hbf-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: 2px solid rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}
.hbf-dot.active { background: #fff; width: 34px; border-radius: 6px; }

@media (max-width: 991.98px) {
    .hbf-arrow { width: 44px; height: 44px; }
    .hbf-prev { left: 16px; }
    .hbf-next { right: 16px; }
}
@media (max-width: 575.98px) {
    .hero-banner-fullscreen { min-height: 420px; }
    .hbf-arrow { width: 36px; height: 36px; }
    .hbf-prev { left: 10px; }
    .hbf-next { right: 10px; }
    .hbf-dots { bottom: 18px; }
    .hbf-dot { width: 9px; height: 9px; }
    .hbf-dot.active { width: 26px; }
}

/* ==========================================================================
   ADVERTISEMENT SECTION (new)
   ========================================================================== */
.ad-section-new {
    padding: 4rem 0;
    background: linear-gradient(135deg, #FFFBF7 0%, #FFF3EA 100%);
}
.ad-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: #1a0500;
    box-shadow: 0 12px 40px rgba(74,22,0,0.18);
}
.ad-slider-track { position: relative; width: 100%; aspect-ratio: 16 / 6; }
.ad-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.ad-slide.active { opacity: 1; pointer-events: auto; }
.ad-slide-link { display: block; width: 100%; height: 100%; }
.ad-slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #1a0500;
}
.ad-slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4A1600, #C85A17);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
}
.ad-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    color: #4A1600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    transition: background 0.2s, transform 0.2s;
}
.ad-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.ad-prev { left: 14px; }
.ad-next { right: 14px; }
.ad-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}
.ad-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.22s;
}
.ad-dot.active { background: #C85A17; width: 26px; border-radius: 5px; }
.ad-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-ink-muted);
    background: #fff;
    border: 1px dashed var(--color-border);
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
}
.ad-empty .icon { font-size: 2.5rem; opacity: 0.3; display: block; margin: 0 auto 0.75rem; width: 2.5rem; height: 2.5rem; }

@media (max-width: 767.98px) {
    .ad-section-new { padding: 2.5rem 0; }
    .ad-slider-track { aspect-ratio: 16 / 9; }
    .ad-arrow { width: 34px; height: 34px; }
}

/* ==========================================================================
   STATIC HERO BANNER (100vh) — single fixed image (replaces slider)
   ========================================================================== */
.hero-banner-static {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 480px;
    margin-top: calc(-1 * var(--navbar-h, 100px));
    background: #0a0500;
    overflow: hidden;
}
.hero-banner-static-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.hero-banner-static .hero-banner-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,5,0,0.15) 0%, transparent 30%, transparent 65%, rgba(10,5,0,0.35) 100%);
    pointer-events: none;
}
@media (max-width: 575.98px) {
    .hero-banner-static { min-height: 420px; }
}

/* Donation schemes grid — 2 columns holds 8 cards in 4 rows cleanly */
.donation-schemes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    align-content: start;
}
@media (max-width: 575.98px) {
    .donation-schemes-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   USER-REQUESTED OVERRIDES (2025) — logo, banner, ad section, donation, fonts
   ========================================================================== */

/* ── 1. BIGGER LOGO (logo is wide 1074x392 ≈ 2.74:1) ── */
.nav-logo-img {
    width: auto !important;
    height: 64px !important;
    max-width: 240px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}
/* taller navbar to fit big logo */
:root { --navbar-h: 124px; }              /* announce(40) + navbar(84) */
@media (max-width: 1399.98px) {
    .nav-logo-img { height: 52px !important; max-width: 190px; }
    .navbar-mandal { height: 68px; }
}
@media (max-width: 575.98px) {
    .nav-logo-img { height: 44px !important; max-width: 160px; }
    .navbar-mandal { height: 60px; top: 34px; }
    :root { --navbar-h: 94px; }
}

/* ── 2. STATIC BANNER FULLY VISIBLE (no crop) ──
   Image is 1600x800 (2:1). Show the whole image with contain,
   and let the section height follow the image aspect ratio. ── */
.hero-banner-static {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1600 / 800;      /* matches home_banner.webp */
    max-height: calc(100vh - var(--navbar-h, 124px));
    margin-top: 0 !important;       /* sit below navbar, don't hide under it */
    background: #FFF9F4;            /* light frame instead of black */
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-banner-static-img {
    width: 100%;
    height: 100%;
    object-fit: contain !important; /* NO CROP — whole image visible */
    object-position: center center;
    display: block;
    background: #FFF9F4;
}
.hero-banner-static .hero-banner-shade { display: none; } /* no dark overlay */

@media (max-width: 575.98px) {
    .hero-banner-static { aspect-ratio: 16 / 10; }
}

/* ── 3. ADVERTISEMENT SECTION — no black background ── */
.ad-slider {
    background: #FFFFFF !important;              /* white, not black */
    border: 1px solid #EEDDD4;
    box-shadow: 0 10px 34px rgba(74, 22, 0, 0.12);
}
.ad-slide-img {
    background: #FFFFFF !important;              /* white behind ad image */
}
.ad-slide-placeholder {
    background: linear-gradient(135deg, #FFF3EA, #FFE3CE) !important;
    color: #7A2E0E !important;
}
.ad-section-new {
    background: linear-gradient(135deg, #FFFDFB 0%, #FFF6EF 100%) !important;
}

/* ── 4. DONATION — 8th card added via PHP; keep clean 2-col grid ── */
.donation-schemes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-content: start;
}
@media (max-width: 575.98px) {
    .donation-schemes-grid { grid-template-columns: 1fr; }
}

/* ── 5. INCREASED FONT SIZES ── */
body { font-size: 17px; }
.scheme-name   { font-size: 1rem !important; line-height: 1.4; }
.scheme-desc   { font-size: 0.86rem !important; line-height: 1.5; }
.donation-title { font-size: 2rem !important; }
.donation-desc { font-size: 1rem !important; }
.donation-eyebrow { font-size: 0.82rem !important; }
.donation-btn  { font-size: 1.05rem !important; padding: 14px 30px !important; }
.donation-tax-note { font-size: 0.86rem !important; }
.section-heading h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem) !important; }
.section-heading p  { font-size: 1.05rem !important; }
.section-heading .eyebrow { font-size: 0.82rem !important; }
.nav-link { font-size: 1rem !important; }
.scheme-icon { width: 46px; height: 46px; }
.scheme-icon .icon { width: 1.25em; height: 1.25em; }
@media (max-width: 575.98px) {
    body { font-size: 16px; }
    .donation-title { font-size: 1.5rem !important; }
}

/* ==========================================================================
   UPDATES 2025-B: olakh photo, bigger ad banner (no white space),
   samajik give-list 2-col
   ========================================================================== */

/* ── Photo beside "आमची ओळख" ── */
.olakh-media-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.olakh-photo {
    width: 300px;
    max-width: 42%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(74, 22, 0, 0.18);
    flex-shrink: 0;
}
.olakh-text { flex: 1; min-width: 0; }
@media (max-width: 767.98px) {
    .olakh-media-row { flex-direction: column; }
    .olakh-photo { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; }
}

/* ── Bigger advertisement banner, NO white space around image ── */
.ad-slider {
    max-width: 1200px !important;          /* wider */
    background: transparent !important;    /* no white/black frame */
    border: none !important;
    box-shadow: 0 12px 40px rgba(74, 22, 0, 0.15);
}
.ad-slider-track {
    aspect-ratio: 16 / 6 !important;       /* taller banner */
}
.ad-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;          /* fill fully — removes white space */
    object-position: center !important;
    background: transparent !important;
}
@media (max-width: 767.98px) {
    .ad-slider-track { aspect-ratio: 16 / 8 !important; }
}

/* ── Samajik Upkram give-list in 2 columns ── */
.upkram-give-list--2col {
    column-count: 2;
    column-gap: 2rem;
}
.upkram-give-list--2col li {
    break-inside: avoid;
}
@media (max-width: 575.98px) {
    .upkram-give-list--2col { column-count: 1; }
}

/* ===== COMMITTEE PAGE — redesigned: filter on top + responsive grid ===== */
.committee-page{max-width:1200px}
.committee-filter-bar{display:flex;flex-direction:column;gap:1rem;margin-bottom:1.75rem}
.committee-filter-tabs{display:flex;flex-wrap:wrap;gap:.6rem}
.committee-filter-pill{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:.55rem 1.15rem;border-radius:999px;border:1.5px solid #e8e8e8;background:#fff;color:#4a1600;text-decoration:none;transition:background .18s,color .18s,border-color .18s,box-shadow .18s;line-height:1.2}
.committee-filter-pill:hover{border-color:#c85a17;color:#c85a17;text-decoration:none}
.committee-filter-pill.active{background:#c85a17;border-color:#c85a17;color:#fff;box-shadow:0 3px 12px rgba(200,90,23,.28)}
.committee-filter-pill .pill-mr{font-size:.9rem;font-weight:700;white-space:nowrap}
.committee-filter-pill .pill-en{font-size:.68rem;font-weight:500;opacity:.75;margin-top:1px;white-space:nowrap}
.committee-filter-search{width:100%;max-width:440px}
.committee-filter-search .input-group .form-control{border-color:#e8e8e8;border-radius:10px 0 0 10px!important;font-size:.9rem;padding:.6rem 1rem}
.committee-filter-search .input-group .btn:first-of-type{border-radius:0!important}
.committee-filter-search .input-group .btn:last-child{border-radius:0 10px 10px 0!important}
.committee-active-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.5rem;padding-bottom:.85rem;margin-bottom:1.5rem;border-bottom:2px solid #fff3ea}
.committee-active-title{margin:0;font-size:1.25rem;font-weight:700;color:#4a1600;display:flex;flex-direction:column;line-height:1.25}
.committee-active-title .cat-en{font-size:.82rem;font-weight:500;color:#8c5a40}
.committee-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1.25rem}
@media (max-width:767.98px){.committee-filter-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:4px}.committee-filter-tabs::-webkit-scrollbar{display:none}.committee-filter-pill{flex-shrink:0}.committee-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.85rem}}
@media (max-width:575.98px){.committee-grid{grid-template-columns:repeat(2,1fr);gap:.75rem}.committee-active-title{font-size:1.05rem}.committee-filter-pill{padding:.45rem .9rem}.committee-filter-pill .pill-mr{font-size:.82rem}.committee-filter-search{max-width:100%}}

/* ===== MATRIMONY PAGE — full styling for mat-*/mh-* sections ===== */
/* Hero */
.matrimony-hero .mh-row{min-height:auto}
.mh-eyebrow{display:inline-flex;align-items:center;gap:.35rem;font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#c85a17;background:rgba(200,90,23,.1);border:1px solid rgba(200,90,23,.22);border-radius:999px;padding:.35rem 1rem;margin-bottom:1.1rem}
.mh-heading{font-size:clamp(2rem,4.5vw,3.1rem);font-weight:800;line-height:1.12;color:#2c0a00;margin-bottom:1rem}
.mh-accent{display:block;color:#c85a17}
.mh-lead{font-size:1.05rem;line-height:1.7;color:#5a4030;max-width:520px;margin-bottom:1.75rem}
.mh-btns{display:flex;flex-wrap:wrap;gap:.85rem;margin-bottom:1.5rem}
.mh-circle-wrap{position:relative;display:flex;align-items:center;justify-content:center;padding:1.5rem}
.mh-circle{position:relative;width:380px;max-width:100%;aspect-ratio:1/1;border-radius:50%;background:radial-gradient(circle at 50% 35%,#ff8a3d 0,#cc4400 55%,#a33600 100%);display:flex;align-items:flex-end;justify-content:center;overflow:hidden;box-shadow:0 24px 60px rgba(204,68,0,.32)}
.mh-circle-logo{position:absolute;top:26px;left:50%;transform:translateX(-50%);color:rgba(255,255,255,.28);font-size:2rem;z-index:1}
.mh-circle-logo .icon{width:2rem;height:2rem}
.mh-couple{width:82%;max-width:300px;height:auto;position:relative;z-index:2;margin-bottom:-2px}
.mh-float-badge{position:absolute;z-index:5;display:inline-flex;align-items:center;gap:.5rem;background:#fff;border-radius:999px;padding:.5rem .95rem;font-size:.85rem;font-weight:700;color:#2c0a00;box-shadow:0 10px 28px rgba(44,10,0,.18)}
.mh-badge-left{top:14%;left:2%}
.mh-badge-right{bottom:16%;right:2%}
.mhb-dot{width:26px;height:26px;border-radius:50%;background:#1f6b35;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.mhb-dot .icon{width:.85em;height:.85em}
.mhb-dot.mhb-gold{background:#c85a17}
/* Section scaffolding */
.mat-section-head{text-align:center;max-width:640px;margin:0 auto 2.75rem}
.mat-section-head h2{font-size:clamp(1.6rem,3.4vw,2.3rem);font-weight:800;color:#2c0a00;margin-bottom:.6rem}
.mat-section-head p{color:#6b5546;font-size:1rem;margin:0}
.mat-eyebrow{display:inline-block;font-size:.76rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#c85a17;margin-bottom:.6rem}
.mat-eyebrow-gold{color:#e0a94a}
.mat-section-light{background:#fff}
.mat-section-dark{background:linear-gradient(160deg,#2c0a00 0,#4a1600 60%,#5a1e08 100%)}
.mat-section-dark .mat-section-head h2{color:#fff}
/* Why cards */
.mat-why-card{background:#fff;border:1px solid #eeddd4;border-radius:16px;padding:1.75rem 1.35rem;height:100%;text-align:center;transition:box-shadow .22s,transform .22s}
.mat-why-card:hover{box-shadow:0 12px 34px rgba(200,90,23,.15);transform:translateY(-4px)}
.mat-why-icon{width:60px;height:60px;border-radius:16px;display:flex;align-items:center;justify-content:center;margin:0 auto 1.1rem;color:#fff;font-size:1.5rem}
.mat-why-icon .icon{width:1.5em;height:1.5em}
.mat-why-title{font-weight:700;font-size:1.05rem;color:#2c0a00;margin-bottom:.5rem;line-height:1.35}
.mat-why-desc{font-size:.86rem;color:#6b5546;line-height:1.6}
/* Steps */
.mat-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem;align-items:stretch}
.mat-step{position:relative}
.mat-step-inner{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:1.5rem 1rem;text-align:center;height:100%;transition:background .2s,transform .2s}
.mat-step-inner:hover{background:rgba(255,255,255,.1);transform:translateY(-3px)}
.mat-step-num{width:34px;height:34px;border-radius:50%;background:#c85a17;color:#fff;font-weight:800;font-size:.95rem;display:flex;align-items:center;justify-content:center;margin:0 auto .85rem}
.mat-step-icon{color:#e0a94a;font-size:1.6rem;margin-bottom:.6rem}
.mat-step-icon .icon{width:1.6em;height:1.6em}
.mat-step-title{font-weight:700;color:#fff;font-size:.95rem;margin-bottom:.3rem}
.mat-step-desc{font-size:.78rem;color:rgba(255,255,255,.6);line-height:1.5}
.mat-step-arrow{position:absolute;top:44px;left:-12px;color:rgba(224,169,74,.5);z-index:2;font-size:1.1rem}
.mat-step-arrow .icon{width:1.1em;height:1.1em}
/* Register CTA */
.mat-register-cta{padding:4.5rem 0;background:#fff}
.mat-register-inner{position:relative;border-radius:24px;overflow:hidden;padding:3rem 2rem;background:linear-gradient(135deg,#7a2e0e 0,#c85a17 55%,#a33600 100%);box-shadow:0 20px 60px rgba(196,90,18,.28)}
.mat-reg-bg{position:absolute;inset:0;background:radial-gradient(circle at 85% 15%,rgba(255,255,255,.1) 0,transparent 45%),radial-gradient(circle at 10% 90%,rgba(255,255,255,.07) 0,transparent 40%);pointer-events:none}
.mat-reg-content{position:relative;z-index:1;text-align:center;max-width:720px;margin:0 auto}
.mat-reg-content h2{color:#fff;font-size:clamp(1.5rem,3.4vw,2.2rem);font-weight:800;margin-bottom:.6rem}
.mat-reg-content>p{color:rgba(255,255,255,.85);font-size:1rem;margin-bottom:2rem}
.mat-pricing{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;max-width:600px;margin:0 auto 2rem}
.mat-price-card{background:rgba(255,255,255,.1);border:1.5px solid rgba(255,255,255,.2);border-radius:16px;padding:1.75rem 1.35rem;text-align:center;backdrop-filter:blur(4px)}
.mat-price-featured{background:#fff;border-color:#fff}
.mat-price-featured .mp-label,.mat-price-featured .mp-desc{color:#6b5546}
.mat-price-featured .mp-price{color:#c85a17}
.mp-label{font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.75);margin-bottom:.5rem}
.mp-price{font-size:2.2rem;font-weight:800;color:#fff;line-height:1;margin-bottom:.5rem;font-family:var(--font-display,serif)}
.mp-desc{font-size:.82rem;color:rgba(255,255,255,.75);line-height:1.5;min-height:2.4em}
.mat-reg-stats{display:flex;flex-wrap:wrap;justify-content:center;gap:1.25rem;color:rgba(255,255,255,.85);font-size:.85rem;font-weight:500}
.mat-reg-stats span{display:inline-flex;align-items:center;gap:.4rem}
.mat-reg-stats .icon{color:#ffd98a;width:1em;height:1em}
/* Reveal animation fallback — ensure visible even without JS observer */
.reveal-section,.reveal-card{opacity:1;transform:none}
@media (prefers-reduced-motion:no-preference){
  .reveal-section{animation:matFadeUp .6s ease both}
  .reveal-card{animation:matFadeUp .5s ease both}
  @keyframes matFadeUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
}
/* Responsive */
@media (max-width:991.98px){.mat-steps{grid-template-columns:repeat(2,1fr)}.mat-step-arrow{display:none}.mh-circle{width:320px}}
@media (max-width:575.98px){.mat-steps{grid-template-columns:1fr}.mat-pricing{grid-template-columns:1fr}.mat-register-inner{padding:2rem 1.25rem}.mh-btns .btn{width:100%;justify-content:center}.mh-float-badge{font-size:.75rem;padding:.4rem .75rem}.mat-why-card{padding:1.35rem 1.1rem}}
/* ===== Testimonials slider (2 cards per slide) ===== */
.tst-slider{position:relative;max-width:1000px;margin:0 auto;padding:0 8px}
.tst-viewport{overflow:hidden;border-radius:18px}
.tst-track{display:flex;transition:transform .55s cubic-bezier(.4,0,.2,1);will-change:transform}
.tst-slide{flex:0 0 100%;min-width:100%;display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;padding:.5rem;align-items:stretch}
.tst-card{display:flex;background:#fff;border:1px solid #eeddd4;border-radius:16px;overflow:hidden;box-shadow:0 4px 20px rgba(74,22,0,.08);min-height:190px}
.tst-card-media{flex:0 0 40%;position:relative;background:linear-gradient(135deg,#8a3b12,#c85a17);overflow:hidden}
.tst-card-media img{width:100%;height:100%;object-fit:cover;display:block}
.tst-card-media-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.55)}
.tst-card-media-ph .icon{width:2.75rem;height:2.75rem}
.tst-card-body{flex:1;padding:1.35rem 1.4rem;display:flex;flex-direction:column;min-width:0}
.tst-quote-icon{color:var(--color-primary,#c85a17);opacity:.28;line-height:1;margin-bottom:.4rem}
.tst-quote-icon .icon{width:1.7rem;height:1.7rem}
.tst-message{font-size:.9rem;color:#4a1800;line-height:1.7;font-style:italic;flex:1;margin:0 0 1rem;overflow-wrap:break-word}
.tst-author{border-top:1px solid #f0e2d8;padding-top:.75rem}
.tst-name{font-weight:700;font-size:.9rem;color:#4a1600;line-height:1.3}
.tst-village{font-size:.76rem;color:#8c5a40;margin-top:.15rem;display:flex;align-items:center}
.tst-village .icon{width:.8em;height:.8em;color:var(--color-primary,#c85a17)}
.tst-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:20;width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#8a3b12,#c85a17);border:2px solid #fff;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 6px 18px rgba(138,59,18,.4);transition:background .18s,transform .18s,box-shadow .18s}.tst-arrow:hover{background:linear-gradient(135deg,#4a1600,#8a3b12);transform:translateY(-50%) scale(1.08);box-shadow:0 8px 22px rgba(138,59,18,.5)}.tst-arrow .icon{width:1.2em;height:1.2em;color:#fff;fill:#fff}
.tst-arrow:hover{background:var(--color-primary,#c85a17);color:#fff;transform:translateY(-50%) scale(1.06)}
.tst-arrow .icon{width:1.15em;height:1.15em}
.tst-prev{left:6px}
.tst-next{right:6px}
.tst-dots{display:flex;justify-content:center;gap:.5rem;margin-top:1.5rem}
.tst-dot{width:9px;height:9px;border-radius:999px;border:none;background:rgba(200,90,23,.28);cursor:pointer;padding:0;transition:all .25s}
.tst-dot.active{background:var(--color-primary,#c85a17);width:26px;border-radius:5px}
@media (max-width:767.98px){
.tst-slide{grid-template-columns:1fr;gap:1rem}
.tst-card{min-height:0}
.tst-card-media{flex:0 0 38%;min-height:140px}
.tst-arrow{width:38px;height:38px}
.tst-prev{left:2px}
.tst-next{right:2px}
.tst-message{font-size:.86rem;margin-bottom:.75rem}
}
@media (max-width:420px){
.tst-card{flex-direction:column}
.tst-card-media{flex:0 0 auto;height:160px;width:100%}
}
.tst-arrow .icon,.tst-dot .icon{pointer-events:none}