/* Base CSS - Estilos essenciais para a estrutura HTML */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

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

/* Acessibilidade */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #007bff;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Header */
header[role="banner"] {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header[role="banner"] .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-identity img {
    border-radius: 50%;
}

.site-title {
    font-size: 1.8em;
    margin: 0;
}

.site-title a {
    text-decoration: none;
    color: #2b6cb0;
}

.site-tagline {
    font-size: 0.9em;
    color: #666;
    margin-left: 10px;
}

/* Navegação principal */
.main-nav {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: #2b6cb0;
}

/* Menu mobile (escondido por padrão, será exibido com CSS/JS) */
.mobile-menu {
    display: none; /* Esconder por padrão, CSS/JS irá controlar */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2b6cb0 0%, #4c7ed9 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-header h2 {
    font-size: 3em;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Ad Space */
.ad-space {
    padding: 30px 0;
    background-color: #f0f0f0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.ad-placeholder {
    background-color: #e9e9e9;
    border: 2px dashed #ccc;
    padding: 50px 20px;
    color: #666;
    font-weight: bold;
    font-size: 1.2em;
}

/* News Section */
.news-section {
    padding: 50px 0;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5em;
    color: #1a365d;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #2b6cb0;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1em;
    color: #555;
    margin-top: 15px;
}

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

.article-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card.featured {
    border-color: #2b6cb0;
    box-shadow: 0 6px 15px rgba(43, 108, 176, 0.2);
}

.article-card .article-header {
    padding: 20px;
}

.article-card .article-meta {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.article-card .article-category {
    background-color: #2b6cb0;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.article-card .article-topic {
    background-color: #e0e0e0;
    color: #555;
    padding: 3px 8px;
    border-radius: 4px;
}

.article-card .article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.article-card .article-title a {
    text-decoration: none;
    color: #1a365d;
    transition: color 0.3s;
}

.article-card .article-title a:hover {
    color: #2b6cb0;
}

.article-card .article-subtitle {
    font-size: 1em;
    color: #555;
}

.article-card .article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.article-card .article-content {
    padding: 20px;
}

.article-card .article-excerpt {
    font-size: 0.95em;
    color: #444;
    margin-bottom: 20px;
}

.article-card .read-more-link {
    display: inline-block;
    background-color: #2b6cb0;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.article-card .read-more-link:hover {
    background-color: #1a4a7a;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #eaf2f8;
    padding: 50px 0;
    text-align: center;
}

.newsletter-form {
    margin-top: 30px;
}

.newsletter-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.newsletter-form .form-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    max-width: 350px;
    font-size: 1em;
}

.newsletter-form .submit-button {
    background-color: #2b6cb0;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.newsletter-form .submit-button:hover {
    background-color: #1a4a7a;
}

/* Footer */
footer[role="contentinfo"] {
    background-color: #1a365d;
    color: white;
    padding: 40px 0;
}

footer[role="contentinfo"] .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-info h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.footer-info p {
    font-size: 0.9em;
    opacity: 0.8;
}

.footer-nav h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #7ed957;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li a {
    text-decoration: none;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
    display: block;
    padding: 5px 0;
}

.footer-nav ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
}

.footer-bottom p {
    font-size: 0.8em;
    opacity: 0.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2b6cb0;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    z-index: 99;
}

.back-to-top:hover {
    background-color: #1a4a7a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header[role="banner"] .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        display: none; /* Esconder navegação principal em mobile */
    }

    .mobile-menu {
        display: block; /* Exibir menu mobile */
        width: 100%;
        margin-top: 15px;
    }

    .mobile-menu summary {
        background-color: #2b6cb0;
        color: white;
        padding: 10px 15px;
        border-radius: 5px;
        cursor: pointer;
        text-align: center;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 10px 0;
        background-color: #f0f0f0;
        border-radius: 5px;
        margin-top: 10px;
    }

    .mobile-menu ul li a {
        display: block;
        padding: 10px 15px;
        color: #333;
        text-decoration: none;
    }

    .mobile-menu ul li a:hover {
        background-color: #e0e0e0;
    }

    .hero-header h2 {
        font-size: 2.2em;
    }

    .hero-description {
        font-size: 1em;
    }

    .section-header h2 {
        font-size: 2em;
    }

    .articles-list {
        grid-template-columns: 1fr;
    }

    .newsletter-form .form-group {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input[type="email"] {
        max-width: 100%;
    }

    footer[role="contentinfo"] .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-nav ul {
        padding: 0;
    }
}


