/* Container setup */
#stages-slider {
  position: relative;
  overflow: hidden;
}

/* Slide base */
.stages-slide {
  position: absolute;
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* Active slide is visible and clickable */
.stages-slide.stages-nav-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

/* Inner content centering (unchanged) */
.stages-slide .et_pb_column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Navigation stays pinned */
#stages-slider-nav {
  position: absolute;
  bottom: 30px;
  left: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  text-align: center;
  z-index: 2;
  display: flex;
  justify-content: center;
}
#stages-slider-nav .et_pb_column {
  width: auto;
  margin: 0;
}
#stages-slider-nav .et_pb_column:not(:last-of-type) {
  margin-right: 7vw;
}

/* Nav button styles */
.stages-slide-nav {
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
}
.stages-slide-nav.stages-nav-active {
  opacity: 1;
  transform: scale(1.1);
}
@media (max-width: 768px) {
  #stages-slider-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 30px;
    justify-content: start;
    /* scroll-snap-type: x mandatory; */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    left: 0;
    transform: translateX(0);
    padding-left: 30vw;
    padding-right: 30vw;
  }
  #stages-slider-nav .et_pb_column:not(:last-of-type) {
    margin-right: 0;
  }
  #stages-slider-nav::-webkit-scrollbar {
    display: none;
  }

  #stages-slider-nav .et_pb_column {
    flex: 0 1 auto; /* Prevents auto-growing */
    max-width: 150px; /* Controls item width */
    /* scroll-snap-align: center; */
    white-space: nowrap;
  }

  .stages-slide-nav {
    text-align: center;
    white-space: nowrap;
  }

  #stages-slider-nav .et_pb_text_inner p {
    margin: 0;
  }
  .stages-slide .et_pb_column {
    padding: 0 20px;
  }
}
