html {
    scroll-behavior: smooth;
}

.noticia_description h2[id],
.noticia_description h3[id] {
    scroll-margin-top: 120px;
}

.noticia_description h2[id]::before,
.noticia_description h3[id]::before {
    content: "";
    display: block;
    height: 120px;
    margin-top: -120px;
    visibility: hidden;
}

.toc-block {
    border: 1px solid #ffd4a8;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff7ef 0%, #fff 74%);
    box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.35);
    margin: 25px 0;
}

.toc-block .panel-heading {
    border-radius: 8px 8px 0 0;
    padding: 12px 18px;
    background: linear-gradient(90deg, #ff7a18 0%, #ff9933 100%);
    color: #fff;
    font-size: 16px;
    letter-spacing: 0.4px;
}

.toc-block .panel-heading strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.toc-block .panel-heading strong:before {
    content: "\f03a";
    font-family: "FontAwesome";
    font-weight: normal;
}

.toc-block .panel-body {
    padding: 14px 18px 18px;
}

.toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.toc-item {
    position: relative;
    padding-left: 24px;
    line-height: 1.5;
}

.toc-item:before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff7a18;
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.18);
}

.toc-item.toc-level-h3 {
    padding-left: 36px;
}

.toc-item.toc-level-h3:before {
    width: 8px;
    height: 8px;
    top: 11px;
    background: #ffa347;
    box-shadow: 0 0 0 2px rgba(255, 163, 71, 0.25);
}

.toc-link {
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    color: #4a3e32;
    text-decoration: none;
    transition: all 0.2s ease;
}

.toc-link:hover,
.toc-link:focus {
    background: rgba(255, 122, 24, 0.12);
    color: #ff7a18;
    text-decoration: none;
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .toc-block {
        margin: 20px 0;
    }

    .toc-link {
        padding: 8px 12px;
    }
}
