/* ===================================================
   DHENKANAL POSTAL DIVISION — INDIA POST DESIGN SYSTEM
   Color Palette: Maroon | Saffron | Gold | White
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Noto+Sans+Odia:wght@400;500;700&display=swap');

:root {
  --maroon-darkest: #2D0000;
  --maroon-dark: #5A0A0A;
  --maroon: #8B1A1A;
  --maroon-mid: #A52020;
  --maroon-light: #C0392B;
  --saffron: #FF6600;
  --saffron-light: #FF8C42;
  --gold: #D4A017;
  --gold-light: #E8C252;
  --gold-pale: #FFF8E7;
  --white: #FFFFFF;
  --off-white: #FAF7F2;
  --gray-light: #F5F0EB;
  --gray: #E0D8D0;
  --gray-mid: #9E9286;
  --gray-dark: #5A504A;
  --text-dark: #2C2214;
  --text-body: #3D3228;
  --success: #1B7A3A;
  --warning: #E67E22;
  --danger: #C0392B;
  --info: #2471A3;
  --shadow-sm: 0 2px 8px rgba(139, 26, 26, 0.10);
  --shadow-md: 0 4px 20px rgba(139, 26, 26, 0.15);
  --shadow-lg: 0 10px 40px rgba(139, 26, 26, 0.20);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ THEMES ============ */
body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-mode {
  --white: #121212;
  --off-white: #1a1a1a;
  --gray-light: #252525;
  --gray: #333333;
  --gray-mid: #777;
  --gray-dark: #bbb;
  --text-dark: #f0f0f0;
  --text-body: #d1d1d1;
  --gold-pale: #2a241a;
  --gold: #e8c252;
  --gold-light: #f5d76e;
  --maroon-darkest: #0a0000;
  --maroon-dark: #1e0000;
  --maroon: #d35400;
  /* Use a warmer tone like deep orange/saffron-maroon for visibility */
  --maroon-mid: #e67e22;
  --maroon-light: #f39c12;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============ DYNAMIC THEMES ============ */
body.theme-blue {
  --maroon-darkest: #001A33;
  --maroon-dark: #003366;
  --maroon: #004080;
  --maroon-mid: #0059B3;
  --maroon-light: #0073E6;
  --shadow-sm: 0 2px 8px rgba(0, 64, 128, 0.10);
  --shadow-md: 0 4px 20px rgba(0, 64, 128, 0.15);
  --shadow-lg: 0 10px 40px rgba(0, 64, 128, 0.20);
}

body.theme-saffron {
  --maroon-darkest: #331400;
  --maroon-dark: #662900;
  --maroon: #993D00;
  --maroon-mid: #CC5200;
  --maroon-light: #FF6600;
  --shadow-sm: 0 2px 8px rgba(153, 61, 0, 0.10);
  --shadow-md: 0 4px 20px rgba(153, 61, 0, 0.15);
  --shadow-lg: 0 10px 40px rgba(153, 61, 0, 0.20);
}

body.theme-green {
  --maroon-darkest: #002600;
  --maroon-dark: #004d00;
  --maroon: #006400;
  --maroon-mid: #008000;
  --maroon-light: #009900;
  --shadow-sm: 0 2px 8px rgba(0, 100, 0, 0.10);
  --shadow-md: 0 4px 20px rgba(0, 100, 0, 0.15);
  --shadow-lg: 0 10px 40px rgba(0, 100, 0, 0.20);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 10px;
  background: var(--maroon);
  color: white;
  padding: 10px 18px;
  z-index: 99999;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--gold);
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--gold-light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1) rotate(15deg);
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(212, 160, 23, 0.4);
}

body.dark-mode .theme-toggle-btn {
  background: rgba(212, 160, 23, 0.15);
  border-color: rgba(212, 160, 23, 0.4);
  color: var(--gold);
}

/* ============ MOBILE BOTTOM NAV ============ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  height: 65px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-top: 1px solid var(--gray-light);
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--gray-mid);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  transition: all 0.2s;
  flex: 1;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--maroon);
}

.bottom-nav-item i {
  font-size: 20px;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 70px;
    /* Space for bottom nav */
  }
}

