/* ============================================================
   CHIKHALI GRAMPANCHAYAT - PREMIUM DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Deep emerald + saffron + gold */
  --primary:       #0d5c3a;
  --primary-dark:  #07402a;
  --primary-light: #1a7a50;
  --secondary:     #e07b2b;
  --secondary-light: #f0944a;
  --accent:        #f5c518;
  --accent-dark:   #d4a212;
  --danger:        #c0392b;
  --info:          #1565c0;
  --success:       #27ae60;

  /* Neutrals */
  --bg:            #f8faf9;
  --surface:       #ffffff;
  --surface-2:     #f0f4f2;
  --border:        #d8e6df;
  --text:          #1a2f24;
  --text-muted:    #5a7060;
  --text-light:    #8a9e92;
  --white:         #ffffff;

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, #0d5c3a 0%, #1a7a50 50%, #276949 100%);
  --grad-hero:      linear-gradient(135deg, rgba(7,64,42,0.88) 0%, rgba(13,92,58,0.72) 60%, rgba(224,123,43,0.4) 100%);
  --grad-accent:    linear-gradient(135deg, #e07b2b 0%, #f5c518 100%);
  --grad-card:      linear-gradient(145deg, #ffffff 0%, #f0f7f3 100%);

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(13,92,58,0.08);
  --shadow-md:  0 8px 24px rgba(13,92,58,0.12);
  --shadow-lg:  0 20px 60px rgba(13,92,58,0.15);
  --shadow-xl:  0 30px 90px rgba(7,64,42,0.2);

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Spacing */
  --nav-h: 68px;
  --topbar-h: 44px;
  --logobar-h: 90px;
}

/* ===================== RESET ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: all 0.25s ease; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.95rem; border: 2px solid transparent;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  letter-spacing: 0.03em; white-space: nowrap;
}
.btn-primary { background: var(--grad-accent); color: #fff; box-shadow: 0 4px 14px rgba(224,123,43,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(224,123,43,0.45); }
.btn-green { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 14px rgba(13,92,58,0.3); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,92,58,0.4); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-outline-green { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline-green:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(192,57,43,0.35); }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ===================== TOP BAR ===================== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.83rem;
  height: var(--topbar-h);
  display: flex; align-items: center;
}
.top-bar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--accent); }
.top-bar i { margin-right: 5px; color: var(--accent); }
.top-bar .divider { color: rgba(255,255,255,0.3); }

#live-clock {
  font-family: 'Inter', monospace;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.8rem;
  transition: all 0.2s;
}
.social-links a:hover { background: var(--secondary); color: #fff; transform: scale(1.1); }

/* ===================== LOGO BAR ===================== */
.logo-bar {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: 10px 0;
}
.logo-bar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo-wrapper { display: flex; align-items: center; gap: 18px; flex: 1; }
.logo-emblem { height: 76px; width: auto; }
.logo-text h1 {
  font-size: 1.7rem; font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.2;
}
.logo-text .sub { font-size: 0.87rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.logo-text .tagline {
  font-size: 0.78rem; color: var(--secondary); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; margin-top: 1px;
}

.logo-gov-logos { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.logo-gov-logos img { height: 48px; width: auto; object-fit: contain; opacity: 0.85; }

.menu-toggle {
  display: none; background: none; border: none;
  font-size: 1.6rem; color: var(--primary); cursor: pointer;
}

/* ===================== NAVIGATION ===================== */
.navbar {
  background: var(--grad-primary);
  position: sticky; top: 0; z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.nav-menu { display: flex; align-items: stretch; flex-wrap: wrap; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 0 14px; height: var(--nav-h);
  color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.88rem;
  transition: all 0.25s; white-space: nowrap;
}
.nav-menu > li > a i.nav-icon { font-size: 0.82rem; }
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: #fff; background: rgba(255,255,255,0.15);
}
.nav-menu > li > a.active {
  border-bottom: 3px solid var(--accent);
}

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.7rem; margin-left: 3px; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--surface); box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-top: 3px solid var(--accent);
  display: none; flex-direction: column; z-index: 100;
}
.has-dropdown:hover .dropdown-menu { display: flex; }
.dropdown-menu a {
  padding: 11px 18px; color: var(--text); font-size: 0.88rem; font-weight: 500;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--surface-2); color: var(--primary); padding-left: 24px; }

.nav-cta { display: flex; gap: 8px; align-items: center; padding: 0 8px; }
.nav-cta .btn { padding: 8px 16px; font-size: 0.83rem; }

