.government-officials-container {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
  font-family: "Noto Sans Devanagari", "Arial", sans-serif;
}

.officials-section {
  margin-bottom: 80px;
}

.district-section {
  margin-top: 60px;
}

.section-main-title {
  text-align: center;
  color: #2c3e50;
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 15px;
  padding: 5px;
  background: linear-gradient(45deg, #e67e22, #d35400);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
  text-align: center;
  color: #7f8c8d;
  font-size: 1.2rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.officials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.official-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  height: fit-content;
}

.official-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(230, 126, 34, 0.15);
}

.official-image-container {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.official-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.official-card:hover .official-image {
  transform: scale(1.05);
}

.official-content {
  padding: 25px;
  background: white;
}

.official-name {
  color: #2c3e50;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  text-align: center;
}

.official-position-marathi {
  color: #e67e22;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.4;
}

.official-position-english {
  color: #7f8c8d;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
  font-style: italic;
  text-align: center;
  line-height: 1.4;
}

.official-department {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.5;
  text-align: center;
}

.official-extra {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: #e67e22;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin: 0 auto 15px;
  border: 2px solid rgba(230, 126, 34, 0.2);
  text-align: center;
  width: fit-content;
}

.official-divider {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #e67e22 50%,
    transparent 100%
  );
  margin: 20px 0;
  opacity: 0.6;
}

@media (max-width: 1200px) {
  .officials-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
  }

  .official-image-container {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .government-officials-container {
    padding: 40px 15px;
  }

  .section-main-title {
    font-size: 2rem;
  }

  .officials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
  }

  .official-image-container {
    height: 280px;
    padding: 15px;
  }

  .official-content {
    padding: 20px;
  }

  .official-name {
    font-size: 1.3rem;
  }

  .official-position-marathi {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section-main-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .official-card {
    margin: 0 5px;
  }

  .official-image-container {
    height: 250px;
    padding: 10px;
  }

  .official-content {
    padding: 15px;
  }

  .official-name {
    font-size: 1.2rem;
  }
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.official-card {
  animation: cardEntrance 0.6s ease-out;
}

.official-image-container:has(img[src*="undefined"]),
.official-image-container:has(img[src=""]) {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.official-image-container:has(img[src*="undefined"])::after,
.official-image-container:has(img[src=""])::after {
  content: "🖼️";
  font-size: 3rem;
  color: white;
  opacity: 0.7;
}

.official-image {
  display: block;
  margin: 0 auto;
}
