/* ======================================== */
/* Layout Principal da Página de Notícias    */
/* ======================================== */
.container-pagina-noticias {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 320px; /* Coluna principal flexível, sidebar com 320px */
    gap: 30px; /* Espaço entre as colunas */
}

.coluna-principal h1 {
    font-size: 2.5rem;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 30px;
}

/* ======================================== */
/* Estilo para Cada Item da Lista de Notícias */
/* ======================================== */
.noticia-list-item {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 25px;
    margin-bottom: 25px;
}
.noticia-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.noticia-list-imagem {
    flex-shrink: 0;
    width: 250px;
    height: 160px;
}
.noticia-list-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.noticia-list-texto {
    flex: 1;
}

.noticia-list-texto .categoria-tag {
    display: inline-block;
    background-color: #003366;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.noticia-list-titulo a {
    text-decoration: none;
}
.noticia-list-titulo h2 {
    font-size: 1.5rem;
    color: #003366;
    margin: 0 0 10px 0;
    line-height: 1.3;
    transition: color 0.2s;
}
.noticia-list-titulo a:hover h2 {
    color: #0056b3;
}
.noticia-list-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}

.noticia-list-resumo {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

/* ======================================== */
/* Sidebar de Filtros                       */
/* ======================================== */
.sidebar-noticias .sidebar-widget {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}
.sidebar-pesquisa {
    display: flex;
}
.sidebar-pesquisa input[type="text"] {
    flex-grow: 1;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 3px 0 0 3px;
}
.sidebar-pesquisa button {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
}
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.widget-header h3 {
    margin: 0;
    font-size: 1.2rem;
}
.limpar-filtro {
    font-size: 0.8rem;
    text-decoration: none;
    color: #007bff;
}
.lista-categorias {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lista-categorias li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}
.lista-categorias li:last-child a {
    border-bottom: none;
}
.lista-categorias li a:hover {
    background-color: #e9ecef;
}

/* ======================================== */
/* Responsividade                           */
/* ======================================== */
@media (max-width: 992px) {
    .container-pagina-noticias {
        grid-template-columns: 1fr; /* Uma coluna em telas médias */
    }
}
@media (max-width: 600px) {
    .noticia-list-item {
        flex-direction: column-reverse; /* Imagem acima do texto em telas pequenas */
    }
    .noticia-list-imagem {
        width: 100%;
        height: 200px;
    }
}