/* Carousel Styles - Apple Style */
/* Base carousel styles (Portrait/Vertical - for Doctor page) */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto 3rem auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  background: #f5f5f7;
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f7;
}

.carousel-item img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

/* Adjust first image to show text at top better */
.carousel-item:first-child img {
  object-position: center top;
}

/* Adjust last image to show text at bottom better */
.carousel-item:last-child img {
  object-position: center bottom;
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #333;
  cursor: pointer;
  padding: 1rem;
  font-size: 1.2rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.2);
}

/* ===========================================
   CLINIC GALLERY CAROUSEL - Homepage
   Horizontal/Landscape optimized
   =========================================== */

.clinic-gallery-wrapper {
  width: 100%;
  margin: 3rem 0;
  text-align: center;
}

.gallery-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 1.5rem;
}

.clinic-carousel {
  max-width: 500px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.clinic-carousel .carousel-slide {
  display: flex;
  width: 100%;
}

.clinic-carousel .carousel-item {
  min-width: 100%;
  flex-shrink: 0;
}

.clinic-carousel .carousel-item img {
  height: 600px;
  width: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Clinic carousel button styling */
.clinic-carousel .carousel-btn {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.clinic-carousel .carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
}

/* Clinic carousel dots - white style for contrast */
.clinic-carousel .dot {
  background: rgba(255, 255, 255, 0.5);
  width: 10px;
  height: 10px;
}

.clinic-carousel .dot.active {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===========================================
   RESPONSIVE STYLES
   =========================================== */

@media (max-width: 768px) {
  .carousel-container {
    max-width: 100%;
    border-radius: 12px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Clinic carousel mobile adjustments */
  .clinic-gallery-wrapper {
    margin: 2rem 0;
  }

  .gallery-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .clinic-carousel {
    border-radius: 16px;
    margin: 0 -1rem;
    max-width: calc(100% + 2rem);
  }

  .clinic-carousel .carousel-item img {
    height: 400px;
  }

  .clinic-carousel .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .clinic-carousel .carousel-btn.prev {
    left: 10px;
  }

  .clinic-carousel .carousel-btn.next {
    right: 10px;
  }

  .clinic-carousel .dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .clinic-carousel .carousel-item img {
    height: 350px;
  }

  .gallery-title {
    font-size: 1.2rem;
  }
}