/* Custom Table of Contents CSS */

.custom-toc-elementor-widget {
    margin-bottom: 20px;
}

.custom-toc-elementor-widget .custom-toc-elementor-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.custom-toc-elementor-widget .custom-toc-elementor-list-wrapper {
    padding: 15px;
    border-radius: 5px;
}

.custom-toc-elementor-widget .custom-toc-elementor-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-toc-elementor-widget .custom-toc-elementor-list li {
    padding: 5px 0;
}

.custom-toc-elementor-widget .custom-toc-elementor-list a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-toc-elementor-widget .custom-toc-elementor-list a:hover {
    text-decoration: underline;
}

/* Hierarchical indentation */
.custom-toc-elementor-widget .custom-toc-elementor-list .toc-list-item-h1 {
    margin-left: 0;
}

.custom-toc-elementor-widget .custom-toc-elementor-list .toc-list-item-h2 {
    margin-left: 10px;
}

.custom-toc-elementor-widget .custom-toc-elementor-list .toc-list-item-h3 {
    margin-left: 20px;
}

.custom-toc-elementor-widget .custom-toc-elementor-list .toc-list-item-h4 {
    margin-left: 30px;
}

.custom-toc-elementor-widget .custom-toc-elementor-list .toc-list-item-h5 {
    margin-left: 40px;
}

.custom-toc-elementor-widget .custom-toc-elementor-list .toc-list-item-h6 {
    margin-left: 50px;
}

/* Marker view - numbers */
.custom-toc-elementor-widget .custom-toc-elementor-list-numbered {
    counter-reset: item;
}

.custom-toc-elementor-widget .custom-toc-elementor-list-numbered li {
    counter-increment: item;
}

.custom-toc-elementor-widget .custom-toc-elementor-list-numbered li a:before {
    content: counters(item, ".") ". ";
    margin-right: 5px;
}

/* Marker view - bullets */
.custom-toc-elementor-widget .custom-toc-elementor-list-bullets li a:before {
    content: "•";
    margin-right: 8px;
}

/* Custom class styles - These will be overridden by user-defined styles */
.custom-toc-elementor-widget .custom-toc-elementor-list .toc-list-item-custom {
    /* Default custom class styling */
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Responsive styles */
@media (max-width: 767px) {
    .custom-toc-elementor-widget .custom-toc-elementor-title {
        font-size: 16px;
    }
    
    .custom-toc-elementor-widget .custom-toc-elementor-list-wrapper {
        padding: 10px;
    }
    
    .custom-toc-elementor-widget .custom-toc-elementor-list .toc-list-item-h2 {
        margin-left: 5px;
    }
    
    .custom-toc-elementor-widget .custom-toc-elementor-list .toc-list-item-h3 {
        margin-left: 10px;
    }
    
    .custom-toc-elementor-widget .custom-toc-elementor-list .toc-list-item-h4 {
        margin-left: 15px;
    }
    
    .custom-toc-elementor-widget .custom-toc-elementor-list .toc-list-item-h5 {
        margin-left: 20px;
    }
    
    .custom-toc-elementor-widget .custom-toc-elementor-list .toc-list-item-h6 {
        margin-left: 25px;
    }
} 