/* Full width slider container */
.custom-banner-slider {
  position: relative;
  width: 99vw;
  height: 650px; /* fixed height, can be adjusted */
  overflow: hidden;
  font-family: Arial, sans-serif;
}

/* Each slide covers entire slider */
.custom-banner-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease-in-out;
}

.custom-banner-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

.custom-banner-slider .slide {
  pointer-events: none;
}

.custom-banner-slider .slide.active {
  pointer-events: auto;
}

/* Images fill the slide, cover area */
.custom-banner-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Caption styling */
.banner-caption {
  position: absolute;
  bottom: 40px;
  left: 50px;
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 20px 30px;
  border-radius: 6px;
  max-width: 40vw; /* smaller width on large screen */
}

.banner-caption h2 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.2;
}

.banner-caption p {
  margin: 0;
  font-size: 18px;
}

/* Navigation buttons */
.custom-banner-slider .prev,
.custom-banner-slider .next {
  position: absolute;
  top: 50%;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 12px 18px;
  font-size: 28px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
  z-index: 10;
}

.custom-banner-slider .prev:hover,
.custom-banner-slider .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.custom-banner-slider .prev {
  left: 20px;
}

.custom-banner-slider .next {
  right: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .custom-banner-slider {
    height: 300px;
  }
  .banner-caption {
    max-width: 70vw;
    left: 20px;
    bottom: 20px;
    padding: 10px 15px;
  }
  .banner-caption h2 {
    font-size: 22px;
  }
  .banner-caption p {
    font-size: 14px;
  }
  .custom-banner-slider .prev,
  .custom-banner-slider .next {
    font-size: 20px;
    padding: 10px 14px;
  }
}