.yl-carousel {
  background-color: #fff;
  padding: 80px 0;
}

.yl-carousel__header {
  text-align: center;
  margin-bottom: 36px;
  padding: 0 24px;
}

.yl-carousel__title {
  font-family:
    CircularXX TT,
    sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  color: #00091f;
  margin-bottom: 8px;
}

.yl-carousel__subtitle {
  font-family:
    CircularXX TT,
    sans-serif;
  font-weight: 300;
  font-size: 21px;
  line-height: 1.1;
  color: #546286;
}

.yl-carousel__swiper-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.yl-carousel__swiper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.yl-carousel__slide {
  width: 100%;
}

.yl-carousel__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
}

.yl-carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.yl-carousel__slide.swiper-slide-active .yl-carousel__img {
  transform: scale(1);
}

.yl-carousel__arrow {
  position: absolute;
  top: calc(50% - 30px);
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.yl-carousel__arrow:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.08);
}

.yl-carousel__arrow--prev {
  left: 20px;
}

.yl-carousel__arrow--next {
  right: 20px;
}

.yl-carousel__pagination {
  position: absolute !important;
  left: 50% !important;
  bottom: 20px !important;
  top: auto !important;
  transform: translateX(-50%) !important;
  z-index: 5;
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 12px;
  height: auto !important;
  width: auto !important;
  max-width: calc(100% - 48px);
  pointer-events: none;
}

.yl-carousel__pagination .swiper-pagination-bullet {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.5;
  margin: 0 !important;
  box-shadow: none;
  transition:
    width 0.25s ease,
    opacity 0.25s ease,
    border-radius 0.25s ease,
    background 0.25s ease;
  cursor: pointer;
  pointer-events: auto;
}

.yl-carousel__pagination .swiper-pagination-bullet-active {
  width: 30px;
  height: 8px;
  border-radius: 10px;
  background: #fff;
  opacity: 1;
  transform: none;
}

.yl-carousel__caption {
  margin-top: 20px;
  min-height: 48px;
}

.yl-carousel__caption-item {
  display: none;
}

.yl-carousel__caption-item.is-active {
  display: block;
}

.yl-carousel__caption-title {
  font-family:
    CircularXX TT,
    sans-serif;
  font-weight: 450;
  font-size: 32px;
  line-height: 1.1;
  color: #00091f;
  margin-bottom: 4px;
}

.yl-carousel__caption-desc {
  font-family:
    CircularXX TT,
    sans-serif;
  font-weight: 100;
  font-size: 18px;
  line-height: 1.4;
  color: #00091f;
}

/* Mobile */
@media (max-width: 767px) {
  .yl-carousel {
    padding: 56px 0;
  }

  .yl-carousel__swiper-wrap {
    padding: 0 16px;
  }

  .yl-carousel__arrow--prev {
    left: 15px;
    top: 50%;
  }

  .yl-carousel__arrow--next {
    right: 15px;
    top: 50%;
  }

  .yl-carousel__arrow {
    width: 36px;
    height: 36px;
  }

  .yl-carousel__pagination {
    bottom: 14px !important;
    gap: 6px;
  }

  .yl-carousel__pagination .swiper-pagination-bullet-active {
    width: 26px;
  }
}
