
/* ======== RESET E BASE GERAL ======== */
* {
    box-sizing: border-box;
}
html, body {
    font-family: 'Times New Roman', serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #222;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ======== CABEÇALHO E NAVEGAÇÃO ======== */
header {
    background-color: #fff;
    border-bottom: 3px solid #000;
    padding: 1.5em 0;
    text-align: center;
    position: relative;
}
header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
    color: #000;
    letter-spacing: -1px;
    text-transform: uppercase;
}
header h1 img {
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

header p {
    font-size: 1.1em;
    color: #555;
    margin-top: 5px;
    font-style: italic;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: #000;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}
header nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}
header nav ul li a {
    color: #222;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: color 0.3s ease;
}
header nav ul li a:hover {
    color: #0056b3;
}

/* ======== CONTAINER ======== */
.container {
    width: 85%;
    max-width: 1200px;
    margin: 30px auto;
    background-color: white;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

/* ======== ARTIGO ======== */
.news-article h2 {
    font-size: 2.8em;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.2;
    text-align: center;
}

.news-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 25px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
    text-align: center;
}
.news-meta span {
    margin-right: 20px;
}
.news-meta a {
    color: #0056b3;
    text-decoration: none;
}
.news-meta a:hover {
    text-decoration: underline;
}

.news-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-body p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    text-align: justify;
    line-height: 1.8;
}
.news-body strong {
    color: #000;
}
.news-body blockquote {
    background-color: #f9f9f9;
    border-left: 5px solid #0056b3;
    margin: 1.5em 0;
    padding: 1em 1.5em;
    font-style: italic;
    color: #444;
    line-height: 1.6;
}
.news-body blockquote p {
    margin-bottom: 0;
}
.news-body figure {
    margin: 2em auto;
    max-width: 80%;
    text-align: center;
}
.news-body figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    margin: 0 auto 10px auto; /* Centraliza a imagem horizontalmente */
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.news-body figcaption {
    font-size: 0.85em;
    color: #777;
    font-style: italic;
}

/* ======== RODAPÉ ======== */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 2em 0;
    margin-top: 40px;
    font-size: 0.9em;
    border-top: 5px solid #000;
}
footer p {
    margin-bottom: 10px;
}
footer a {
    color: #bbb;
    text-decoration: none;
    margin: 0 10px;
}
footer a:hover {
    text-decoration: underline;
    color: #fff;
}

/* ======== FEATURED ARTICLE ======== */
.featured-article {
    margin-bottom: 40px;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}
.featured-article img {
    width: 40%;
    height: auto;
    display: block;
    object-fit: cover;
    border: 1px solid #eee;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}
.featured-content {
    flex: 1;
}
.featured-article h2 {
    font-size: 2.5em;
    color: #000;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
}
.featured-article h2 a {
    color: #000;
    text-decoration: none;
}
.featured-article h2 a:hover {
    text-decoration: underline;
}
.featured-article p {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 15px;
}
.featured-article a {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}
.featured-article a:hover {
    text-decoration: underline;
}

/* ======== SMALL ARTICLES ======== */
.small-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.small-article {
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #fefefe;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.small-article:hover {
    transform: translateY(-5px);
}
.small-article h3 {
    font-size: 1.6em;
    color: #000;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}
.small-article h3 a {
    color: #000;
    text-decoration: none;
}
.small-article h3 a:hover {
    text-decoration: underline;
}
.small-article p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
}
.small-article a {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}
.small-article a:hover {
    text-decoration: underline;
}

/* Adiciona margem superior a small-articles quando vem depois de small-articles */
.small-articles + .small-articles {
    margin-top: 20px; /* Ajuste este valor conforme a necessidade de espaçamento */
}


/* Adiciona margem superior a featured-article quando vem depois de small-articles */
.small-articles + .featured-article {
    margin-top: 40px; /* Ajuste este valor conforme a necessidade de espaçamento */
}

/* ======== LINKS VISITADOS ======== */
a:visited {
    color: #444;
    text-decoration: none;
}
a:visited:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* ======== RESPONSIVO ======== */
@media (max-width: 900px) {
    .news-article h2 {
        font-size: 2.2em;
    }
    .news-image {
        width: 90%;
    }
    .news-body figure {
        max-width: 95%;
    }
    .featured-article {
        flex-direction: column;
        align-items: center;
    }
    .featured-article img {
        width: 100%;
        margin-bottom: 20px;
    }
    .featured-article h2 {
        font-size: 2em;
    }
    .small-articles {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8em;
    }
    header p {
        margin-left: 20px;
        margin-right: 20px;
    }
    .menu-toggle {
        display: block;
    }
    header nav {
        position: absolute;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        display: none;
        z-index: 999;
        padding-top: 80px;
    }
    header nav.active {
        display: block;
    }
    header nav ul {
        flex-direction: column;
        gap: 15px;
        border-top: none;
        border-bottom: none;
        padding: 0 20px;
        align-items: flex-start;
    }
    header nav ul li a {
        font-size: 1.1em;
        display: block;
        padding: 5px 0;
    }
    .container {
        width: 95%;
        padding: 15px;
    }
    .news-article h2 {
        font-size: 1.8em;
    }
    .news-body p {
        font-size: 1em;
    }
}
/* ======== SEÇÕES DE CATEGORIA ======== */
.category-header h2 {
    font-size: 2.5em;
    color: #000;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    text-align: center;
}

.category-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.category-article {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-article h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.category-article h3 a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.category-article h3 a:hover {
    color: #0056b3;
}

.category-article p {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.category-article .read-more {
    display: inline-block;
    background-color: #000;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.category-article .read-more:hover {
    background-color: #0056b3;
}

/* ======== RESPONSIVO - CATEGORIAS ======== */
@media (max-width: 768px) {
    .category-articles {
        grid-template-columns: 1fr;
    }
    .category-header h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .category-article h3 {
        font-size: 1.3em;
    }
    .category-article p {
        font-size: 0.9em;
    }
}