/* 
 * DMFT Bokaro - Custom Stylesheet
 * District Mineral Foundation Trust, Bokaro, Jharkhand
 * Design Theme: Modern Government Portal (Forest Green & Steel Blue with Mineral Gold Accents)
 */

/* ==========================================================================
   1. Design System & CSS Variables
   ========================================================================== */
:root {
  /* Colors */
  --primary-color: #1b4332;       /* Forest Green */
  --primary-rgb: 27, 67, 50;
  --secondary-color: #0f4c81;     /* Steel Blue */
  --secondary-rgb: 15, 76, 129;
  --accent-color: #d4af37;        /* Mineral Gold */
  --accent-rgb: 212, 175, 55;
  --dark-color: #212529;          /* Deep Slate */
  --light-bg: #f8f9fa;            /* Soft Warm White */
  --white: #ffffff;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  
  /* Layout Spacing */
  --transition-speed: 0.3s;
  --font-base-size: 1rem;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --box-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   2. Font Scaling & Typography
   ========================================================================== */
body {
  font-family: 'Inter', sans-serif;
  font-size: var(--font-base-size);
  color: var(--dark-color);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover, a:focus {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Accessibility Focus Outline */
*:focus-visible {
  outline: 3px solid var(--accent-color) !important;
  outline-offset: 3px;
}

/* Font Sizing Controls */
body.font-scale-down {
  --font-base-size: 0.9rem;
}
body.font-scale-up {
  --font-base-size: 1.15rem;
}

/* ==========================================================================
   3. Accessibility & High Contrast Override
   ========================================================================== */
body.high-contrast {
  --primary-color: #00ff66;       /* Bright Green */
  --secondary-color: #00ffff;     /* Cyan */
  --accent-color: #ffff00;        /* Bright Yellow */
  --dark-color: #ffffff;
  --light-bg: #121212;
  --white: #000000;
  --gray-200: #333333;
  --gray-600: #cccccc;
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.high-contrast h1, 
body.high-contrast h2, 
body.high-contrast h3, 
body.high-contrast h4, 
body.high-contrast h5, 
body.high-contrast h6,
body.high-contrast p,
body.high-contrast span,
body.high-contrast div,
body.high-contrast td,
body.high-contrast th,
body.high-contrast a,
body.high-contrast button {
  color: #ffffff !important;
}

body.high-contrast .bg-light,
body.high-contrast .card,
body.high-contrast header,
body.high-contrast footer,
body.high-contrast nav,
body.high-contrast .modal-content {
  background-color: #121212 !important;
  border: 1px solid #ffffff !important;
  box-shadow: none !important;
}

body.high-contrast .btn-primary {
  background-color: #00ff66 !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
}

body.high-contrast .btn-secondary {
  background-color: #00ffff !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
}

body.high-contrast .badge {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   4. Government Header & Nav styling
   ========================================================================== */
.top-bar {
  background-color: #112d22;
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--accent-color);
}

.top-bar a {
  color: #e2e8f0;
}

.top-bar a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.main-header {
  padding: 15px 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.gov-emblem {
  height: 65px;
  object-fit: contain;
}

.dmft-logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dmft-title-box {
  line-height: 1.2;
}

.dmft-title-box h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary-color);
}

.dmft-title-box p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--secondary-color);
  font-weight: 600;
}

/* ==========================================================================
   CM Photo Widget & Dignitary Styles
   ========================================================================== */
.cm-photo-widget {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px 4px 6px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 40px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  outline: none;
}

.cm-photo-widget:hover,
.cm-photo-widget:focus-visible {
  background-color: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 3px 10px rgba(27, 67, 50, 0.12);
  transform: translateY(-1px);
}

.cm-photo-widget:active {
  transform: translateY(0);
}

.cm-avatar-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #2d6a4f 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  background-color: #f1f5f9;
  display: block;
}

.cm-info-text {
  line-height: 1.15;
  padding-left: 6px;
}

.cm-designation {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.cm-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  font-family: 'Outfit', sans-serif;
}

.dc-header-widget {
  transition: opacity 0.2s ease;
}

.cm-modal-portrait img {
  border: 1px solid var(--accent-color);
}

/* ==========================================================================
   PMKKKY Scheme Branding Styles
   ========================================================================== */
.pmkkky-header-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  outline: none;
  overflow: visible;
}

