/* =========================================
   Estilos para o Índice (Table of Contents)
   ========================================= */

.table-of-contents {
    background: linear-gradient(135deg, #fdfdfd, #f5f6f7);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.table-of-contents:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.table-of-contents h4 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ícone decorativo */
.table-of-contents h4::before {
    content: "📘";
    font-size: 1.2rem;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.65rem;
    position: relative;
    padding-left: 1rem;
}

/* Marcador estilizado */
.table-of-contents li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #09B665;
    font-weight: bold;
}

.table-of-contents li:last-child {
    margin-bottom: 0;
}

.table-of-contents a {
    color: #131c26;
    font-size: 0.96rem;
    text-decoration: none;
    font-style: italic; 
    transition: color 0.25s ease, padding-left 0.25s ease;
}

/* Subníveis */
.table-of-contents .toc-level-2 {
    padding-left: 1.5rem;
    margin-top: 0.4rem;
}

/* Marcadores menores para subníveis */
.table-of-contents .toc-level-2 li::before {
    content: "›";
    color: #7aa7d9;
    font-size: 0.9rem;
}

.table-of-contents a:hover {
    color: #09B665 !important;
    text-decoration: underline;
    padding-left: 2px;
    font-style: italic; /* mantém o estilo no hover */
}