body.sepia-mode {
  --white: #F4ECD8;
  --off-white: #EBDCB2;
  --gray-light: #DFCF9D;
  --gray: #D2C189;
  --text-dark: #433422;
  --text-body: #5F4B32;
  --gold-pale: #E4D5B7;
  --maroon-darkest: #2D1A05;
}

body.dark-mode .service-card,
body.dark-mode .report-card,
body.dark-mode .stat-box,
body.dark-mode .admin-card,
body.dark-mode .content-card,
body.dark-mode .calendar-card,
body.dark-mode .sidebar-list {
  background: #1e1e1e !important;
  border-color: #333 !important;
  color: #e0e0e0 !important;
}

body.dark-mode .admin-table tr:hover {
  background: #2a2a2a !important;
}

body.dark-mode .admin-form-control,
body.dark-mode .form-control {
  background: #222 !important;
  border-color: #444 !important;
  color: #fff !important;
}

body.sepia-mode .service-card,
body.sepia-mode .report-card,
body.sepia-mode .stat-box,
body.sepia-mode .admin-card,
body.sepia-mode .content-card,
body.sepia-mode .calendar-card,
body.sepia-mode .sidebar-list {
  background: #fdf6e3 !important;
  border-color: #d3c6aa !important;
  color: #5b4636 !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============ ACCESSIBILITY BAR ============ */
.accessibility-bar {
  background: var(--maroon-darkest);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accessibility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.accessibility-bar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-right: 12px;
  transition: var(--transition);
}

.accessibility-bar a:hover {
  color: var(--gold-light);
}

.font-size-controls button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 4px;
  font-size: 12px;
  transition: var(--transition);
}

.font-size-controls button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============ GOV TOP BAR ============ */
.gov-top-bar {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 100%);
  padding: 12px 0;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.gov-top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.gov-branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gov-emblem {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gov-text-block {
  display: flex;
  flex-direction: column;
}

.gov-name-en {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.gov-name-hi {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.gov-division {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-top: 2px;
}

.gov-top-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.gov-top-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 12px;
  transition: var(--transition);
}

.gov-top-links a:hover {
  color: var(--gold-light);
}

.india-post-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.india-post-logo img {
  height: 48px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ============ MAIN NAVBAR ============ */
.main-nav {
  background: var(--maroon-mid);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list>li {
  position: relative;
}

.nav-list>li>a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.nav-list>li>a:hover,
.nav-list>li>a.active {
  background: rgba(255, 255, 255, 0.10);
  border-bottom-color: var(--gold);
  color: var(--white);
}

.nav-list>li>a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Dropdown */
.dropdown-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.82);
  /* Glass base */
  backdrop-filter: blur(12px);
  /* Glass blur */
  -webkit-backdrop-filter: blur(12px);
  min-width: 320px;
  /* Wider for the cards */
  box-shadow: 0 15px 45px rgba(45, 0, 0, 0.2);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-top: 3px solid var(--gold);
  padding: 10px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: none;
}

.nav-list>li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li {
  margin-bottom: 5px;
  list-style: none;
}

.dropdown-menu li:last-child {
  margin-bottom: 0;
}

.dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 6px 14px !important;
  background: rgba(139, 26, 26, 0.08);
  /* Light red tint */
  border: 1px solid rgba(139, 26, 26, 0.15);
  border-left: 3px solid var(--maroon);
  /* Prominent left border */
  border-radius: 8px !important;
  text-decoration: none;
  transition: all 0.3s ease !important;
  border-bottom: none !important;
  width: 100%;
}

.dropdown-menu a:hover {
  background: rgba(139, 26, 26, 0.15) !important;
  border-left-color: var(--gold);
  /* Change border to gold on hover */
  transform: translateX(8px);
  box-shadow: 0 5px 15px rgba(139, 26, 26, 0.15);
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.dropdown-item-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--maroon-darkest);
  line-height: 1.2;
}

.dropdown-item-desc {
  font-size: 10px;
  color: var(--gray-mid);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 1px;
}