/* ===================== NEWS TICKER ===================== */
.news-ticker {
  background: var(--secondary);
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
}
.ticker-wrap { display: flex; align-items: center; gap: 0; }
.ticker-label {
  background: var(--primary-dark); color: var(--accent);
  padding: 4px 16px; font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
  border-radius: 0 var(--radius-full) var(--radius-full) 0; margin-right: 12px;
}
.ticker-content { flex: 1; overflow: hidden; }
.ticker-content marquee { font-size: 0.88rem; font-weight: 500; }

/* ===================== HERO ===================== */
.hero-section {
  position: relative; overflow: hidden; min-height: 85vh;
  display: flex; align-items: center;
  background: url('https://images.unsplash.com/photo-1594741158704-5a784b8e49ab?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--grad-hero);
}
.hero-particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-content-wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; padding: 80px 0;
}
.hero-text-block { color: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,197,24,0.2); border: 1px solid rgba(245,197,24,0.5);
  color: var(--accent); padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 16px;
}
.hero-text-block h2 {
  font-size: 3.4rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-text-block h2 .highlight { color: var(--accent); }
.hero-text-block p {
  font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,0.85);
  margin-bottom: 28px; max-width: 480px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-xl);
  padding: 32px; color: #fff;
}
.hero-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hero-stat-item { text-align: center; }
.hero-stat-item .num {
  font-size: 2.2rem; font-weight: 800; color: var(--accent); display: block; line-height: 1;
}
.hero-stat-item .lbl { font-size: 0.83rem; color: rgba(255,255,255,0.8); margin-top: 4px; }
.hero-stat-divider { border-top: 1px solid rgba(255,255,255,0.2); margin: 16px 0; }
.hero-quick-links { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-quick-link {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; padding: 8px 14px; border-radius: var(--radius-full);
  font-size: 0.83rem; font-weight: 600;
  transition: all 0.25s;
}
.hero-quick-link:hover { background: var(--secondary); border-color: var(--secondary); }

/* Scroll indicator */
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 5; text-align: center; }
.hero-scroll span { display: block; color: rgba(255,255,255,0.6); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.scroll-dot { width: 2px; height: 40px; background: rgba(255,255,255,0.3); border-radius: 2px; margin: 0 auto; position: relative; overflow: hidden; }
.scroll-dot::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 50%;
  background: var(--accent); border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* ===================== SECTION BASE ===================== */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--primary-dark); color: #fff; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--secondary); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.section-label::before, .section-label::after {
  content: ''; width: 24px; height: 2px; background: var(--secondary); border-radius: 2px;
}
.section-title {
  font-size: 2.2rem; font-weight: 800; color: var(--primary);
  line-height: 1.2; margin-bottom: 12px;
}
.section-dark .section-title { color: #fff; }
.section-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 520px; margin: 0 auto; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* ===================== DASHBOARD STATS ===================== */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-primary);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card .icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(13,92,58,0.1), rgba(13,92,58,0.05));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 1.4rem; color: var(--primary);
}
.stat-card .num {
  font-size: 2.1rem; font-weight: 800; color: var(--primary);
  display: block; line-height: 1;
}
.stat-card .lbl { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; font-weight: 500; }

