/* =========================================================
   बिहार ड्राइवर महासंघ — Main Stylesheet
   YELLOW TAXI Theme (Demo Variant)
   ========================================================= */

:root {
  /* Brand Colors — YELLOW-DOMINANT with MAROON accent (#7f051c) */
  --red: #7f051c;           /* deep maroon — primary accent */
  --red-dark: #5c0214;       /* darker maroon */
  --red-deep: #a0091f;       /* slightly lighter maroon for hover */
  --maroon: #3d010e;         /* very dark maroon (deepest) */

  /* Yellow family — star of the theme */
  --yellow: #facc15;         /* taxi yellow (brighter, vivid) */
  --yellow-bright: #fde047;  /* lighter taxi yellow */
  --yellow-deep: #ca8a04;    /* deep yellow/amber */
  --cream: #fef9c3;          /* soft cream */
  --cream-light: #fefce8;    /* near-white yellow tint */
  --paper: #fffbe6;          /* paper background */

  /* Neutrals */
  --white: #ffffff;
  --off-white: #fafaf9;
  --text: #1c1917;
  --text-muted: #57534e;
  --text-light: #78716c;
  --border: #e7e5e4;
  --border-light: #f5f5f4;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.18);

  /* Typography */
  --font-display: 'Tiro Devanagari Hindi', serif;
  --font-body: 'Hind', 'Poppins', sans-serif;
  --font-en: 'Poppins', sans-serif;
  --font-stat: 'Bebas Neue', 'Anton', sans-serif;

  /* Layout */
  --container: 1240px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Universal list reset for navigation/menus */
nav ul, .nav, .dropdown, .mobile-bottom-nav-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li, .nav li, .dropdown li {
  list-style: none;
}

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

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  background: linear-gradient(95deg, var(--red-dark), var(--red), var(--red-deep));
  color: #fff;
  font-size: 0.9rem;
  padding: 10px 0;
  position: relative;
  overflow: hidden;
}

.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      transparent, transparent 30px,
      rgba(251, 191, 36, 0.08) 30px, rgba(251, 191, 36, 0.08) 32px);
  pointer-events: none;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.topbar-left {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  color: var(--yellow-bright);
}

.topbar-btn {
  background: var(--yellow);
  color: var(--maroon);
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--yellow-bright);
  transition: all 0.25s;
}

.topbar-btn:hover {
  background: var(--yellow-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(251, 191, 36, 0.3);
}

/* =========================================================
   HEADER (Logo bar)
   ========================================================= */
.header {
  background: var(--white);
  padding: 18px 0;
  border-bottom: 3px solid var(--yellow);
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: repeating-linear-gradient(90deg,
    var(--red) 0, var(--red) 12px,
    var(--yellow) 12px, var(--yellow) 24px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo svg {
  color: var(--yellow-bright);
  width: 40px;
  height: 40px;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: #7f051c;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

.reg-badge {
  background: var(--cream);
  border: 2px dashed var(--red);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.reg-badge .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.reg-badge .num {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--red-dark);
  font-size: 1.1rem;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav-wrapper {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(76, 5, 25, 0.2);
}

.nav-wrapper .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1;
  gap: 2px;
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-link {
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link svg {
  width: 16px;
  height: 16px;
  color: var(--yellow-bright);
}

.nav-link:hover, .nav-link.active {
  background: rgba(0, 0, 0, 0.15);
  border-bottom-color: var(--yellow);
}

.nav-link .arrow {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
}

.nav-item:hover .nav-link .arrow {
  transform: rotate(180deg);
}

/* Hamburger toggle button — desktop hidden, mobile visible */
.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.nav-toggle:hover {
  background: rgba(0,0,0,0.2);
  border-color: var(--yellow);
}
.nav-toggle svg {
  color: var(--yellow-bright);
}
.nav-toggle-label {
  display: inline-block;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s;
  border-top: 4px solid var(--yellow);
  z-index: 200;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown li { list-style: none; }

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: var(--text);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.15s;
}

.dropdown a:hover {
  background: var(--cream);
  color: var(--red-dark);
  padding-left: 24px;
}

.dropdown a:last-child {
  border-bottom: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.dropdown a .dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Mega Menu for districts */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--white);
  width: min(960px, 92vw);
  padding: 22px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
  border-top: 4px solid var(--yellow);
  z-index: 200;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-title {
  font-family: var(--font-display);
  color: var(--red-dark);
  font-size: 1.2rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--yellow);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-height: 420px;
  overflow-y: auto;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 0.88rem;
  border-radius: 6px;
  transition: all 0.15s;
}

.mega-menu-item:hover {
  background: var(--cream);
  color: var(--red-dark);
  font-weight: 600;
}

.mega-menu-item .dot {
  width: 5px; height: 5px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--yellow);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* =========================================================
   HERO BANNER
   ========================================================= */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.95), rgba(234, 179, 8, 0.9), rgba(202, 138, 4, 0.85)),
    radial-gradient(circle at 20% 30%, #fde047, transparent 50%),
    radial-gradient(circle at 80% 70%, #1a1a1a, transparent 50%);
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg,
      transparent 0, transparent 80px,
      rgba(251, 191, 36, 0.05) 80px, rgba(251, 191, 36, 0.05) 82px),
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.2), transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #7f051c;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.85);
  border: 2px solid #1a1a1a;
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yellow-bright);
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 700;
  text-shadow: 1px 2px 6px rgba(255,255,255,0.35);
  color: #7f051c;
}

.hero-title .accent {
  color: #7f051c;
  display: inline-block;
  background: #fff;
  padding: 2px 14px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(26, 26, 26, 0.85);
  margin-bottom: 32px;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-primary {
  background: var(--yellow);
  color: var(--maroon);
  border: 2px solid var(--yellow-bright);
}

.btn-primary:hover {
  background: var(--yellow-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(251, 191, 36, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--red-dark);
  transform: translateY(-2px);
}

/* Hero decorative divider */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  display: block;
}

/* =========================================================
   SECTIONS COMMON
   ========================================================= */
.section {
  padding: 72px 0;
  position: relative;
}

.section-alt {
  background: var(--paper);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  padding: 6px 16px;
  background: var(--cream);
  border-radius: 30px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--maroon);
  line-height: 1.2;
  margin-bottom: 12px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  border-radius: 2px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 1rem;
}

/* =========================================================
   WELCOME SECTION
   ========================================================= */
.welcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.welcome-images {
  position: relative;
  height: 440px;
}

.welcome-img {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--red-dark), var(--yellow-deep));
}

