/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables */
:root {
  --bg-dark: #022c22;
  --bg-darker: #011510;
  --bg-light-dark: #064e3b;
  --text-light: #f3f4f6;
  --text-muted: #9ca3af;
  --gold: #f59e0b;
  --gold-hover: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.3);
  --flag-red: #ef4444;
  --flag-black: #000000;
  --flag-white: #ffffff;
  --glass-bg: rgba(6, 78, 59, 0.25);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover-bg: rgba(6, 78, 59, 0.4);
  --glass-hover-border: rgba(245, 158, 11, 0.4);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

/* Base Reset & Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 65px;
  /* Offset for fixed header */
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-darker);
  color: var(--text-light);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-light-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-light) 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-flag {
  background: linear-gradient(90deg, var(--flag-black) 33%, var(--flag-white) 33%, var(--flag-white) 66%, var(--flag-red) 66%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Wrapper */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* Glowing Background Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  animation: float-blob 20s infinite alternate;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--gold);
  top: -100px;
  right: -50px;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: var(--bg-light-dark);
  bottom: -150px;
  left: -100px;
  animation-delay: -5s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: var(--flag-red);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  animation-duration: 25s;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, -30px) scale(1.1);
  }

  100% {
    transform: translate(-30px, 50px) scale(0.95);
  }
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  background: var(--glass-hover-bg);
  border-color: var(--glass-hover-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--gold-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.8rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
  color: var(--bg-darker);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5), 0 0 15px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

/* ============================================
   HEADER & NAVBAR (Full Width Dark)
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000000;
  z-index: 1000;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--flag-black) 25%, var(--flag-red) 25%, var(--flag-red) 50%, var(--flag-white) 50%, var(--flag-white) 75%, var(--flag-black) 75%);
}

.navbar-full {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 1.5rem;
}

/* Left: Logo Area */
.nav-logo-full {
  display: flex;
  align-items: center;
  gap: 0px;
  text-decoration: none;
}

/* Logo Image */
.nav-logo-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  border: none;
  background: transparent;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
  transition: filter 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.nav-logo-img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.7));
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-main {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ADMK Two-Color Name Classes */
.logo-red {
  color: #FE0000;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.logo-white {
  color: #FFFFFF;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nav-logo-sub {
  color: #adb5bd;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Center: Navigation Links */
.nav-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #f3f4f6;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.35rem 0.2rem;
  position: relative;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  gap: 4px;
}

.nav-links a:hover {
  color: #f59e0b;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #f59e0b;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown arrows if needed */
.nav-links li {
  position: relative;
}

.nav-links li>a::after {
  /* This is the hover underline, not a dropdown arrow */
}

/* Right: Socials & Language */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-socials {
  display: flex;
  gap: 0.5rem;
}

.nav-social-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-social-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.lang-toggle {
  background: #e50000;
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease;
}

.lang-toggle::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
}

.lang-toggle:hover {
  background: #cc0000;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
}

/* ============================================
   HERO CAROUSEL — PIXEL-PERFECT ALIGNMENT
   ============================================ */

/* Section wrapper — always full viewport height */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background: var(--bg-darker);
}

/* Track — flex row, each slide = 100% of section width */
.hc-track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ── Individual slide ──
   Uses a centered-content layout with a fixed max-width inner wrapper.
   Navbar height = ~88px (fixed, top:1.5rem + padding), so
   content gets padding-top: 96px to clear it. */
.hc-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  /* Full-height flex column so inner wrapper is truly centered */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* vertical center */
  background: var(--bg-darker);
}

/* Photo Slide Styles */
.hc-photo-bg {
  position: absolute;
  inset: 0;
  background-image: var(--slide-img);
  background-size: cover;
  background-position: var(--slide-img-pos, center top);
  z-index: 0;
  transition: transform 6s ease-out;
  /* Slight zoom effect during slide */
}

.hc-slide.active .hc-photo-bg {
  transform: scale(1.05);
  /* Zoom in slowly when active */
}

.hc-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  z-index: 1;
}

/* Slide radial glow overlay (for old slides if any) */
.hc-slide-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Thin flag-stripe accent — right edge */
.hc-flag-stripes {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}

.hc-stripe {
  flex: 1;
}

.hc-stripe-black {
  background: #111827;
}

.hc-stripe-red {
  background: #ef4444;
}

/* ── Right illustration panel ──
   Occupies right 52% of the slide, absolutely positioned,
   content sits at the bottom edge for a "rising" look. */
.hc-slide-visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 52%;
  display: flex;
  align-items: flex-end;
  /* anchor SVG to bottom */
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* Crowd SVG — fills the panel height */
.hc-crowd-svg {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

/* Illustration SVGs (heart, tree, crown) — float above bottom */
.hc-illus-svg {
  width: 80%;
  max-width: 460px;
  height: auto;
  opacity: 0.92;
  margin-bottom: 80px;
  /* lift slightly off the floor */
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.55));
  animation: float-illus 5s ease-in-out infinite alternate;
}

@keyframes float-illus {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-20px) scale(1.03);
  }
}

/* ── Content container ──
   Mirrors the site-wide .container: max 1280px, centered,
   32px (2rem) side padding. On top we clear the navbar (96px). */
.hc-slide-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  /* same as .container */
  margin: 0 auto;
  /* centre horizontally */
  padding: 96px 32px 80px 32px;
  /* top=navbar clear | sides | bottom=indicator zone */
  box-sizing: border-box;

  /* Only use the left 48% so it doesn't overlap the illustration */
  padding-right: calc(52% + 32px);

  animation: hcContentIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hcContentIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Badge pill ── */
.hc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold);
  margin-bottom: 20px;
}

/* ── Main headline ──
   "Young ADMK" on one line — inline, not block. */
.hc-title {
  font-family: var(--font-display);
  font-size: 60px;
  /* fixed px — no awkward clamp jumps */
  font-weight: 900;
  line-height: 1.0;
  color: var(--text-light);
  margin: 0 0 18px 0;
  letter-spacing: -0.03em;
  white-space: nowrap;
  /* keep "Young ADMK" on one line */
}

/* Gold accent word — inline so it sits on the same line */
.hc-title-accent {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 60%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
  /* was "block" → causes the line break */
}

/* ── Subtitle (slogan) ── */
.hc-subtitle {
  font-size: 18px;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 16px 0;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
  /* keep "| மக்கள் சேவை |" on one line */
}

/* ── Body description ── */
.hc-desc {
  font-size: 15px;
  color: rgba(243, 244, 246, 0.72);
  line-height: 1.75;
  margin: 0 0 36px 0;
  max-width: 480px;
}

/* ── Action buttons row ── */
.hc-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Navigation Arrows ──
   Centered vertically in the slide height, not just 50% of viewport. */
