/* Doctor carousel - modern rectangle with shadow and hover */
.doctor-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 420px;
}

.doctor-card img {
  width: 100%;
  height: 300px; 
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 15px 15px 0 0;
}

.doctor-card .card-body {
  padding: 20px;
  text-align: center;
  transition: transform 0.4s ease;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-card h6 {
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.doctor-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.3);
}

.doctor-card:hover img {
  transform: scale(1.05);
}

.doctor-card:hover .card-body {
  transform: translateY(-10px);
}

/* Carousel arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #0d6efd;
  border-radius: 50%;
  padding: 10px;
}

/* Fade-in Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .doctor-card {
    min-height: 400px;
  }

  .doctor-card img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .doctor-card img {
   /* height: 180px;*/
     height: 315px;
  }
}
