/* Custom Slider Styles */

.custom-slider {
  position: relative;
  padding: 29px;
  background-color: var(--flame);
  color: var(--white);
  height: auto;
  border-radius: var(--border-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slider-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  border-radius: var(--border-lg);
  pointer-events: none;
  filter: saturate(50%);
}

.slider-content {
  width: 100%;
  position: relative;
  z-index: 1;
  margin: auto;
  display: grid;
  align-items: center;
}

.slider-text-content {
  min-width: 0;
}

.slider-graphic-container {
  display: grid;
  place-items: center;
}

.slider-lottie {
  width: 100%;
  height: auto;
}

.slider-heading {
  color: var(--floral-white);
  text-transform: uppercase;
}

.slider-description {
  color: var(--floral-white);
  font-size: var(--copyFontLarge);
  max-width: 350px;
  text-wrap: balance;
}

.slider-nav-row {
  margin-top: 35px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-arrows {
  display: flex;
  gap: 40px;
  align-items: center;
}

.slider-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.slider-arrow img {
  display: block;
}

.slider-prev {
  opacity: 0.3;
  transform: scaleX(-1);
}

.slider-prev.active {
  opacity: 1;
}

.slider-next.inactive {
  opacity: 0.3;
}

.slider-cta {
  cursor: pointer;
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .custom-slider {
    padding: 56px 53px;
    height: 700px;
  }
  .slider-heading {
    margin-bottom: 16px;
    font-size: var(--bigFontMax);
  }
  .slider-content {
    grid-template-columns: 1fr 260px;
    gap: 24px;
  }
  .slider-lottie {
    max-width: 260px;
  }
}

/* Desktop Styles */
@media (min-width: 1025px) {
  .custom-slider {
    padding: 56px 53px;
    height: 700px;
  }
  .slider-heading {
    margin-bottom: 16px;
  }
  .slider-content {
    grid-template-columns: 1fr 400px;
    padding-right: 5%;
  }
  .slider-lottie {
    max-width: 400px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .slider-heading {
    font-size: var(--bigFontMax);
  }

  .slider-bg-overlay {
    opacity: 0.2;
  }

  .slider-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .slider-graphic-container {
    display: none;
  }

  .slider-nav-row {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .slider-arrows {
    gap: 24px;
  }

  .slider-arrow img {
    width: 32px;
    height: 32px;
  }
}
