/* ========================================
   RESET E CONFIGURAÇÕES GERAIS
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    padding-top: 72px;
    min-height: 100vh;
}

/* ========================================
   CABEÇALHO FIXO
   ======================================== */
.cabecalho-blog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 72px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.cabecalho-blog .cabecalho-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* ===== LOGO ===== */
.cabecalho-blog .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.cabecalho-blog .logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

/* ===== NAVEGAÇÃO ===== */
.cabecalho-blog .nav-principal {
    display: flex;
    align-items: center;
}

.cabecalho-blog .nav-lista {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.cabecalho-blog .nav-item {
    position: relative;
}

.cabecalho-blog .nav-link {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.cabecalho-blog .nav-link:hover {
    color: #0f172a;
    background: rgba(55, 168, 255, 0.08);
}

.cabecalho-blog .nav-link.ativo {
    color: #37A8FF;
    background: rgba(55, 168, 255, 0.1);
}

/* ===== BOTÃO ACESSAR ===== */
.cabecalho-blog .cabecalho-acao {
    display: flex;
    align-items: center;
}

.cabecalho-blog .btn-acessar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #37A8FF 0%, #115FFF 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(55, 168, 255, 0.3);
}

.cabecalho-blog .btn-acessar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 168, 255, 0.4);
}

.cabecalho-blog .btn-acessar i {
    font-size: 14px;
}

/* ===== MENU MOBILE ===== */
.cabecalho-blog .menu-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #0f172a;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.cabecalho-blog .menu-mobile-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-mobile {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding: 20px 0;
}

.menu-mobile.aberto {
    right: 0;
}

.menu-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 20px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.menu-mobile-header .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.menu-mobile-header .logo-img {
    height: 32px;
    width: auto;
    border-radius: 6px;
}

.menu-mobile-fechar {
    background: none;
    border: none;
    font-size: 24px;
    color: #475569;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.menu-mobile-fechar:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-mobile-lista {
    list-style: none;
    padding: 0 20px;
    margin: 0;
}

.menu-mobile-lista li {
    border-bottom: 1px solid #f1f3f5;
}

.menu-mobile-lista li:last-child {
    border-bottom: none;
}

.menu-mobile-lista a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.menu-mobile-lista a:hover {
    color: #37A8FF;
}

.menu-mobile-lista a.ativo {
    color: #37A8FF;
}

.menu-mobile-destaque {
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.menu-mobile-destaque a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #37A8FF 0%, #115FFF 100%);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    width: 100%;
    justify-content: center;
}

.menu-mobile-destaque a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(55, 168, 255, 0.4);
}

.menu-mobile-destaque a i {
    font-size: 14px;
}

.overlay-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-mobile.ativo {
    display: block;
    opacity: 1;
}

/* ========================================
   CONTEÚDO PRINCIPAL
   ======================================== */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ===== HEADER DO BLOG ===== */
.blog-header-content {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header-content h1 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.blog-header-content h1 i {
    color: #37A8FF;
    margin-right: 10px;
}

.blog-header-content p {
    font-size: 18px;
    color: #64748b;
    font-weight: 400;
}

/* ===== GRADE DE ARTIGOS ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* ===== CARD DO ARTIGO ===== */
.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== IMAGEM ===== */
.article-image {
    width: 100%;
    height: 220px;
    background: #e9ecef;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #adb5bd;
    font-size: 48px;
}

.article-image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== CONTEÚDO ===== */
.article-content {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #7c8088;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.article-meta .categoria {
    background: #e3f2fd;
    color: #37A8FF;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.article-meta .data {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta .data i {
    font-size: 12px;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #37A8FF;
}

.article-excerpt {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 15px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 10px;
}

.article-author {
    font-size: 13px;
    color: #7c8088;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-author i {
    color: #37A8FF;
}

.btn-ler-mais {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #37A8FF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-ler-mais:hover {
    background: #1e8cd9;
    color: #fff;
}

.btn-ler-mais i {
    font-size: 12px;
}

/* ========================================
   PAGINAÇÃO
   ======================================== */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fff;
}

.pagination li a:hover {
    background: #37A8FF;
    color: #fff;
    border-color: #37A8FF;
}

.pagination li.ativo span {
    background: #37A8FF;
    color: #fff;
    border-color: #37A8FF;
}

.pagination li.desabilitado span {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   SEM ARTIGOS
   ======================================== */
.sem-artigos {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.sem-artigos i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
    display: block;
}

.sem-artigos h2 {
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 10px;
}

.sem-artigos p {
    color: #64748b;
    font-size: 16px;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 1024px) {
    .cabecalho-blog .nav-principal {
        display: none;
    }
    
    .cabecalho-blog .cabecalho-acao {
        display: none;
    }
    
    .cabecalho-blog .menu-mobile-toggle {
        display: block;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .blog-header-content h1 {
        font-size: 28px;
    }
    
    .blog-header-content p {
        font-size: 16px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-image {
        height: 200px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .article-excerpt {
        font-size: 14px;
    }
    
    .pagination li a,
    .pagination li span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .cabecalho-blog .logo-text {
        font-size: 18px;
    }
    
    .cabecalho-blog .logo-img {
        height: 32px;
    }
    
    .menu-mobile {
        width: 100%;
        right: -100%;
    }
    
    .menu-mobile.aberto {
        right: 0;
    }
    
    .blog-container {
        padding: 20px 15px;
    }
    
    .blog-header-content h1 {
        font-size: 24px;
    }
    
    .article-image {
        height: 180px;
    }
    
    .article-content {
        padding: 16px 18px 20px;
    }
    
    .article-meta {
        font-size: 12px;
        gap: 8px;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-ler-mais {
        width: 100%;
        justify-content: center;
    }
}