.css-slider {
  position: relative;
  width: 100%;
  margin: auto;
  font-family: sans-serif;
}
.css-slider input[type="radio"] {
  display: none;
}
.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;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
input#slide1:checked ~ .slides .s1,
input#slide2:checked ~ .slides .s2 {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* Navigation arrows */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  background: rgba(40,40,40,0.5);
  padding: 0 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 navigation */
.dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 3;
  pointer-events: none; /* Let clicks pass through except on labels */
}
.dots label {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
input#slide1:checked ~ .dots label[for="slide1"],
input#slide2:checked ~ .dots label[for="slide2"] {
  background: #0078ff;
}