.dropdown-menu img,
.dropdown-menu .item-icon-circle {
  width: 32px !important;
  height: 32px !important;
  background: var(--white);
  border-radius: 8px;
  padding: 5px;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

body.dark-mode .dropdown-menu {
  background: rgba(30, 30, 30, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .dropdown-menu a {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .dropdown-item-title {
  color: var(--white);
}

body.dark-mode .dropdown-item-desc {
  color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .dropdown-menu .item-icon-circle {
  background: #2a2a2a;
}

.nav-search-btn {
  display: flex;
  align-items: center;
}

.nav-search-btn form {
  display: flex;
}

.nav-search-btn input {
  padding: 7px 12px;
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  width: 180px;
  outline: none;
  transition: var(--transition);
}

.nav-search-btn input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.nav-search-btn input:focus {
  background: rgba(255, 255, 255, 0.25);
  width: 220px;
}

.nav-search-btn button {
  background: var(--gold);
  color: var(--maroon-dark);
  border: none;
  padding: 7px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.nav-search-btn button:hover {
  background: var(--gold-light);
}

.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1001;
  display: none;
  border: 1px solid var(--gray-light);
}

.autocomplete-item {
  padding: 10px 15px;
  border-bottom: 1px solid var(--gray-light);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: var(--gold-pale);
}

.autocomplete-item .title {
  font-weight: 600;
  font-size: 13px;
}

.autocomplete-item .subtitle {
  font-size: 11px;
  color: var(--gray-mid);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ HERO CAROUSEL ============ */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--maroon-dark);
  max-height: 520px;
}

.carousel-slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 50%, var(--maroon-darkest) 100%);
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  opacity: 1;
  filter: brightness(0.95);
  z-index: 1;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(45, 0, 0, 0.9));
  padding: 60px 40px 40px;
  color: white;
}

.slide-title {
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.slide-subtitle {
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--gold-light);
  margin-top: 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(212, 160, 23, 0.85);
  color: var(--maroon-dark);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  transition: var(--transition);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--gold);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* ============ TICKER ============ */
.ticker-bar {
  background: linear-gradient(90deg, var(--gold-pale) 0%, #FFF3D0 100%);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  height: 44px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(212, 160, 23, 0.2);
  display: flex;
  align-items: center;
  z-index: 100;
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

.ticker-label {
  background: var(--maroon-dark);
  color: white;
  padding: 0 20px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ff5252;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff5252;
  animation: blink 1.2s infinite ease-in-out;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.2);
  }
}

.ticker-track {
  overflow: hidden;
  flex: 1;
  margin-left: 16px;
}

.ticker-items {
  display: flex;
  gap: 60px;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}

.ticker-items:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--maroon-dark);
  white-space: nowrap;
}

.ticker-item a {
  color: var(--maroon);
  text-decoration: none;
}

.ticker-item a:hover {
  color: var(--saffron);
  text-decoration: underline;
}

.ticker-item::before {
  content: '◆';
  color: var(--gold);
  margin-right: 8px;
  font-size: 10px;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ============ QUICK SERVICES GRID ============ */
.quick-services {
  background: var(--white);
  padding: 50px 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  color: var(--maroon-dark);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 15px;
  color: var(--gray-mid);
  margin-top: 8px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  margin: 14px auto 0;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 24px 16px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-light) 100%);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--maroon);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover .service-icon,
.service-card:hover .service-name {
  color: var(--white);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  transform: scale(1.2);
}

.service-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
  transition: var(--transition);
}

.service-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--maroon-dark);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

/* ============ TRACK WIDGET ============ */
.track-widget-section {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 100%);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.track-widget-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.05);
}

.track-widget-section .section-title {
  color: var(--white);
}

.track-widget-section .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.track-widget-section .section-badge {
  background: rgba(212, 160, 23, 0.25);
  color: var(--gold-light);
}

.track-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.track-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(212, 160, 23, 0.3);
}

.track-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.track-tab.active {
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 700;
}

.track-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.track-input-row {
  display: flex;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.track-input-row input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  outline: none;
  letter-spacing: 1px;
}

.track-input-row input::placeholder {
  color: var(--gray-mid);
  letter-spacing: 0;
  font-style: italic;
}

.track-input-row button {
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  color: var(--maroon-dark);
  border: none;
  padding: 16px 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.track-input-row button:hover {
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  filter: brightness(1.1);
}

/* ============ ABOUT SECTION ============ */
.about-home {
  background: var(--off-white);
  padding: 60px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 16px;
}

.about-content p {
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.stat-box {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--maroon);
}

.stat-label {
  font-size: 12px;
  color: var(--gray-mid);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.officer-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.officer-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.officer-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.officer-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

.officer-photo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gold-light);
  flex-shrink: 0;
  border: 3px solid var(--gold);
}

