/* Carousel container */
.carousel {
  position: relative;
  width: 100%;
  max-width: 800px; /* max width for large screens */
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Track containing all slides */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

/* Individual slide */
.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio - adjust if needed */
  position: relative;
  overflow: hidden;
}

/* Slide images */
.carousel-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* cover without distortion */
  border-radius: 10px;
  display: block;
}

/* Previous / Next buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  z-index: 10;
}

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

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

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Optional dots indicator */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dot.active {
  background: rgba(0,0,0,0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel {
    max-width: 100%;
  }
  .carousel-btn {
    padding: 8px 12px;
    font-size: 18px;
  }
  .carousel-slide {
    padding-bottom: 60%; /* slightly taller for mobile */
  }
}

@media (max-width: 480px) {
  .carousel-btn {
    padding: 6px 10px;
    font-size: 16px;
  }
  .carousel-slide {
    padding-bottom: 66%; /* taller for small screens */
  }
}
