/* public/css/site/components/recent-news-section.css */

.recent-news-section .news-content .news-read-more {
  margin-top: auto;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.news-card {
  border-radius: 12px;
  transition: all 0.3s ease;
  background: #000000;
  border: 1px solid var(--color-bright-transparency-1);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
    border-color: var(--color-bright-transparency-2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.news-card .news-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 30px;
}

.news-title {
  margin-bottom: 15px; /* Margem ajustada */
}

.news-title a {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.news-title a:hover {
  color: var(--color-primary);
}

/* ADICIONADO: Estilos para a seção de Metadados */
.news-meta {
    display: flex;
    gap: 20px;
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    font-family: "Roboto Condensed", sans-serif;
    align-items: center;
}

.news-meta-item i {
    margin-right: 6px;
}

.news-meta-category a {
    color: var(--color-primary);
    transition: color 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
}

.news-meta-category a:hover {
    color: #ffffff;
}

.news-excerpt {
  font-size: 16px;
  color: #c0c0c0;
  line-height: 1.8;
  margin-bottom: 20px; /* Margem ajustada */
}

.news-content .btn-read-more {
  color: white;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-block;
}

.news-content .btn-read-more:hover {
  color: var(--color-primary);
}

.news-content .btn-read-more i {
  transition: all 0.3s ease;
  padding-left: 10px;
}

.news-content .btn-read-more:hover i {
  padding-left: 15px;
}

.news-footer {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.news-footer .btn-all-news {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 2px solid var(--color-primary);
  position: relative;
  overflow: hidden;
  font-size: 1.1rem;
}

.news-footer .btn-all-news:hover {
  background: var(--color-bright-transparency-1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.news-image-link {
  position: relative;
  display: block;
  width: 100%;
}

.news-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  border-bottom: 3px solid var(--color-primary);
}

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

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

.no-news-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #c0c0c0;
    font-size: 1.1rem;
    padding: 50px 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
}

@media (max-width: 992px) {
  .news-grid {
    /* Em telas de tablet, a grade passa a ter 2 colunas */
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-grid {
    /* Em telas de celular, a grade passa a ter 1 coluna */
    grid-template-columns: 1fr;
  }
}