/* Section Background */
.doctors-section {
  background-color: #fef4f6;
}

/* Section Title */
.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #8e324a;
}

/* Doctor Card: Fix height for consistency */
.doctor-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
  min-height: 380px; /* 🔧 Adjust this value as per design needs */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Hover Effect (for large screens only) */
@media (min-width: 768px) {
  .doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.1);
  }
}

/* Doctor Image */
.doctor-img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto;
}

/* Carousel Dots */
.doctors-pagination [data-bs-target] {
  background-color: #be2a51;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 6px;
  opacity: 0.4;
  transition: 0.3s;
}
.doctors-pagination .active {
  opacity: 1;
  background-color: #8e324a;
}

/* Responsive Text Size */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }

  .doctor-card p {
    font-size: 0.85rem;
  }
}

/* Ensure equal height in Grid layout (desktop) */
.row.d-md-flex > .col-md-4 {
  display: flex;
}

/* Force carousel cards (mobile) to match min-height */
.carousel-item .doctor-card {
  min-height: 380px; /* same as above */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
