.dr1027doctors {
  padding: 60px 20px;
  background: #F4F7FA;
  font-family: 'Poppins', 'Noto Sans Telugu', sans-serif;
}

.dr1027doctors .container {
  max-width: 1200px;
  margin: auto;
}

.dr1027doctors .section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #1F2937; /* High contrast title */
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Doctor card with dark gradient and elegant finish */
.doctor-card {
  background: linear-gradient(to bottom, #2C3E50, #3D4F66);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  border-color: #6FCF97;
}

/* Image wrapper */
.doctor-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Doctor image with circle, border, and animation */
.doctor-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #6FCF97;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible .doctor-image {
  opacity: 1;
  transform: scale(1);
}

.doctor-card:hover .doctor-image {
  transform: scale(1.05);
}

/* Info Section */
.doctor-info {
  padding: 20px;
  text-align: center;
}

.doctor-info h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 6px;
  font-weight: 600;
}

.doctor-info .speciality {
  color: #6FCF97;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.doctor-info p {
  font-size: 0.94rem;
  color: #e0e6ed;
  line-height: 1.6;
  margin-bottom: 6px;
}

/* More Info Button */
.more-info-toggle {
  background: #FF7043;
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  margin-top: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.more-info-toggle:hover {
  background: #e55a2b;
}

.more-info {
  margin-top: 12px;
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.more-info.open {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Global scroll-triggered fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .doctor-info h3 {
    font-size: 1.1rem;
  }

  .doctor-image {
    width: 120px;
    height: 120px;
  }

  .doctor-info p {
    font-size: 0.9rem;
  }

  .more-info-toggle {
    font-size: 0.85rem;
  }
}