/* 
 * Gujarat Government Info & Citizen Services Portal - Main Stylesheet
 * High-Performance, Mobile-First, Vanilla CSS Design System
 */

/* --- GOOGLE FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;700&family=Noto+Sans+Gujarati:wght@400;500;700&family=Noto+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- CUSTOM PROPERTIES (DESIGN SYSTEM TOKENS) --- */
:root {
  --color-navy: #0a1931;
  --color-navy-light: #15305b;
  --color-navy-dark: #050d1a;
  
  --color-saffron: #ff6b35;
  --color-saffron-hover: #e04f1a;
  --color-saffron-light: #fff0eb;
  
  --color-green: #0f7643;
  --color-green-hover: #0a522e;
  --color-green-light: #e6f7ef;
  
  --color-bg-slate: #f4f6f9;
  --color-bg-white: #ffffff;
  
  --color-text-primary: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-muted: #94a3b8;
  
  --font-primary: 'Noto Sans', 'Noto Sans Gujarati', 'Noto Sans Devanagari', sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  --header-height: 100px;
  --nav-height: 55px;
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-slate);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-smooth);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- UTILITY CLASSES --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-saffron { color: var(--color-saffron); }
.text-green { color: var(--color-green); }
.bg-navy { background-color: var(--color-navy); color: #fff; }
.bg-white { background-color: var(--color-bg-white); }
.bg-slate { background-color: var(--color-bg-slate); }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* --- SYSTEM ALERT TICKER --- */
.alert-ticker-container {
  background-color: var(--color-navy-dark);
  color: #fff;
  border-bottom: 2px solid var(--color-saffron);
  font-size: 0.8rem;
  padding: 4px 0;
  overflow: hidden;
}

.alert-ticker-inner {
  display: flex;
  align-items: center;
}

.alert-ticker-label {
  background: linear-gradient(135deg, var(--color-saffron), var(--color-saffron-hover));
  color: #fff;
  font-weight: 700;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: var(--border-radius-sm);
  margin-right: 12px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.alert-ticker-scroll {
  white-space: nowrap;
  animation: ticker 25s linear infinite;
  display: inline-block;
  padding-left: 100%;
}

.alert-ticker-scroll:hover {
  animation-play-state: paused;
  cursor: pointer;
}

/* --- HEADER SECTION (CLEAN MINIMAL STRUCTURE) --- */
.main-header {
  height: var(--header-height);
  background-color: var(--color-bg-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  z-index: 100;
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  height: 72px;
  width: auto;
  transition: var(--transition-smooth);
  object-fit: contain;
}

.header-logo:hover {
  transform: rotate(-3deg) scale(1.05);
}

.header-title-group {
  display: flex;
  flex-direction: column;
}

.header-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.5px;
}

.header-subtitle-container {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
}

.header-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--color-saffron-light);
  color: var(--color-saffron-hover);
  padding: 2px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  padding: 6px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.08);
  background-color: var(--color-bg-slate);
  color: var(--color-text-secondary);
}

.lang-btn:hover {
  background-color: #eee;
  color: var(--color-navy);
}

.lang-btn.active {
  background-color: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
  font-weight: 700;
}

/* --- MAIN NAVIGATION BAR --- */
.main-nav-bar {
  background-color: var(--color-navy);
  color: #fff;
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-links-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-saffron);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease-in-out;
}

.nav-link-item:hover::after,
.nav-link-item.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link-item:hover {
  background-color: var(--color-navy-light);
}

/* --- OTHER DROPDOWN MENU --- */
.has-dropdown {
  position: relative;
  height: 100%;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-bg-white);
  box-shadow: var(--shadow-xl);
  border-bottom: 3px solid var(--color-saffron);
  border-top: 1px solid rgba(0,0,0,0.05);
  min-width: 220px;
  padding: 8px 0;
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1001;
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
}

.has-dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: var(--transition-fast);
  text-align: left;
}

.dropdown-menu a:hover {
  background-color: var(--color-bg-slate);
  color: var(--color-saffron-hover);
  padding-left: 24px;
}

