.hero-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #000;
}

.carousel-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.6);
  transform: scale(1.1);
  transition: opacity 0.4s ease-in-out, background-image 0.4s ease-in-out;
}

@keyframes popInBanner {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.swiper-container-banner .slick-slide[data-slick-index="0"] .carousel-slide-inner {
  animation: popInBanner 0.45s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  will-change: transform, opacity;
}

.swiper-container-banner {
  width: 100%;
  overflow: visible !important;
  position: relative;
  z-index: 1;
  padding-bottom: 24px;
}

.swiper-container-banner .slick-list {
  overflow: visible !important;
}

.swiper-container-banner .slick-slide {
  width: calc(100vw - (var(--carousel-gap) * 2));
  max-width: var(--carousel-max-width);
  margin: 0 calc(var(--carousel-gap) / 2);
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  outline: none;
}

.carousel-slide-inner {
  width: 100%;
  aspect-ratio: var(--carousel-aspect-ratio);
  border-radius: 16px;
  border: 2px solid #ffffff;
  box-sizing: border-box;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0.5;
  transform: scale(0.95);
}

.slick-current .carousel-slide-inner, .slick-center .carousel-slide-inner {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide-inner a {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-carousel-wrapper .slick-arrow {
  position: absolute;
  top: calc(50% - 12px);
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s, transform 0.2s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  font-size: 0;
  color: transparent;
}

.hero-carousel-wrapper .slick-arrow:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.05);
}

.hero-carousel-wrapper .slick-arrow::before {
  color: #333;
  font-size: 20px;
  font-weight: bold;
  content: '❮';
  font-family: sans-serif;
  display: block;
  line-height: 1;
}

.hero-carousel-wrapper .slick-next::before {
  content: '❯';
}

.hero-carousel-wrapper .slick-prev {
  left: max(24px, calc(50% - (var(--carousel-max-width) / 2) + 18px)) !important;
}

.hero-carousel-wrapper .slick-next {
  right: max(24px, calc(50% - (var(--carousel-max-width) / 2) + 18px)) !important;
}

.hero-carousel-wrapper .slick-dots {
  position: relative;
  bottom: -12px !important;
  display: flex;
  gap: 8px;
  z-index: 10;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-carousel-wrapper .slick-dots li {
  margin: 0;
  width: auto;
  height: auto;
}

.hero-carousel-wrapper .slick-dots li button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ccc;
  opacity: 1;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  font-size: 0;
  color: transparent;
  border: none;
}

.hero-carousel-wrapper .slick-dots li button::before {
  display: none !important;
}

.hero-carousel-wrapper .slick-dots li:hover button {
  background-color: #aaa;
}

.hero-carousel-wrapper .slick-dots li.slick-active button {
  background-color: #FD9C00;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .hero-carousel-wrapper .slick-arrow {
    width: 36px;
    height: 36px;
  }
  .hero-carousel-wrapper .slick-prev { left: -4px !important; }
  .hero-carousel-wrapper .slick-next { right: -4px !important; }
  .hero-carousel-wrapper .slick-arrow::before {
    font-size: 16px !important;
  }
}
