@import url("/assets/swiper-bundle-7ef8b27e.css");

.hero-carousel {
  position: relative;
  width: 100%;
  max-height: 24rem;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.carousel-item {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.carousel-wide-image img,
.carousel-mobile-image img {
  width: 100%;
  height: 24rem;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 3rem 2rem;
}

.carousel-content {
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

.channels-swiper .swiper-slide {
  width: 280px;
}

.swiper-pagination-bullet {
  background-color: white;
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary);
  opacity: 1;
}

/* Carrossel de destaques (/conteudos) */
.featured-carousel {
  min-width: 0;
}

/* overflow: hidden (não visible) impede o swiper-wrapper gigante de inflar
   o min-content dos ancestrais flex — raiz do crop horizontal em telas < 1080px.
   O "peek" do próximo slide é mantido via slide < 100% dentro do box clipado. */
.featured-carousel .featured-swiper {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.featured-carousel .featured-swiper .swiper-slide {
  width: 94%;
  height: auto;
  flex-shrink: 0;
}

/* Destaque único: ocupa a largura toda (sem peek nem espaço vazio à direita) */
.featured-carousel .featured-swiper .swiper-slide:only-child {
  width: 100%;
}

@media (min-width: 768px) {
  .featured-carousel .featured-swiper .swiper-slide {
    width: 86%;
  }
}

@media (min-width: 1024px) {
  .featured-carousel .featured-swiper .swiper-slide {
    width: 84%;
  }
}

.featured-carousel-card {
  aspect-ratio: 16 / 10;
  max-height: 18rem;
}

@media (min-width: 640px) {
  .featured-carousel-card {
    aspect-ratio: 2 / 1;
    max-height: 27.5rem;
  }
}

@media (min-width: 1024px) {
  .featured-carousel-card {
    aspect-ratio: 21 / 9;
  }
}

.featured-bullet {
  display: inline-block;
  width: 1.25rem;
  height: 0.125rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background-color 0.25s, width 0.25s;
}

.featured-bullet--active {
  background-color: rgb(255, 255, 255);
  width: 2.25rem;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .hero-carousel {
    max-height: 20rem;
  }

  .carousel-wide-image img,
  .carousel-mobile-image img {
    height: 20rem;
  }
}

/* Desktop optimizations */
@media (min-width: 768px) {
  .hero-carousel {
    max-height: 24rem;
  }
}