.hc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hc-arrow:hover {
  background: var(--gold);
  color: var(--bg-darker);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 24px var(--gold-glow);
}

/* Push arrows inside so they don't overlap the flag stripe */
.hc-arrow-prev {
  left: 24px;
}

.hc-arrow-next {
  right: 24px;
}

/* ── Dot Indicators ──
   Align with the left edge of .hc-slide-content (32px side pad + centering offset). */
.hc-indicators {
  position: absolute;
  bottom: 40px;
  /* 40px above the progress bar */
  left: max(32px, calc((100vw - 1280px) / 2 + 32px));
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 20;
}

.hc-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Tooltip on hover */
.hc-dot::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.hc-dot:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Active dot — elongated pill */
.hc-dot-active {
  width: 28px;
  border-radius: 5px;
  background: var(--gold) !important;
  box-shadow: 0 0 10px var(--gold-glow);
  transform: none !important;
  /* override scale so pill stays flat */
}

.hc-dot:hover:not(.hc-dot-active) {
  background: rgba(245, 158, 11, 0.6);
  transform: scale(1.3);
}

/* ── Progress Bar — at the absolute bottom (0px) ── */
.hc-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  z-index: 20;
}

.hc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #d97706);
  width: 25%;
  /* JS animates this */
  transition: width 0.12s linear;
  box-shadow: 0 0 6px var(--gold-glow);
}

/* ── Slide counter — bottom-right, above scroll hint ── */
.hc-counter {
  position: absolute;
  bottom: 48px;
  right: 80px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.12em;
  z-index: 20;
  user-select: none;
}

/* ── Scroll hint — bottom-right corner ── */
.hc-scroll-hint {
  position: absolute;
  bottom: 20px;
  right: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 20;
  opacity: 0.45;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hc-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
  animation: scroll-line-anim 2.2s ease-in-out infinite;
}

@keyframes scroll-line-anim {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1;
  }

  49% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  50% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* Live News Ticker */
.news-ticker {
  background: rgba(1, 21, 16, 0.8);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  position: relative;
  z-index: 10;
  overflow: hidden;
  display: flex;
}

.ticker-label {
  background: var(--gold);
  color: var(--bg-darker);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  margin-left: 2rem;
  z-index: 12;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-content {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-animation 65s linear infinite;
  gap: 4rem;
  padding-left: 2rem;
}

.ticker-item {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ticker-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--flag-red);
  box-shadow: 0 0 8px var(--flag-red);
}

@keyframes ticker-animation {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Section Common Styling */
section {
  padding: 3.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: #F5F2E6;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.about-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.about-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on hover */
.about-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(245, 158, 11, 0.12) 50%,
      transparent 100%);
  transition: left 0.55s ease;
  pointer-events: none;
}

.about-item:hover::before {
  left: 160%;
}

.about-item:hover {
  transform: translateX(12px) translateY(-2px);
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.07);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(245, 158, 11, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.about-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-item:hover .about-icon {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
  transform: scale(1.15) rotate(5deg);
}

.about-item-text {
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.about-item:hover .about-item-text {
  color: var(--gold);
}


/* Mission & Vision Section */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.mv-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--glass-border);
}

.mv-card:nth-child(1) {
  background: linear-gradient(to bottom, rgba(0, 10, 5, 0.40) 0%, rgba(2, 28, 14, 0.78) 100%), url('images/misson%20vission.png');
  background-position: left center;
  background-size: 210% 100%;
  background-repeat: no-repeat;
}

.mv-card:nth-child(2) {
  background: linear-gradient(to bottom, rgba(0, 10, 5, 0.40) 0%, rgba(2, 28, 14, 0.78) 100%), url('images/misson%20vission.png');
  background-position: right center;
  background-size: 210% 100%;
  background-repeat: no-repeat;
}

.mv-card:nth-child(1):hover {
  background: linear-gradient(to bottom, rgba(0, 10, 5, 0.28) 0%, rgba(2, 28, 14, 0.68) 100%), url('images/misson%20vission.png');
  background-position: left center;
  background-size: 210% 100%;
  background-repeat: no-repeat;
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.25);
}

.mv-card:nth-child(2):hover {
  background: linear-gradient(to bottom, rgba(0, 10, 5, 0.28) 0%, rgba(2, 28, 14, 0.68) 100%), url('images/misson%20vission.png');
  background-position: right center;
  background-size: 210% 100%;
  background-repeat: no-repeat;
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.25);
}

.mv-icon {
  width: 64px;
  height: 64px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--gold-glow);
  color: var(--gold);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.mv-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

.mv-card p {
  color: #E6E0C1;
  margin-bottom: 2rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

.mv-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: auto;
}

.mv-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

.mv-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* Stats Counter Section */
.stats-banner {
  padding: 4rem 0;
  background: linear-gradient(180deg, transparent, var(--bg-dark), transparent);
}

.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-card {
  padding: 2.5rem;
  text-align: center;
  flex: 1 1 250px;
  max-width: 280px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px var(--gold-glow);
}

.stat-label {
  font-weight: 600;
  font-size: 1.1rem;
}

.stat-subtext {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Why Join Section */
.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.join-card {
  padding: 2.5rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.join-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0.22;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, filter 0.6s ease;
  filter: grayscale(30%) brightness(75%);
}

.join-card:hover::before {
  transform: scale(1.08);
  opacity: 0.42;
  filter: grayscale(0%) brightness(95%);
}

.join-grid .join-card:nth-child(1)::before {
  background-image: url('images/WhatsApp\ Image\ 2026-07-13\ at\ 9.24.30\ PM.jpeg');
}

.join-grid .join-card:nth-child(2)::before {
  background-image: url('images/WhatsApp\ Image\ 2026-07-13\ at\ 9.24.30\ PM\ \(1\).jpeg');
}

.join-grid .join-card:nth-child(3)::before {
  background-image: url('images/WhatsApp\ Image\ 2026-07-13\ at\ 9.24.31\ PM.jpeg');
}

.join-grid .join-card:nth-child(4)::before {
  background-image: url('images/WhatsApp\ Image\ 2026-07-13\ at\ 9.24.31\ PM\ \(1\).jpeg');
}

.join-grid .join-card:nth-child(5)::before {
  background-image: url('images/Rr.jpeg');
}

.join-grid .join-card:nth-child(6)::before {
  background-image: url('images/networking.jpeg');
}

.policy-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.policy-card h3 {
  color: #E6E0C1 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.policy-card p {
  color: #f3f4f6 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.policy-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(2, 44, 34, 0.35) 0%, rgba(1, 21, 16, 0.55) 100%), url('images/policy_bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0.8;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.policy-card:hover::before {
  transform: scale(1.05);
  opacity: 0.92;
}

.join-card-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.join-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.join-card p {
  color: #ADA98B;
  font-size: 0.95rem;
}

/* Leader Timeline Section */
.leader-timeline {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.leader-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--bg-light-dark) 50%, var(--flag-red) 100%);
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  padding: 2rem;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 2rem;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid var(--bg-darker);
  box-shadow: 0 0 10px var(--gold);
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  background: var(--flag-red);
  box-shadow: 0 0 10px var(--flag-red);
}

