/* 1. Variáveis e Reset */
:root {
    --primary-color: #0044cc;
    --text-color: #1a1a1a;
    --text-light: #555;
    --bg-soft: #f8faff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

.novo-blog-pavao {
    background-color: #fff;
    font-family: var(--font-body);
    color: var(--text-color);
    padding: 60px 0;
    line-height: 1.8;
}

/* 2. Estrutura Principal */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
}

.content-area {
    max-width: 800px;
}

/* 3. Cabeçalho do Post */
.entry-header { margin-bottom: 40px; }

.post-categories a {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-decoration: none;
}

.entry-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.entry-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* 4. Imagem e Conteúdo */
.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
}

.entry-content { font-size: 1.2rem; }
.entry-content p { margin-bottom: 25px; }

/* Títulos Estáticos (Sem Sticky) */
.entry-content h2 { 
    font-size: 2rem; 
    margin: 50px 0 20px; 
    font-weight: 800; 
    color: #000;
    border-left: 5px solid var(--primary-color);
    padding-left: 20px;
}

.entry-content h3 { font-size: 1.6rem; margin: 40px 0 15px; font-weight: 700; }

/* 5. Sidebar Estratégica (Sticky apenas aqui) */
.sidebar-pavao {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-soft);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sidebar-post-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.sidebar-post-thumb img {
    border-radius: 6px;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.sidebar-post-info a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Responsivo */
@media (max-width: 1024px) {
    .blog-container { grid-template-columns: 1fr; }
    .content-area { max-width: 100%; }
}


/* Container do Resumo */
.pavao-toc {
    background: #fdfdfd;
    border: 1px solid #e1e8f0;
    border-left: 5px solid var(--primary-color);
    padding: 30px;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.toc-title {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Lista de Links - O segredo está aqui */
#toc-list {
    display: flex;
    flex-direction: column; /* Força um embaixo do outro */
    gap: 12px;
}

#toc-list a {
    display: block; /* Ocupa a linha toda */
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s ease;
}

#toc-list a:hover {
    color: var(--accent-color);
    transform: translateX(5px); /* Efeito de deslize ao passar o mouse */
}

/* Recuos por Hierarquia (Heading Tags) */
#toc-list a.toc-h3 { padding-left: 20px; font-size: 0.95rem; color: #555; }
#toc-list a.toc-h4 { padding-left: 40px; font-size: 0.9rem; color: #777; }
#toc-list a.toc-h5 { padding-left: 60px; font-size: 0.85rem; color: #999; }