/* ============================================ */
/* RESET E CONFIGURAÇÕES GLOBAIS                */
/* ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================ */
/* CONTAINER                                    */
/* ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================ */
/* TIPOGRAFIA                                   */
/* ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #0a1f3d;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    color: #333;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a1f3d;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #0a1f3d;
    display: inline-block;
}

/* ============================================ */
/* HEADER                                       */
/* ============================================ */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    max-height: 40px; /* Antes era 40px - aumento de 50% */
    width: auto;
}


/* Menu de navegação */
.main-nav .nav-list {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav .nav-list li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.main-nav .nav-list li a:hover,
.main-nav .nav-list li a.active {
    border-bottom-color: #0a1f3d;
    color: #0a1f3d;
}

/* Botão menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1a1a1a;
    margin: 5px 0;
    transition: all 0.3s;
}

/* Caixa de pesquisa */
.search-box form {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
}

.search-box input {
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    background: transparent;
    outline: none;
    width: 180px;
}

.search-box button {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}

.search-box button:hover {
    color: #0a1f3d;
}

/* ============================================ */
/* BREADCRUMB                                   */
/* ============================================ */
.breadcrumb-wrapper {
    background: #f9fafb;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 0.5rem;
    color: #9ca3af;
}

.breadcrumb a {
    color: #0a1f3d;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================ */
/* HERO / MANCHETE PRINCIPAL                     */
/* ============================================ */
.hero-section {
    padding: 2rem 0 1rem;
}

.hero-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.hero-content {
    padding: 2rem;
}

.hero-content .category-tag {
    display: inline-block;
    background: #0a1f3d;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #0a1f3d;
}

.hero-excerpt {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #0a1f3d;
    color: #ffffff;
}

.btn-primary:hover {
    background: #153e7a;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #0a1f3d;
    border: 2px solid #0a1f3d;
}

.btn-secondary:hover {
    background: #0a1f3d;
    color: #ffffff;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ============================================ */
/* CONTEÚDO PRINCIPAL + SIDEBAR                 */
/* ============================================ */
.main-content {
    padding: 2rem 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

/* ============================================ */
/* GRID DE CARDS (DESTAQUES)                    */
/* ============================================ */
.featured-grid {
    margin-bottom: 2.5rem;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
}

.card-body .category-tag {
    display: inline-block;
    background: #e5e7eb;
    color: #0a1f3d;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-body h3 a {
    color: #0a1f3d;
}

.card-body h3 a:hover {
    color: #153e7a;
}

.card-excerpt {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.read-more {
    font-weight: 600;
    color: #0a1f3d;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* ============================================ */
/* LISTA DE ARTIGOS                             */
/* ============================================ */
.latest-articles {
    margin-top: 2rem;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.list-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.list-item:last-child {
    border-bottom: none;
}

.list-image {
    flex: 0 0 180px;
}

.list-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.list-content .category-tag {
    display: inline-block;
    background: #e5e7eb;
    color: #0a1f3d;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.list-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.list-content h3 a {
    color: #0a1f3d;
}

.list-content h3 a:hover {
    color: #153e7a;
}

.list-excerpt {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.list-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.view-all {
    margin-top: 1.5rem;
    text-align: center;
}

/* ============================================ */
/* SIDEBAR                                      */
/* ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a1f3d;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0a1f3d;
}

.update-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.update-list li:last-child {
    border-bottom: none;
}

.update-text {
    flex: 1;
}

.update-text a {
    color: #1a1a1a;
}

.update-text a:hover {
    color: #0a1f3d;
}

.update-date {
    color: #6b7280;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Correção para mobile */
@media (max-width: 480px) {
    .update-list li {
        flex-wrap: wrap;
    }
    .update-date {
        margin-left: auto;
    }
}

.popular-list {
    counter-reset: popular-counter;
}

.popular-list li {
    counter-increment: popular-counter;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.popular-list li::before {
    content: counter(popular-counter) ". ";
    font-weight: 700;
    color: #0a1f3d;
    margin-right: 0.25rem;
}

.popular-list li:last-child {
    border-bottom: none;
}

.popular-list a {
    color: #1a1a1a;
}

.popular-list a:hover {
    color: #0a1f3d;
}

/* ============================================ */
/* FAQ SECTION                                  */
/* ============================================ */
.faq-section {
    background: #f9fafb;
    padding: 3rem 0;
    margin: 2rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.faq-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #0a1f3d;
}

.faq-item p {
    font-size: 0.9rem;
    color: #4b5563;
}

.faq-cta {
    text-align: center;
}

/* ============================================ */
/* CTA SECTION                                  */
/* ============================================ */
.cta-section {
    background: #0a1f3d;
    color: #ffffff;
    padding: 3rem 0;
    text-align: center;
}

.cta-content h2 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #d1d5db;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.cta-content .btn-primary {
    background: #ffffff;
    color: #0a1f3d;
}

.cta-content .btn-primary:hover {
    background: #e5e7eb;
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
.site-footer {
    background: #0a1f3d;
    color: #d1d5db;
    padding: 3rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffffff;
}

.footer-col p {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1f3a6b;
    border-radius: 50%;
    color: #ffffff;
    transition: background 0.2s;
}

.social-links a:hover {
    background: #153e7a;
}

.footer-links li {
    padding: 0.4rem 0;
}

.footer-links a {
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    background: #06152b;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #1f3a6b;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* ============================================ */
/* RESPONSIVIDADE                                */
/* ============================================ */
@media (max-width: 1024px) {
    .hero-article {
        grid-template-columns: 1fr;
    }
    .hero-image img {
        min-height: 250px;
    }
    .content-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    .main-nav .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #ffffff;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        gap: 0.5rem;
    }
    .main-nav .nav-list.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .search-box {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }
    .search-box input {
        width: 100%;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .grid-cards {
        grid-template-columns: 1fr;
    }
    .list-item {
        flex-direction: column;
    }
    .list-image {
        flex: 0 0 auto;
    }
    .list-image img {
        height: 200px;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1.25rem;
    }
    .hero-content h1 {
        font-size: 1.25rem;
    }
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

.guide-icon {
    vertical-align: middle;
    margin-right: 0.5rem;
    color: #0a1f3d;
    flex-shrink: 0;
}

.guides-list li a {
    display: flex;
    align-items: center;
    color: #1a1a1a;
}

.guides-list li a:hover {
    color: #0a1f3d;
}

/* Menu responsivo - esconder itens em excesso no mobile */
@media (max-width: 768px) {
    .main-nav .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #ffffff;
        position: absolute;
        top: 70px; /* Ajustado para header maior */
        left: 0;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        gap: 0.25rem;
        z-index: 999;
    }
    
    .main-nav .nav-list.active {
        display: flex;
    }
    
    .main-nav .nav-list li {
        width: 100%;
    }
    
    .main-nav .nav-list li a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
    }
    
    .main-nav .nav-list li:last-child a {
        border-bottom: none;
    }
    
    .menu-toggle {
        display: block;
    }
}

/* Ajuste para telas médias (tablet) */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-nav .nav-list {
        gap: 0.75rem;
    }
    
    .main-nav .nav-list li a {
        font-size: 0.8rem;
    }
}
