/* ═══════════════════════════════════════════════════════════
   carousel-header.css — Estilos do carrossel de destaques
   ═══════════════════════════════════════════════════════════ */

.carousel-header {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-color, #f6f5f1);
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.carousel-view {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-color);
}

/* Banner da imagem */
.carousel-banner-image {
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}



/* Badge "EM DESTAQUE" — ancorada ao banner */
.carousel-badge {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85); /* Mais clara para destacar no banner */
  color: var(--color-neutral-black);
  padding: 0.6rem 1rem 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Botão de fechar (X) — ancorado ao banner */
.carousel-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  background: url(../assets/elipse.png);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.carousel-close:hover {
  background: url(../assets/ruido.png);
}

/* Indicadores (dots) — centralizados abaixo do texto */
.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--color-neutral-black);
  transform: scale(1.3);
}

/* Ajustes responsivos */
@media (max-width: 768px) {
  .carousel-banner-image {
    height: 250px;
  }

  .carousel-title {
    font-size: 2rem;
  }

  .carousel-content {
    padding: 1.5rem var(--container-padding) 3rem;
  }

  .carousel-subtitle {
    font-size: 0.95rem;
    max-width: 95%;
  }
}