/* --- MEGA DROPDOWN SYSTEM --- */
.has-mega-menu {
  position: static !important; /* Forces container expansion */
}

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-bg-white);
  box-shadow: var(--shadow-xl);
  border-bottom: 4px solid var(--color-saffron);
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 32px 0;
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.has-mega-menu:hover .mega-dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

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

.mega-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  border-bottom: 2px solid var(--color-saffron-light);
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-menu-list li {
  margin-bottom: 10px;
}

.mega-menu-list a {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-menu-list a:hover {
  color: var(--color-saffron-hover);
  transform: translateX(4px);
}

/* --- GLOBAL NAV CONTROLS --- */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-search-box {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 200px;
  transition: var(--transition-smooth);
}

.nav-search-box:focus-within {
  background-color: var(--color-bg-white);
  border-color: var(--color-saffron);
  max-width: 260px;
}

.nav-search-input {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
  width: 100%;
}

.nav-search-box:focus-within .nav-search-input {
  color: var(--color-text-primary);
}

.nav-search-icon {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.nav-search-box:focus-within .nav-search-icon {
  color: var(--color-text-secondary);
}

.nav-auth-btn {
  padding: 6px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

.nav-auth-login {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.nav-auth-login:hover {
  background-color: rgba(255,255,255,0.08);
  border-color: #fff;
}

.nav-auth-register {
  background-color: var(--color-saffron);
  color: #fff;
}

.nav-auth-register:hover {
  background-color: var(--color-saffron-hover);
}

.nav-auth-user {
  background-color: var(--color-green);
  color: #fff;
}

.nav-auth-user:hover {
  background-color: var(--color-green-hover);
}

/* --- MOBILE MENU HAMBURGER --- */
.mobile-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  padding: 0;
  border: none;
  background: transparent;
}

.mobile-hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--color-navy); /* Dark blue bars for clean white header */
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* --- SMART HERO SEARCH SECTION --- */
.hero-search-section {
  background: radial-gradient(circle at 10% 20%, rgba(26, 43, 76, 0.95) 0%, rgba(10, 25, 49, 1) 90%), url('https://images.unsplash.com/photo-1548013146-72479768bada?q=80&w=1200&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-search-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 20%, var(--color-navy-dark) 80%);
  opacity: 0.4;
}

.hero-search-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}

.hero-search-bar {
  display: flex;
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-md);
  padding: 6px;
  box-shadow: var(--shadow-xl);
  margin-bottom: 24px;
}

.hero-search-input {
  border: none;
  background: transparent;
  padding: 12px 20px;
  font-size: 1.05rem;
  width: 100%;
  color: var(--color-text-primary);
}

.hero-search-btn {
  background-color: var(--color-saffron);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-search-btn:hover {
  background-color: var(--color-saffron-hover);
  transform: translateY(-1px);
}

.hero-popular-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

.hero-popular-label {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.hero-tag-chip {
  background-color: rgba(255,255,255,0.12);
  color: #fff;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition-fast);
}

.hero-tag-chip:hover {
  background-color: var(--color-saffron);
  border-color: var(--color-saffron);
}

/* --- IMPORTANT SERVICES GRID --- */
.section-wrapper {
  padding: 80px 0;
}

.section-bg-gray {
  background-color: var(--color-bg-slate);
}

.section-bg-white {
  background-color: var(--color-bg-white);
}

.section-header-block {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-saffron-hover);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-desc {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

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

.service-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-md);
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-navy);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,0,0,0.08);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--color-saffron-light);
  color: var(--color-saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.1);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  background-color: var(--color-saffron);
  color: #fff;
  transform: scale(1.05);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-saffron-hover);
  padding: 8px 0;
  position: relative;
  align-self: flex-start;
}

.service-btn svg {
  transition: var(--transition-fast);
}

.service-card:hover .service-btn svg {
  transform: translateX(4px);
}

/* --- DYNAMIC BLOG & NEWS SUITE --- */
.blog-layout-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 40px;
}

