/* === Slider Container === */
.slider-container {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  margin: 40px auto;
  position: relative;
}

/* === Track === */
.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

/* === Individual Slide === */
.slide {
  flex: 0 0 calc(100% / 3); /* 3 slides visible by default */
  height: 44vh;
  user-select: none;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.41) 0px 5px 10px;
}

.slide:last-child {
  margin-right: 0;
}

.slide img {
  width: 100%;
  display: block;
}

/* === Navigation Dots === */
.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
  position: relative;
  text-align: center;
  font-family: "Quattrocento Sans", sans-serif;
  font-weight: 400;
}

.slider-nav button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  position: relative;
  z-index: 1;
  color: #333;
  margin: 0 4px;
}

.slider-nav button.active {
  margin-right: 110px;
}

.slider-nav button .active-line {
  display: none;
  width: 0;
  transition: 0.5s ease-in-out;
}

.slider-nav button.active .active-line {
  display: block;
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  width: 100px;
  height: 2px;
  background: #333;
  border-radius: 1px;
}

.slider-nav button[data-slide="3"] .active-line {
  display: none !important;
}

/* === Optional Middle Indicator === */
.slider-middle-indicator {
  width: 50px;
  height: 0;
  border-bottom: 2px solid #333;
  margin: 0 10px;
  position: relative;
  top: 2px;
  z-index: 2;
  display: none;
}

/* === Responsive Breakpoints === */

/* Tablet - 2 slides */
@media (max-width: 1024px) {
  .slide {
    flex: 0 0 calc(100% / 2);
    height: 40vh;
  }
}

/* Mobile - 1 slide */
@media (max-width: 768px) {
  .slide {
    flex: 0 0 100%;
    height: 36vh;
  }

  .slider-nav button.active {
    margin-right: 0;
  }

  .slider-nav button.active .active-line {
    width: 60px;
    left: 20px;
  }
}

/* Small Mobile - hide line and reduce height */
@media (max-width: 400px) {
  .slide {
    flex: 0 0 100%;
    height: 26vh;
  }

  .slider-nav button .active-line,
  .slider-nav button.active .active-line {
    display: none;
  }
}