.officer-info .name {
  font-weight: 700;
  color: var(--maroon);
  font-size: 15px;
}

.officer-info .designation {
  font-size: 13px;
  color: var(--gray-dark);
}

.officer-info .contact {
  font-size: 12px;
  color: var(--gray-mid);
  margin-top: 4px;
}

/* ============ METRICS / KPI SECTION ============ */
.metrics-section {
  background: linear-gradient(135deg, var(--maroon-darkest) 0%, var(--maroon-dark) 100%);
  padding: 60px 0;
  color: white;
}

.metrics-section .section-title {
  color: white;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.metric-card:hover {
  background: rgba(212, 160, 23, 0.12);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.metric-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.metric-name {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 8px;
  line-height: 1.4;
}

.metric-period {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

/* ============ NEWS SECTION ============ */
.news-section {
  background: var(--white);
  padding: 60px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.news-card-header {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-mid) 100%);
  padding: 14px 18px;
}

.news-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
}

.news-card-body {
  padding: 20px 18px;
}

.news-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-title a {
  color: inherit;
  text-decoration: none;
}

.news-title a:hover {
  color: var(--saffron);
}

.news-excerpt {
  font-size: 13.5px;
  color: var(--gray-dark);
  line-height: 1.6;
}

.news-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-date {
  font-size: 12px;
  color: var(--gray-mid);
}

.read-more {
  font-size: 13px;
  color: var(--maroon);
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover {
  color: var(--saffron);
}

/* ============ GOV LINKS SECTION ============ */
.gov-links-section {
  background: var(--gray-light);
  padding: 40px 0;
}

.gov-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}

.gov-link-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--maroon-dark);
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray);
  line-height: 1.3;
}

.gov-link-item:hover {
  background: var(--maroon);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gov-link-item .link-icon {
  font-size: 24px;
  margin-bottom: 6px;
  display: block;
}

/* ============ FOOTER ============ */
.main-footer {
  background: linear-gradient(135deg, var(--maroon-darkest) 0%, var(--maroon-dark) 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 50px 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
}

.footer-brand .brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 16px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-btn:hover {
  background: var(--gold);
  color: var(--maroon-dark);
  border-color: var(--gold);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 7px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-item .icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

.footer-badges {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============ BREADCRUMB ============ */
.breadcrumb-bar {
  background: var(--gray-light);
  border-bottom: 2px solid var(--gold);
  padding: 10px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-mid);
}

.breadcrumb li a {
  color: var(--maroon);
  text-decoration: none;
}

.breadcrumb li a:hover {
  color: var(--saffron);
}

.breadcrumb li.active {
  color: var(--text-dark);
  font-weight: 600;
}

.breadcrumb li::after {
  content: '›';
  color: var(--gray-mid);
}

.breadcrumb li:last-child::after {
  display: none;
}

/* ============ PAGE HERO ============ */
.page-hero {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 60%, var(--maroon-mid) 100%);
  padding: 40px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 60px solid rgba(212, 160, 23, 0.08);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--white);
}

.page-hero .subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

/* ============ CONTENT SECTIONS ============ */
.content-section {
  padding: 50px 0;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  padding: 30px;
  transition: var(--transition);
}

.content-card:hover {
  box-shadow: var(--shadow-md);
}

.content-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
}

