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

.top-header {
  background-color: #f4f4f4;
  padding: 10px 0;
}

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

.nav-bar .nav-link {
  color: #fff !important;
  font-weight: 500;
  padding: 6px 12px; /* reduced from 10px 15px */
  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;
}
/* Hover and active state for nav links */
.nav-bar .nav-link:hover,
.nav-bar .nav-link:focus,
.nav-bar .nav-link.active {
  background-color: #ad448e; /* or any color you prefer */
  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 {
  background: #502d9f;
  color: #fff;
  width: 140px;
  height: 140px;

  text-align: center;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.tax-card:hover {
  transform: scale(1.05);
}

.tax-card i {
  font-size: 36px;
}

.eng-label {
  font-size: 12px;
  color: #e0e0e0;
}
