/* --- Grid System --- */
.news-grid {
    display: grid;
    gap: 30px; /* Espaço entre os cards */
    grid-template-columns: 1fr; /* Padrão Mobile: 1 coluna */
}

/* Tablet (acima de 768px): 2 Colunas */
@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PC (acima de 1024px): 3 Colunas */
@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Estilo do Card --- */
.news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px; /* Cantos arredondados */
    overflow: hidden; /* Garante que a imagem não saia da borda */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Para alinhar o botão no final se precisar */
}

/* Efeito Hover no Card */
.news-card:hover {
    transform: translateY(-5px); /* Sobe um pouquinho */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Imagem --- */
.news-thumb-wrapper {
    display: block;
    width: 100%;
    height: 250px; /* Altura fixa para alinhar todos os cards */
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* AQUI É O SEGREDO: Corta a imagem para preencher sem esticar */
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05); /* Zoom suave na imagem ao passar o mouse */
}

/* Placeholder cinza se não tiver foto */
.news-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* --- Conteúdo --- */
.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 1.25rem;
    margin: 0 0 10px;
    line-height: 1.4;
}

.news-card-title a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
}

.news-card-title a:hover {
    color: #0073aa; /* Cor de destaque */
}

.news-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1; /* Empurra o botão para o fundo se os textos tiverem tamanhos diferentes */
}

/* --- Botão --- */
.news-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    align-self: flex-start;
    transition: all 0.3s;
}

.news-btn:hover {
    background-color: #333;
    color: #fff;
}

.btn-voltar {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.btn-voltar:hover {
    color: #000;
    text-decoration: underline;
}