/* CONTAINER DO CARROSSEL */
.carousel-container {
  display: flex;
  gap: 25px;
  padding: 10px;
  margin-bottom: 20px;
  height: auto;
  max-width: max-content;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 1%,
    black 99%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 1%,
    black 99%,
    transparent
  );
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

/* CARDS (GALLERY ITEM) */
div.gallery-item {
  flex: 0 0 auto;
  width: 260px;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

div.gallery-item:hover {
  border-color: var(--secondary);
  cursor: pointer;
}

div.gallery-item a.card-link-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* IMAGEM DO CARD */
.card-image-box {
  width: 100%;
  height: 180px;
  flex-shrink: 0;
  background-color: #000;
  border-bottom: 1px solid var(--card-border);
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CONTEÚDO DO CARD */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: var(--bg-card);
}

.card-content h3.desc {
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-color);
  margin-bottom: 10px;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.short-desc {
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 15px;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: block;
  margin-top: auto;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* GRID DE NOTÍCIAS */
.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: start;
  padding: 40px 20px;
}

.news-grid .gallery-item {
  width: 280px;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .carousel-container {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  div.gallery-item {
    width: 240px;
  }

  .news-grid {
    justify-content: center;
  }
}
