 html, body {
            overflow-x: hidden;
        }
.doctor-img {
        width: 100%;
        height: 250px; /* đồng bộ chiều cao */
        object-fit: cover;
    }
    #doctorTrack {
        transition: transform 0.5s ease;
    }


    /* nút trong suốt, chỉ hiển thị mũi tên */
.doctor-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  background: transparent;   /* trong suốt */
  border: none;              /* không viền */
  padding: 6px;              /* không quá lớn */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: transform .15s ease, opacity .15s ease;
  opacity: 0.95;
  color: #ffffff;            /* màu mũi tên - sửa nếu cần */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45)); /* giúp mũi tên nổi trên ảnh */
}

/* vị trí */
.doctor-nav-btn.prev { left: 8px; }
.doctor-nav-btn.next { right: 8px; }

/* hover / focus effect: nhẹ phóng to để người dùng biết */
.doctor-nav-btn:hover,
.doctor-nav-btn:focus {
  transform: translateY(-50%) scale(1.08);
  opacity: 1;
  outline: none;
}

/* giảm kích thước trên mobile, tránh che nội dung */
@media (max-width: 576px) {
  .doctor-nav-btn { padding: 4px; }
  .doctor-nav-btn svg { width: 22px; height: 22px; }
}

/* Nếu muốn mũi tên tối thay vì trắng (khi nền sáng), đổi color */
.doctor-nav-btn.dark { color: #222; filter: drop-shadow(0 1px 2px rgba(255,255,255,0.6)); }


.search-section {
  position: absolute; /* hoặc fixed nếu muốn cố định khi cuộn */
  top: 550px; /* bạn tự điều chỉnh px cho phù hợp */
  left: 0;
  width: 100%; 
}
.specialty-section {
  margin-top: 120px; /* điều chỉnh tùy theo giá trị top của search-section */
}
.btn-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #E62B2E; /* Màu đỏ chuẩn */
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  padding: 10px 24px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-view-all i {
  margin-left: 10px;
  font-size: 18px;
}

.btn-view-all:hover {
  background-color: #c92428;
  transform: translateY(-2px);
  color: #fff;
}

.images-specialty {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.images-specialty img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

/* lớp đỏ mờ */
.images-specialty .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* có thể điều chỉnh độ cao phần mờ */
  background: linear-gradient(to top, rgba(230, 43, 46, 0.95), transparent); /* màu #E62B2E */
  z-index: 1;
}

/* chữ nằm trên overlay */
.images-specialty .card-text {
  position: absolute;
  bottom: 15px;
  left: 20px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  z-index: 2; /* cao hơn overlay */
  margin: 0;
}

.images-clinic {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.images-clinic img {
  width: 332px;
  height: 332px;
  display: block;
  border-radius: 8px;
}

/* lớp đỏ mờ */
.images-clinic .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 332px;
  height: 50%; /* có thể điều chỉnh độ cao phần mờ */
  background: linear-gradient(to top, rgba(230, 43, 46, 0.95), transparent); /* màu #E62B2E */
  z-index: 1;
}

/* chữ nằm trên overlay */
.images-clinic .card-text {
  position: absolute;
  bottom: 15px;
  left: 20px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  z-index: 2; /* cao hơn overlay */
  margin: 0;
}


.images-doctor {
  position: relative;
  text-align: center;
   overflow: hidden; /* để vòng tròn có thể lộ ra ngoài */
}

.images-doctor img {
  position: relative;
  z-index: 2; /* nằm trên vòng tròn */
  width: 100%;
  max-width: 350px;
}
.images-doctor img {
  height: 295px;
  width: 295px;
}

/* Hình tròn đỏ phía sau */
.overlay-doctor {
  position: absolute;
  top: 110px; /* đẩy xuống để bị khuyết một phần */
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background-color: #E62B2E; /* đỏ thương hiệu   */
  border-radius: 50%;
  z-index: 1; /* nằm sau ảnh */
}
.row.g-3 .card {
  border: none; /* ❌ bỏ viền */
 /*  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); */ /* tuỳ chọn: tạo bóng nhẹ cho đẹp */
  height: 100%; /* cần cho flex */
  display: flex;
  flex-direction: column;
}

.row.g-3 .card-img-top {
  height: 220px; /* đồng nhất chiều cao hình */
  object-fit: cover; /* cắt hình vừa khung, không méo */
}

.row.g-3 .card-body {
  flex: 1; /* 🔥 giúp các card có chiều cao bằng nhau */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* giữ khoảng đều giữa nội dung và nút */
}

.row.g-3 .card-body p {
  flex-grow: 1; /* phần text giãn đều */
}

.row.g-3 .btn {
  align-self: start; /* căn trái hoặc có thể dùng center tuỳ ý */
}

.view-all {
  color: #E62B2E;
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}

.view-all i {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.view-all:hover {
  color: #c52022; /* đậm hơn khi hover */
}

.view-all:hover i {
  transform: translateX(4px); /* mũi tên bay nhẹ qua phải */
}
.text-justify {
  text-align: justify;
}

