/* style.css */

body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.news-item {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
    transition: transform 0.3s;
}

.news-item:hover {
    transform: scale(1.02); /* Efeito de zoom ao passar o mouse */
}

.news-title {
    font-size: 1em;
    color: #333;
}

.news-description, .news-data {
    font-size: 0.7em;
    color: #666;
}

.news-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.news-link:hover {
    background-color: #0056b3;
}

/* Estilos específicos para diferentes tamanhos */
.news-item:nth-child(1) {
    grid-column: span 2; /* Ocupa 2 colunas */
}

.news-item:nth-child(2),.news-item:nth-child(4) {
    grid-column: span 1; /* Ocupa 1 coluna */
}

.news-item:nth-child(3),.news-item:nth-child(5) {	
    grid-column: span 1; /* Ocupa 1 coluna */
}
 
.span, .h2{
	font-size:10px;
}
/*
.news-item:nth-child(4) {
    grid-column: span 1; /* Ocupa 1 coluna 
}

.news-item:nth-child(5) {
    grid-column: span 1; /* Ocupa 2 colunas 
}*/

@media (max-width: 578px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}