.spa-doctors-carousel {
	position: relative;
	background: transparent;
	padding: 20px;
}

.spa-doctors-carousel .swiper {
	padding: 0 12px; 
	overflow: hidden;
}

.spa-doctors-carousel .swiper-button-prev,
.spa-doctors-carousel .swiper-button-next {
	width: 34px;
	height: 56px;
	/* background: rgba(255,255,255,.85); */
	color: #04091a;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(2, 6, 41, 0.15);
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
}
.spa-doctors-carousel .swiper-button-prev { left: 4px; }
.spa-doctors-carousel .swiper-button-next { right: 4px; }

.spa-doctors-carousel .swiper-button-prev:after,
.spa-doctors-carousel .swiper-button-next:after {
	font-size: 18px;
}

.doctor-card {
  width: 500px;
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  background-color: #fffffe;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.doctor-card::before {
  content: "";
  width: 500px;
  height: 180px;
  position: absolute;
  top: 0;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom: 3px solid #fefefe;
  background: #476bb3;
  background: linear-gradient(312deg,rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(0, 212, 255, 1) 100%);
  transition: all 0.3s ease;
}

.doctor-card * {
  z-index: 1;
}

.doctor-card__image {
  width: 300px;
  height: 300px;
  background-color: #4e96e4;
  border-radius: 50%;
  border: 4px solid #fefefe;
  margin-top: 30px;
  transition: all 0.5s ease;
}

.doctor-card__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease;
	font-weight: 550;
	font-size: 12px;
	line-height: 1.1;
	padding: 20px 20px;
	color: #fff;
	background: #005e9A; /* overlay with blur-like dark */
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: -webkit-box;
	line-clamp: 2; /* standard property for compatibility */
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.doctor-card__name span {
  font-weight: 600;
  font-size: 24px;
  color: #000000;
  margin-top: 15px;
  line-height: 5px;
}

.doctor-card__name p {
  color: rgba(0, 0, 0, 0.5);
}

.doctor-card:hover {
  width: 500px;
  border-radius: 50%;
}

.doctor-card:hover::before {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border-bottom: none;
  transform: scale(0.95);
}

.doctor-card:hover .doctor-card__name {
  transform: translate(0%,-15%);
}



@media (max-width: 768px) {
	.spa-doctors-carousel .swiper { padding: 0; }
	.doctor-card__image {
		background: none;
		height: 220px;
	}
	.doctor-card {
		width: auto;
		height: auto;
	}
	.doctor-card:hover::before {
		  width: auto;
		  height: auto;
		  border-radius: 50%;
		  border-bottom: none;
		  transform: scale(0.95);
}
	@media (max-width: 600px) {

    /* Giảm Padding cho toàn bộ Carousel */
    .spa-doctors-carousel {
        padding: 10px 0; /* Giảm padding ngang */
    }

    /* Thu nhỏ kích thước Nút điều hướng */
    .spa-doctors-carousel .swiper-button-prev,
    .spa-doctors-carousel .swiper-button-next {
        width: 28px;
        height: 48px;
    }
    .spa-doctors-carousel .swiper-button-prev:after,
    .spa-doctors-carousel .swiper-button-next:after {
        font-size: 14px;
    }
    .spa-doctors-carousel .swiper-button-prev { left: 0; }
    .spa-doctors-carousel .swiper-button-next { right: 0; }
    
    /* Điều chỉnh Card Bác sĩ */
    .doctor-card {
        height: 250px; /* Chiều cao cố định thấp hơn */
        border-radius: 10px;
    }

    /* Điều chỉnh Background ::before */
    .doctor-card::before {
        height: 0; /* Chiều cao cố định thấp hơn */
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    /* Điều chỉnh Hình ảnh */
    .doctor-card__image {
        width: 100%; /* Chiếm 70% chiều rộng card */
        margin-top: 10px;
        border-width: 3px;
    }
    
    /* Điều chỉnh Kích thước chữ */
    .doctor-card__name {
        padding: 10px 10px;
    }
    
    .doctor-card__name span {
        font-size: 16px; /* Giảm size tên */
        margin-top: 10px;
    }

    /* Loại bỏ/Giảm bớt hiệu ứng hover trên di động (để tránh lỗi chạm) */
    .doctor-card:hover {
        width: 100%; /* Đảm bảo không thay đổi width khi hover */
        border-radius: 10px;
    }
    
    .doctor-card:hover::before {
        height: 0; /* Đảm bảo không thay đổi height/shape khi hover */
        transform: none;
    }

    .doctor-card:hover .doctor-card__name {
        transform: none; /* Không dịch chuyển khi hover */
    }
}
}