.welcome-img svg {
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.8);
}

.welcome-img-1 {
  width: 60%;
  height: 75%;
  top: 0;
  left: 0;
  z-index: 2;
  border: 6px solid var(--yellow);
}

.welcome-img-2 {
  width: 55%;
  height: 65%;
  bottom: 0;
  right: 0;
  z-index: 1;
  border: 6px solid var(--red);
}

.welcome-img-3 {
  position: absolute;
  bottom: 10%;
  left: 15%;
  background: var(--yellow);
  color: var(--maroon);
  padding: 20px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 3;
  text-align: center;
  border: 4px solid #fff;
}

.welcome-img-3 .big-num {
  font-family: var(--font-stat);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--red-dark);
}

.welcome-img-3 .label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
}

.welcome-content h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--maroon);
  line-height: 1.2;
  margin-bottom: 20px;
}

.welcome-content h2 .yellow-text {
  color: var(--yellow-deep);
}

.welcome-content p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.welcome-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}

.welcome-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.welcome-feature .tick {
  width: 28px;
  height: 28px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.welcome-feature span {
  font-weight: 600;
  color: var(--text);
}

/* =========================================================
   STATE MEMBERS (6 cards 3+3)
   ========================================================= */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.member-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  position: relative;
  border: 1px solid var(--border);
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.member-photo {
  height: 220px;
  background: linear-gradient(135deg, var(--cream), var(--yellow-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.member-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(250, 204, 21, 0.25), transparent 50%);
}

.member-photo svg {
  width: 120px;
  height: 120px;
  color: var(--red-dark);
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

.member-info {
  padding: 22px 20px;
  text-align: center;
  background: #fff;
  position: relative;
}

.member-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--maroon);
  margin-bottom: 4px;
}

.member-post {
  font-size: 0.88rem;
  color: var(--red);
  font-weight: 600;
  padding: 4px 14px;
  background: var(--cream);
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 14px;
}

.member-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.btn-mini {
  padding: 6px 14px;
  background: var(--red);
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-mini:hover {
  background: var(--yellow);
  color: var(--maroon);
}

.btn-mini.outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}

.btn-mini.outline:hover {
  background: var(--red);
  color: #fff;
}

/* =========================================================
   HEAD OFFICE (Google Map + Address)
   ========================================================= */
.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.office-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 360px;
  border: 4px solid var(--yellow);
  background: var(--cream);
}

.office-map iframe {
  width: 100%;
  height: 100%;
  min-height: 352px;
  border: 0;
  display: block;
}

.office-info {
  background: linear-gradient(135deg, var(--maroon), var(--red-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 26px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.office-info::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.3), transparent 70%);
  border-radius: 50%;
}