/* ============ FORMS ============ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--maroon-dark);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--danger);
  margin-left: 3px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-dark);
  transition: var(--transition);
  background: var(--white);
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--maroon);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
}

.form-control:invalid {
  border-color: var(--danger);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-mid) 100%);
  color: white;
  border-color: var(--maroon);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--saffron) 100%);
  color: var(--maroon-dark);
  border-color: var(--gold);
}

.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--maroon);
  border-color: var(--maroon);
}

.btn-outline:hover {
  background: var(--maroon);
  color: white;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 15px 36px;
  font-size: 16px;
}

/* ============ ALERTS / MESSAGES ============ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border-left: 5px solid;
  font-size: 14px;
}

.alert-success {
  background: #D5F0E0;
  border-color: var(--success);
  color: #0A4A1E;
}

.alert-danger {
  background: #FDECEA;
  border-color: var(--danger);
  color: #7D1A17;
}

.alert-warning {
  background: #FEF3CD;
  border-color: var(--warning);
  color: #6D3B00;
}

.alert-info {
  background: #D6EAF8;
  border-color: var(--info);
  color: #154360;
}

/* ============ TABLE ============ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background: var(--maroon);
  color: white;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.data-table th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.data-table th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-light);
  color: var(--text-body);
}

.data-table tr:hover td {
  background: var(--gold-pale);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ============ BADGES ============ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-pending {
  background: #FEF3CD;
  color: #7D5A00;
  border: 1px solid #F5C518;
}

.badge-under_review {
  background: #D6EAF8;
  color: #154360;
  border: 1px solid #5DADE2;
}

.badge-resolved {
  background: #D5F0E0;
  color: #0A4A1E;
  border: 1px solid #27AE60;
}

.badge-closed {
  background: var(--gray-light);
  color: var(--gray-dark);
  border: 1px solid var(--gray);
}

.badge-rejected {
  background: #FDECEA;
  color: #7D1A17;
  border: 1px solid #E74C3C;
}

.badge-ho {
  background: #E8D5F5;
  color: #4A235A;
  border: 1px solid #9B59B6;
}

.badge-so {
  background: #D6EAF8;
  color: #154360;
  border: 1px solid #3498DB;
}

.badge-bo {
  background: #D5ECD4;
  color: #145A32;
  border: 1px solid #27AE60;
}

.badge-active {
  background: #D5F0E0;
  color: #0A4A1E;
  border: 1px solid #27AE60;
}

.badge-closed-t {
  background: #FDECEA;
  color: #7D1A17;
  border: 1px solid #E74C3C;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease;
}

.animate-slideUp {
  animation: slideUp 0.6s ease;
}

/* ============ UTILITIES ============ */
/* ============ UTILITIES ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  transition: max-width 0.3s ease;
}

.container-fluid {
  padding: 0 20px;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 16px;
}

.gap-4 {
  gap: 24px;
}

.mt-1 {
  margin-top: 6px;
}

.mt-2 {
  margin-top: 12px;
}

.mt-3 {
  margin-top: 20px;
}

.mt-4 {
  margin-top: 32px;
}

.mb-3 {
  margin-bottom: 20px;
}

.mb-4 {
  margin-bottom: 32px;
}

.text-center {
  text-align: center;
}

.text-maroon {
  color: var(--maroon);
}

.text-gold {
  color: var(--gold);
}

.text-muted {
  color: var(--gray-mid);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.fw-bold {
  font-weight: 700;
}

.w-100 {
  width: 100%;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* ============ LARGE SCREENS (Desktop 23"+) ============ */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  body {
    font-size: 16px;
  }

  .section-title {
    font-size: 36px;
  }

  .gov-name-en {
    font-size: 22px;
  }

  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1520px;
  }

  .hero-carousel,
  .carousel-slide img {
    height: 620px;
    max-height: 620px;
  }

  .slide-title {
    font-size: 48px;
  }

  .slide-subtitle {
    font-size: 20px;
  }

  .content-card {
    padding: 45px;
  }

  .nav-list>li>a {
    padding: 18px 24px;
    font-size: 15px;
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: 1720px;
  }

  .services-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============ TRACK RESULT ============ */
.track-result {
  animation: slideUp 0.5s ease;
}

.track-status-bar {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-mid) 100%);
  color: white;
  padding: 24px 30px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.track-timeline {
  padding: 24px 30px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--gray-light);
}

.timeline-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.timeline-content .event {
  font-weight: 600;
  color: var(--maroon);
}

.timeline-content .location {
  font-size: 13px;
  color: var(--gray-dark);
}

.timeline-content .time {
  font-size: 12px;
  color: var(--gray-mid);
}

/* ============ COMPLAINT STATUS BADGE ============ */
.status-pending::before {
  content: '⏳ ';
}

.status-under_review::before {
  content: '🔍 ';
}

.status-resolved::before {
  content: '✅ ';
}

.status-closed::before {
  content: '🔒 ';
}