.timeline-date {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gold);
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-item:nth-child(even) .timeline-date {
  color: var(--flag-red);
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  font-size: 0.95rem;
  color: #E6E0C1;
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: #F0F5F0;
}

/* MGR Timeline Card — Background Portrait */
.timeline-mgr-card {
  position: relative;
  overflow: hidden;
}

.timeline-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 0;
  transition: transform 0.6s ease;
}

.timeline-mgr-card:hover .timeline-bg-img {
  transform: scale(1.05);
}

/* Light warm overlay on top of the photo */
.timeline-bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(2, 44, 34, 0.82) 0%,
      rgba(2, 44, 34, 0.65) 50%,
      rgba(245, 158, 11, 0.08) 100%);
}

.mgr-bg {
  background-image: url('images/mgr 1.jpeg');
  background-position: center 15%;
  background-size: cover;
  opacity: 0.5;
}

.amma-bg {
  background-image: url('images/amma 1.jpeg');
  background-position: center 10%;
  background-size: cover;
  opacity: 0.5;
}

.eps-bg {
  background-image: url('images/eps 1.jpeg');
  background-position: center center;
  background-size: cover;
  opacity: 0.5;
}

.youngadmk-bg {
  background-image: url('images/young\ mob.jpeg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.38;
}

/* Ensure text sits above the background image */
.timeline-mgr-card>span,
.timeline-mgr-card>h3,
.timeline-mgr-card>h4,
.timeline-mgr-card>p {
  position: relative;
  z-index: 1;
}


/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* Slide in from LEFT */
.anim-slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Slide in from RIGHT */
.anim-slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fade up */
.anim-fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Zoom in */
.anim-zoom-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Revealed state — shared */
.anim-slide-left.anim-in,
.anim-slide-right.anim-in,
.anim-fade-up.anim-in,
.anim-zoom-in.anim-in {
  opacity: 1;
  transform: none;
}

/* Stagger delays for grid children */
.anim-stagger>*:nth-child(1) {
  transition-delay: 0.05s;
}

.anim-stagger>*:nth-child(2) {
  transition-delay: 0.15s;
}

.anim-stagger>*:nth-child(3) {
  transition-delay: 0.25s;
}

.anim-stagger>*:nth-child(4) {
  transition-delay: 0.35s;
}

.anim-stagger>*:nth-child(5) {
  transition-delay: 0.45s;
}

.anim-stagger>*:nth-child(6) {
  transition-delay: 0.55s;
}

/* Timeline dot pulse when revealed */
.timeline-dot {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

.timeline-item.anim-in .timeline-dot {
  animation: dot-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes dot-pop {
  0% {
    transform: translateX(-50%) scale(0);
  }

  70% {
    transform: translateX(-50%) scale(1.4);
  }

  100% {
    transform: translateX(-50%) scale(1);
  }
}

/* Scroll Progress Bar at top of page */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, #ef4444, #ffffff, #000000);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Interactive Map Section */
.map-section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.map-container {
  width: 100%;
  height: auto;
  position: relative;
}

.tn-map-svg {
  width: 100%;
  height: auto;
  max-height: 550px;
}

/* District Path Styling */
.district-path {
  fill: rgba(6, 78, 59, 0.4);
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.2;
  transition: all 0.3s ease;
  cursor: pointer;
}

.district-path:hover {
  fill: rgba(245, 158, 11, 0.5);
  stroke: var(--gold);
  filter: drop-shadow(0 0 8px var(--gold));
}

.district-path.active-district {
  fill: var(--gold);
  stroke: #ffffff;
  stroke-width: 2;
  filter: drop-shadow(0 0 12px var(--gold));
}

.map-details-card {
  padding: 3rem;
  border-radius: 24px;
}

.map-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.map-details-header h3 {
  font-size: 2rem;
  color: var(--gold);
}

.map-details-header span {
  font-size: 0.9rem;
  background: rgba(245, 158, 11, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  color: var(--gold);
  font-weight: 600;
}

.map-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.map-detail-item label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.map-detail-item p {
  font-size: 1.15rem;
  font-weight: 700;
}

.map-coordinators {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.map-coordinators label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.coordinators-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.coordinator-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.coordinator-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid var(--glass-border);
  font-weight: bold;
}

.coordinator-info h4 {
  font-size: 1rem;
}

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

/* Volunteer Dashboard Simulation */
.dashboard-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
}

.db-profile-card {
  padding: 2.5rem;
  text-align: center;
}

.db-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, var(--gold-hover) 100%);
  color: var(--bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 25px var(--gold-glow);
  border: 4px solid var(--bg-dark);
}

.db-name {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.db-role {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: block;
}

.db-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.db-stat-item h4 {
  font-size: 1.5rem;
  color: var(--gold);
}

.db-stat-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.db-panel-card {
  padding: 2.5rem;
}

.db-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.db-header h3 {
  font-size: 1.5rem;
}

.badge-strip {
  display: flex;
  gap: 0.75rem;
}

.badge-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid var(--glass-border);
  cursor: help;
  transition: var(--transition-smooth);
}

.badge-icon.active-badge {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.task-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.task-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

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

.task-action {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.task-points {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
}

.task-btn {
  background: var(--gold);
  color: var(--bg-darker);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.task-btn:hover {
  background: var(--gold-hover);
  transform: scale(1.05);
}

/* Activities Grid */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.activity-card {
  padding: 2rem;
  text-align: center;
}

.activity-icon {
  width: 54px;
  height: 54px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--gold-glow);
}

.activity-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.activity-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Blood Donor Directory */
.blood-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 3rem;
}

.blood-search-card {
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-select,
.form-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  background: rgba(1, 21, 16, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-select option {
  background-color: var(--bg-darker);
  color: var(--text-light);
}

.form-select:focus,
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

.blood-directory-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.blood-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.blood-results-container {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 0.5rem;
}

.donor-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.donor-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold-glow);
}

.donor-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.donor-group-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--flag-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
}

.donor-info h4 {
  font-size: 1.05rem;
}

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

.donor-contact-btn {
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
  border: 1px solid var(--gold-glow);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.donor-contact-btn:hover {
  background: var(--gold);
  color: var(--bg-darker);
}

/* Event Calendar */
.events-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

.calendar-card {
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.calendar-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background-image: url('images/ADMK LOGO 2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.calendar-header,
.calendar-grid {
  position: relative;
  z-index: 1;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.calendar-day-header {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.calendar-day:hover {
  background: rgba(255, 255, 255, 0.08);
}

.calendar-day.has-event {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
  font-weight: 700;
  position: relative;
}

.calendar-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.calendar-day.empty-day {
  background: transparent;
  border: none;
  cursor: default;
}

.events-list-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.events-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item-card {
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.event-item-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.event-time-badge {
  display: inline-block;
  font-size: 0.75rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-item-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.event-item-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.event-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.event-register-btn {
  background: none;
  border: 1px solid var(--gold-glow);
  color: var(--gold);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.event-register-btn:hover {
  background: var(--gold);
  color: var(--bg-darker);
}

/* Gallery Slider */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(1, 21, 16, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Membership Multi-step Form */
.membership-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

.form-wizard-card {
  padding: 3rem;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 3rem;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--glass-border);
  z-index: 1;
}

.step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
  position: relative;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.step-node.active-step {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

.step-node.completed-step {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-darker);
}

.wizard-step-content {
  display: none;
}

.wizard-step-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

/* Digital ID Card Preview */
.id-card-preview-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 8rem;
}

.id-card-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: 350px;
}

.id-card {
  width: 100%;
  height: 520px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0, 10, 5, 0.55) 0%, rgba(2, 28, 14, 0.90) 100%), url('images/id%20bg.png');
  background-size: cover;
  background-position: center top;
  border: 2px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(255, 255, 255, 0.05);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Background flag effect using gradients */
.id-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: -20%;
  width: 150%;
  height: 100%;
  background: radial-gradient(circle at 80% 30%, rgba(6, 78, 59, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.id-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.75rem;
  z-index: 1;
}

.id-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #FE0000;
  line-height: 1.1;
}

.id-logo-text span {
  color: var(--flag-white);
}

.id-flag-strip {
  width: 60px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #000 33%, #fff 33%, #fff 66%, #ef4444 66%);
  border: 0px solid rgba(255, 255, 255, 0.2);
}

.id-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem 0;
  text-align: center;
  z-index: 1;
}

.id-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 3px solid var(--flag-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--flag-white);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  overflow: hidden;
  position: relative;
}

.id-photo-placeholder::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--flag-red);
  opacity: 0.5;
}

.id-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.id-name {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.id-number {
  font-size: 0.9rem;
  color: var(--flag-white);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.id-details {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.85rem;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.id-detail-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.detail-text {
  display: flex;
  flex-direction: column;
}

.id-detail-field label {
  color: #a7f3d0;
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.id-detail-field span {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.id-card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  z-index: 1;
}

.id-motto {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.id-barcode {
  width: 100%;
  height: 40px;
  background: transparent;
  padding: 2px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.id-barcode svg {
  width: 100%;
  height: 100%;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: 12px;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 78, 59, 0.15);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
  text-align: left;
}

.faq-trigger:hover {
  background: rgba(6, 78, 59, 0.3);
  border-color: var(--gold-glow);
}

.faq-trigger svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-trigger svg {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-item.active .faq-trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--gold-glow);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(1, 21, 16, 0.4);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.faq-content p {
  padding: 1.5rem 2rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Contact & Socials */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.social-connect-card {
  padding: 3rem;
}

.social-connect-card h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.social-connect-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
}

.social-btn:hover svg {
  transform: scale(1.15);
}

/* Instagram */
.social-btn.instagram {
  background: rgba(225, 48, 108, 0.06);
  border: 1px solid rgba(225, 48, 108, 0.25);
  color: #fd5949;
}
.social-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(220, 39, 67, 0.45);
}

/* Facebook */
.social-btn.facebook {
  background: rgba(24, 119, 242, 0.06);
  border: 1px solid rgba(24, 119, 242, 0.25);
  color: #4facfe;
}
.social-btn.facebook:hover {
  background: #1877f2;
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.45);
}

/* YouTube */
.social-btn.youtube {
  background: rgba(255, 0, 0, 0.06);
  border: 1px solid rgba(255, 0, 0, 0.25);
  color: #ff3333;
}
.social-btn.youtube:hover {
  background: #ff0000;
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.45);
}

/* Telegram */
.social-btn.telegram {
  background: rgba(0, 136, 204, 0.06);
  border: 1px solid rgba(0, 136, 204, 0.25);
  color: #38bdf8;
}
.social-btn.telegram:hover {
  background: #0088cc;
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.45);
}

.contact-form-card {
  padding: 3rem;
}

/* Footer Section */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.footer-motto {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.footer-divider {
  max-width: 200px;
  height: 2px;
  background: linear-gradient(90deg, var(--flag-black) 33%, var(--flag-white) 33%, var(--flag-white) 66%, var(--flag-red) 66%);
  margin: 0 auto 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  list-style: none;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Float WhatsApp Community Action Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Queries */
@media (max-width: 1024px) {

  .hero-grid,
  .about-grid,
  .mv-grid,
  .map-section-grid,
  .dashboard-grid,
  .blood-grid,
  .events-grid,
  .membership-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero {
    text-align: center;
    padding-top: 6rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .join-grid,
  .activities-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leader-timeline::before {
    left: 2rem;
  }

  .timeline-item {
    flex-direction: column !important;
    gap: 1.5rem;
  }

  .timeline-content {
    width: 85%;
    margin-left: 4rem;
  }

  .timeline-dot {
    left: 2rem;
  }

  .id-card-preview-area {
    position: static;
  }
}

@media (max-width: 768px) {

  /* Prevent horizontal scroll on body */
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .container {
    padding: 0 1rem !important;
  }

  .navbar-full {
    padding: 0.5rem 1rem;
    width: 100%;
  }

  .nav-socials {
    display: none !important;
  }

  .nav-logo-img {
    width: 48px !important;
    height: 48px !important;
  }

  .nav-logo-main {
    font-size: 1rem !important;
  }

  .nav-logo-sub {
    font-size: 0.6rem !important;
  }

  .nav-links {
    display: none;
    /* Mobile Drawer implementation */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(1, 21, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 1.75rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-links.mobile-active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .stats-grid,
  .join-grid,
  .activities-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Prevent stats card overflow */
  .stat-card {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    padding: 1.5rem 1rem !important;
  }

  /* Reduce internal padding on all glass panels to prevent squeezing on 360px */
  .glass-panel,
  .form-wizard-card,
  .mv-card,
  .events-list-card,
  .social-connect-card,
  .contact-form-card,
  .about-content,
  .policy-card,
  .blood-search-card,
  .blood-directory-card,
  .db-profile-card,
  .db-panel-card {
    padding: 1.5rem !important;
  }

  /* Realign timeline elements mathematically to fit 360px screen width */
  .timeline-content {
    width: calc(100% - 3rem) !important;
    margin-left: 3rem !important;
    padding: 1.5rem 1.25rem !important;
  }

  .timeline-dot {
    left: 1.5rem !important;
  }

  .leader-timeline::before {
    left: 1.5rem !important;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  #tnLeafletMap {
    height: 380px !important;
  }

  /* Hero Carousel Mobile */
  .hc-photo-bg {
    background-image: var(--slide-img-mobile, var(--slide-img)) !important;
    background-position: var(--slide-img-pos-mobile, center center) !important;
    background-size: var(--slide-img-size-mobile, cover) !important;
  }

  .hc-slide-visual {
    opacity: 0.15;
    width: 100%;
    left: 0;
    justify-content: center;
    z-index: 1;
  }

  /* Mobile content: override padding-right, allow text to wrap */
  .hc-slide-content {
    padding: 96px 20px 80px 20px;
    /* flat sides, same top clearance */
    padding-right: 20px !important;
    /* cancel the calc(52% + 32px) override */
    max-width: 100%;
    z-index: 15;
  }

  /* Allow title to wrap on narrow screens */
  .hc-title {
    font-size: 44px;
    white-space: normal;
  }

  .hc-subtitle {
    font-size: 15px;
    white-space: normal;
  }

  .hc-arrow-prev {
    left: 12px;
    width: 44px;
    height: 44px;
  }

  .hc-arrow-next {
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .hc-counter {
    right: 16px;
    bottom: 44px;
  }

  .hc-scroll-hint {
    display: none;
  }

  .hc-indicators {
    left: 20px;
    bottom: 36px;
  }

  /* Footer Mobile */
  .footer-links {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    padding: 0 1rem;
  }

  .footer-motto {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  .footer-copy {
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 0 1rem;
  }
}

/* ============================================
   LEAFLET  — ADMK THEME OVERRIDES
   ============================================ */

#tnLeafletMap {
  border: 1.5px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.1), 0 0 80px rgba(0, 0, 0, 0.5);
}

/* District hover tooltip */
.tn-map-tooltip {
  background: rgba(2, 20, 10, 0.95) !important;
  border: 1px solid #22c55e !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-family: var(--font-sans) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  padding: 5px 12px !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.tn-map-tooltip::before {
  display: none !important;
}

/* Zoom controls */
.leaflet-control-zoom {
  border: none !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-control-zoom a {
  background: rgba(2, 20, 10, 0.92) !important;
  border: 1px solid rgba(34, 197, 94, 0.4) !important;
  color: #4ade80 !important;
  font-size: 1.1rem !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 30px !important;
  transition: background 0.2s, color 0.2s;
}

.leaflet-control-zoom a:hover {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #fff !important;
}

/* Hide attribution */
.leaflet-control-attribution {
  display: none !important;
}

/* Dim base tiles for dark premium look */
.leaflet-tile {
  filter: brightness(0.8) saturate(0.5);
}

/* ── Permanent district name label inside each district ── */
.tn-district-label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  text-align: center !important;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(0, 0, 0, 0.8),
    1px 1px 2px rgba(0, 0, 0, 1),
    -1px -1px 2px rgba(0, 0, 0, 1) !important;
  padding: 0 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  line-height: 1.1 !important;
}

.tn-district-label::before {
  display: none !important;
}

/* Make labels slightly larger at higher zoom */
.leaflet-zoom-animated .tn-district-label {
  transition: none !important;
}

/* =============================================
   BLOOD DONOR REGISTRATION MODAL
   ============================================= */

.donor-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.donor-modal-overlay.donor-modal-active {
  opacity: 1;
  pointer-events: all;
}

.donor-modal-box {
  position: relative;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.55) 0%, rgba(1, 21, 16, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(32px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.3) transparent;
}

.donor-modal-active .donor-modal-box {
  transform: translateY(0) scale(1);
}

.donor-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.donor-modal-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
  transform: rotate(90deg);
}

.donor-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.donor-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  animation: donorPulse 2s ease-in-out infinite;
}

@keyframes donorPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
  }
}

.donor-modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.donor-modal-subtitle {
  font-size: 0.875rem;
  color: rgba(245, 158, 11, 0.9);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.donor-form-group {
  margin-bottom: 1.25rem;
}

.donor-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.donor-input,
.donor-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: all 0.25s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.donor-input:focus,
.donor-select:focus {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.06);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.donor-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.donor-select option {
  background: #022c22;
  color: #fff;
}

/* Custom select arrow */
.donor-form-group:has(.donor-select) {
  position: relative;
}

.donor-form-group .donor-select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f59e0b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
}

/* Phone number field with prefix */
.donor-phone-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.donor-phone-wrap:focus-within {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.06);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.donor-phone-prefix {
  padding: 0.75rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(245, 158, 11, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  background: rgba(245, 158, 11, 0.06);
  flex-shrink: 0;
}

.donor-phone-input {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0.75rem;
}

.donor-phone-input:focus {
  border: none !important;
  box-shadow: none !important;
}

.donor-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  color: #fca5a5;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  animation: shakeError 0.35s ease;
}

@keyframes shakeError {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

.donor-submit-btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.donor-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.45);
  background: linear-gradient(135deg, #2de070 0%, #0eaa9b 100%);
}

.donor-submit-btn:active {
  transform: translateY(0);
}

.donor-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  text-align: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 480px) {
  .donor-modal-box {
    padding: 2rem 1.25rem 1.5rem;
    border-radius: 18px;
  }

  .donor-modal-title {
    font-size: 1.35rem;
  }

  /* Calendar Card adjustments for small screens */
  .calendar-card {
    padding: 1.25rem !important;
  }

  .calendar-header h3 {
    font-size: 1.1rem !important;
  }

  .calendar-grid {
    gap: 0.2rem !important;
  }

  .calendar-day {
    font-size: 0.75rem !important;
    border-radius: 4px !important;
  }

  /* Donor listing layout stack */
  .donor-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
    text-align: center;
    padding: 1.25rem 1rem !important;
  }

  .donor-main {
    flex-direction: column !important;
    gap: 0.5rem !important;
    align-items: center !important;
  }

  .donor-contact-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Coordinator listing wraps */
  .coordinator-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 0.75rem !important;
    padding: 1rem !important;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
  }

  .coordinator-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .coordinator-info div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  /* Section Title Sizing on mobile */
  .section-title {
    font-size: 1.85rem !important;
  }

  .section-desc {
    font-size: 0.9rem !important;
  }

  /* Hero Section Title mobile adjustment */
  .hc-title {
    font-size: 28px !important;
  }

  .hc-subtitle {
    font-size: 13px !important;
  }

  .hc-desc {
    font-size: 13px !important;
    margin-bottom: 24px !important;
  }

  .hc-slide-content {
    padding-top: 80px !important;
    padding-bottom: 60px !important;
  }

  .mv-list {
    grid-template-columns: 1fr !important;
  }

  /* Task item adjustments for mobile */
  .task-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
    text-align: center;
  }

  .task-action {
    justify-content: space-between !important;
    width: 100% !important;
  }

  /* Stack hero buttons on narrow screens */
  .hc-actions {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.7rem !important;
    width: 100% !important;
  }

  .hc-actions .btn {
    width: auto !important;
    min-width: 200px !important;
    justify-content: center !important;
    padding: 0.5rem 1.2rem !important;
    font-size: 0.85rem !important;
  }
}

/* SVG Tamil Nadu Map Styles */
#tnSVGMapWrapper {
  position: relative;
}

#tnSVGMapWrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 2;
  border-radius: 16px;
}

#tnMapSVG {
  display: block;
}

.tn-map-tooltip {
  position: absolute;
  background: rgba(10, 5, 0, 0.92);
  border: 1px solid #f59e0b;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: opacity 0.2s;
}

/* ID Card logo fix */
.id-logo-text img {
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}

/* NEW LANDSCAPE ID CARD STYLES */
.landscape-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  padding: 1rem;
}

.id-card-landscape {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  justify-content: center;
}

.id-card-side {
  width: 320px;
  height: 480px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  color: #000;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .id-card-landscape {
    transform: scale(0.85);
    transform-origin: center top;
    margin-bottom: -72px;
  }
}

@media (max-width: 500px) {
  .id-card-landscape {
    transform: scale(0.5);
    transform-origin: center top;
    margin-bottom: -240px;
  }

  .landscape-wrapper {
    padding: 0;
  }
}

/* Front Card Styles */
.id-card-front {
  background: #f8f9fa;
}

.front-leaders {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  height: 90px;
}

.leader-pic {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.center-leader {
  width: 70px;
  height: 70px;
  z-index: 3;
  margin: 0 -10px;
}

.front-logo-band {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  position: relative;
}

/* ADMK flag colors arc background */
.front-logo-band::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 40px;
  transform: translateY(-50%) skewY(-5deg);
  background: linear-gradient(to bottom, #000 33%, #fff 33%, #fff 66%, #d32f2f 66%);
  z-index: 1;
}

.front-member-photo {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  border: 3px solid #004d40;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.front-title-area {
  text-align: center;
  padding: 5px 10px;
}

.front-title {
  font-size: 28px;
  font-weight: 900;
  margin: 0;
  line-height: 1;
}

.title-green {
  color: #004d40;
}

.title-red {
  color: #d32f2f;
}

.front-subtitle-green {
  background: #004d40;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  display: inline-block;
  margin-top: 5px;
  border-radius: 4px;
}

.front-member-badge {
  background: #00251a;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 4px 15px;
  border-radius: 0 0 10px 10px;
  display: inline-block;
  margin-top: 5px;
}

.front-details {
  padding: 15px 20px;
  flex: 1;
}

.detail-row {
  display: flex;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
}

.d-label {
  width: 100px;
  color: #333;
}

.d-colon {
  width: 15px;
  color: #333;
}

.d-value {
  flex: 1;
  color: #000;
}

.front-footer {
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.qr-placeholder {
  width: 60px;
  height: 60px;
  background: #fff;
  padding: 5px;
  border-radius: 4px;
}

.front-bottom-flag {
  height: 15px;
  background: linear-gradient(to right, #000 33%, #fff 33%, #fff 66%, #d32f2f 66%);
  border-radius: 0 0 12px 12px;
}

/* Back Card Styles */
.id-card-back {
  background: #f8f9fa;
  position: relative;
}

.back-top-green {
  background: #004d40;
  color: #fff;
  padding: 15px 15px 30px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px 12px 50% 50% / 12px 12px 20px 20px;
  line-height: 1.4;
}

.yellow-text {
  color: #ffeb3b;
  margin-top: 5px;
}

.back-leaders {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: -25px;
}

.back-leader {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-content {
  display: flex;
  padding: 15px;
  flex: 1;
}

.back-text {
  flex: 1;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
}

.back-text p {
  margin-bottom: 8px;
}

.back-flag-graphic {
  width: 80px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.back-rules-box {
  background: #004d40;
  color: #fff;
  padding: 12px;
  font-size: 10px;
  margin: 0 10px 10px;
  border-radius: 8px;
  line-height: 1.4;
}

.back-rules-box p {
  margin-bottom: 4px;
}

.contact-info {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-weight: bold;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 6px;
}

.back-footer {
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  color: #d32f2f;
  padding-bottom: 10px;
}

/* Hide fallback card when Twitter iframe widget loads */
.tweet-feed-wrapper iframe.twitter-timeline-rendered + .fallback-card {
  display: none !important;
}

.tweet-feed-wrapper iframe {
  width: 100% !important;
  border-radius: 12px;
}

/* ==========================================================================
   AI ASSISTANT CHATBOT STYLES
   ========================================================================== */
.ai-assistant-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-assistant-toggle:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.7);
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
}

.ai-assistant-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #ef4444;
  border: 2px solid #011510;
  border-radius: 50%;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.ai-chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 120px);
  background: rgba(2, 44, 34, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 9998;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat-window.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.9) 0%, rgba(2, 44, 34, 0.95) 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar-wrapper {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  overflow: hidden;
  background: #011510;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  background: #10b981;
  border: 1.5px solid #022c22;
  border-radius: 50%;
}

.ai-header-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.ai-header-subtitle {
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
}

.ai-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

.ai-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.ai-chat-body::-webkit-scrollbar {
  width: 5px;
}
.ai-chat-body::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.3);
  border-radius: 10px;
}

