
/* Slider container */
.slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.slider.rounded {
  border-radius: 30px;
}

/* Slides wrapper */
.slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

/* Single slide */
.slide {
  min-width: 100%;
  height: 100%;
}

/* Images */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;          /* avoids small gaps around images */
  border-radius: inherit;  /* ensures image follows container rounding */
}

/* Navigation arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 14px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

.slider-nav.slider-prev { left: 10px; }
.slider-nav.slider-next { right: 10px; }

.slider-nav:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Dots */
.dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dots button {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  padding: 0;
}

.dots button.active {
  background: white;
}

/* Focus outline for accessibility */
.slider-nav:focus-visible,
.dots button:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .slider {
    height: 250px;
  }
}


.slider-container {
    width: 100%;
    margin: 0 auto;
}

/*Small devices*/
@media (min-width: 576px) {
    .slider-container {
        max-width: 400px;
    }
}

/*Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {
    .slider-container {
        max-width: 800px;
    }
}

/*Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {
    .slider-container {
        max-width: 700px;
    }
}

/*X-Large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {
    .slider-container {
        max-width: 900px;
    }
}

/*XX-Large devices (larger desktops, 1400px and up)*/
@media (min-width: 1400px) {
    .slider-container {
        max-width: 1000px;
    }
}
