.toc-component {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    width: 100%;
}

.toc-component h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.75rem;
}

.toc-link {
    color: #212529;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
    padding-left: 1.5rem;
}

.toc-link:before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.toc-link:hover {
    color: #000000;
    transform: translateX(5px);
}

.toc-link:hover:before {
    opacity: 1;
}

/* Different indent levels for h3 and h4 */
.toc-h3 {
    padding-left: 1.5rem;
}

.toc-h3 .toc-link {
    font-size: 0.9rem;
    font-weight: 500;
}

.toc-h4 {
    padding-left: 3rem;
}

.toc-h4 .toc-link {
    font-size: 0.85rem;
    font-weight: 400;
    color: #555;
}

@media (max-width: 768px) {
    .toc-component {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .toc-component h3 {
        font-size: 1.1rem;
    }

    .toc-link {
        font-size: 0.9rem;
    }

    .toc-h3 .toc-link {
        font-size: 0.85rem;
    }

    .toc-h4 .toc-link {
        font-size: 0.8rem;
    }
}