.ai-welcome-box {
  background: rgba(6, 78, 59, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #f3f4f6;
  animation: fadeIn 0.4s ease;
}

.ai-welcome-box p {
  margin-bottom: 8px;
}

.ai-welcome-box p:last-child {
  margin-bottom: 0;
}

.ai-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ai-chip {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fce7f3;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.ai-chip:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #ffffff;
  transform: translateY(-1px);
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  font-size: 13px;
  line-height: 1.5;
  animation: messageSlideIn 0.3s ease-out;
}

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

.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 16px 16px 2px 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.chat-msg.assistant {
  align-self: flex-start;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #f3f4f6;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 2px;
}

.chat-msg.assistant ul, .chat-msg.assistant ol {
  padding-left: 18px;
  margin: 6px 0;
}

.chat-msg.assistant li {
  margin-bottom: 4px;
}

.chat-msg.assistant a {
  color: var(--gold);
  text-decoration: underline;
}

.ai-msg-time {
  font-size: 9px;
  opacity: 0.6;
  margin-top: 4px;
  align-self: flex-end;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 16px 16px 16px 2px;
  width: fit-content;
  align-self: flex-start;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #f59e0b;
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

.ai-chat-footer {
  padding: 12px;
  background: rgba(1, 21, 16, 0.9);
  border-top: 1px solid rgba(245, 158, 11, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 78, 59, 0.3);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 24px;
  padding: 4px 6px 4px 14px;
  transition: all 0.2s;
}

.ai-input-wrapper:focus-within {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
  background: rgba(6, 78, 59, 0.5);
}

.ai-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
}

.ai-chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.ai-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f59e0b;
  color: #011510;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ai-send-btn:hover {
  background: #d97706;
  transform: scale(1.05);
}

