@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,600;1,500&display=swap');

:root {
  --theme-orange: #f57c00;
  /* Slightly deeper orange */
  --theme-white: #ffffff;
  --theme-green: #2e7d32;
  /* Deeper Green */
  --header-pink-start: #fff8e1;
  /* Changed to warm cream */
  --header-pink-end: #ffffff;
  --text-dark: #212121;
  --accent-red: #d32f2f;
  --gov-blue: #1565c0;
  /* Richer Blue */
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* Smoother shadow */
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.12);
  --anim-speed: 0.4s;
  --font-main: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

/* Professional Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 5px;
  transition: background 0.3s;
}

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

/* Text Selection */
::selection {
  background: var(--theme-orange);
  color: white;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: #f8f9fa;
  /* Clean base */
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scroll Mouse Animation */
.scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid white;
  border-radius: 15px;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: scroll-dot 2s infinite;
}

@keyframes scroll-dot {
  0% {
    opacity: 1;
    top: 8px;
  }

  100% {
    opacity: 0;
    top: 25px;
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

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

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

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  animation: fadeIn 0.8s ease-out;
  /* Global Fade In */
}

/* --- Restored Header --- */
.gov-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  /* Softer shadow */
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 0 auto 20px;
  max-width: 100%;
  border-bottom: 5px solid var(--theme-orange);
  /* Stronger Brand Line */
  transition: all 0.3s ease;
}

