/* Container */
.custom-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.custom-slider-container {
  position: relative;
  width: 100%;
  height: auto;
}

.custom-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

/* Slides */
.custom-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.custom-slide.active {
  opacity: 1;
  position: relative;
}

.custom-slide-inner {
  position: relative;
  width: 100%;
  margin: 0;
}

.custom-slide-image {
  width: 100%;
  height: auto;
  display: block;
}

.custom-slide-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation Buttons */
.custom-slider-button {
  background-color: transparent !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-slider-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.custom-slider-button svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.custom-slider-prev {
  left: 20px;
}

.custom-slider-next {
  right: 20px;
}

/* mobile */

/* === Z-INDEX HIERARCHY === */
/* Layer 1: Background image */
.custom-slide-image {
    z-index: 1;
}

/* Layer 2: Caption overlay */
.custom-slide-caption {
    z-index: 10;
}

/* Layer 3: Content boxes */
.box2colban,
.boxitemban {
    z-index: 20;
}

/* Layer 4: Text content */
.txt2ban {
    z-index: 30;
}

/* Layer 5: Interactive elements (buttons) */
.btnsub,
.slider-cta-button {
    z-index: 50;
}

/* Layer 6: Navigation controls */
.custom-slider-prev,
.custom-slider-next {
    z-index: 100;
}