.office-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--yellow-bright);
  margin-bottom: 4px;
  position: relative;
}

.office-info .office-sub {
  color: rgba(255,255,255,0.8);
  font-size: 0.86rem;
  margin-bottom: 16px;
  position: relative;
}

.office-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(251, 191, 36, 0.3);
}

.office-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.office-item-icon {
  width: 36px;
  height: 36px;
  background: var(--yellow);
  color: var(--maroon);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.office-item-icon svg { width: 18px; height: 18px; }

.office-item-text strong {
  display: block;
  color: var(--yellow-bright);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.office-item-text p {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.45;
}

.office-item-text a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
}

/* =========================================================
   MEMBERSHIP BENEFITS (4 cards)
   ========================================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.benefit-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red), var(--yellow-deep));
  transform: translateY(100%);
  transition: transform 0.35s;
  z-index: 0;
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: var(--yellow);
  box-shadow: var(--shadow-lg);
}

.benefit-card:hover::before {
  transform: translateY(0);
}

.benefit-card:hover .benefit-image {
  transform: scale(1.05);
}

.benefit-card:hover h3,
.benefit-card:hover p {
  color: #fff;
  position: relative;
  z-index: 1;
}

/* NEW: Hero image at top of card */
.benefit-image {
  width: 100%;
  height: 160px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.benefit-image svg,
.benefit-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.benefit-body {
  padding: 24px 22px 30px;
  position: relative;
  z-index: 1;
}

.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--maroon);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.benefit-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

/* =========================================================
   USEFUL LINKS (5-6 cards)
   ========================================================= */
.links-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.link-card {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.link-card:nth-child(even) {
  background: linear-gradient(135deg, var(--yellow-deep), var(--yellow));
  color: var(--maroon);
}

.link-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: transform 0.4s;
}

.link-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.link-card:hover::before {
  transform: scale(2);
}

.link-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.link-icon svg { width: 30px; height: 30px; }

.link-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* =========================================================
   STATS
   ========================================================= */
.stats {
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.98), rgba(234, 179, 8, 0.95)),
    radial-gradient(circle at 30% 70%, var(--yellow), transparent 50%);
  padding: 40px 0;
  color: #7f051c;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      transparent 0, transparent 40px,
      rgba(0, 0, 0, 0.04) 40px, rgba(0, 0, 0, 0.04) 41px);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 14px 16px;
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25), transparent);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  background: rgba(0, 0, 0, 0.08);
  border: 2px solid #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 22px; height: 22px;
  color: #7f051c;
}

.stat-num {
  font-family: var(--font-stat);
  font-size: 2.8rem;
  line-height: 1;
  color: #7f051c;
  letter-spacing: 1px;
  font-weight: 700;
}

.stat-num .plus {
  font-size: 1.8rem;
}

.stat-label {
  font-size: 0.92rem;
  margin-top: 4px;
  font-weight: 600;
  color: #7f051c;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-album {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  background: linear-gradient(135deg, var(--red-dark), var(--yellow-deep));
}

.gallery-album:hover { transform: scale(1.02); }

.gallery-album-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-album-bg svg {
  width: 60%;
  height: 60%;
  color: #fff;
}

.gallery-album-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-album:hover .gallery-album-bg img {
  transform: scale(1.08);
}

.gallery-album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85));
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.gallery-album-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.gallery-album-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}

.gallery-album-meta .pill {
  background: var(--yellow);
  color: var(--maroon);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.75rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: linear-gradient(180deg, var(--maroon) 0%, var(--red-dark) 100%);
  color: #d6d3d1;
  padding: 64px 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--red) 0, var(--red) 12px,
    var(--yellow) 12px, var(--yellow) 24px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--yellow-bright);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 40px;
  height: 40px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--yellow-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.social a:hover {
  background: var(--yellow);
  color: var(--maroon);
  transform: translateY(-3px);
}

.social svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--yellow-bright);
  font-size: 1.1rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--yellow);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col a::before {
  content: '›';
  color: var(--yellow);
  font-weight: 700;
}

.footer-col a:hover {
  color: var(--yellow-bright);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(251, 191, 36, 0.15);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-bottom .red-accent {
  color: var(--yellow-bright);
  font-weight: 600;
}

/* =========================================================
   FORM STYLES (Membership page)
   ========================================================= */
.page-hero {
  background:
    linear-gradient(135deg, var(--maroon), var(--red-dark)),
    radial-gradient(circle at 20% 30%, var(--yellow), transparent 50%);
  padding: 60px 0 80px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      transparent 0, transparent 40px,
      rgba(251, 191, 36, 0.06) 40px, rgba(251, 191, 36, 0.06) 42px);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--yellow-bright);
  margin-bottom: 10px;
  position: relative;
}

