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

:root {
    --primary-color: #1351b4; /* Azul Gov */
    --text-color: #333;
    --bg-color: #f4f7fa;
    --white: #fff;
    --link-color: #0c326f;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header */
.site-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

/* Layout Principal */
.container {
    max-width: 1100px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 partes conteúdo, 1 parte sidebar */
    gap: 30px;
    padding: 0 20px;
}

/* Artigo */
.content article {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-header .category {
    background: #e3effd;
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

h1 {
    font-size: 2rem;
    margin: 15px 0;
    color: #222;
}

h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--link-color);
    font-size: 1.6rem;
}

h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    min-height: 1.6em;
}

/* Listas e Passos */
.steps-list {
    margin: 20px 0 20px 20px;
}

.steps-list li {
    margin-bottom: 10px;
    padding-left: 10px;
}

/* Caixas Especiais */
.toc-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    min-height: 180px;
}

.toc-box ul {
    list-style: none;
    margin-top: 10px;
}

.toc-box a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

.warning-box {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
}

.cta-box {
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.cta-box h3 { color: white; margin-top: 0; }

.btn {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 10px;
}

/* Placeholders de Anúncios e Imagens */
.ad-slot {
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px; /* Altura típica de banner */
    margin: 30px 0;
    border: 1px dashed #555;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
}

.image-placeholder {
    background-color: #555;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: 500;
}

/* Sidebar */
.sidebar .widget {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-box {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.related-posts li {
    list-style: none;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.related-posts a {
    text-decoration: none;
    color: var(--text-color);
}

.related-posts a:hover {
    color: var(--primary-color);
}

.ad-square {
    height: 250px; /* Altura de anúncio quadrado */
}

/* Footer */
footer {
    background: #222;
    color: #bbb;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

.legal a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
}

footer small {
    color: #bbb;
    font-size: 0.8rem;
}

/* FAQ Section */
.faq-section {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.faq-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--link-color);
}

.faq-section details {
    background: white;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.faq-section details[open] {
    border-color: var(--primary-color);
}

.faq-section summary {
    font-size: 1.1rem;
    color: var(--link-color);
    cursor: pointer;
    user-select: none;
}

.faq-section summary:hover {
    color: var(--primary-color);
}

.faq-section details p {
    margin-top: 15px;
    margin-bottom: 0;
    line-height: 1.8;
}

.faq-section em {
    color: var(--primary-color);
    font-style: normal;
    font-weight: 500;
}

/* Responsividade (Mobile) */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr; /* Vira uma coluna só */
    }

    .header-container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
    }

    .content article {
        padding: 20px;
    }

    .faq-section {
        padding: 20px;
    }

    .faq-section details {
        padding: 15px;
    }
}