body {
  font-family: "Devanagari", sans-serif;
  background-color: #fefefe;
  overflow-x: hidden;
}

.top-header {
  background-color: #fcf4ea;
  color: #333;
  padding-top: 10px;
}

.nav-bar {
  background-color: #63097b;
  padding-top: 5px;
  padding-bottom: 5px;
}

.nav-bar .nav-link {
  color: #fff !important;
  font-weight: 500;
  padding: 6px 12px;
  font-size: 15px;
}

.nav-bar .navbar-brand {
  color: #fff !important;
  font-size: 16px;
  padding: 0;
  margin-right: 1rem;
}

.navbar-toggler {
  padding: 4px 6px;
}

.nav-bar .navbar-nav {
  align-items: center;
}

.nav-bar .nav-link:hover,
.nav-bar .nav-link:focus,
.nav-bar .nav-link.active {
  background-color: #ad448e;
  color: #fff !important;
  border-radius: 6px;
}

/* Hover and active state for dropdown items */
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background-color: #ad448e;
  color: #fff;
}

.nav-bar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
  background-color: #f8f9fa;
}

.dropdown-item {
  color: #333;
}

.news-ticker {
  background-color: #ffe082;
  padding: 5px;
  font-weight: bold;
  font-size: 16px;
  color: #000;
  overflow: hidden;
}

.carousel-inner img {
  height: 300px;
  object-fit: cover;
}

.card:hover {
  transform: scale(1.05);
  transition: 0.3s ease-in-out;
}

img {
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.05);
}

.image-row img {
  max-height: 100px;
  margin: 0 2px;
  transition: transform 0.3s ease;
}

.image-row img:hover {
  transform: scale(1.1);
}

.badge-scroll-container {
  overflow-x: auto;
  white-space: nowrap;
}

.badge-scroll-container .d-flex>div {
  width: 100px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.village-badges {
  height: 78px;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

.village-badges:hover {
  transform: scale(1.05);
}

.badge-title {
  font-size: 11px;
  color: #333;
  margin-top: 6px;
  text-align: center;
  display: block;
  white-space: normal;
  /* allows wrapping */
}

.stat-card {
  background: #fff;
  padding: 20px 20px 30px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.icon-circle {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background-color: #8e44ad;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  margin-top: 40px;
  color: #222;
}

.stat-card p {
  font-size: 18px;
  color: #666;
  margin: 0;
}

/* Gradient Top Borders */
.gradient-orange {
  border-top: 8px solid #ffb347;
}

.gradient-blue {
  border-top: 8px solid #00c6ff;
}

.gradient-pink {
  border-top: 8px solid #ff7eb3;
}

/* Responsive */
@media (max-width: 768px) {
  .stat-card {
    margin-bottom: 20px;
  }
}

.info-badge {
  max-width: 100%;
  height: 100px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-in-out;
  color: white;
  padding: 10px;
  width: 100%;
  /* Ensures full column width on small screens */
}

.info-badge i {
  font-size: 30px;
  margin-bottom: 5px;
}

.info-badge:hover {
  transform: scale(1.08);
}

.gradient-success {
  background: linear-gradient(135deg, #28a745, rgb(126, 212, 131));
}

.gradient-danger {
  background: linear-gradient(135deg, #dc3545, rgb(182, 49, 37));
}

.gradient-warning {
  background: linear-gradient(135deg, #ffc107, rgb(221, 179, 54));
}

.gradient-primary {
  background: linear-gradient(135deg, #007bff, #64b5f6);
}

.bg-section {
  background: linear-gradient(135deg, #f9f9f9, #e0f7fa);
  border-radius: 15px;
  box-shadow: inset 0 0 30px rgba(231, 181, 214, 0.05);
  backdrop-filter: blur(5px);
}

.section-title {
  text-align: center;
  font-weight: 700;
  font-size: 24px;
  margin: 30px 0 10px;
  padding: 10px;
  color: #4a148c;
}

.photo-card {
  perspective: 1000px;
}

.photo-img {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  height: 250px;
  overflow: hidden;
  transition: transform 0.4s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.photo-img:hover {
  transform: scale(1.05);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  width: 100%;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  font-size: 14px;
}

.photo-img:hover .photo-overlay {
  transform: translateY(0);
}

.photo-overlay h5 {
  margin-bottom: 5px;
  font-size: 18px;
}

.gallery-section {
  background: linear-gradient(135deg, #f3e5f5, #e1f5fe);
  background-blend-mode: overlay;
  padding: 60px 20px;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #007bff;
  color: white;
  border: none;
  outline: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #0056b3;
}

.tax-card-new {
  border-radius: 12px;
  width: 280px;
  /* Make it a bit wider horizontally */
  padding: 12px 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: 0.3s ease-in-out;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.tax-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.icon-text-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-circle-sm {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.text-content {
  display: flex;
  flex-direction: column;
}

.eng-label {
  font-size: 13px;
}

/* Gradients */
.bg-grad-purple {
  background: linear-gradient(135deg, #f57c00, #f57c00);
}

.bg-grad-blue {
  background: linear-gradient(135deg, #0288d1, #01579b);
}


.custom-card {
  background: linear-gradient(145deg, #ffffff, #f4f7ff);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
}

.section-title {
  font-weight: bold;
  margin-bottom: 8px;
  color: #005792;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 4px;
}

.fact-badge {
  background-color: #dee9ff;
  color: #1c3f74;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 30px;
  margin-right: 8px;
}


.news-widget {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #fff;
  border-left: 5px solid #ff9800;
}

.news-header {
  background: #ffe0b2;
  color: #212121;
  padding: 12px 16px;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-body {
  max-height: 580px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.news-body::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.news-item {
  background: linear-gradient(135deg, #0288d1, #01579b);
  color: #fff;
  margin: 10px 16px;
  padding: 8px;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: start;
  gap: 10px;
  transition: transform 0.2s ease;
}

.news-item:hover {
  transform: scale(1.02);
}

.news-icon {
  font-size: 20px;
  margin-top: 2px;
  color: #fffde7;
}


  .award-card {
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      padding: 15px;
      transition: all 0.3s ease;
      height: 100%;
    }

    .award-card:hover {
      transform: scale(1.01);
    }

    .award-img {
      border-radius: 12px;
      width: 100%;
      height: 300px; /* Fixed height for uniform display */
      object-fit: contain;
      display: block;
      margin: 0 auto;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .award-title {
      font-size: 16px;
      text-align: center;
      margin-top: 10px;
      font-weight: 600;
      color: #333;
    }