.page-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid var(--yellow);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--yellow-bright);
  position: relative;
  margin-top: 14px;
}

.form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 960px;
  margin: -50px auto 60px;
  position: relative;
  z-index: 2;
  border-top: 6px solid var(--yellow);
}

.form-section-title {
  font-family: var(--font-display);
  color: var(--red-dark);
  font-size: 1.4rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--yellow);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-title .step-num {
  width: 32px;
  height: 32px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-field label .req { color: var(--red); }

.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s;
  background: var(--cream-light);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.form-field textarea {
  min-height: 90px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding-top: 20px;
  border-top: 2px dashed var(--yellow);
}

.btn-submit {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  padding: 14px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-submit:hover {
  background: var(--yellow);
  color: var(--maroon);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Blocks grid for prakhand page */
.blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.block-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  transition: all 0.25s;
  border-left: 4px solid var(--yellow);
}

.block-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-left-color: var(--red);
}

.block-icon {
  width: 50px;
  height: 50px;
  background: var(--cream);
  color: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.block-icon svg { width: 24px; height: 24px; }

.block-info h3 {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.block-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.block-name {
  font-weight: 600;
  color: var(--text) !important;
  margin-top: 4px !important;
}

.block-contact { color: var(--red) !important; }

/* District officials */
.district-hero {
  text-align: center;
  padding: 40px 0;
}

.district-crest {
  width: 80px;
  height: 80px;
  background: var(--red);
  color: var(--yellow-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 4px solid var(--yellow);
}

.district-crest svg { width: 40px; height: 40px; }

.district-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--maroon);
  margin-bottom: 6px;
}

.district-sub {
  color: var(--text-muted);
}

.officials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.official-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--border-light);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.official-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
}

.official-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--yellow);
}

.official-photo {
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, var(--cream), var(--yellow-bright));
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--yellow);
  color: var(--red-dark);
}

.official-photo svg { width: 50px; height: 50px; }

.official-name {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.official-post {
  background: var(--red);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.official-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.official-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

/* =========================================================
   CONTENT PAGE (About, Terms, Privacy etc.)
   ========================================================= */
.content-page {
  padding: 60px 0 80px;
  max-width: 880px;
  margin: 0 auto;
}

.content-page h2 {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.8rem;
  margin-bottom: 14px;
  margin-top: 28px;
}

.content-page h3 {
  color: var(--red-dark);
  font-size: 1.25rem;
  margin: 22px 0 10px;
}

.content-page p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 1rem;
}

.content-page ul, .content-page ol {
  margin: 12px 0 18px 24px;
  color: var(--text-muted);
}

.content-page li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.info-box {
  background: var(--cream);
  border-left: 4px solid var(--red);
  padding: 18px 22px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.info-box strong { color: var(--red-dark); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .benefits-grid, .links-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-card:not(:last-child)::after { display: none; }
  .welcome { grid-template-columns: 1fr; }
  .welcome-images { height: 400px; max-width: 500px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mega-menu-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .nav { display: none; flex-direction: column; background: var(--red-deep); position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 100px); overflow-y: auto; z-index: 200; padding: 0; }
  .nav.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { padding: 14px 20px; width: 100%; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .dropdown, .mega-menu { position: static; opacity: 1; visibility: visible; transform: none; background: rgba(0,0,0,0.2); box-shadow: none; border-top: 1px solid var(--yellow); border-radius: 0; width: 100%; display: none; }
  .dropdown a { color: #fff; padding: 12px 30px; display: block; }
  .dropdown a:hover { background: rgba(255,255,255,0.1); }
  .nav-item.active .dropdown,
  .nav-item.active .mega-menu { display: block; }
  .nav-toggle { display: inline-flex !important; }
  .nav-wrapper .container { display: flex; justify-content: flex-start; align-items: center; padding: 0 20px; position: relative; }
  .members-grid, .officials-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .office-map { height: 320px; }
  .mega-menu-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 26px 20px; margin-top: -30px; }
  .header-inner { flex-direction: column; text-align: center; }
  .topbar-inner { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .hero { height: 420px; }
  .section { padding: 48px 0; }
  .benefits-grid, .links-grid, .members-grid, .officials-grid, .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .welcome-content h2 { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .mega-menu-grid { grid-template-columns: 1fr; }
  .brand-logo { width: 56px; height: 56px; }
  .brand-logo svg { width: 30px; height: 30px; }
  .brand-text h1 { font-size: 1.3rem; }
  /* Mobile reg badge: show as compact inline pill below brand text */
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }
  .reg-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    border-width: 1.5px;
    width: auto;
    flex-basis: 100%;
    justify-content: flex-start;
    margin-left: 70px;
    margin-top: -4px;
  }
  .reg-badge .label {
    font-size: 0.6rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
  }
  .reg-badge .label::after {
    content: ":";
    margin-left: 2px;
  }
  .reg-badge .num {
    font-size: 0.78rem;
  }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blinkBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.fade-up { animation: fadeUp 0.6s ease-out both; }
.live-badge {
  animation: blinkBadge 1.5s infinite;
}

/* Scrollbar styling for mega menu */
.mega-menu-grid::-webkit-scrollbar { width: 8px; }
.mega-menu-grid::-webkit-scrollbar-track { background: var(--cream); border-radius: 4px; }
.mega-menu-grid::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }

/* =========================================================
   PAGE BANNER (Inner Page Hero)
   ========================================================= */
.page-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 50%, var(--maroon) 100%);
  color: #fff;
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  top: -50%; right: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 65%);
  opacity: 0.25;
}
.page-banner::after {
  content: "";
  position: absolute;
  bottom: -100px; left: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--yellow-bright) 0%, transparent 70%);
  opacity: 0.15;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.page-banner-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 8px;
}
.page-banner-title .accent { color: var(--yellow-bright); }
.page-banner-sub {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--yellow-bright); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: 0.6; }

