.noticias-recentes {
    padding: 2px 20px;
    background-color: #f9f9f9;
}

.noticias-recentes h2 {
    text-transform: uppercase;
    font-size: 24px;
    color: var(--roxo-principal);
    margin-bottom: 30px;
    border-left: 5px solid var(--roxo-medio);
    padding-left: 10px;
}

.noticias-container {
    max-width: 1200px;
    margin: 0 auto;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.noticia-card {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    padding-bottom: 15px; /* Apenas inferior, sem laterais */
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Efeito de hover nas notícias */
.noticia-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(101, 58, 153, 0.6); /* tom roxo translúcido */
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.noticia-card:hover .overlay {
    opacity: 1;
}

.overlay .veja-mais {
    background-color: #fff;
    color: var(--roxo-principal);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.overlay .veja-mais:hover {
    transform: scale(1.05);
}

.noticia-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.noticia-card h3 {
    font-size: 1.2rem;
    margin: 15px 15px 10px;
    color: #333;
}

.noticia-card p {
    font-size: 0.95rem;
    margin: 0 15px 10px;
    color: #555;
}

.noticia-card small {
    font-size: 0.8rem;
    margin: 0 15px 10px;
    color: #888;
    display: block;
}

/* Botão para todas as notícias */
.ver-todas-noticias {
    text-align: center;
    margin-top: 30px;
}

.btn-ver-todas {
    background-color: var(--roxo-principal);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.btn-ver-todas:hover {
    background-color: var(--roxo-medio);
    transform: translateY(-2px);
}