.pmkkky-header-badge:hover,
.pmkkky-header-badge:focus-visible {
  border-color: #f39c12;
  box-shadow: 0 3px 10px rgba(243, 156, 18, 0.22);
  transform: translateY(-1px);
}

.pmkkky-header-badge:active {
  transform: translateY(0);
}

.pmkkky-header-logo {
  height: 48px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  display: block;
  padding: 1px;
}

/* High Contrast Overrides */
body.high-contrast .cm-photo-widget,
body.high-contrast .pmkkky-header-badge {
  background-color: #000000 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}

body.high-contrast .cm-avatar-wrapper {
  background: #ffffff !important;
}

body.high-contrast .cm-designation,
body.high-contrast .cm-name {
  color: #ffffff !important;
}

/* Responsive Rules for Header, PMKKKY & CM Widget */
@media (max-width: 991.98px) {
  .cm-photo-widget {
    padding: 3px 8px 3px 4px;
  }
  .cm-avatar-wrapper {
    width: 40px;
    height: 40px;
  }
  .cm-name {
    font-size: 0.76rem;
  }
  .cm-designation {
    font-size: 0.62rem;
  }
  .pmkkky-header-logo {
    height: 38px;
    max-width: 72px;
  }
}

@media (max-width: 575.98px) {
  .main-header {
    padding: 8px 0;
  }
  .gov-emblem {
    height: 44px;
  }
  .dmft-logo-container {
    gap: 8px;
  }
  .dmft-title-box h1 {
    font-size: 0.88rem;
    line-height: 1.15;
  }
  .dmft-title-box p {
    font-size: 0.62rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cm-photo-widget {
    padding: 1px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    box-shadow: none;
  }
  .cm-avatar-wrapper {
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }
  .pmkkky-header-badge {
    padding: 2px 5px;
    border-radius: 6px;
    box-shadow: none;
    border-color: #cbd5e1;
  }
  .pmkkky-header-logo {
    height: 30px;
    max-width: 54px;
  }
}


/* Custom Accessibility Controls Group */
.accessibility-ctrls .btn {
  padding: 2px 8px;
  font-size: 0.85rem;
  border-color: var(--gray-600);
  color: var(--gray-600);
}

.accessibility-ctrls .btn:hover {
  background-color: var(--gray-200);
}

/* Sticky Main Navigation */
.navbar-custom {
  background-color: var(--secondary-color);
  padding: 0;
  border-bottom: 4px solid var(--accent-color);
  box-shadow: var(--box-shadow);
}

.navbar-custom .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active,
.navbar-custom .navbar-nav .nav-link:focus {
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
}

.navbar-custom .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  margin: 8px 15px;
}

.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown styling */
.navbar-custom .dropdown-menu {
  background-color: var(--white);
  border: 2px solid var(--secondary-color);
  border-radius: 0;
  margin-top: 0;
  box-shadow: var(--box-shadow-hover);
}

.navbar-custom .dropdown-item {
  color: var(--dark-color);
  font-weight: 500;
  padding: 10px 20px;
  border-bottom: 1px solid var(--gray-200);
}

.navbar-custom .dropdown-item:last-child {
  border-bottom: none;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

/* ==========================================================================
   5. Hero Section & Stat Overlay
   ========================================================================== */
.hero-wrapper {
  position: relative;
  background-image: linear-gradient(rgba(15, 76, 129, 0.8), rgba(27, 67, 50, 0.85)), url('../images/bokaro_bg.webp');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 80px 0 100px 0;
  text-align: center;
}

.hero-title {
  font-size: 2.8rem;
  font-family: 'Outfit', sans-serif;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Overlapping Stats Panel */
.stats-overlay-container {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.stat-dashboard-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.1);
  padding: 24px;
  text-align: center;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border-bottom: 4px solid var(--secondary-color);
}

.stat-dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.stat-dashboard-card.completed { border-bottom-color: #28a745; }
.stat-dashboard-card.ongoing { border-bottom-color: #ffc107; }
.stat-dashboard-card.expenditure { border-bottom-color: #dc3545; }

.stat-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 12px;
}

.stat-dashboard-card.completed .stat-icon { color: #28a745; }
.stat-dashboard-card.ongoing .stat-icon { color: #ffc107; }
.stat-dashboard-card.expenditure .stat-icon { color: #dc3545; }

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--dark-color);
  margin-bottom: 2px;
}

.stat-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--gray-600);
  letter-spacing: 0.5px;
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 4px;
  margin-bottom: 0;
}

/* ==========================================================================
   6. Custom Card Styling (Rounded, Soft Shadows, Dynamic Hover)
   ========================================================================== */
.card-custom {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-hover);
}

.card-custom-body {
  padding: 20px;
}

/* Bokaro Block Cards (No Map UI) */
.block-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  position: relative;
  cursor: pointer;
  min-height: 235px;
  height: 235px;
}

.block-card-front {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: opacity var(--transition-speed);
}

.block-card-front h3 {
  font-size: 1.35rem;
  color: var(--secondary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.block-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.block-card-metric-item {
  font-size: 0.8rem;
  font-weight: 500;
}

.block-card-metric-item span {
  font-weight: 700;
  color: var(--primary-color);
}

.block-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--white);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(100%);
  transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.block-card:hover .block-card-back {
  transform: translateY(0);
}

.block-card-back p {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 15px;
}

.block-card-back .btn-details {
  border: 1px solid var(--white);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  align-self: flex-start;
  padding: 4px 12px;
}

.block-card-back .btn-details:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Major Scheme Cards */
.scheme-card {
  border-left: 5px solid var(--secondary-color);
  transition: all var(--transition-speed);
}

.scheme-card:hover {
  border-left-color: var(--accent-color);
  background-color: var(--light-bg);
}

.scheme-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(15, 76, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 16px;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.scheme-card:hover .scheme-icon-container {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ==========================================================================
   7. Tables, Badges, and Government Lists
   ========================================================================== */
.table-responsive-custom {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-bottom: 24px;
}

.table-custom {
  margin-bottom: 0;
}

.table-custom th {
  background-color: var(--primary-color);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border: none;
}

.table-custom td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-200);
}

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

.table-custom tbody tr:hover {
  background-color: var(--light-bg);
}

/* Status Badges */
.badge-status {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
}

.badge-completed {
  background-color: rgba(40, 167, 69, 0.15);
  color: #28a745;
}

.badge-ongoing {
  background-color: rgba(255, 193, 7, 0.15);
  color: #856404;
}

.badge-proposed {
  background-color: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

/* ==========================================================================
   8. Scrolling Notification Ticker
   ========================================================================== */
.ticker-container {
  background-color: #fff9e6;
  border-top: 1px solid #ffeeba;
  border-bottom: 2px solid var(--accent-color);
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.ticker-label {
  background-color: var(--accent-color);
  color: var(--dark-color);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  text-transform: uppercase;
  margin-right: 15px;
  position: relative;
  z-index: 5;
  border-radius: 4px;
}

.ticker-scroll-window {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-scroll-content {
  display: inline-block;
  animation: ticker-animation 30s linear infinite;
  padding-left: 100%;
}

.ticker-item {
  display: inline-block;
  margin-right: 40px;
  font-size: 0.9rem;
  font-weight: 600;
}

@keyframes ticker-animation {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================================
   9. Photo & Video Gallery Grid
   ========================================================================== */
.gallery-grid-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  margin-bottom: 24px;
}

.gallery-grid-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.gallery-grid-item:hover img {
  transform: scale(1.05);
}

.gallery-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 67, 50, 0.8);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  padding: 20px;
  text-align: center;
  transition: opacity var(--transition-speed);
}

.gallery-grid-item:hover .gallery-grid-overlay {
  opacity: 1;
}

.gallery-grid-overlay h4 {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.gallery-grid-overlay p {
  font-size: 0.8rem;
  margin-bottom: 0;
  text-transform: uppercase;
  font-weight: 600;
}

/* ==========================================================================
   10. Custom Breadcrumbs & Section Headers
   ========================================================================== */
.section-header-custom {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-header-custom h2 {
  font-size: 2.2rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-header-custom h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-header-custom p {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb-custom {
  background-color: var(--light-bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 40px;
}

.breadcrumb-custom ol {
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   11. Government Multi-Column Footer
   ========================================================================== */
.footer-government {
  background-color: #111b15;
  color: #adb5bd;
  padding: 60px 0 20px 0;
  border-top: 6px solid var(--accent-color);
  font-size: 0.9rem;
}

.footer-government h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 10px;
}

.footer-government h4::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  bottom: 0;
  left: 0;
}

/* Social Media Circular Buttons in Footer */
.social-links-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon-btn:hover {
  transform: scale(1.18) translateY(-3px);
  background-color: var(--accent-color);
  color: #111b15;
  border-color: var(--accent-color);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.footer-government ul {
  padding-left: 0;
  list-style: none;
}

.footer-government ul li {
  margin-bottom: 12px;
}

.footer-government ul li a {
  color: #adb5bd;
  transition: color var(--transition-speed);
}

.footer-government ul li a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  background-color: #0b110e;
  padding: 20px 0;
  color: #868e96;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom a {
  color: #868e96;
  margin-left: 15px;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ==========================================================================
   12. Transparency Badges & Miscellaneous Layout elements
   ========================================================================== */
.transparency-item {
  text-align: center;
  padding: 30px;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  background-color: var(--white);
  height: 100%;
  transition: all var(--transition-speed);
}

.transparency-item:hover {
  box-shadow: var(--box-shadow);
  border-color: var(--secondary-color);
}

.transparency-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.transparency-item h4 {
  font-size: 1.15rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

/* Sidebar Document download widgets */
.download-widget {
  background: var(--light-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  padding: 24px;
}

.download-widget-title {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 16px;
  font-weight: 700;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--gray-200);
}

.download-item:last-child {
  border-bottom: none;
}

.download-icon {
  font-size: 1.5rem;
  color: #dc3545;
}

.download-info {
  flex-grow: 1;
}

.download-info h5 {
  font-size: 0.85rem;
  margin: 0;
  color: var(--dark-color);
  font-weight: 600;
}

.download-info span {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* Primary buttons override */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 4px;
  transition: all var(--transition-speed);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #112d22;
  border-color: #112d22;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 4px;
  transition: all var(--transition-speed);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: #0c3961;
  border-color: #0c3961;
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.25);
}

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--dark-color) !important;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 4px;
  transition: all var(--transition-speed);
}

.btn-accent:hover, .btn-accent:focus {
  background-color: #bfa130;
  border-color: #bfa130;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

/* Pagination Styles */
.pagination-custom .page-link {
  color: var(--secondary-color);
  border-color: var(--gray-200);
  padding: 8px 16px;
}

.pagination-custom .page-item.active .page-link {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.pagination-custom .page-link:hover {
  background-color: var(--light-bg);
}

/* ==========================================================================
   13. Key Officials Component Styling
   ========================================================================== */
.section-key-officials {
  background-color: #f4f7f5;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

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

@media (max-width: 991px) {
  .officials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .officials-grid {
    grid-template-columns: 1fr;
  }
}

.official-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: var(--box-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.official-photo-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: #e9ecef;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.official-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.official-placeholder-icon {
  font-size: 5rem;
  color: #a0aec0;
}

.official-card-body {
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.official-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 1.3;
}

.official-designation {
  font-size: 0.95rem;
  color: var(--dark-color);
  line-height: 1.5;
  font-weight: 600;
}

.official-sub-designation {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--gray-200);
  display: block;
  font-weight: 500;
}

/* ==========================================================================
   16. Login Page & Dashboard Customs
   ========================================================================== */

/* Login Page Styling */
.login-page-bg {
  background-image: linear-gradient(135deg, #1b4332 0%, #0f4c81 100%);
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 15px;
}

.login-card-custom {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  overflow: hidden;
  max-width: 480px;
  width: 100%;
}

.login-card-header {
  background-color: var(--primary-color);
  padding: 30px 20px;
  text-align: center;
  border-bottom: 3px solid var(--accent-color);
}

.login-card-body {
  padding: 35px 30px;
}

.form-control-login {
  border-radius: 8px;
  padding: 11px 15px;
  border: 1px solid #ced4da;
  transition: all 0.25s ease;
}

.form-control-login:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(15, 76, 129, 0.15);
}

/* Dashboard Page Layout */
.dashboard-wrapper {
  display: flex;
  min-height: calc(100vh - 120px);
  background-color: #f4f6f9;
}

.dashboard-sidebar {
  width: 280px;
  background-color: #1a1e21;
  color: #fff;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #2d3238;
}

.dashboard-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid #2d3238;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-sidebar-menu {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  flex-grow: 1;
}

.dashboard-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: #a0aec0;
  text-decoration: none;
  font-weight: 500;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dashboard-menu-link:hover {
  background-color: #272d32;
  color: #fff;
  text-decoration: none;
}

.dashboard-menu-link.active {
  background-color: #272d32;
  color: #fff;
  border-left-color: var(--accent-color);
}

.dashboard-content-area {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
}

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #212529;
  font-weight: 600;
}

.btn-accent:hover {
  background-color: #be992c;
  border-color: #be992c;
  color: #000;
}

.user-badge-role {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 700;
}

.user-badge-role.super-admin {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.user-badge-role.admin {
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.2);
}

.user-badge-role.gram-sabha {
  background-color: rgba(25, 135, 84, 0.1);
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.2);
}

/* Navbar Custom Button Accents */
.btn-accent-sm {
  background-color: var(--accent-color);
  color: #121212 !important;
  font-weight: 700;
  border: none;
}

.btn-accent-sm:hover {
  background-color: #e5c048 !important;
  color: #000 !important;
}

/* Mobile Toggles & Viewports */
@media (max-width: 991px) {
  .dashboard-wrapper {
    flex-direction: column;
  }
  
  .dashboard-sidebar {
    width: 100%;
    border-bottom: 1px solid #2d3238;
    border-right: none;
  }
  
  .dashboard-sidebar-header {
    padding: 15px 20px;
  }
  
  .dashboard-sidebar-menu {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 15px;
    gap: 5px;
  }

  .dashboard-menu-link {
    padding: 8px 15px;
    border-radius: 6px;
    border-left: none;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
  }
  
  .dashboard-menu-link.active {
    background-color: #272d32;
    border-bottom-color: var(--accent-color);
  }
  
  .dashboard-content-area {
    padding: 20px 15px;
  }
}

/* ==========================================================================
   13. Ultra-Modern Design System Extensions & Animations
   ========================================================================== */

/* Animated Mesh Hero Background */
.hero-wrapper {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.92) 0%, rgba(27, 67, 50, 0.95) 100%),
              radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(15, 76, 129, 0.2) 0%, transparent 50%);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 90px 0 110px 0;
  text-align: center;
  overflow: hidden;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-title {
  font-size: 3rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px 0 rgba(31, 38, 135, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}

/* Stat Cards matching User's Exact Screenshot Design */
.stat-card-left {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 24px 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.3s ease;
  height: 100%;
}

.stat-card-left:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.stat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.stat-icon-box.bg-blue-subtle {
  background-color: #eff6ff;
  color: #2563eb !important;
}

.stat-icon-box.bg-green-subtle {
  background-color: #f0fdf4;
  color: #16a34a !important;
}

.stat-icon-box.bg-emerald-subtle {
  background-color: #f0fdf4;
  color: #16a34a !important;
}

.stat-icon-box.bg-orange-subtle {
  background-color: #fff7ed;
  color: #ea580c !important;
}

.stat-card-left .stat-number {
  font-size: 2.1rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.stat-card-left .stat-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

/* Polished Stat Overlay Cards */
.stat-dashboard-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  padding: 26px 20px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.stat-dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary-color);
  transition: height 0.2s ease;
}

.stat-dashboard-card.completed::before { background: linear-gradient(90deg, #28a745, #20c997); }
.stat-dashboard-card.ongoing::before { background: linear-gradient(90deg, #ffc107, #fd7e14); }
.stat-dashboard-card.expenditure::before { background: linear-gradient(90deg, #dc3545, #e83e8c); }

.stat-dashboard-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.stat-dashboard-card:hover::before {
  height: 6px;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(27, 67, 50, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 1.6rem;
  color: var(--secondary-color);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.stat-dashboard-card:hover .stat-icon {
  transform: rotate(8deg) scale(1.1);
  background: var(--primary-color);
  color: var(--white);
}

.stat-dashboard-card.completed .stat-icon { color: #28a745; background: rgba(40, 167, 69, 0.1); }
.stat-dashboard-card.completed:hover .stat-icon { background: #28a745; color: var(--white); }

.stat-dashboard-card.ongoing .stat-icon { color: #d97706; background: rgba(217, 119, 6, 0.1); }
.stat-dashboard-card.ongoing:hover .stat-icon { background: #d97706; color: var(--white); }

.stat-dashboard-card.expenditure .stat-icon { color: #dc3545; background: rgba(220, 53, 69, 0.1); }
.stat-dashboard-card.expenditure:hover .stat-icon { background: #dc3545; color: var(--white); }

/* Key Officials Section Design */
.section-key-officials {
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
}

.officials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.official-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.official-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(212, 175, 55, 0.5);
}

.official-photo-wrapper {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--accent-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.official-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.official-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.official-designation {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-color);
  line-height: 1.3;
}

.official-sub-designation {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  background-color: rgba(212, 175, 55, 0.15);
  color: #856404;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Floating Back-To-Top Button */
#backToTopBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--accent-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#backToTopBtn.visible {
  opacity: 1;
  visibility: visible;
}

#backToTopBtn:hover {
  background: var(--secondary-color);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

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

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

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

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

/* Toast Notifications Container */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.custom-toast {
  pointer-events: auto;
  background: #1e293b;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--accent-color);
  animation: slideInToast 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-toast.success { border-left-color: #22c55e; }
.custom-toast.info { border-left-color: #3b82f6; }
.custom-toast.error { border-left-color: #ef4444; }

@keyframes slideInToast {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Priority Projects Dynamic Excel Slider Styles */
.priority-slider-outer-wrapper {
  position: relative;
}

.priority-category-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  position: relative;
}

.priority-badge-high {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(27, 67, 50, 0.25);
}

.priority-badge-other {
  background: linear-gradient(135deg, #005f73 0%, #0a9396 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 95, 115, 0.25);
}

.marquee-window {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  border-radius: 16px;
  background: #ffffff;
  padding: 16px 14px 20px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.marquee-window::-webkit-scrollbar {
  display: none;
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.priority-project-card {
  width: 330px;
  min-width: 330px;
  min-height: 235px;
  border-radius: 16px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.priority-project-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.priority-project-card .card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
  border-radius: 16px;
}

.priority-project-card .card-content-top {
  position: relative;
  z-index: 2;
}

.priority-project-card .card-content-bottom {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.sector-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 30px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 65%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
}

.badge-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 30px;
  text-transform: capitalize;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-status-pill.status-completed {
  background-color: #22c55e;
  color: #ffffff;
}

.badge-status-pill.status-ongoing {
  background-color: #f59e0b;
  color: #000000;
}

.badge-status-pill.status-proposed {
  background-color: #06b6d4;
  color: #ffffff;
}

.card-project-title {
  font-size: 0.96rem;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-location {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.amount-value {
  font-size: 1.15rem;
  line-height: 1.2;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.3px;
}

.border-white-20 {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.hover-lift {
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hover-lift:hover {
  transform: scale(1.05);
  background-color: #ffffff !important;
}

/* ==========================================================================
   Interactive Bokaro District GIS Map & Details Panel
   ========================================================================== */
.bokaro-gis-wrapper {
  position: relative;
}

.gis-toolbar {
  background: #ffffff;
  border: 1px solid var(--gray-200);
}

.gis-map-card {
  background-color: #f1f5f9;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
}

.bokaro-leaflet-container {
  background-color: #f8fafc;
  background: #f8fafc;
  outline: none;
}

/* GIS Centroid Map Badge */
.gis-block-center-label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.gis-map-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  white-space: nowrap;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gis-map-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  border-color: var(--primary-color);
}

.gis-map-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Floating Hover Tooltip */
.gis-floating-tooltip {
  width: 250px;
  pointer-events: none;
  z-index: 9999;
  animation: gisTooltipFade 0.15s ease-out;
}

@keyframes gisTooltipFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.gis-tooltip-card {
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Details Panel */
.gis-details-panel {
  min-height: 540px;
  max-height: 820px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--gray-200);
  box-sizing: border-box;
}

.gis-details-panel .card-body {
  min-height: 0; /* allow flex children to shrink */
  overflow: visible;
}

.gis-details-panel .display-font {
  color: var(--primary-color);
}

/* Custom Scrollbar for projects list */
.gis-block-projects-list::-webkit-scrollbar {
  width: 5px;
}
.gis-block-projects-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.gis-block-projects-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.gis-block-projects-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* High Contrast Mode for GIS Map */
body.high-contrast .gis-toolbar,
body.high-contrast .gis-map-card,
body.high-contrast .gis-legend-card,
body.high-contrast .gis-details-panel,
body.high-contrast .gis-tooltip-card,
body.high-contrast .gis-map-badge {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

body.high-contrast .gis-tooltip-card span,
body.high-contrast .gis-tooltip-card strong,
body.high-contrast .gis-details-panel h2,
body.high-contrast .gis-details-panel h3,
body.high-contrast .gis-details-panel h4,
body.high-contrast .gis-details-panel p {
  color: #ffffff !important;
}