/* District hero (used inside generateDistrictOfficial) */
.district-hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  border-radius: var(--radius);
  margin-bottom: 40px;
  border: 2px solid var(--yellow);
}
.district-crest {
  width: 64px; height: 64px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(185,28,28,0.3);
}
.district-crest svg { width: 32px; height: 32px; }
.district-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--maroon);
  margin: 4px 0;
}
.district-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.officials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.official-photo {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, var(--cream), #fff);
  border: 2px solid var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--red);
}
.official-photo svg { width: 48px; height: 48px; }
.official-name {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.official-post {
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.official-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.official-actions {
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--red);
  color: #fff;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
}
.btn-mini:hover { background: var(--red-dark); }
.official-card { text-align: center; padding: 22px 18px; }

/* Gallery full page */
.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}
.filter-pill {
  padding: 8px 18px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Contact page specific */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
  align-items: start;
}
.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.contact-info-card h3 {
  font-family: var(--font-display);
  color: var(--maroon);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--yellow);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item-icon {
  width: 42px; height: 42px;
  background: var(--cream);
  color: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 20px; height: 20px; }
.contact-item-text {
  font-size: 0.92rem;
  line-height: 1.5;
}
.contact-item-text strong {
  display: block;
  color: var(--maroon);
  margin-bottom: 3px;
  font-size: 0.95rem;
}
.contact-item-text a { color: var(--red); text-decoration: none; }

/* Members grid page (state-members.html) */
.members-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .officials-grid, .members-page-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .page-banner-title { font-size: 2rem; }
}
@media (max-width: 560px) {
  .officials-grid, .members-page-grid { grid-template-columns: 1fr; }
  .page-banner-title { font-size: 1.6rem; }
  .page-banner { padding: 40px 0 50px; }
}

/* =========================================================
   QUICK SERVICES — ID Verify, Certificate, Register
   Placed right after hero (overlaps wave for impact)
   ========================================================= */
.quick-services {
  position: relative;
  z-index: 3;
  margin-top: -40px;
  padding: 0 0 50px;
}
.quick-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 12px 40px rgba(76, 5, 25, 0.12);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(76, 5, 25, 0.18);
}
.service-card.highlight {
  border-top-color: var(--yellow);
  background: linear-gradient(180deg, #fff 0%, #fef9eb 100%);
}
.service-card.primary {
  border-top-color: var(--red);
  background: linear-gradient(180deg, #fff 0%, #fefce8 100%);
}
.service-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(185,28,28,0.3);
}
.service-card.highlight .service-card-icon {
  background: var(--yellow);
  box-shadow: 0 6px 16px rgba(245,158,11,0.35);
}
.service-card-icon svg { width: 26px; height: 26px; }
.service-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--maroon);
  line-height: 1.3;
  margin-bottom: 2px;
}
.service-card-sub {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* =========================================================
   GENERAL FORM STYLING (membership form, contact, register, login etc.)
   ========================================================= */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 4px;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 7px;
}

.form-group .required {
  color: var(--red);
  font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border, #e7e5e4);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(127, 5, 28, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group input[readonly] {
  background: #fef9c3;
  cursor: not-allowed;
}