/* Header Flex Layout */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Brand Section */
.brand-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.emblem-img {
  height: 65px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-img {
  height: 65px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.village-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(45deg, var(--accent-red), #ff7043);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.village-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

/* Controls Section */
.controls-box {
  display: flex;
  gap: 15px;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gov-blue);
  padding: 5px;
}

/* --- Navigation Bar (Desktop) --- */
.main-nav {
  background: linear-gradient(90deg, #d84315, #f4511e);
  /* Richer Gradient */
  padding: 0;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  gap: 8px;
  /* Spacing between pills */
  align-items: center;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5px 0;
}

.nav-item {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  padding: 0;
  text-decoration: none;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  border-radius: 50px;
  /* Perfect Pills */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  position: relative;
  letter-spacing: 0.3px;
  cursor: pointer;
}

/* New inner wrapper for Desktop Trigger */
.nav-toggle-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  /* Padding moved here */
  width: 100%;
}

/* Direct link styling (A tags) */
a.nav-item {
  padding: 10px 20px;
  gap: 8px;
}

.nav-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.15);
  /* Glass Hover */
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-item.active {
  background: white;
  color: var(--accent-red);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Dropdowns (Desktop) */
.dropdown-parent {
  cursor: pointer;
}

/* Desktop Arrow */
.dropdown-parent .nav-toggle-header::after {
  content: '▼';
  font-size: 0.6rem;
  margin-left: 6px;
  opacity: 0.8;
  transition: transform 0.3s;
}

.dropdown-parent:hover .nav-toggle-header::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  /* Align Left */
  transform: translateY(10px);
  /* Start slightly down */
  background: white;
  min-width: 260px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  /* Deep Shadow */
  border-radius: 12px;
  /* Slightly less rounded corners for menu */
  z-index: 2000;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 5px;
  /* Gap */
  animation: slideUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Invisible Bridge to prevent closing when crossing gap */
.dropdown-menu::after {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

/* Pointer Arrow for Dropdown (Adjusted for Left Align) */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 30px;
  /* Align with icon area */
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

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

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: #444;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.sub-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.dropdown-link:hover {
  background: linear-gradient(90deg, #fff3e0, #ffffff);
  color: var(--accent-red);
  transform: translateX(5px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* --- Mobile Menu Drawer (Fixed) --- */
/* --- Mobile Menu Drawer (Premium Upgrade) --- */
@media(max-width: 900px) {

  /* Compact Header */
  .gov-header {
    margin-bottom: 0;
    border-radius: 0;
    border-bottom: none;
  }

  .header-flex {
    padding: 10px 15px;
    z-index: 1001;
    position: relative;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .brand-box {
    gap: 10px;
    flex: 1;
    overflow: hidden;
  }

  .emblem-img,
  .logo-img {
    height: 45px;
  }

  .village-title {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .village-subtitle {
    display: none;
  }

  .controls-box {
    gap: 10px;
    width: auto;
  }

  .search-wrap {
    display: none;
  }

  .lang-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* SLIDE-IN DRAWER */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 9999;
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.3);
    transform: translateX(-110%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-container {
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: white;
  }

  .mobile-drawer-header {
    display: block !important;
    padding: 30px 20px;
    background: linear-gradient(135deg, #FF5722, #FF9800);
    color: white;
    text-align: left;
  }

  /* Nav Items (Container) */
  .nav-item {
    width: 100%;
    text-align: left;
    padding: 0;
    /* REMOVED PADDING from container */
    color: #444;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    font-weight: 600;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping for dropdown */
    align-items: center;
  }

  /* The Clickable Header Part (New) */
  .nav-toggle-header {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  /* Regular Links (that are not dropdown parents) */
  a.nav-item {
    padding: 16px 20px;
    /* Restore padding for A tags */
    display: flex;
    /* Ensure flex behavior */
  }

  .nav-item:active,
  .nav-toggle-header:active {
    background: #fafafa;
  }

  .nav-item.active {
    background: white;
    /* Parent stays white */
    color: var(--accent-red);
    /* Border removed from parent, added to indicator? */
  }

  /* Active Header Style */
  .dropdown-parent.active .nav-toggle-header {
    background: #fff3e0;
    color: var(--accent-red);
    border-left: 5px solid var(--accent-red);
  }

  /* Accordion Arrow */
  .nav-toggle-header::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s;
    opacity: 0.5;
    margin-left: auto;
    /* Push to right */
  }

  .dropdown-parent.active .nav-toggle-header::after {
    transform: rotate(180deg);
    color: var(--accent-red);
    opacity: 1;
  }

  /* Mobile Dropdowns (Accordion Body) */
  .dropdown-parent {
    display: flex;
    flex-wrap: wrap;
  }

  .dropdown-menu {
    display: block;
    /* Override global display: none */
    position: static;
    box-shadow: none;
    border: none;
    background: #fdfdfd;
    padding: 0;
    width: 100%;
    max-height: 0;
    /* Animated Height */
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    margin: 0;
    border-radius: 0;
  }

  /* ACTIVE STATE: Open the Accordion */
  .dropdown-parent.active .dropdown-menu {
    max-height: 500px;
    /* Big enough to fit contents */
    border-bottom: 1px solid #e0e0e0;
  }

  .dropdown-link {
    padding-left: 50px;
    /* Indentation */
    background: #f9f9f9;
    border-bottom: 1px solid #fff;
    font-size: 0.9rem;
    color: #666;
  }

  .dropdown-link:hover {
    background: #f0f0f0;
    transform: none;
  }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}


/* --- UI Polish: Premium Glassmorphism Cards --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 25px;
  margin-bottom: 25px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.8);
}

.section-title {
  text-align: center;
  color: var(--gov-blue);
  font-weight: 800;
  font-size: 1.8rem;
  margin: 40px 0 30px;
  position: relative;
  display: block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-red);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* --- Utilities --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.btn-gov {
  background: linear-gradient(45deg, #d84315, #ff7043);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(216, 67, 21, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
}

.btn-gov:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(216, 67, 21, 0.4);
}

.stat-box {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 4px solid var(--theme-orange);
  transition: transform 0.3s;
}

.stat-box:hover {
  transform: translateY(-5px) scale(1.02);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-red);
  margin: 5px 0;
}

/* --- Mobile Tables --- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

th {
  background: #f8f9fa;
  font-weight: 600;
  color: var(--gov-blue);
}

tr:last-child td {
  border-bottom: none;
}

/* --- Parallax & Visuals --- */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.pattern-bg {
  background-color: #ffffff;
  background-image: 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='%23ffa94d' fill-opacity='0.1'%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");
}

/* --- Hero Carousel --- */
.hero-slider {
  height: 500px;
  /* Taller */
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent, rgba(0, 0, 0, 0.3));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  animation: slideDown 1s ease-out;
}

/* --- Stats Polish --- */
.stat-box {
  background: rgba(255, 255, 255, 0.95);
  /* Ensure opacity for AOS */
  backdrop-filter: blur(10px);
}

/* --- Dignitaries Section --- */
.dignitary-card {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s;
}

.dignitary-card:hover {
  transform: translateY(-5px);
}

.dignitary-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--theme-orange);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.dignitary-role {
  font-size: 0.85rem;
  color: var(--gov-blue);
  font-weight: 700;
  text-transform: uppercase;
}

.dignitary-name {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

/* --- Progress Meters --- */
.progress-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.progress-label {
  font-weight: 600;
  flex: 1;
}

.progress-track {
  flex: 2;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin: 0 15px;
}

.progress-fill {
  height: 100%;
  border-radius: 5px;
  width: 0;
  /* Animated via JS */
  transition: width 1.5s ease-out;
}

.progress-val {
  font-weight: bold;
  width: 40px;
  text-align: right;
}

/* --- Weather & Video --- */
.weather-widget {
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  color: white;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(41, 182, 246, 0.3);
}

/* --- Social Links --- */
.social-bar {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  text-decoration: none;
}

.social-icon:hover {
  transform: scale(1.1);
}

.fb {
  color: #1877f2;
}

.insta {
  color: #e4405f;
}

.yt {
  color: #ff0000;
}

/* --- Gallery --- */
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px;
  font-size: 0.9rem;
  text-align: center;
}

/* --- Testimonials --- */
.testimonial-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--theme-green);
  box-shadow: var(--shadow-sm);
  font-style: italic;
}

.t-author {
  margin-top: 10px;
  font-weight: bold;
  font-style: normal;
  text-align: right;
}

/* --- Preloader (Global) --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--theme-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media(max-width:768px) {
  .hero-slider {
    height: 350px;
  }

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

/* --- Calendar Widget --- */
.calendar-wrapper {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-family: 'Inter', sans-serif;
}

.cal-header {
  background: var(--gov-blue);
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 10px;
  gap: 5px;
}

.cal-day-name {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  font-weight: 600;
  margin-bottom: 5px;
}

.cal-date {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.cal-date:hover {
  background: #f0f0f0;
}

.cal-date.today {
  background: #e3f2fd;
  color: var(--gov-blue);
  font-weight: bold;
}

.cal-date.has-event {
  background: var(--accent-red);
  color: white;
  font-weight: bold;
}

.cal-date.has-event::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
}

.event-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  display: none;
  z-index: 10;
}

.cal-date:hover .event-tooltip {
  display: block;
}

/* --- Modal Styles (Fixed) --- */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  /* Darker backdrop */
  z-index: 10000;
  display: none;
  /* Hidden by default */
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal-overlay.active {
  display: flex !important;
  opacity: 1;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: black;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

.close-video-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10001;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
  line-height: 1;
}

.close-video-btn:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--theme-orange);
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Grids Fix */
@media (max-width: 900px) {

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr !important;
  }

  .stat-grid {
    margin-top: 0 !important;
    gap: 15px;
  }

  .glass-card {
    padding: 15px !important;
  }
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* --- Leader Modal Mobile Fixes (CRITICAL) --- */
@media (max-width: 750px) {

  /* Stack the modal body columns */
  .modal-body-responsive {
    flex-direction: column !important;
    padding: 15px !important;
    gap: 15px !important;
  }

  /* Reset left column borders */
  .modal-left-col {
    border-right: none !important;
    border-bottom: 1px solid #eee;
    padding-right: 0 !important;
    padding-bottom: 15px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Adjust Modal Container Size & Scroll */
  #leader-modal .glass-card {
    width: 95% !important;
    max-width: 95% !important;
    max-height: 85vh !important;
    /* Prevent going out of frame vertical */
    overflow-y: auto !important;
    /* Scroll internal content */
    margin: 10px auto !important;
    display: block !important;
    /* Override flex to allow scrolling block */
  }

  /* Ensure Overlay handles scroll properly */
  #leader-modal {
    align-items: center !important;
    padding: 10px !important;
  }

  /* Adjust Info Grid */
  .info-item {
    font-size: 0.9rem !important;
  }
}

/* --- Floating Action Button (FAB) --- */
.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 15px;
}