.blog-posts-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.blog-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-image-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #eee;
  overflow: hidden;
}

.blog-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-image-wrapper img {
  transform: scale(1.05);
}

.blog-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--color-navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
  line-height: 1.4;
  height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-content {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
  height: 4.5em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-readmore {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-saffron-hover);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  align-self: flex-start;
}

/* --- SIDEBAR PANEL (BLOG & DYNAMIC WIDGETS) --- */
.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-md);
  padding: 28px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  border-left: 4px solid var(--color-saffron);
  padding-left: 12px;
  margin-bottom: 20px;
}

.widget-categories-list li {
  border-bottom: 1px dashed rgba(0,0,0,0.06);
}

.widget-categories-list li:last-child {
  border-bottom: none;
}

.widget-categories-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.widget-categories-list a:hover {
  color: var(--color-saffron-hover);
}

.recent-post-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding-bottom: 16px;
}

.recent-post-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.recent-post-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  background-color: #eee;
  flex-shrink: 0;
}

.recent-post-content {
  display: flex;
  flex-direction: column;
}

.recent-post-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: 4px;
}

.recent-post-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* --- TOURISM DESTINATIONS LAYOUT --- */
.tourism-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tourism-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.tourism-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.tourism-card:hover img {
  transform: scale(1.08);
}

.tourism-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 25, 49, 0.9) 0%, rgba(10, 25, 49, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  transition: var(--transition-smooth);
}

.tourism-card:hover .tourism-overlay {
  background: linear-gradient(to top, rgba(255, 107, 53, 0.95) 0%, rgba(10, 25, 49, 0.4) 60%, transparent 100%);
}

.tourism-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.tourism-card-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- DISTRICTS PORTAL VIEW --- */
.districts-view-container {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 32px;
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.districts-sidebar {
  background-color: var(--color-bg-slate);
  border-right: 1px solid rgba(0,0,0,0.06);
  height: 600px;
  overflow-y: auto;
  padding: 20px;
}

.districts-search-box {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.districts-search-input {
  border: none;
  font-size: 0.85rem;
  width: 100%;
}

.district-list-item {
  display: block;
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.district-list-item:hover {
  background-color: rgba(0,0,0,0.03);
  color: var(--color-navy);
}

.district-list-item.active {
  background-color: var(--color-navy);
  color: #fff;
  font-weight: 700;
}

.district-details-pane {
  padding: 40px;
  height: 600px;
  overflow-y: auto;
}

.district-pane-header {
  border-bottom: 2px solid var(--color-saffron-light);
  padding-bottom: 24px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.district-pane-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
}

.district-population-badge {
  background-color: var(--color-green-light);
  color: var(--color-green-hover);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(15, 118, 67, 0.15);
}

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

.district-info-card {
  background-color: var(--color-bg-slate);
  border-radius: var(--border-radius-md);
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.03);
}

.district-info-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- EMPLOYEE CORNER CALCULATORS --- */
.employee-layout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}

.calc-panel {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-md);
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-md);
}

.calc-form-group {
  margin-bottom: 20px;
}

.calc-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.calc-input, .calc-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-bg-slate);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.calc-input:focus, .calc-select:focus {
  background-color: #fff;
  border-color: var(--color-saffron);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.calc-btn {
  background-color: var(--color-navy);
  color: #fff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  width: 100%;
  margin-top: 12px;
}

.calc-btn:hover {
  background-color: var(--color-navy-light);
}

.calc-results-block {
  background-color: var(--color-green-light);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(15, 118, 67, 0.2);
  padding: 24px;
  margin-top: 24px;
  display: none;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(15, 118, 67, 0.1);
  padding: 8px 0;
}

.calc-result-row:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-green-hover);
}

/* --- LEADERBOARD & DATA TABLES --- */
.data-table-container {
  overflow-x: auto;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  background-color: var(--color-bg-white);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background-color: var(--color-navy);
  color: #fff;
  padding: 14px 18px;
  font-weight: 600;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--color-text-secondary);
}

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