.form-group small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Page banner for inner pages */
.page-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-banner-title {
  font-family: var(--font-display, 'Tiro Devanagari Hindi', serif);
  font-size: 2.6rem;
  margin: 12px 0 8px;
  color: #fff;
  line-height: 1.2;
}
.page-banner-title .accent {
  color: var(--yellow);
}
.page-banner-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 700px;
}
.page-banner .breadcrumb {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
}
.page-banner .breadcrumb a {
  color: var(--yellow-bright, #fde047);
}
.page-banner .breadcrumb .sep {
  margin: 0 6px;
  opacity: 0.6;
}

@media (max-width: 640px) {
  .page-banner { padding: 40px 0 50px; }
  .page-banner-title { font-size: 1.8rem; }
}

/* Modal-style form wrapper used in membership, register, login pages */
.modal-body {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 6px 30px rgba(127, 5, 28, 0.08);
  border-top: 4px solid var(--yellow);
}
@media (max-width: 640px) {
  .modal-body { padding: 22px 18px; }
}

.service-form .form-group { margin-bottom: 14px; }
.service-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 5px;
}
.service-form input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border 0.2s;
}
.service-form input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
}
.service-form .btn-action,
.service-card > .btn-action,
.btn-action {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: all 0.2s;
}
.service-form .btn-action.primary,
.service-card > .btn-action.primary,
.btn-action.primary {
  background: var(--red);
  color: #fff;
}
.service-form .btn-action.primary:hover,
.service-card > .btn-action.primary:hover,
.btn-action.primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.service-form .btn-action.yellow,
.service-card > .btn-action.yellow,
.btn-action.yellow {
  background: var(--yellow);
  color: var(--maroon);
}
.service-form .btn-action.yellow:hover,
.service-card > .btn-action.yellow:hover,
.btn-action.yellow:hover {
  background: var(--yellow-bright);
}

/* Preview / result box that appears inside service cards */
.service-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  display: none;
}
.service-result.show { display: block; animation: fadeInUp 0.35s ease; }
.service-result.success {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
}
.service-result.error {
  background: #fef2f2;
  border-left: 4px solid #000000;
}
.service-result .result-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 6px;
}
.service-result .result-body {
  font-size: 0.88rem;
  color: var(--text);
}
.service-result .id-preview {
  margin-top: 12px;
  padding: 12px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 6px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.id-preview-photo {
  width: 54px; height: 54px;
  background: var(--cream);
  border: 2px solid var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.id-preview-info { flex: 1; font-size: 0.85rem; line-height: 1.45; }
.id-preview-info strong { color: var(--maroon); font-size: 0.95rem; display: block; }

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

/* =========================================================
   AUTH MODAL — Register / Login
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(76, 5, 25, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  position: relative;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) }
  to { opacity: 1; transform: translateY(0) }
}

.modal-head {
  background: linear-gradient(135deg, var(--red) 0%, var(--maroon) 100%);
  color: #fff;
  padding: 22px 26px;
  border-radius: 14px 14px 0 0;
  position: relative;
}
.modal-head h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.modal-head p {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.85);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.28); }

.modal-tabs {
  display: flex;
  background: var(--cream);
  border-bottom: 2px solid var(--border);
}
.modal-tab {
  flex: 1;
  padding: 14px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.modal-tab.active { color: var(--red); }
.modal-tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 15%; right: 15%;
  height: 3px;
  background: var(--red);
  border-radius: 3px 3px 0 0;
}

.modal-body { padding: 26px; }
.modal-body .form-group { margin-bottom: 16px; }
.modal-body label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 6px;
}
.modal-body input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}
.modal-body input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(185,28,28,0.12);
}
.modal-panel { display: none; }
.modal-panel.active { display: block; }
.modal-submit {
  width: 100%;
  padding: 13px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s;
  font-family: inherit;
}
.modal-submit:hover { background: var(--red-dark); }
.modal-footnote {
  text-align: center;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.modal-footnote a { color: var(--red); font-weight: 600; text-decoration: none; }

/* Verify link in topbar */
.topbar-verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(251, 191, 36, 0.22);
  color: #fef3c7;
  border: 1px solid rgba(251,191,36,0.4);
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  margin-right: 10px;
  transition: all 0.2s;
}
.topbar-verify:hover {
  background: var(--yellow-bright);
  color: var(--maroon);
}
.topbar-verify svg { width: 12px; height: 12px; }

/* Founding date badge in welcome */
.foundation-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-bright) 100%);
  color: var(--maroon);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.foundation-badge svg { width: 14px; height: 14px; }

