/* Slider container */
.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

/* Slide */
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Images */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
}

/* Caption (text overlay) */
.caption {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  background: rgba(0,0,0,0.55);
  padding: 20px 40px;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

.caption h1 {
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 700;
}

.caption p {
  font-size: clamp(14px, 3vw, 20px);
  margin-top: 5px;
}

/* Navigation Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 28px;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  transition: 0.3s;
}

.nav-btn:hover {
  background: rgba(0,0,0,0.7);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Responsive */
@media (max-width: 768px) {
  .caption {
    width: 90%;
    padding: 15px 20px;
  }
}