/* ===================== PROGRESS METER ===================== */
.progress-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.progress-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.progress-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.progress-label { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.progress-pct { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.progress-bar-wrap {
  background: var(--surface-2); border-radius: var(--radius-full);
  height: 10px; overflow: hidden;
}
.progress-bar {
  height: 100%; border-radius: var(--radius-full);
  background: var(--grad-primary);
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}
.progress-bar.orange { background: var(--grad-accent); }
.progress-bar.blue { background: linear-gradient(90deg, #1565c0, #42a5f5); }
.progress-subtext { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }

/* ===================== SERVICE CARDS ===================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 20px; text-align: center;
  box-shadow: var(--shadow-sm); transition: all 0.3s ease;
  cursor: pointer; position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-primary); opacity: 0; transition: opacity 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-card:hover::after { opacity: 0.04; }
.service-card .s-icon {
  width: 64px; height: 64px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(13,92,58,0.12), rgba(13,92,58,0.06));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.7rem; color: var(--primary);
  transition: all 0.3s;
}
.service-card:hover .s-icon {
  background: var(--grad-primary); color: #fff; transform: scale(1.08);
}
.service-card h4 { font-size: 0.97rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.service-card p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; }
.service-card .s-meta { font-size: 0.75rem; color: var(--text-light); }

/* ===================== MEMBER CARDS ===================== */
.member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.member-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 16px; text-align: center;
  box-shadow: var(--shadow-sm); transition: all 0.35s ease;
}
.member-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.member-photo {
  width: 110px; height: 110px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 14px;
  border: 4px solid var(--primary); padding: 3px;
  background: #fff;
}
.member-card .role-badge {
  display: inline-block; padding: 3px 12px;
  background: rgba(13,92,58,0.1); color: var(--primary);
  border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}
.member-card.sarppanch .role-badge { background: var(--grad-accent); color: #fff; }
.member-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.member-card .ward { font-size: 0.8rem; color: var(--text-muted); }

/* ===================== PROJECT CARDS ===================== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project-card .p-img {
  width: 100%; height: 180px; object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 3rem;
}
.project-card .p-body { padding: 20px; }
.p-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700; margin-bottom: 10px;
}
.p-status.ongoing { background: rgba(39,174,96,0.15); color: #27ae60; }
.p-status.planned { background: rgba(21,101,192,0.12); color: var(--info); }
.p-status.completed { background: rgba(13,92,58,0.12); color: var(--primary); }
.project-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.project-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ===================== CARDS (GENERIC) ===================== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3, .card h4 { color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.9rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: rgba(13,92,58,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--primary); margin-bottom: 14px;
}

/* ===================== NOTICE LIST ===================== */
.notice-list { display: flex; flex-direction: column; gap: 0; }
.notice-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { padding-left: 4px; }
.notice-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--secondary); flex-shrink: 0; margin-top: 7px;
}
.notice-item .n-date { font-size: 0.75rem; color: var(--text-light); margin-top: 2px; }
.notice-badge {
  display: inline-block; padding: 1px 8px;
  background: var(--danger); color: #fff;
  border-radius: var(--radius-full); font-size: 0.65rem; font-weight: 700;
  margin-left: 6px; vertical-align: middle;
}

/* ===================== COMMITTEE TABLE ===================== */
.committee-table { width: 100%; border-collapse: collapse; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.committee-table thead tr { background: var(--grad-primary); color: #fff; }
.committee-table th, .committee-table td { padding: 13px 16px; text-align: left; font-size: 0.9rem; }
.committee-table tbody tr { background: var(--surface); border-bottom: 1px solid var(--border); transition: background 0.2s; }
.committee-table tbody tr:last-child { border-bottom: none; }
.committee-table tbody tr:hover { background: var(--surface-2); }
.committee-table .num { text-align: center; width: 50px; }
.committee-table h5 { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

/* ===================== SCHEME CARDS ===================== */
.scheme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.scheme-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--primary); border-radius: var(--radius-md);
  padding: 20px; box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.scheme-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.scheme-card .scheme-tag {
  display: inline-block; padding: 2px 10px;
  background: rgba(13,92,58,0.1); color: var(--primary);
  border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700;
  margin-bottom: 8px;
}
.scheme-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.scheme-card p { font-size: 0.83rem; color: var(--text-muted); }

/* ===================== CONTACT INFO CARDS ===================== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm); text-align: center; transition: all 0.3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card .c-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 14px;
}
.contact-card h4 { font-weight: 700; margin-bottom: 6px; }
.contact-card p, .contact-card a { font-size: 0.9rem; color: var(--text-muted); }
.contact-card a:hover { color: var(--primary); }

/* ===================== EMERGENCY CONTACTS ===================== */
.emergency-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.emergency-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg); padding: 18px 12px;
  color: #fff; font-weight: 700; transition: all 0.25s; text-align: center;
}
.emergency-btn i { font-size: 1.5rem; }
.emergency-btn .e-num { font-size: 1.2rem; font-weight: 800; color: var(--accent); }
.emergency-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.03); }

/* ===================== GALLERY ===================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gallery-item {
  border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 4/3; position: relative; cursor: pointer;
  background: var(--surface-2);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(7,64,42,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 1.8rem; color: #fff; }

/* ===================== FORMS ===================== */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 0.87rem; margin-bottom: 6px; color: var(--text); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 11px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-md); font-size: 0.9rem; font-family: inherit;
  color: var(--text); background: var(--surface);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,92,58,0.1);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===================== FINANCE PIE CHART (CSS) ===================== */
