/* Стили для содержания (Table of Contents) */
.bdct-table-of-contents {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Убираем все стандартные маркеры списка */
.bdct-table-of-contents ul,
.bdct-table-of-contents ol {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    padding-inline-start: 0 !important;
    -webkit-padding-start: 0 !important;
    margin-left: 0 !important;
    margin-inline-start: 0 !important;
}

.bdct-toc-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #212529;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.bdct-toc-list {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0;
    -webkit-padding-start: 0 !important;
    padding-inline-start: 0 !important;
}

.bdct-toc-list li {
    margin: 8px 0;
    padding: 0 !important;
    padding-left: 0 !important;
    padding-inline-start: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
    display: flex;
    align-items: baseline;
    position: relative;
}

.bdct-toc-list li::marker {
    display: none !important;
    content: "" !important;
    width: 0 !important;
    height: 0 !important;
    font-size: 0 !important;
}

.bdct-toc-list li::before {
    content: "▸";
    color: #007bff;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
    line-height: 1.6;
    display: inline-block;
    vertical-align: baseline;
    position: relative;
    top: 0.1em;
}

.bdct-toc-list a {
    color: #495057;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.6;
    transition: all 0.3s ease;
    display: inline-block;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
    vertical-align: baseline;
}

.bdct-toc-list a:hover {
    color: #007bff;
    padding-left: 5px;
    text-decoration: underline;
}

/* Стили для динамических тегов */
.bdct-dynamic-tags {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #e9ecef;
}

.bdct-tags-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 25px 0;
    color: #212529;
    text-align: center;
}

.bdct-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.bdct-tag-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
    max-width: 100%;
}

.bdct-tag-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    text-decoration: none;
    color: #ffffff !important;
}

.bdct-tag-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .bdct-table-of-contents {
        padding: 15px;
        margin: 20px 0;
    }
    
    .bdct-toc-title {
        font-size: 20px;
    }
    
    .bdct-toc-list a {
        font-size: 14px;
    }
    
    .bdct-tags-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .bdct-tags-container {
        gap: 10px;
    }
    
    .bdct-tag-button {
        padding: 10px 18px;
        font-size: 13px;
        flex: 1 1 calc(50% - 10px);
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .bdct-tag-button {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Плавная прокрутка к якорям */
html {
    scroll-behavior: smooth;
}

/* Стили для H2 с якорями при наведении */
h2[id^="heading-"] {
    position: relative;
    padding-top: 10px;
    margin-top: 20px;
}

h2[id^="heading-"]:hover::before {
    content: "🔗";
    position: absolute;
    left: -30px;
    opacity: 0.5;
    font-size: 18px;
}




