/* HRDC Website — Shared Styles */

/* ═══════════════════════════════════════════
   CSS Custom Properties
   ═══════════════════════════════════════════ */
:root {
  --brand-950: #0c1929;
  --brand-900: #0f2744;
  --brand-800: #1a365d;
  --brand-700: #1e4976;
  --brand-600: #2563a8;
  --brand-50: #eff6ff;
  --accent-500: #d97706;
  --accent-400: #f59e0b;
  --accent-300: #fbbf24;
  --surface: #f8fafc;
  --surface-elevated: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 39, 68, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 39, 68, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 39, 68, 0.12);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --nav-height: 4.5rem;
}

/* Dark mode overrides */
.dark {
  --surface: #0c1929;
  --surface-elevated: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border: #334155;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.dark body,
body.dark {
  background: var(--surface);
  color: var(--text-primary);
}

.dark .bg-slate-50,
body.dark .bg-slate-50 {
  background: var(--surface);
}

.dark .bg-white,
body.dark .bg-white {
  background: var(--surface-elevated);
}

.dark .text-slate-900,
body.dark .text-slate-900 {
  color: var(--text-primary);
}

.dark .text-slate-700,
body.dark .text-slate-700 {
  color: var(--text-secondary);
}

.dark .text-gray-700,
body.dark .text-gray-700 {
  color: var(--text-secondary);
}

.dark .text-gray-600,
body.dark .text-gray-600 {
  color: var(--text-secondary);
}

.dark .border-gray-100,
body.dark .border-gray-100 {
  border-color: var(--border);
}

.dark .bg-gray-50,
body.dark .bg-gray-50 {
  background: var(--surface-elevated);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════
   Top bar
   ═══════════════════════════════════════════ */
.site-topbar {
  background: linear-gradient(135deg, var(--brand-950) 0%, var(--brand-900) 100%);
}

/* ═══════════════════════════════════════════
   Sticky navigation
   ═══════════════════════════════════════════ */
.site-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s ease;
}

.dark .site-nav {
  background: rgba(12, 25, 41, 0.92);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-md);
}

/* Desktop dropdown menus */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 13rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.375rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover {
  background: #eff6ff;
  color: var(--brand-700);
}

.nav-link {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-600);
}

/* Mobile menu */
#mobile-menu {
  border-top: 1px solid var(--border);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.mobile-submenu {
  background: #f1f5f9;
  border-radius: 0.5rem;
  margin: 0.25rem 0.75rem 0.5rem;
}

.mobile-submenu a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.mobile-submenu a:hover {
  color: var(--brand-700);
  background: #e2e8f0;
  border-radius: 0.375rem;
}

/* ═══════════════════════════════════════════
   News ticker
   ═══════════════════════════════════════════ */
.news-ticker-wrap {
  background: var(--brand-900);
  overflow: hidden;
  position: relative;
}

.news-ticker-wrap::before,
.news-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3rem;
  z-index: 2;
  pointer-events: none;
}

.news-ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--brand-900), transparent);
}

.news-ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--brand-900), transparent);
}

.news-ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}

.news-ticker-wrap:hover .news-ticker-track {
  animation-play-state: paused;
}

.news-ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  color: var(--accent-300);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

.news-ticker-item::before {
  content: '•';
  color: var(--accent-400);
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   Section headings
   ═══════════════════════════════════════════ */
.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--brand-900);
  letter-spacing: -0.02em;
}

.section-heading-accent {
  display: inline-block;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-heading-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-400), var(--accent-300));
  border-radius: 2px;
}

/* ═══════════════════════════════════════════
   Cards
   ═══════════════════════════════════════════ */
.card-modern {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.card-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}

/* Glassmorphism card */
.card-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* News cards */
.news-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  position: relative;
  overflow: hidden;
}

.news-card-img img {
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════ */
.hero-slide {
  transition: opacity 1s ease-in-out;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(12, 25, 41, 0.75) 0%,
    rgba(15, 39, 68, 0.55) 50%,
    rgba(12, 25, 41, 0.7) 100%
  );
}

/* Hero navigation dots */
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--accent-400);
  border-color: var(--accent-400);
  transform: scale(1.3);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Hero text animations */
.hero-title {
  animation: heroTitleIn 1s ease-out forwards;
  opacity: 0;
}

.hero-subtitle {
  animation: heroSubtitleIn 1s ease-out 0.3s forwards;
  opacity: 0;
}

.hero-cta {
  animation: heroCtaIn 1s ease-out 0.6s forwards;
  opacity: 0;
}