/* Responsive */
@media (max-width: 1024px) {
  .quick-services-grid { grid-template-columns: 1fr; gap: 18px; }
  .quick-services { margin-top: -30px; padding-bottom: 40px; }
}
@media (max-width: 560px) {
  .modal { border-radius: 10px; }
  .modal-head { padding: 18px 22px; }
  .modal-body { padding: 22px; }
  .topbar-verify { display: none; }
  .service-card { padding: 22px 18px; }
}

/* =========================================================
   HELPLINE STRIP (24/7) — Above topbar
   ========================================================= */
.helpline-strip {
  background: linear-gradient(90deg, var(--yellow) 0%, var(--yellow-bright) 50%, var(--yellow) 100%);
  color: var(--maroon);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  position: relative;
  overflow: hidden;
}
.helpline-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.helpline-strip a {
  color: var(--maroon);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}
.helpline-strip a:hover { text-decoration: underline; }
.helpline-strip .pulse-dot {
  width: 8px; height: 8px;
  background: #dc2626;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.25); }
}
.helpline-strip .divider {
  width: 1px;
  height: 14px;
  background: rgba(76,5,25,0.3);
}

/* =========================================================
   LEADERSHIP CONTACT CARDS
   ========================================================= */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.leader-contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  position: relative;
  transition: all 0.25s;
  overflow: hidden;
}
.leader-contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--yellow) 100%);
}
.leader-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(76,5,25,0.14);
}
.leader-contact-photo {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--cream), #fff);
  border: 2px solid var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 12px;
  color: var(--red);
}
.leader-contact-photo svg { width: 38px; height: 38px; }
.leader-contact-post {
  font-weight: 700;
  color: var(--red-dark);
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.leader-contact-name {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.08rem;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.leader-contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--cream);
  color: var(--red-dark);
  text-decoration: none;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--font-mono, inherit);
  transition: all 0.2s;
}
.leader-contact-phone:hover {
  background: var(--red);
  color: #fff;
}
.leader-contact-phone svg { width: 14px; height: 14px; }

/* =========================================================
   FLOATING CALL / WHATSAPP (MOBILE)
   ========================================================= */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.25s;
  position: relative;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn.call { background: var(--red); }
.float-btn.whatsapp { background: #25d366; }
.float-btn svg { width: 22px; height: 22px; }
.float-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.5;
  animation: ripple 2s infinite;
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 1024px) {
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .leadership-grid { grid-template-columns: 1fr; }
  .helpline-strip { font-size: 0.76rem; padding: 5px 10px; }
  .helpline-strip .divider { display: none; }
  .floating-actions { bottom: 14px; right: 14px; }
  .float-btn { width: 46px; height: 46px; }
}

/* =========================================================
   CASCADING SELECTION PANEL (District/Block pages)
   ========================================================= */
