* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
/*  background-image: linear-gradient(
    to bottom,
    #FFA07A 0%,    
    #FFFFFF 45%,    
    #90EE90 60%,    
    #FFFFFF 100%     
  );
  background-repeat: no-repeat;
  background-attachment: fixed; /* Optional: makes background stay fixed on scroll 
  background-size: cover; */

  background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);
}

.top-bar {
  background: #f8f8f8;
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  font-size: 14px;
}

.state-link {
  color: #000;
}

.accessibility {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accessibility button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 5px;
}

.skip-link {
  text-decoration: none;
  color: #000;
  font-size: 14px;
}

.language-toggle {
  position: relative;
}

.language-toggle button {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 5px;
  display: flex;
  align-items: center;
}

.language-dropdown {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  min-width: 100px;
  z-index: 1;
  border: 1px solid #ddd;
  top: 100%;
  right: 0;
}

.language-toggle:hover .language-dropdown {
  display: block;
}

.language-dropdown li {
  list-style: none;
}

.language-dropdown a {
  padding: 5px 10px;
  text-decoration: none;
  color: #000;
  display: block;
  font-size: 14px;
}

.language-dropdown a:hover {
  background: #e0e0e0;
}

header {
  background: #ffffff;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  
}


.header-content {
  display: flex;
  justify-content: space-between; /* Keeps left at far left and right at far right */
  align-items: center;
  width: 100%; /* Use full width */
  margin: 0; /* Remove centering margin */
  padding: 0; /* Remove padding to align to edges */
  
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px; /* Space between emblem and PANVEL */
  margin-left: 0; /* Ensure no margin pushes it right */
}

.header-left .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.header-left .logo-link:hover {
  opacity: 0.8;
}

.emblem {
  height: 80px;
}

.emblem-left {
  margin-left: 0; /* Aligns emblem to far left */
}

#panvel-text {
  font-size: 28px;
  font-weight: bold;
  color: #000;
  text-transform: uppercase;
  margin: 0; /* Remove any margin to align to left */
}

.header-right {
  display: flex;
  align-items: center;
  margin-right: 0; /* Ensures Digital India stays at far right */
}

.digital-india {
  height: 80px;
  margin-right: 12px; /* Aligned to far right */
}

nav {
 /* background: linear-gradient(to right, #ffffff, #96bce3); */
  background-image: linear-gradient(to top, #fff1eb 0%, #bde5f7 100%); 
  padding: 20px 30px;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 10px;
  justify-content: center;
  
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  padding: 5px 20px;
  display: block;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
  font-size: 14px;
  font-weight: bold;
}

.nav-links a:hover {
  background: #0066cc;
  color: #fff;
  border-radius: 4px;
}

.nav-links a.active {
  background: #004080;
  color: #fff;
}

/* Dropdown Arrow */
.dropdown-arrow {
  display: none;
}

.nav-links .dropdown a {
  padding-right: 25px;
}

.nav-links .dropdown a::after {
  content: "▾";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  color: #000;
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-links .dropdown:hover a::after {
  transform: translateY(-50%) rotate(180deg);
  color: #0066cc;
}

/* Dropdown Content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  z-index: 1;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 0;
  margin-top: 5px;
  max-height: 300px; /* Adjust this value as needed */
  overflow-y: auto;
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content a {
  padding: 8px 15px;
  text-transform: none;
  color: #000;
  display: block;
  white-space: nowrap;
  font-size: 14px;
  font-weight: normal;
  
}

.dropdown-content a:hover {
  background: #e6f0ff;
  color: #003366;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content {
  display: none;
}

.dropdown.open .dropdown-content {
  display: block;
}

.more-dropdown .dropdown-content {
  right: 0;
}

#search-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

#search-bar input {
  width: 80%;
  padding: 5px;
  font-size: 16px;
}

#search-bar button {
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
}

.hero {
  text-align: center;
  padding: 0.75rem 1rem;
  background: linear-gradient(to right, #4CAF50, #FFD700), url('assets/images/hero-bg.jpg') no-repeat center center/cover;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 2s ease-in-out;
}

.hero-content {
  max-width: 800px;
  padding: 0 1rem;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  color: #333333;
}

.hero-subtitle {
  font-size: 20px;
  font-style: italic;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  color: #333333;
}

.hero-description {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  color: #333333;
}

.slideshow-container {
  max-width: 100%;
  margin: 0;
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 450px;
}

.mySlides {
  display: none;
  width: 100%;
  height: 100%;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Uncomment for whole image (may letterbox):
  object-fit: contain;
  */
}

.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: 0.4}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: 0.4}
  to {opacity: 1}
}