.data-table tr:nth-child(even) {
  background-color: var(--color-bg-slate);
}

.badge-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-gazetted { background-color: var(--color-saffron-light); color: var(--color-saffron-hover); }
.badge-national { background-color: var(--color-green-light); color: var(--color-green-hover); }

/* --- DIALOG MODALS & OVERLAYS --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 13, 26, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-content {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  border-top: 6px solid var(--color-saffron);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-backdrop.show {
  display: flex;
  opacity: 1;
}

.modal-backdrop.show .modal-content {
  transform: scale(1);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 28px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-btn {
  padding: 10px 22px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
}

.modal-btn-confirm {
  background-color: var(--color-saffron);
  color: #fff;
}

.modal-btn-confirm:hover {
  background-color: var(--color-saffron-hover);
}

.modal-btn-cancel {
  background-color: var(--color-bg-slate);
  color: var(--color-text-secondary);
  border: 1px solid rgba(0,0,0,0.08);
}

.modal-btn-cancel:hover {
  background-color: #eee;
}

/* --- MOBILE NAVIGATION DRAWER --- */
.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background-color: var(--color-navy);
  color: #fff;
  z-index: 10000;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: left 0.3s ease;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 16px;
}

.mobile-drawer-logo {
  height: 40px;
  width: auto;
}

.mobile-drawer-close {
  color: #fff;
  font-size: 1.5rem;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer-link-item {
  font-size: 0.95rem;
  padding: 8px 0;
  display: block;
}

/* --- FOOTER SECTION --- */
.main-footer {
  background-color: var(--color-navy-dark);
  color: rgba(255,255,255,0.8);
  border-top: 4px solid var(--color-saffron);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background-color: var(--color-saffron);
}

.footer-about-text {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-social-icon:hover {
  background-color: var(--color-saffron);
  transform: translateY(-2px);
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links-list a:hover {
  color: var(--color-saffron-hover);
  transform: translateX(3px);
}

.footer-contact-info li {
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
}

.footer-disclaimer-notice {
  font-size: 0.8rem;
  color: var(--color-saffron);
  margin-bottom: 12px;
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto 12px;
  line-height: 1.5;
}

.footer-copyright {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* --- RESPONSIVE MEDIA QUERIES (MOBILE OPTIMIZATIONS) --- */
@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .services-grid-block { grid-template-columns: repeat(2, 1fr); }
  .tourism-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-layout-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --header-height: 80px;
  }
  
  .main-header {
    position: sticky;
    top: 0;
    box-shadow: var(--shadow-sm);
  }
  
  .main-nav-bar {
    display: none; /* Replaced by hamburger menu drawer */
  }
  
  .mobile-hamburger {
    display: flex; /* Shown in white header */
    margin-left: 12px;
  }
  
  .header-title {
    font-size: 1.05rem;
  }
  
  .header-subtitle-container {
    display: none; /* Subtitle removed */
  }
  
  .header-right {
    gap: 4px;
  }
  
  /* Hide desktop language buttons to show on mobile drawer instead */
  .header-right .lang-btn {
    display: none;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  
  .hero-search-bar {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    gap: 10px;
  }
  
  .hero-search-input {
    background-color: #fff;
    border-radius: var(--border-radius-sm);
    padding: 14px;
    box-shadow: var(--shadow-sm);
  }
  
  .hero-search-btn {
    justify-content: center;
    width: 100%;
  }
  
  .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
  .services-grid-block { grid-template-columns: 1fr; }
  .tourism-grid { grid-template-columns: 1fr; }
  .districts-view-container { grid-template-columns: 1fr; }
  .districts-sidebar { height: 250px; }
  .district-details-pane { height: auto; padding: 24px; }
  .employee-layout-grid { grid-template-columns: 1fr; }
  .blog-posts-list { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .header-left {
    gap: 6px;
  }
  
  .header-logo {
    height: 52px;
  }
  
  .header-title {
    font-size: 0.85rem;
    line-height: 1.2;
    max-width: 180px;
  }
}
