/* ===== Base Styles ===== */
:root {
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Noto Sans Devanagari', sans-serif;
  --primary: #00467F;       /* Government blue */
  --primary-light: #0066CC;
  --primary-dark: #1A2E40;
  --secondary: #2E8B57;     /* Government green */
  --accent: #FFD700;        /* Government gold */
  --danger: #ef4444;        /* Red */
  --success: #10b981;      /* Green */
  --warning: #f59e0b;      /* Yellow */
  --info: #3b82f6;         /* Blue */
  
  --text-dark: #1f2937;
  --text-medium: #4b5563;
  --text-light: #6b7280;
  
  --bg-light: #F5F7FA;
  --bg-white: #ffffff;
  --bg-gray: #f3f4f6;
  
  --border-radius: 0.5rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --sidebar-width: 280px;
  --header-height: 80px;
  --transition: all 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary), var(--font-secondary), sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

/* ===== Government Header ===== */
.gov-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1040;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}

/* ===== Accessibility Bar ===== */
.accessibility-bar {
  background-color: #f5f5f5;
  padding: 5px 0;
  font-size: 14px;
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 30px;
  width: 100%;
  z-index: 1030;
}

.accessibility-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.accessibility-links a {
  margin-right: 15px;
  color: #333;
  text-decoration: none;
}

.accessibility-links a:hover {
  text-decoration: underline;
}

.language-selector {
  display: flex;
  align-items: center;
}

/* Google Translate Custom Styles */
#google_translate_element {
  display: inline-block;
  margin-left: 10px;
}

.goog-te-gadget {
  color: transparent !important;
  font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
  margin: 0;
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
  cursor: pointer;
}

.text-resizer {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.text-resizer span {
  margin-right: 5px;
}

.text-resizer a {
  display: inline-block;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  background: #ddd;
  color: #333;
  margin: 0 2px;
  text-decoration: none;
  border-radius: 3px;
}

.text-resizer a:hover {
  background: #ccc;
}

/* ===== Main Header/Navbar ===== */
.header {
  position: fixed;
  top: 60px; /* Below gov-header and accessibility-bar */
  left: 0;
  right: 0;
  height: var(--header-height);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-md);
  z-index: 1020;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  border-bottom: 3px solid var(--accent);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.logo-text {
  display: flex;
  flex-direction: column;
  color: white;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-2px);
}

.nav-link.active {
  background-color: rgba(255, 215, 0, 0.2);
  color: var(--accent);
}

/* ===== User Menu ===== */
.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  color: white;
}

.user-menu:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-name {
  font-weight: 500;
  color: white;
}

.user-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Dropdown Menu ===== */
.dropdown-menu {
  background-color: var(--primary);
  border: none;
  box-shadow: var(--shadow-lg);
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(rgba(0, 70, 127, 0.8), rgba(0, 70, 127, 0.8)), url('../images/slider3.jpg');
  background-size: cover;
  background-position: center;
  padding: 120px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s ease-in-out;
  margin-top: calc(var(--header-height) + 30px);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 300;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-size: 1.1rem;
}

.primary-cta {
  background: var(--accent);
  color: var(--primary);
}

.primary-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,215,0,0.4);
  background: #ffdf33;
}

.secondary-cta {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.secondary-cta:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}

/* ===== Features Section ===== */
.features-section {
  padding: 100px 0;
  background: var(--bg-light);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary);
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.section-title h2:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--accent);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
  transition: all 0.4s ease;
  border-top: 5px solid var(--secondary);
  position: relative;
  overflow: hidden;
}

.feature-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-card:hover:before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--secondary);
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

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

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-medium);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* ===== Stats Section ===== */
.stats-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  padding: 30px 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--accent);
  font-family: 'Arial', sans-serif;
}

.stat-label {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: calc(var(--header-height) + 60px);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background-color: var(--bg-white);
  border-right: 1px solid #e5e7eb;
  padding: 1.5rem 0;
  overflow-y: auto;
  z-index: 90;
  transition: var(--transition);
}

.sidebar-menu {
  list-style: none;
}

.menu-item {
  margin-bottom: 0.25rem;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--text-medium);
  font-weight: 500;
  border-radius: var(--border-radius);
  margin: 0 1rem;
  transition: var(--transition);
}

.menu-link:hover {
  background-color: var(--bg-gray);
  color: var(--primary);
}

.menu-link.active {
  background-color: rgba(0, 70, 127, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.menu-icon {
  width: 24px;
  height: 24px;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.menu-text {
  flex: 1;
}

.menu-badge {
  background-color: var(--primary);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

/* ===== Main Content ===== */
.main {
  margin-left: var(--sidebar-width);
  margin-top: calc(var(--header-height) + 60px);
  padding: 2rem;
  min-height: calc(100vh - var(--header-height) - 60px);
  transition: var(--transition);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* footer

/* ===== Footer Styles ===== */
/* ===== Full Width Footer Styles ===== */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 0;
    margin-top: 20px;
    position: relative;
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin-top: 20px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}
.footer-column {
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

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

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-column a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-column a:before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-column a:hover:before {
    opacity: 1;
    left: -20px;
}

.footer-column p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-column i {
    width: 25px;
    color: var(--accent);
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Visitor Counter & Last Updated */
.visitor-info {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2rem;
}

.visitor-info span {
    margin: 0 1rem;
}

/* Copyright Section */
.copyright {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.copyright p {
    margin: 0.5rem 0;
}

.copyright a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-column {
        margin-bottom: 1.5rem;
    }
    
    .footer-column h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .visitor-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-column h3 {
        font-size: 1.2rem;
    }
    
    .footer-column a {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1200px) {
  .main {
    padding: 1.5rem;
  }
}

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main {
    margin-left: 0;
  }
  
  .header-nav {
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .cta-btn {
    padding: 14px 30px;
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 1rem;
    height: 70px;
    top: 50px;
  }
  
  .logo-title {
    font-size: 1.1rem;
  }
  
  .logo-subtitle {
    font-size: 0.75rem;
  }
  
  .user-name {
    display: none;
  }
  
  .main {
    padding: 1rem;
    margin-top: 120px;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .accessibility-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .accessibility-links,
  .language-selector,
  .text-resizer {
    margin-bottom: 5px;
  }
  
  #google_translate_element {
    margin-left: 0;
    margin-top: 5px;
  }
}

@media (max-width: 576px) {
  :root {
    --header-height: 70px;
  }
  
  .logo-img {
    height: 36px;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .card-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}