@keyframes fadeIn {
  from {opacity: 0}
  to {opacity: 1}
}

.slide-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 4px;
}

.dot-container {
  text-align: center;
  padding: 10px;
  position: relative;
  z-index: 2;
}

.dot {
  height: 10px;
  width: 10px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot:hover {
  background-color: #999;
}

.dot.active {
  background-color: #717171;
}

.highlights {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px; /* Rounded corners */
  padding: 1.5rem;
  width: 300px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease; /* Smooth transition for hover effect */
  cursor: pointer; /* Indicates that the card is interactive */
  margin: 1rem; /* Adds spacing between cards */
}

.card:hover {
  transform: translateY(-10px); /* Lifts the card on hover */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* More prominent shadow on hover */
  border-color: #004080; /* Change border color on hover */
}

.card h2 {
  font-size: 1.5rem;
  color: #333; /* Dark text for better readability */
  margin-bottom: 1rem;
  transition: color 0.3s ease; /* Smooth color transition */
}

.card p {
  font-size: 1rem;
  color: #666; /* Lighter text for description */
  margin-bottom: 1.5rem;
}

.card:hover h2 {
  color: #004080; /* Change heading color on hover */
}

.card .button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #004080;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.card .button:hover {
  background-color: #003366; /* Darker shade on hover */
}
.content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.content h1 {
  margin-bottom: 1rem;
}

.content h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content ul {
  list-style: disc;
  margin-left: 2rem;
}

.banners {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: #f0f0f0;
}

.banner {
  background: #fff;
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
  min-width: 200px;
}

footer {
  background: #000000;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

footer p {
  margin: 0;
}

footer .footer-links {
  margin-top: 5px;
}

footer .footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

footer .footer-links a:hover {
  text-decoration: underline;
}

/* High Contrast Mode */
.high-contrast {
  background: #000;
  color: #fff;
}

.high-contrast a {
  color: #ffd700;
}

.high-contrast .nav-links a:hover {
  background: #ffd700;
  color: #000;
}

@media (max-width: 768px) {
  .menu-toggle {
      display: block;
  }
  .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
  }
  .nav-links.active {
      display: flex;
  }
  .dropdown-content {
      position: static;
      box-shadow: none;
      width: 100%;
      margin: 0;
  }
  .top-bar {
      flex-direction: column;
      gap: 5px;
  }
  .header-content {
      flex-direction: column;
      text-align: center;
  }
  .header-left, .header-right {
      justify-content: center;
  }
  .header-content h1 {
      margin: 10px 0;
  }
  .hero {
      padding: 0.75rem 1rem;
      min-height: 150px;
  }
  .hero-title {
      font-size: 24px;
  }
  .hero-subtitle {
      font-size: 16px;
  }
  .hero-description {
      font-size: 14px;
  }
  .card {
      width: 100%;
      max-width: 300px;
  }
  .mySlides {
      height: 300px;
  }
  .slideshow-container {
      height: 300px;
  }
  .emblem-left {
      margin-left: 0; /* Aligned to left on mobile */
  }
  #panvel-text {
      margin-left: 0; /* Aligned to left on mobile */
  }
  .header-right {
      margin-right: 0; /* Keeps Digital India at right on mobile */
  }
}
/* ... (keep all existing CSS) ... */

/* Ensure Marathi text renders correctly */
#panvel-text {
  font-size: 28px;
  font-weight: bold;
  color: #000;
  text-transform: uppercase;
  margin: 0;
  font-family: 'Arial', 'Mangal', sans-serif; /* Fallback to Mangal for Marathi */
}

.hero-title, .hero-subtitle, .hero-description, .slide-caption, .card h2, .banner, footer p, footer .footer-links a {
  font-family: 'Arial', 'Mangal', sans-serif; /* Apply to all text elements */
}

/* Style the toggle button to match accessibility buttons */
.accessibility button[onclick="toggleLanguage()"] {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 5px;
  display: flex;
  align-items: center;
}

/* ... (keep all existing CSS) ... */

.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}
.high-contrast a {
  color: #00ffff !important;
}


.map-container {
  position: relative;
  width: 75%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  margin: 20px auto; /* Some spacing */
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Simple styling for emergency contacts */
.emergency-contacts {
  background-color: #ffe6e6;
  border: 1px solid #ff4d4d;
  padding: 15px 20px;
  margin: 20px auto;
  max-width: 400px;
  border-radius: 6px;
  font-family: "Arial", sans-serif;
  text-align: center;
}

.emergency-contacts h2 {
  color: #cc0000;
  margin-bottom: 12px;
}

.emergency-contacts ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.emergency-contacts li {
  font-size: 1em;
  margin: 8px 0;
}
