.yc-image-slider {
  position: relative;
  overflow: hidden;
  background: var(--yc-green-primary, #103d30);
}

.yc-image-slider__track {
  position: relative;
  height: 420px;
}

/* Crossfade instead of a hard display:none/block cut — all slides are
   stacked on top of each other (absolute, same box as the track) and
   only their opacity animates, so the outgoing and incoming slide
   overlap smoothly during the transition instead of jump-cutting. */
.yc-image-slider__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.yc-image-slider__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.yc-image-slider__picture,
.yc-image-slider__image,
.yc-image-slider__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.yc-image-slider__image {
  object-fit: cover;
}

/* Figma "Hero Banner" dark gradient overlay (left-to-right, fading out
   toward the right so the photo stays visible there). */
.yc-image-slider__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
    90deg,
    rgba(23, 43, 64, 0.94) 0%,
    rgba(23, 43, 64, 0.75) 45%,
    rgba(23, 43, 64, 0.1) 75%,
    rgba(23, 43, 64, 0) 100%
  );
}

.yc-image-slider__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  /* Lets clicks fall through to .yc-image-slider__image-link underneath
     wherever there's no actual text/button — only the CTA re-enables
     pointer events for itself below. */
  pointer-events: none;
}

.yc-image-slider__text {
  color: #fff;
}

.yc-image-slider__title {
  margin: 0 0 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.12;
}

.yc-image-slider__subtitle {
  margin: 0 0 20px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  opacity: 1;
}

.yc-image-slider__cta,
.yc-image-slider__cta:hover,
.yc-image-slider__cta:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #d90012;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  pointer-events: auto;
}

.yc-image-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.yc-image-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.yc-image-slider__arrow--prev {
  left: 24px;
}

.yc-image-slider__arrow--next {
  right: 24px;
}

.yc-image-slider__dots {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.yc-image-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.yc-image-slider__dot.is-active {
  background: #fff;
}

@media (max-width: 767px) {
  .yc-image-slider__track {
    height: 360px;
  }

  .yc-image-slider__text {
    padding: 0 28px;
  }

  .yc-image-slider__title {
    font-size: 28px;
  }

  .yc-image-slider__arrow {
    width: 36px;
    height: 36px;
  }

  .yc-image-slider__arrow--prev {
    left: 12px;
  }

  .yc-image-slider__arrow--next {
    right: 12px;
  }
}