.status-rejected::before {
  content: '❌ ';
}

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--maroon-dark);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-list.open {
    display: flex;
    animation: fadeInDown 0.3s ease;
  }

  .nav-list>li>a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid transparent;
    padding: 14px 20px;
    color: var(--white) !important;
  }

  .nav-list>li>a.active,
  .nav-list>li>a:hover {
    border-left-color: var(--gold);
    border-bottom-color: transparent;
    color: var(--gold-light) !important;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0;
    display: none;
  }

  .has-dropdown.open>.dropdown-menu {
    display: block !important;
  }

  .dropdown-menu a {
    color: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 18px 12px 40px;
    font-size: 13px;
  }

  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-light) !important;
  }

  .hamburger {
    display: block;
  }

  /* Hamburger Animation */
  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-search-btn {
    display: none;
  }

  .gov-top-bar .container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .gov-top-links {
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .track-box {
    padding: 24px 20px;
  }

  .track-input-row {
    flex-direction: column;
  }

  .track-input-row input,
  .track-input-row button {
    border-radius: var(--radius-sm);
  }

  .slide-content {
    padding: 30px 20px 24px;
  }

  .carousel-slide img {
    height: 280px;
  }

  .hero-carousel {
    max-height: 280px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .gov-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* High contrast mode */
body.high-contrast {
  --maroon: #000000;
  --maroon-dark: #000000;
  --maroon-mid: #000000;
  --maroon-darkest: #000000;
  --gold: #FFFF00;
  --gold-light: #FFFF00;
  --gold-pale: #000000;
  --text-body: #FFFFFF;
  --white: #000000;
  --gray-light: #000000;
  --gray-mid: #CCCCCC;
  --bg-color: #000000;
  background-color: #000000 !important;
  color: #FFFFFF !important;
}

body.high-contrast .page-hero,
body.high-contrast .gov-top-bar,
body.high-contrast .main-nav,
body.high-contrast footer,
body.high-contrast .content-section,
body.high-contrast .hero-carousel,
body.high-contrast .breadcrumb-bar {
  background: #000000 !important;
  color: #FFFFFF !important;
}

body.high-contrast * {
  border-color: #FFFF00 !important;
}

body.high-contrast a,
body.high-contrast .breadcrumb a,
body.high-contrast .nav-list a {
  color: #FFFF00 !important;
}

body.high-contrast a:hover {
  text-decoration: underline !important;
}

body.high-contrast button,
body.high-contrast .btn,
body.high-contrast .btn-primary,
body.high-contrast .btn-outline {
  background: #000000 !important;
  color: #FFFF00 !important;
  border: 2px solid #FFFF00 !important;
}

body.high-contrast button:hover,
body.high-contrast .btn:hover {
  background: #FFFF00 !important;
  color: #000000 !important;
}

body.high-contrast .content-card,
body.high-contrast .service-card,
body.high-contrast .officer-card,
body.high-contrast .stat-card,
body.high-contrast .news-card {
  background: #000000 !important;
  border: 2px solid #FFFF00 !important;
  color: #FFFFFF !important;
  box-shadow: none !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 {
  color: #FFFF00 !important;
}

body.high-contrast .service-name,
body.high-contrast .officer-name {
  color: #FFFF00 !important;
}

body.high-contrast .accessibility-bar {
  background: #000000 !important;
  border-bottom: 2px solid #FFFF00 !important;
}

body.high-contrast img:not(.service-svg-icon):not([src*="svg"]) {
  filter: grayscale(100%) contrast(120%) !important;
}

/* ============ CONTENT GRID (Sidebar Layout) ============ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

@media (min-width: 1600px) {
  .content-grid {
    grid-template-columns: 1fr 400px;
    gap: 60px;
  }
}

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr 300px;
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility Enhancement Classes */
body.kb-nav-mode *:focus {
  outline: 4px solid #D4A017 !important;
  /* var(--gold) */
  outline-offset: 2px !important;
  box-shadow: 0 0 0 6px rgba(212, 160, 23, 0.4) !important;
  z-index: 99999;
}

#sr-btn.active,
#kb-nav-btn.active {
  background: #D4A017 !important;
  /* var(--gold) */
  color: #2D0000 !important;
  /* var(--maroon-darkest) */
  font-weight: 700 !important;
  border-color: #5A0A0A !important;
}