.selector-panel {
  background: linear-gradient(135deg, #fff 0%, var(--cream) 100%);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 30px;
  box-shadow: 0 8px 28px rgba(185,28,28,0.08);
}
.selector-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--border);
}
.selector-panel-icon {
  width: 44px; height: 44px;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.selector-panel-icon svg { width: 22px; height: 22px; }
.selector-panel-title {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.25rem;
}
.selector-panel-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.selector-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 8px;
}
.selector-field label .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}
.selector-field select,
.selector-field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border 0.2s;
}
.selector-field select:focus,
.selector-field input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
}
.selector-field.fixed input {
  background: var(--cream);
  color: var(--maroon);
  font-weight: 700;
  cursor: not-allowed;
  border-color: var(--yellow);
}
.selector-field select:disabled {
  background: #f4f5f7;
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}
.selector-field .hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.selector-placeholder {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}
.selector-placeholder-icon {
  width: 72px; height: 72px;
  background: var(--cream);
  color: var(--red);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.selector-placeholder-icon svg { width: 36px; height: 36px; }
.selector-placeholder h3 {
  font-family: var(--font-display);
  color: var(--maroon);
  margin-bottom: 8px;
}
.selector-placeholder p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .selector-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* =========================================================
   OFFICIALS CASCADING SELECTOR PAGE (block-officials.html)
   ========================================================= */
.selector-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: 0 12px 32px rgba(76,5,25,0.1);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  max-width: 1000px;
  margin: -40px auto 40px;
  position: relative;
  z-index: 5;
}
.selector-card-head {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border);
}
.selector-card-head h3 {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.selector-card-head p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.selector-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr 1.2fr auto;
  gap: 14px;
  align-items: end;
}
.selector-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.selector-field label .req { color: var(--red); }
.selector-field select,
.selector-field .state-pill {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border 0.2s;
  cursor: pointer;
}
.selector-field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
}
.selector-field select:disabled {
  background: #f3f4f6;
  color: var(--text-muted);
  cursor: not-allowed;
}
.selector-field .state-pill {
  background: linear-gradient(135deg, var(--red) 0%, var(--maroon) 100%);
  color: #fff;
  text-align: center;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: default;
  border-color: var(--maroon);
}
.selector-field .state-pill svg { width: 16px; height: 16px; }
.selector-reset-btn {
  padding: 12px 18px;
  background: var(--cream);
  color: var(--maroon);
  border: 2px solid var(--yellow);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.selector-reset-btn:hover {
  background: var(--yellow);
}
.selector-reset-btn svg { width: 14px; height: 14px; }

/* Empty / prompt state */
.officials-empty {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  border-radius: var(--radius);
  border: 2px dashed var(--yellow);
}
.officials-empty .empty-icon {
  width: 80px; height: 80px;
  background: #fff;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--red);
}
.officials-empty .empty-icon svg { width: 40px; height: 40px; }
.officials-empty h3 {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.officials-empty p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* District / Prakhand section headers */
.result-section {
  margin-bottom: 40px;
}
.result-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--red) 0%, var(--maroon) 100%);
  color: #fff;
  border-radius: var(--radius);
}
.result-section-head .icon {
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.result-section-head .icon svg { width: 24px; height: 24px; }
.result-section-head h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 2px;
}
.result-section-head p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.88);
}
.result-section-head .count-badge {
  margin-left: auto;
  background: var(--yellow);
  color: var(--maroon);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Prakhand-specific sub-header (inside generatePrakhandOfficials) */
.prakhand-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-bright) 100%);
  color: var(--maroon);
  border-radius: var(--radius);
}
.prakhand-badge {
  width: 46px; height: 46px;
  background: var(--maroon);
  color: var(--yellow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prakhand-badge svg { width: 24px; height: 24px; }
.prakhand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 2px;
  color: var(--maroon);
}
.prakhand-sub {
  font-size: 0.88rem;
  color: rgba(76,5,25,0.8);
}

@media (max-width: 1024px) {
  .selector-grid { grid-template-columns: 1fr 1fr; }
  .selector-field:nth-child(3) { grid-column: span 2; }
  .selector-reset-btn { grid-column: span 2; justify-content: center; }
  .selector-card { margin-top: -30px; padding: 22px; }
}
@media (max-width: 560px) {
  .selector-grid { grid-template-columns: 1fr; }
  .selector-field:nth-child(3), .selector-reset-btn { grid-column: auto; }
  .selector-card { padding: 18px; margin: -20px 12px 30px; }
  .result-section-head { flex-wrap: wrap; padding: 14px 18px; }
  .result-section-head .count-badge { margin-left: 0; }
  .prakhand-header { padding: 14px 18px; }
}

/* =========================================================
   WELCOME HERO IMAGE (simplified - single big illustration)
   ========================================================= */
.welcome-img-main {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid var(--yellow);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--red-dark), var(--yellow-deep));
}
.welcome-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   MOBILE: Hide duplicate topbar info (helpline strip already shows it)
   ========================================================= */
@media (max-width: 820px) {
  .topbar-left {
    display: none !important;
  }
  .topbar-inner {
    justify-content: center;
  }
  /* Welcome section stacks vertically */
  .welcome {
    grid-template-columns: 1fr !important;
  }
  .welcome-images {
    height: 280px !important;
    order: -1;
  }
}

@media (max-width: 560px) {
  .welcome-images {
    height: 240px !important;
  }
}

/* =========================================================
   MOBILE BOTTOM NAV (Home | Gallery | ID Card | Membership)
   Visible only on mobile, fixed at bottom
   ========================================================= */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid var(--yellow);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  z-index: 800;
  padding: 6px 0 10px;
}

.mobile-bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 0.2s;
  border-radius: 8px;
  min-height: 52px;
}

.mobile-bottom-nav a svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.mobile-bottom-nav a.active {
  color: var(--red);
}

.mobile-bottom-nav a.active svg {
  stroke: var(--red);
}

.mobile-bottom-nav a:hover {
  color: var(--red);
}

@media (max-width: 820px) {
  .mobile-bottom-nav {
    display: block;
  }
  /* Add bottom padding to body to prevent content being hidden behind nav */
  body {
    padding-bottom: 70px !important;
  }
  /* Move floating actions up so they don't collide with bottom nav */
  .floating-actions {
    bottom: 80px !important;
  }
}