.budget-visual { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.budget-chart { flex-shrink: 0; }
.budget-legend { flex: 1; min-width: 200px; }
.legend-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.legend-label { font-size: 0.88rem; color: var(--text); }
.legend-pct { font-weight: 700; color: var(--primary); margin-left: auto; }

/* ===================== PAGE HEADER ===================== */
.page-hero {
  background: var(--grad-primary); color: #fff; padding: 56px 0 44px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 8px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: rgba(255,255,255,0.75);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb i { font-size: 0.7rem; }

/* ===================== MAP ===================== */
.map-frame { border: 0; width: 100%; height: 360px; border-radius: var(--radius-lg); }

/* ===================== FOOTER ===================== */
.footer-pre {
  background: var(--primary-dark); padding: 48px 0 32px;
  color: rgba(255,255,255,0.85);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px;
}
.footer-brand .logo-text h3 {
  font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: 8px;
}
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 16px; }
.footer-col h4 {
  font-size: 0.87rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 0.86rem; color: rgba(255,255,255,0.7);
  margin-bottom: 8px; transition: all 0.2s;
}
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-col p { font-size: 0.86rem; color: rgba(255,255,255,0.7); line-height: 1.8; }
.footer-col i { margin-right: 6px; color: var(--accent); }

.footer-bottom {
  background: var(--primary-dark); color: rgba(255,255,255,0.5);
  font-size: 0.82rem; padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--secondary); transform: scale(1.1); }

.gov-logos-bar {
  display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap;
}
.gov-logos-bar img { height: 38px; width: auto; opacity: 0.75; filter: brightness(0) invert(1); }

/* ===================== UTILITY ===================== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse    { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes countUp  { from { opacity: 0; } to { opacity: 1; } }

.fade-in-up   { animation: fadeInUp 0.7s ease both; }
.fade-in-up.d1 { animation-delay: 0.1s; }
.fade-in-up.d2 { animation-delay: 0.2s; }
.fade-in-up.d3 { animation-delay: 0.3s; }
.fade-in-up.d4 { animation-delay: 0.4s; }

/* ===================== FLOATING CTA ===================== */
.floating-cta {
  position: fixed; bottom: 28px; right: 28px; z-index: 888;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.float-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 0.88rem; color: #fff;
  box-shadow: var(--shadow-lg); cursor: pointer; transition: all 0.3s;
  border: none;
}
.float-btn.grievance { background: var(--danger); }
.float-btn.whatsapp { background: #25d366; }
.float-btn:hover { transform: scale(1.05); }

/* ===================== BACK TO TOP ===================== */
#backToTop {
  position: fixed; bottom: 28px; left: 28px; z-index: 888;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: none; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: var(--shadow-md); cursor: pointer;
  border: none; transition: all 0.3s;
}
#backToTop.show { display: flex; }
#backToTop:hover { background: var(--primary-light); transform: translateY(-3px); }

/* ===================== ACCESSIBILITY ===================== */
.a11y-bar {
  position: fixed; top: 50%; right: 0; transform: translateY(-50%);
  z-index: 777; display: flex; flex-direction: column; gap: 2px;
}
.a11y-btn {
  background: var(--primary); color: #fff;
  border: none; cursor: pointer; font-size: 0.78rem; font-weight: 700;
  padding: 8px 10px; display: block; transition: all 0.2s;
  white-space: nowrap;
}
.a11y-btn:hover { background: var(--secondary); }

/* ===================== WEATHER WIDGET ===================== */
.weather-widget {
  background: rgba(13,92,58,0.1); border: 1px solid rgba(13,92,58,0.2);
  border-radius: var(--radius-md); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.85rem; color: var(--text);
}
.weather-widget i { font-size: 1.6rem; color: var(--secondary); }
.weather-temp { font-size: 1.4rem; font-weight: 800; color: var(--primary); }

/* ===================== TABS ===================== */
.tab-bar { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; }
.tab-btn {
  padding: 9px 20px; border: 2px solid var(--border);
  border-radius: var(--radius-full); background: var(--surface);
  font-size: 0.87rem; font-weight: 600; cursor: pointer; transition: all 0.25s;
  color: var(--text);
}
.tab-btn.active, .tab-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content-wrap { grid-template-columns: 1fr; }
  .hero-stats-card { max-width: 480px; }
}

@media (max-width: 768px) {
  .hero-text-block h2 { font-size: 2.2rem; }
  .menu-toggle { display: block; }
  .nav-menu { display: none; flex-direction: column; flex-wrap: nowrap; }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { height: auto; padding: 13px 20px; }
  .nav-cta { padding: 10px 20px; }
  .dropdown-menu { position: static; box-shadow: none; border-radius: 0; background: rgba(0,0,0,0.1); }
  .has-dropdown > a::after { content: ''; }
  .logo-gov-logos { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.8rem; }
  .top-bar-right .socials, .top-bar-right .divider:last-of-type, #live-clock { display: none; }
  .a11y-bar { display: none; }
}

@media (max-width: 480px) {
  .hero-text-block h2 { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }
  .container { padding: 0 14px; }
}
