/* ==========================================================================
   Página de Detalhe da Notícia (new.css) - Estilo Próprio e Dedicado
   ========================================================================== */

.article-page-section {
    background-color: var(--colors-canvas-parchment, #f0f2f5) !important;
    padding: 44px 0 88px 0;
    min-height: 85vh;
}

.article-wrapper {
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
}

/* ==========================================================================
   1. Navegacao Superior
   ========================================================================== */

.article-top-nav {
    margin-bottom: 24px;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #111113;
    padding: 9px 18px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--rounded-pill, 9999px);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.article-back-link:hover {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--colors-primary, #0066cc);
}

.article-back-link svg {
    transition: transform 0.25s ease;
}

.article-back-link:hover svg {
    transform: translateX(-3px);
}

/* ==========================================================================
   2. Cabecalho Editorial do Artigo
   ========================================================================== */

.article-header {
    position: static !important;
    top: auto !important;
    height: auto !important;
    min-height: auto !important;
    z-index: auto !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 44px 48px;
    margin-bottom: 24px;
    display: block;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.article-category {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--colors-primary, #0066cc);
}

.article-badge-featured {
    display: inline-block;
    background-color: var(--colors-primary, #0066cc);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: var(--rounded-pill, 9999px);
    padding: 3px 10px;
    line-height: 1.3;
}

.article-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
    font-size: clamp(28px, 3.8vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #111113;
    margin: 0 0 16px 0;
}

.article-lead {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.54;
    color: #555761;
    margin: 0 0 20px 0;
}

/* Tags abaixo da descricao */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    background-color: #f2f3f5;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--rounded-pill, 9999px);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #555761;
    letter-spacing: -0.1px;
    line-height: 1.35;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 13.5px;
    font-weight: 500;
    color: #8e8e93;
}

.article-meta-sep {
    color: #c7c7cc;
    font-weight: 600;
}

.article-author {
    color: #636366;
}

/* ==========================================================================
   3. Imagem de Destaque
   ========================================================================== */

.article-featured-image {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background-color: #eaedf1;
    margin-bottom: 24px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ==========================================================================
   4. Corpo do Artigo (Canvas de Leitura)
   ========================================================================== */

.article-body-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 52px 56px;
    margin-bottom: 32px;
}

.article-content {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
    font-size: 17.5px;
    line-height: 1.8;
    color: #242426;
    letter-spacing: -0.12px;
    word-break: break-word;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content h2 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #111113;
    margin-top: 44px;
    margin-bottom: 16px;
}

.article-content h3 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: #111113;
    margin-top: 36px;
    margin-bottom: 14px;
}

.article-content h4 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #111113;
    margin-top: 28px;
    margin-bottom: 12px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 24px 0;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--colors-primary, #0066cc);
    background-color: #f8f9fa;
    border-radius: 0 14px 14px 0;
    padding: 20px 26px;
    margin: 32px 0;
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    color: #3a3a3c;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 32px 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: block;
}

.article-content a {
    color: var(--colors-primary, #0066cc);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.article-content a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   5. Navegacao Inferior (Proxima Noticia / Voltar)
   ========================================================================== */

.article-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.article-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #111113;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--rounded-pill, 9999px);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.article-btn-secondary:hover {
    border-color: rgba(0, 0, 0, 0.25);
    color: var(--colors-primary, #0066cc);
}

.article-btn-secondary svg {
    transition: transform 0.25s ease;
}

.article-btn-secondary:hover svg {
    transform: translateX(-3px);
}

.article-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background-color: var(--colors-primary, #0066cc);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--rounded-pill, 9999px);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.article-btn-primary:hover {
    background-color: var(--colors-primary-focus, #0071e3);
    color: #ffffff !important;
}

.article-btn-primary svg {
    transition: transform 0.25s ease;
}

.article-btn-primary:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   6. Responsividade Mobile
   ========================================================================== */

@media (max-width: 767.98px) {
    .article-page-section {
        padding: 24px 0 56px 0;
    }

    .article-header {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .article-title {
        font-size: 24px;
        line-height: 1.2;
    }

    .article-lead {
        font-size: 15px;
    }

    .article-featured-image {
        border-radius: 20px;
        margin-bottom: 20px;
    }

    .article-featured-image img {
        max-height: 280px;
    }

    .article-body-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.7;
    }

    .article-bottom-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .article-bottom-actions a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
