/* ============================================
   Carousel / Featured Banner
   ============================================ */

.carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.carousel__track {
  display: flex;
  transition: transform var(--transition-slow) ease;
}

.carousel__slide {
  min-width: 100%;
  position: relative;
}

.carousel__image {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

@media (max-width: 768px) {
  .carousel__image {
    aspect-ratio: 16 / 9;
  }
}

/* Gradient overlay */
.carousel__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
}

/* Content overlay */
.carousel__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6) var(--space-8);
  z-index: 1;
}

@media (max-width: 768px) {
  .carousel__content {
    padding: var(--space-4);
  }
}

.carousel__badge {
  display: inline-block;
  margin-bottom: var(--space-2);
}

.carousel__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: #fff;
  margin-bottom: var(--space-2);
}

@media (max-width: 768px) {
  .carousel__title {
    font-size: var(--text-2xl);
  }
}

.carousel__desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .carousel__desc {
    font-size: var(--text-sm);
    -webkit-line-clamp: 1;
  }
}

/* ---- Navigation Dots ---- */
.carousel__dots {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-6);
  display: flex;
  gap: var(--space-2);
  z-index: 1;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.carousel__dot--active {
  width: 24px;
  background: #fff;
}

/* ---- Prev / Next Buttons ---- */
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.carousel:hover .carousel__nav {
  opacity: 1;
}

.carousel__nav .icon {
  width: 20px;
  height: 20px;
}

.carousel__nav--prev {
  left: var(--space-3);
}

.carousel__nav--next {
  right: var(--space-3);
}

.carousel__nav:hover {
  background: rgba(0, 0, 0, 0.7);
}
