/* BASE */

.feed-wrapper {
  overflow: hidden;
}

.feed-externo {
  width: 100%;
}

.feed-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* IMAGEM */
.feed-thumb img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

/* CONTEÚDO */
.feed-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.feed-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feed-content h3 a {
  color: #2D2D2D;
  text-decoration: none;
}

.feed-content h3 a:hover {
  text-decoration: underline;
}

.feed-content p {
  font-size: 14px;
  color: #2D2D2D;
  margin-bottom: 20px;
}

/* BOTÃO */
.link-blog {
  display: block;
  font-size: 13px !important;
  color: #2D2D2D !important;
  font-weight: bold;
  text-align: center;
  text-decoration: none !important;
  padding: 10px;
  margin-top: auto;
}

.link-blog:hover {
  background-color: #A8A8A829;
  border-radius: 10px;
}


/* DESKTOP */

@media (min-width: 769px) {

  .feed-wrapper {
    overflow: visible;
    position: relative;
  }

  .feed-externo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px !important;
    padding: 0 50px 50px;
    margin-left: -50px;
  }

  .feed-externo.swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px !important;
    transform: none !important;
  }

  .feed-item.swiper-slide {
    width: 100% !important;
    margin-right: 0 !important;
  }

  .feed-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
  }

  .feed-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 2;
  }

  /* imagem topo */
  .feed-thumb img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

}


/* MOBILE (Swiper) */

@media (max-width: 768px) {

  .feed-externo {
    display: flex;
    flex-direction: row;
    gap: 0;
  }

  .feed-item {
    min-width: 100%;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
  }

  .feed-thumb {
    width: 100%;
  }

  .feed-thumb img {
    width: 100%;
    height: 200px;
  }

  .feed-content {
    padding: 5px 20px;
  }

  .feed-content h3 {
    font-size: 16px;
  }

  .feed-content p {
    font-size: 14px;
  }

  .link-blog {
    margin: 10px auto 0;
    background: #f1f1f1;
    border-radius: 10px;
    width: 100%;
  }

}