@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroSubtitleIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroCtaIn {
  from { opacity: 0; transform: translateY(15px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero prev/next buttons */
.hero-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* ═══════════════════════════════════════════
   Stats counters
   ═══════════════════════════════════════════ */
.stats-section {
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-950) 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-400), var(--accent-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  color: white;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(26, 54, 93, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.35);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
  color: var(--brand-950);
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   CTA sections
   ═══════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-700) 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 40%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   Service cards
   ═══════════════════════════════════════════ */
.service-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--accent-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* Mini slideshow in service cards */
.mini-slide {
  transition: opacity 1s ease-in-out;
}

/* ═══════════════════════════════════════════
   News list toggle
   ═══════════════════════════════════════════ */
.news-list section:nth-of-type(n+6) {
  display: none;
}

.news-list.show-all section {
  display: block;
}

/* ═══════════════════════════════════════════
   Newsletter
   ═══════════════════════════════════════════ */
.newsletter-section {
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-800) 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.875rem 1.25rem;
  border-radius: 9999px;
  width: 100%;
  font-size: 0.9375rem;
  transition: border-color 0.2s, background 0.2s;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-400);
  background: rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════════
   Chatbot widget
   ═══════════════════════════════════════════ */
.chatbot-fab {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(30, 73, 118, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.chatbot-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(30, 73, 118, 0.5);
}

.chatbot-fab .pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--brand-600);
  animation: chatPulse 2s ease-out infinite;
}

@keyframes chatPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

.chatbot-window {
  position: fixed;
  bottom: 9.5rem;
  right: 1.5rem;
  z-index: 91;
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 500px;
  max-height: 70vh;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.chatbot-window.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-header-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  animation: msgIn 0.3s ease-out;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  background: #f1f5f9;
  color: var(--text-primary);
  border-bottom-left-radius: 0.25rem;
  align-self: flex-start;
}

.chat-msg.user {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: white;
  border-bottom-right-radius: 0.25rem;
  align-self: flex-end;
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0 1rem 0.5rem;
}

.chat-quick-btn {
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid #bfdbfe;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-quick-btn:hover {
  background: var(--brand-600);
  color: white;
  border-color: var(--brand-600);
}

.chatbot-input-area {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}

.chatbot-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  background: var(--surface);
  color: var(--text-primary);
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--brand-600);
}

.chatbot-send {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.chatbot-send:hover {
  transform: scale(1.1);
}

/* ═══════════════════════════════════════════
   WhatsApp floating button
   ═══════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  color: white;
}

.whatsapp-fab .tooltip {
  position: absolute;
  right: 4.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: #25D366;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.whatsapp-fab:hover .tooltip {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   Dark mode toggle
   ═══════════════════════════════════════════ */
.dark-mode-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dark .dark-mode-toggle {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-400);
  color: var(--accent-400);
}

/* ═══════════════════════════════════════════
   Testimonial / quote section
   ═══════════════════════════════════════════ */
.testimonial-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-300);
  opacity: 0.5;
  font-family: Georgia, serif;
}

/* ═══════════════════════════════════════════
   Search overlay
   ═══════════════════════════════════════════ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-box {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.search-overlay.open .search-box {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   Form styles
   ═══════════════════════════════════════════ */
.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.15);
}

/* Success banner */
.form-success-banner {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */
.site-footer {
  background: var(--brand-950);
  color: #94a3b8;
}

.site-footer h3 {
  color: white;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-footer a:hover {
  color: var(--accent-300);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--brand-700);
  color: var(--accent-300);
}

/* ═══════════════════════════════════════════
   Back to top
   ═══════════════════════════════════════════ */
#backToTopBtn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--brand-800);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
}

#backToTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTopBtn:hover {
  background: var(--brand-700);
}

/* ═══════════════════════════════════════════
   Page hero (inner pages)
   ═══════════════════════════════════════════ */
.page-hero {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 25, 41, 0.82), rgba(15, 39, 68, 0.65));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.page-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-up.delay-200 {
  animation-delay: 0.2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* ═══════════════════════════════════════════
   Scroll reveal utility
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   Accessibility
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .news-ticker-track {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════
   Responsive adjustments
   ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   Project Progress Tracker
   ═══════════════════════════════════════════ */
.progress-bar-track {
  background: #e2e8f0;
  border-radius: 9999px;
  height: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--brand-600), var(--accent-400));
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.progress-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════
   Ward Map
   ═══════════════════════════════════════════ */
.ward-map-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.ward-map-container svg {
  width: 100%;
  height: auto;
}

.ward-path {
  fill: #dbeafe;
  stroke: #93c5fd;
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.3s ease, stroke 0.3s ease, transform 0.2s ease;
}

.ward-path:hover {
  fill: #bfdbfe;
  stroke: var(--brand-600);
  stroke-width: 2;
}

.ward-path.active {
  fill: var(--brand-600);
  stroke: var(--brand-800);
  stroke-width: 2;
}

.ward-tooltip {
  position: absolute;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  min-width: 200px;
}

.ward-tooltip.visible {
  opacity: 1;
}

.ward-info-panel {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  min-height: 200px;
}

.ward-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.ward-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   Weather Widget
   ═══════════════════════════════════════════ */
.weather-widget {
  background: linear-gradient(135deg, #1e4976 0%, #0f2744 100%);
  border-radius: var(--radius-lg);
  color: white;
  overflow: hidden;
  position: relative;
}

.weather-widget::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.weather-icon {
  font-size: 3rem;
  line-height: 1;
}

.weather-temp {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
}

.farming-alert {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.farming-alert-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 640px) {
  .chatbot-window {
    right: 0.5rem;
    bottom: 8rem;
    width: calc(100vw - 1rem);
    height: 60vh;
  }

  .whatsapp-fab {
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }

  .chatbot-fab {
    bottom: 5rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }

  #backToTopBtn {
    bottom: 5rem;
    right: 1rem;
  }

  .hero-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
