.wp-block-evne-table-of-contents {
    margin-top: 80px;
    margin-block-start: 80px!important;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

.toc-title {
    font-family: Inter, sans-serif;
    color: #696e7c;
    font-size: clamp(14.082px, 0.88rem + ((1vw - 3.2px) * 0.455), 21px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.21;
    text-transform: uppercase;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
    flex-basis: 65%;
}

.toc-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

/* Ensure hidden items are properly hidden by default */
.toc-item[style*="display: none"] {
    display: none !important;
}

.toc-item:last-child {
    margin-bottom: 0;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    font-family: Antonio;
    font-size: 32px;
    font-weight: 700;
    line-height: 39.68px;
    text-align: left;
    color: #ACAFB9 !important;
    transition: all 0.3s ease;
    width: 100%;
}

.toc-link:hover {
    color: #050505 !important;
}

.toc-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ACAFB9;
    color: #17181C;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.toc-link:hover .toc-number {
    background-color: #E13453;
    color: #ffffff;
}

.toc-link.active .toc-number {
    background-color: #E13453;
    color: #ffffff;
}

.toc-text {
    flex: 1;
    word-wrap: break-word;
}

.toc-collapse-btn {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.toc-collapse-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #ACAFB9 !important;
    font-family: Antonio;
    font-size: 32px;
    font-weight: 700;
    line-height: 39.68px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.toc-collapse-link:hover {
    color: #050505 !important;
}

.toc-collapse-link .toc-number {
    background-color: #ACAFB9;
    color: #17181C;
}

.toc-collapse-link:hover .toc-number {
    background-color: #E13453;
    color: #ffffff;
}

/* Animation for expanding items */
.toc-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.toc-item[style*="display: none"] {
    opacity: 0;
    transform: translateY(-10px);
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .wp-block-evne-table-of-contents {
        margin-top: 80px;
        flex-direction: column;
    }
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Ensure proper scroll offset for fixed headers */
html {
    scroll-padding-top: 120px; /* Adjust based on your header height */
}
.toc-link {
    color: #ACAFB9 !important;
}
