/* Doctors Carousel Styling */

#doctorsSwiper {
  padding: 20px 0 60px 0;
  position: relative;
}

#doctorsSwiper .swiper-slide {
  height: auto;
  display: block;
  padding: 10px;
}

.slide-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  height: auto;
}

/* Swiper Navigation Buttons - Smaller */
#doctorsSwiper .swiper-button-next,
#doctorsSwiper .swiper-button-prev {
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  top: 50%;
  transform: translateY(-50%);
}

#doctorsSwiper .swiper-button-next:hover,
#doctorsSwiper .swiper-button-prev:hover {
  background: rgba(13, 110, 253, 0.2);
  color: #0a58ca;
}

#doctorsSwiper .swiper-button-next::after,
#doctorsSwiper .swiper-button-prev::after {
  font-size: 16px;
}

/* Swiper Pagination */
#doctorsSwiper .swiper-pagination {
  bottom: 0;
  position: absolute;
}

#doctorsSwiper .swiper-pagination-bullet {
  background: #ccc;
  opacity: 0.7;
  transition: all 0.3s ease;
  width: 8px;
  height: 8px;
}

#doctorsSwiper .swiper-pagination-bullet-active {
  background: #0d6efd;
  opacity: 1;
}

/* Doctor Profile Card */
.doctor-profile {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto;
}

.doctor-profile:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Doctor Avatar */
.profile-header {
  margin-bottom: 14px;
}

.doctor-avatar {
  position: relative;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  height: 160px;
}

.doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid white;
}

.status-indicator.available {
  background: #28a745;
}

.status-indicator.busy {
  background: #ffc107;
}

.status-indicator.offline {
  background: #dc3545;
}

/* Doctor Details */
.doctor-details h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #212529;
  line-height: 1.2;
}

.specialty-tag {
  display: inline-block;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  padding: 3px 8px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.experience-info {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.experience-info i {
  margin-right: 3px;
  color: #0d6efd;
}

/* Rating Section */
.rating-section {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
  padding: 8px 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.85rem;
}

.stars {
  display: flex;
  gap: 1px;
}

.stars i {
  color: #ffc107;
  font-size: 0.75rem;
}

.rating-score {
  font-weight: 600;
  color: #212529;
  font-size: 0.85rem;
  min-width: 30px;
}

.review-count {
  font-size: 0.75rem;
  color: #6c757d;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
}

.btn-primary {
  background: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

.btn-primary:hover {
  background: #0a58ca;
  border-color: #0a58ca;
  color: white;
}

.btn-secondary {
  background: transparent;
  color: #0d6efd;
  border-color: #0d6efd;
}

.btn-secondary:hover {
  background: #0d6efd;
  color: white;
}

/* Search Section */
.search-section {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(111, 66, 193, 0.05) 100%);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(13, 110, 253, 0.1);
}

.search-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 8px;
}

.search-subtitle {
  color: #6c757d;
  margin-bottom: 20px;
}

.search-form {
  margin-top: 20px;
}

.search-input-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input-group>div {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.input-wrapper,
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i,
.select-wrapper i {
  position: absolute;
  left: 12px;
  color: #6c757d;
  pointer-events: none;
}

.form-control,
.form-select {
  padding-left: 40px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  height: 44px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.search-btn {
  background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  color: white;
}

/* View All Button */
.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-view-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
  color: white;
}

/* Responsive */
@media (max-width: 1400px) {
  .slide-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .slide-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .doctor-avatar {
    height: 140px;
  }

  .doctor-profile {
    padding: 16px;
  }
}

@media (max-width: 992px) {
  .slide-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .doctor-avatar {
    height: 110px;
  }

  .search-input-group {
    flex-direction: column;
  }

  .search-input-group>div {
    min-width: unset;
  }

  .search-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .slide-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .doctor-avatar {
    height: 100px;
  }

  .doctor-profile {
    padding: 12px;
  }

  .doctor-details h4 {
    font-size: 0.85rem;
  }

  .specialty-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
  }

  #doctorsSwiper .swiper-button-next,
  #doctorsSwiper .swiper-button-prev {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .slide-content {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .doctor-avatar {
    height: 90px;
  }

  .doctor-profile {
    padding: 10px;
  }

  .doctor-details h4 {
    font-size: 0.8rem;
  }

  #doctorsSwiper .swiper-button-next,
  #doctorsSwiper .swiper-button-prev {
    display: none;
  }

  .form-control,
  .form-select,
  .search-btn {
    font-size: 0.9rem;
    height: 40px;
  }

  .action-buttons {
    gap: 4px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
}