.ai-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-muted);
  padding: 0 4px;
}

.ai-mode-badge {
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
}

/* API Settings Modal */
.ai-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.ai-settings-modal.open {
  opacity: 1;
  pointer-events: all;
}

.ai-settings-card {
  background: #022c22;
  border: 1px solid #f59e0b;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  color: #fff;
}

.ai-settings-card h3 {
  color: #f59e0b;
  margin-bottom: 12px;
  font-size: 18px;
}

.ai-settings-card label {
  font-size: 12px;
  color: #d1d5db;
  display: block;
  margin-top: 10px;
  margin-bottom: 4px;
}

.ai-settings-card input, .ai-settings-card select {
  width: 100%;
  padding: 10px 12px;
  background: #011510;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  margin-bottom: 12px;
}

.ai-settings-btns {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.ai-settings-btns button {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.ai-btn-save {
  background: #f59e0b;
  color: #000;
}

.ai-btn-cancel {
  background: transparent;
  color: #aaa;
  border: 1px solid #555 !important;
}

@media (max-width: 480px) {
  .ai-chat-window {
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* ============================================
   CIVIC INTELLIGENCE PLATFORM STYLES
   ============================================ */

/* Navbar Dropdown Menu */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown .dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: rgba(1, 21, 16, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 0.6rem 0;
  margin-top: 0.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 15px rgba(245, 158, 11, 0.15);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

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

.nav-item-dropdown .dropdown-menu li {
  width: 100%;
}

.nav-item-dropdown .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.2rem;
  color: #e5e7eb;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-item-dropdown .dropdown-menu li:last-child a {
  border-bottom: none;
}

.nav-item-dropdown .dropdown-menu a:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  padding-left: 1.5rem;
}

.nav-item-dropdown .dropdown-menu a::after {
  display: none;
}

/* Civic Main Section Container */
.civic-section {
  padding: 30px 0 60px;
  scroll-margin-top: 65px;
  background: radial-gradient(circle at 50% 0%, rgba(6, 78, 59, 0.35) 0%, rgba(1, 21, 16, 0.98) 70%);
  position: relative;
}

.civic-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.civic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 50px;
  color: #f59e0b;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Role Switcher Toolbar */
.role-switcher-bar {
  background: rgba(1, 21, 16, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.role-switcher-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
}

.role-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.role-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.role-pill:hover {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  border-color: rgba(245, 158, 11, 0.4);
}

.role-pill.active {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

/* Civic Sub-Tabs */
.civic-tabs-wrapper {
  margin-bottom: 2.5rem;
}

.civic-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.civic-tab-btn {
  padding: 0.75rem 1.4rem;
  background: rgba(6, 78, 59, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.civic-tab-btn:hover {
  background: rgba(6, 78, 59, 0.4);
  color: var(--text-light);
}

.civic-tab-btn.active {
  background: rgba(6, 78, 59, 0.65);
  color: var(--gold);
  border-color: rgba(245, 158, 11, 0.5);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 -4px 12px rgba(245, 158, 11, 0.15);
}

/* Civic Tab Views */
.civic-view {
  display: none;
  animation: fadeInCivic 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.civic-view.active {
  display: block;
}

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

/* Glass Cards & Layout Grid */
.civic-glass-card {
  background: rgba(6, 78, 59, 0.22);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.civic-glass-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.1);
}

.civic-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.civic-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.civic-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .civic-grid-2, .civic-grid-3, .civic-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Form Controls */
.civic-form-input, .civic-form-textarea, .civic-form-select {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: rgba(1, 21, 16, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  color: var(--text-light);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}

.civic-form-input:focus, .civic-form-textarea:focus, .civic-form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* File Upload Zone */
.file-upload-zone {
  border: 2px dashed rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  background: rgba(1, 21, 16, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-zone:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--gold);
}

.upload-preview-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.upload-preview-thumb {
  width: 75px;
  height: 75px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--gold);
}

/* Technical AI Analysis Box (Admin/Coordinator View) */
.ai-inspection-panel {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.ai-inspection-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
}

.ai-meta-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.severity-critical { background: rgba(239, 68, 68, 0.25); color: #f87171; border: 1px solid #ef4444; }
.severity-high { background: rgba(249, 115, 22, 0.25); color: #fb923c; border: 1px solid #f97316; }
.severity-medium { background: rgba(245, 158, 11, 0.25); color: #fbbf24; border: 1px solid #f59e0b; }
.severity-low { background: rgba(16, 185, 129, 0.25); color: #34d399; border: 1px solid #10b981; }

/* SLA Badge & Counter */
.sla-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Step-by-Step Timeline */
.timeline-stepper {
  position: relative;
  padding-left: 2rem;
  margin: 1.5rem 0;
}

.timeline-stepper::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.timeline-step {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.timeline-step.completed .timeline-icon {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.timeline-step.active .timeline-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: #000000;
  box-shadow: 0 0 10px var(--gold);
}

.timeline-content {
  background: rgba(1, 21, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

/* Interactive Star Rating Widget */
.star-rating-widget {
  display: flex;
  gap: 8px;
  margin: 0.75rem 0;
}

.star-rating-widget svg {
  width: 26px;
  height: 26px;
  cursor: pointer;
  fill: rgba(255, 255, 255, 0.15);
  stroke: var(--gold);
  transition: all 0.2s ease;
}

.star-rating-widget svg.active, .star-rating-widget svg:hover {
  fill: var(--gold);
}

/* Map Filter Controls */
.map-filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* State Dashboard Ranking Table */
.state-ranking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.88rem;
}

.state-ranking-table th {
  background: rgba(1, 21, 16, 0.9);
  color: var(--gold);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.state-ranking-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.state-ranking-table tr:hover td {
  background: rgba(245, 158, 11, 0.08);
}

/* ==========================================================================
   HEADER NAVIGATION DROPDOWN
   ========================================================================== */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-darker);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  list-style: none;
  padding: 0.5rem 0;
  min-width: 230px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--gold-glow);
  z-index: 1010;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-light);
  display: block;
  text-align: left;
  transition: var(--transition-smooth);
  width: 100%;
  font-family: var(--font-sans);
}

.dropdown-menu li a:hover {
  background: var(--glass-bg);
  color: var(--gold);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Responsive navigation tweaks */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    box-shadow: none;
    width: 100%;
    display: none;
    padding-left: 1.5rem;
    min-width: unset;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
}

/* ==========================================================================
   CITIZEN SERVICES HUB
   ========================================================================== */
.citizen-hub-section {
  padding: 5rem 0;
  position: relative;
  background-color: var(--bg-darker);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* Accessibility & Controls Bar */
.citizen-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}

.citizen-ctrl-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.citizen-ctrl-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 500;
}

.citizen-ctrl-btn:hover, .citizen-ctrl-btn.active {
  background: var(--gold);
  color: var(--bg-darker);
  border-color: var(--gold);
}

/* Smart Search Container */
.citizen-search-box {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 0 auto 1.5rem auto;
}

.citizen-search-input {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3.5rem;
  background: rgba(1, 21, 16, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 9999px;
  color: var(--text-light);
  font-size: 1.05rem;
  outline: none;
  font-family: var(--font-sans);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.citizen-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

.citizen-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  pointer-events: none;
}

/* Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-darker);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  margin-top: 0.5rem;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  max-height: 350px;
  overflow-y: auto;
  display: none;
}

.search-suggestion-item {
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.search-suggestion-item:hover {
  background: rgba(245, 158, 11, 0.12);
}

.suggestion-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-light);
}

.suggestion-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Favorites and Recent */
.citizen-favorites-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  font-size: 0.85rem;
}

.favorites-list, .recent-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fav-title {
  color: var(--text-muted);
  font-weight: 500;
}

.fav-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  color: var(--text-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.fav-pill:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--gold);
  color: var(--gold);
}

/* Quick Services Widget Grid */
.citizen-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.citizen-service-card {
  padding: 2.25rem 1.75rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.citizen-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  font-size: 1.6rem;
  color: var(--gold);
  transition: var(--transition-smooth);
}

.citizen-service-card:hover .citizen-card-icon {
  background: var(--gold);
  color: var(--bg-darker);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

.citizen-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.citizen-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.fav-toggle-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

.fav-toggle-btn:hover, .fav-toggle-btn.active {
  color: #ef4444;
  transform: scale(1.15);
}

/* Life Events Wizard Grid */
.life-events-section {
  background: rgba(1, 21, 16, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin-bottom: 4rem;
}

.life-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.life-event-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.life-event-card:hover, .life-event-card.active {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--gold);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.15);
}

.life-event-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.life-event-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
}

/* Life Event Wizard Content Panel */
.wizard-results-panel {
  margin-top: 2rem;
  padding: 2.5rem;
  border-radius: 16px;
  background: rgba(1, 21, 16, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: none;
}

.wizard-results-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.wizard-checklists-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .wizard-checklists-container {
    grid-template-columns: 1fr;
  }
}

.wizard-service-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.wizard-service-item:hover {
  border-color: rgba(245, 158, 11, 0.3);
}

/* Category Explorer Layout */
.citizen-tabs-bar {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.citizen-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  position: relative;
  transition: var(--transition-smooth);
}

.citizen-tab-btn:hover {
  color: var(--text-light);
}

.citizen-tab-btn.active {
  color: var(--gold);
}

.citizen-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Tab Panel Views */
.citizen-tab-panel {
  display: none;
}

.citizen-tab-panel.active {
  display: block;
}

/* Service Detail Modal */
.citizen-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.citizen-modal-card {
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 25px var(--gold-glow);
}

.citizen-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 2rem;
}

.citizen-modal-body {
  padding: 2rem;
}

.citizen-modal-section {
  margin-bottom: 1.75rem;
}

.citizen-modal-section h4 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Public Downloads Area */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.download-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.download-card-body {
  margin-bottom: 1.25rem;
}

/* Office Locator Panel */
.locator-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

@media (max-width: 850px) {
  .locator-container {
    grid-template-columns: 1fr;
  }
}

.locator-form-panel {
  padding: 2rem;
}

.locator-results-panel {
  padding: 2rem;
  background: rgba(1, 21, 16, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  min-height: 350px;
}

.office-info-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

/* Mini Notification Center */
.notifications-panel {
  max-width: 750px;
  margin: 0 auto;
}

.notification-item {
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,0.02);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

/* Accessibility settings support class overrides */
.accessibility-large-fonts #citizen-services p,
.accessibility-large-fonts #citizen-services li,
.accessibility-large-fonts #citizen-services select,
.accessibility-large-fonts #citizen-services input {
  font-size: 1.15rem !important;
}
.accessibility-large-fonts #citizen-services h2 {
  font-size: 2.8rem !important;
}
.accessibility-large-fonts #citizen-services h3 {
  font-size: 1.8rem !important;
}
.accessibility-large-fonts #citizen-services h4 {
  font-size: 1.35rem !important;
}

.accessibility-xlarge-fonts #citizen-services p,
.accessibility-xlarge-fonts #citizen-services li,
.accessibility-xlarge-fonts #citizen-services select,
.accessibility-xlarge-fonts #citizen-services input {
  font-size: 1.3rem !important;
}
.accessibility-xlarge-fonts #citizen-services h2 {
  font-size: 3.2rem !important;
}
.accessibility-xlarge-fonts #citizen-services h3 {
  font-size: 2.2rem !important;
}
.accessibility-xlarge-fonts #citizen-services h4 {
  font-size: 1.6rem !important;
}

.accessibility-high-contrast {
  background-color: #000000 !important;
  color: #ffffff !important;
}
.accessibility-high-contrast #citizen-services .glass-panel,
.accessibility-high-contrast #citizen-services .life-event-card,
.accessibility-high-contrast #citizen-services .wizard-results-panel,
.accessibility-high-contrast #citizen-services .citizen-controls-bar {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
}
.accessibility-high-contrast #citizen-services .citizen-search-input {
  border: 2px solid var(--gold) !important;
  background: #000000 !important;
  color: #ffffff !important;
}
.accessibility-high-contrast #citizen-services * {
  text-shadow: none !important;
  box-shadow: none !important;
}