/* carrossel.css */
#news-slider {
  position: relative;
  width: 100%;
  margin-bottom: 50px;
}

#news-slider .slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px;
  z-index: 10; /* Garantir que fique acima dos slides */
}


#news-slider .carousel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px; /* Ajuste o padding conforme necessário */
  z-index: 15; /* Certifique-se que a z-index seja maior que os blocos de notícias */
}

#news-slider .carousel-title {
  font-size: 24px;
  color: #333;
}

#news-slider .slider-navigation {
  display: flex;
  align-items: center;
}

#news-slider .slide-arrow {
  background-color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  margin-left: 5px; /* Espaço entre as setas */
}

#news-slider .prev-arrow {
  left: 10px;
}

#news-slider .next-arrow {
  right: 10px;
}

#news-slider .carousel-indicators {
  list-style: none;
  display: flex;
  padding-left: 10px; /* Espaçamento antes das bolinhas */
  margin: 0; /* Remove a margem padrão */
  align-items: center;
}

#news-slider .carousel-indicators li {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  margin-right: 5px; /* Espaço entre as bolinhas */
}

#news-slider .carousel-indicators li.active {
  background-color: #222;
}

.slider-container {
  display: flex;
  flex-wrap: nowrap;
}

.post-slide {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0px 14px 22px -9px #bbcbd8;
  flex: 0 0 calc((100% - 30px) / 3);
  margin-right: 15px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.post-slide.active {
  opacity: 1;
}

.post-slide.inactive {
  display: none;
}

.post-slide.transition {
  transition: transform 0.5s ease;
}

.post-slide .post-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 200px;
  background-color: black;
  border-radius: 15px 15px 0 0;
}

.post-slide .post-img img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.2s linear;
}

.post-slide:hover .post-img img {
  transform: scale(1.1);
}

.post-slide .over-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.post-slide:hover .over-layer {
  opacity: 1;
}

.post-slide .over-layer i {
  color: #fff;
  font-size: 25px;
}

.post-slide .post-content {
  padding: 20px;
  flex-grow: 1;
}

.post-slide .post-title {
  margin-bottom: 0;
  line-height: 1.2;
}

.post-slide .post-title a {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
  transition: color 0.3s ease;
  display: block;
  padding-bottom: 0.5em;
}

.post-slide .post-title a:hover {
  color: --theme-palette-color-2;
  text-decoration: none;
}

.post-slide .post-description {
  line-height: 24px;
  color: #808080;
  margin-bottom: 25px;
}

.post-slide .post-date {
  color: #a9a9a9;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.post-slide .post-date i {
  margin-right: 8px;
  color: #CFDACE;
  font-size: 20px;
}

.post-slide .read-more {
  padding: 7px 20px;
  font-size: 12px;
  background: #2196F3;
  color: #ffffff;
  border-radius: 25px;
  text-transform: uppercase;
  align-self: start;
  margin-top: auto;
  transition: background 0.3s ease;
}

.post-slide .read-more:hover {
  background: #3498db;
  color: #fff;
  text-decoration: none;
}

@media only screen and (max-width: 600px) {
  .post-slide {
    flex: 0 0 100%; /* Ajuste para 1 slide em telas muito pequenas */
  }

  .slider-container {
    margin: 0 -10px; /* Ajuste para compensar as margens do slide e alinhar com os limites do carrossel */
  }

  .post-slide {
    margin-right: 0; /* Remover a margem direita nos slides para telas pequenas */
  }
}