/* Image Carousel Section - Mobile First */

/* Mobile Base Styles */
.checkup-carousel {
  background: none;
  padding: 15px 0;
  position: relative;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: none;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.carousel-slide.prev {
  transform: translateX(-100%);
}

.carousel-image-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

.carousel-image-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* Navigation Arrows - Hidden on mobile */
.carousel-nav {
  display: none;
}

/* Dots Indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-color);
  transform: scale(1.4);
}

.dot:hover {
  background: var(--primary-hover);
}

.dot:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Larger Mobile (480px+) */
@media (min-width: 480px) {
  .carousel-container {
    height: 300px;
    border-radius: 12px;
  }

  .carousel-image-content {
    border-radius: 12px;
  }

  .carousel-image-content img {
    border-radius: 12px;
  }

  /* Still no arrows on larger mobile */
  .carousel-nav {
    display: none;
    gap: 10px;
    margin-top: 25px;
  }

  .dot {
    width: 5px;
    height: 5px;
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .carousel-container {
    height: 400px;
    border-radius: 15px;
  }

  .carousel-image-content {
    border-radius: 15px;
  }

  .carousel-image-content img {
    border-radius: 15px;
    object-fit: contain;
  }

  /* Show arrows starting from tablet */
  .carousel-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    color: white;
    opacity: 0.7;
  }

  .carousel-nav:hover {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
  }

  .prev-btn {
    left: 15px;
  }

  .next-btn {
    right: 15px;
  }

  .carousel-dots {
    gap: 12px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .carousel-container {
    height: 500px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: none;
    border-radius: 0;
  }

  .carousel-slide {
    height: 100%;
  }

  .carousel-image-content {
    background: none;
    border-radius: 0;
    height: 100%;
  }

  .carousel-image-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
  }

  .carousel-nav {
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    opacity: 0.7;
  }

  .carousel-nav:hover {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
  }

  .prev-btn {
    left: 20px;
  }

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

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .carousel-container {
    max-width: 1000px;
    height: 600px;
  }

  .carousel-image-content img {
    border-radius: 15px;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}

/* Loading state */
.carousel-slide:not(.active) {
  pointer-events: none;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .carousel-slide,
  .carousel-nav,
  .dot {
    transition: none;
  }
}

/* Hover effects for images */
.carousel-image-content img:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* Touch feedback */
.carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.dot:active {
  transform: scale(1.2);
}
