@charset "utf-8";

/* ========================================
   CARROSSEL DE CARDS
   ======================================== */

.carousel-section {
  margin: 2rem 0;
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.carousel-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  background: #f0f0f0;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  color: #333;
}

.carousel-btn:hover {
  background: #000;
  color: white;
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

/* Container do Carrossel */
.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease-in-out;
}

/* Cards dentro do carrossel */
.carousel-card {
  flex: 0 0 calc(25% - 7.5px);
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 2px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.carousel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.carousel-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.carousel-card .content {
  padding: 1rem;
}

.carousel-card .category {
  font-size: 0.85rem;
  color: #888;
  display: block;
  margin-bottom: 0.5rem;
}

.carousel-card h2 {
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.carousel-card time {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
  display: block;
}

/* Indicadores de progresso (dots) */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator-dot.active {
  background: #000;
  width: 30px;
  border-radius: 5px;
}

/* ========================================
   RESPONSIVO - TABLET (2 cards)
   ======================================== */

@media(max-width: 1000px){
  .carousel-card {
    flex: 0 0 calc(50% - 5px);
  }
}

/* ========================================
   RESPONSIVO - MOBILE (1 card)
   ======================================== */

@media(max-width: 600px){
  .carousel-title {
    font-size: 1.2rem;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .carousel-card {
    flex: 0 0 100%;
  }
  
  .carousel-card img {
    height: 200px;
  }
}