.fab-main-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--theme-orange), #ff9800);
  border: none;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(245, 124, 0, 0.4);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-container.active .fab-main-btn {
  transform: rotate(45deg);
  background: #d32f2f;
}

.fab-menu {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.fab-container.active .fab-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.fab-item {
  background: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  color: var(--gov-blue);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  transition: transform 0.2s;
  font-size: 0.9rem;
  border: 1px solid #eee;
}

.fab-item:hover {
  transform: scale(1.05);
  background: var(--gov-blue);
  color: white;
}

/* --- Parallax Hero Upgrade --- */
.hero-slider .slide {
  background-attachment: fixed !important;
  /* Parallax Effect */
  background-position: center !important;
  background-size: cover !important;
}

/* --- E-Gram Seva Kendra Styles --- */
.service-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  border: 1px solid #eee;
  transition: all 0.2s ease;
}

.service-btn:hover {
  background: white;
  border-color: var(--theme-green);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cert-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #555;
  background: #fdfdfd;
  border: 1px solid #f0f0f0;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.cert-icon-box:hover {
  background: var(--gov-blue);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

/* --- Vertical Notice Board --- */
.vertical-marquee {
  animation: scrollUp 15s linear infinite;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.vertical-marquee:hover {
  animation-play-state: paused;
}

@keyframes scrollUp {
  0% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(-100%);
  }
}

.notice-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--gov-blue);
  flex-wrap: wrap;
}

.notice-item a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  flex: 1;
}

.notice-item a:hover {
  color: var(--theme-orange);
}

.notice-date {
  font-size: 0.8rem;
  color: #888;
}

.notice-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
  background: #999;
}

.notice-tag.new {
  background: #4caf50;
}

.notice-tag.tender {
  background: #ff9800;
}

.notice-tag.alert {
  background: #f44336;
}

/* ========================================
   PROFESSIONAL HOMEPAGE ENHANCEMENTS
   ======================================== */

/* === 1. LOADING SCREEN === */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 30px;
  animation: pulse-scale 2s ease-in-out infinite;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 20px;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
}

@keyframes pulse-scale {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* === 2. BACK TO TOP BUTTON === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f57c00, #ff9800);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 124, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(245, 124, 0, 0.6);
}

/* === 3. ANIMATED STATISTICS === */
.stat-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-icon {
  transition: all 0.3s;
}

.stat-card:hover .stat-icon {
  transform: rotateY(360deg);
}

.stat-number {
  background: linear-gradient(135deg, #f57c00, #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === 4. ENHANCED BUTTONS === */
.btn-gov:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245, 124, 0, 0.4);
}

/* === 5. SMOOTH SCROLL === */
html {
  scroll-behavior: smooth;
}

/* === 6. SECTION TITLE UNDERLINE === */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

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

/* === 7. GLASS CARD HOVER === */
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* === 8. RESPONSIVE === */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}