.css-slider {
  position: relative;
  width: 100%;
  margin: auto;
  font-family: sans-serif;
}

.slides {
  position: relative;
  width: 100%;
  height: 285px;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;

  opacity: 0;
  pointer-events: none;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: opacity 0.5s;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Navigation arrows */

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  font-size: 2.5rem;
  line-height: 1;

  color: #fff;
  background: rgba(40, 40, 40, 0.5);

  border: none;
  padding: 8px 16px;
  border-radius: 50%;

  cursor: pointer;
  user-select: none;
  z-index: 2;

  transition: background 0.2s;
}

.nav.prev {
  left: 16px;
}

.nav.next {
  right: 16px;
}

.nav:hover {
  background: rgba(0, 120, 255, 0.7);
}

/* Dots */

.dots {
  position: absolute;
  bottom: 18px;
  left: 0;

  width: 100%;

  display: flex;
  justify-content: center;
  gap: 8px;

  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;

  padding: 0;
  border: none;

  background: #bbb;
  border-radius: 50%;

  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #0078ff;
}