/* destaques.css */
#destaques-slider {
  position: relative;
  width: 100%;
  margin-bottom: 50px;
}

/* Estilos do carrossel (parte superior) - idênticos ao carrossel original */
#destaques-slider .slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px;
  z-index: 10;
}

#destaques-slider .carousel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px;
  z-index: 15;
}

#destaques-slider .carousel-title {
  font-size: 24px;
  color: #333;
}

#destaques-slider .slider-navigation {
  display: flex;
  align-items: center;
}

#destaques-slider .slide-arrow {
  background-color: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  margin-left: 5px;
}

#destaques-slider .prev-arrow {
  left: 10px;
}

#destaques-slider .next-arrow {
  right: 10px;
}

#destaques-slider .carousel-indicators {
  list-style: none;
  display: flex;
  padding-left: 10px;
  margin: 0;
  align-items: center;
}

#destaques-slider .carousel-indicators li {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  margin-right: 5px;
}

#destaques-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;
}

/* Estilos para a seção adicional (parte inferior) */
.additional-news-section {
  margin-top: 30px;
  width: 100%;
}

.additional-news-container {
  display: flex;
  gap: 20px;
  width: 100%;
}

.additional-news-item {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 8px 16px -6px #bbcbd8;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.additional-news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 12px 24px -8px #bbcbd8;
}

.additional-news-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.additional-news-image {
  flex: 0 0 150px;
  height: 120px;
  background-color: #f0f0f0;
  overflow: hidden;
  position: relative; /* Adicionar para posicionar o overlay */
}

/* Adicionar o overlay para o efeito hover */
.additional-news-image .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;
}

.additional-news-item:hover .additional-news-image .over-layer {
  opacity: 1;
}

.additional-news-image .over-layer i {
  color: #fff;
  font-size: 20px;
}

.additional-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.additional-news-item:hover .additional-news-image img {
  transform: scale(1.05);
}

.additional-news-content {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.additional-news-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  line-height: 1.3;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.additional-news-title:hover {
  color: var(--theme-palette-color-2, #2196f3);
  transition: color 0.3s ease;
}

.additional-news-date {
  font-size: 12px;
  color: #888;
  font-weight: normal;
}

/* Responsividade */
@media only screen and (max-width: 768px) {
  .additional-news-container {
    flex-direction: column;
    gap: 15px;
  }

  .additional-news-link {
    flex-direction: column;
  }

  .additional-news-image {
    flex: none;
    height: 150px;
  }

  .additional-news-content {
    padding: 12px;
  }
}

@media only screen and (max-width: 600px) {
  .post-slide {
    flex: 0 0 100%;
  }

  .slider-container {
    margin: 0 -10px;
  }

  .post-slide {
    margin-right: 0;
  }

  .additional-news-title {
    font-size: 13px;
  }
}
