.content-toc-widget {
    width: 100%;
}

.content-toc-container {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 20px;
}

.content-toc-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.content-toc-image {
    margin-top: 20px;
    margin-right: 10px;
    overflow: hidden;
}

.content-toc-image .toc-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 90%
}

.content-toc-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000;
}

.content-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item a {
    text-decoration: none;
    font-size: 16px;
    color: #000;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.toc-item.h3 a {
    padding-left: 25px;
    font-size: 14px;
    color: #000;
}

.toc-content {
    position: relative;
}

.toc-content .toc-content-wrapper {
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-bottom: 30px;
}

.toc-content .expanded {
    padding-bottom: 0px;
}

.toc-content .toc-content-wrapper h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #000;
    margin-top: 30px;
}

.toc-content .toc-content-wrapper h2:first-child {
    margin-top: 0;
}

.toc-content .toc-content-wrapper h3 {
    font-size: 18px;
    font-weight: 400;
    margin: 15px 0 10px 0;
    color: #000;
}

.toc-content .toc-content-wrapper p {
    font-size: 16px;
    line-height: 1.8;
    color: #000;
    margin-bottom: 10px;
}

.toc-content .toc-expand-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #126cbf;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.toc-content .toc-expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 133, 199, 0.3);
    background-color: #126cbf;
}

.toc-content .toc-expand-btn :focus {
    background-color: #126cbf;
}

.toc-content .toc-expand-btn .chevron {
    transition: transform 0.3s ease;
}

.toc-content .toc-content-wrapper.expanded~.toc-expand-btn .chevron {
    transform: rotate(180deg);
}

.toc-content .toc-expand-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .content-toc-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-toc-sidebar {
        position: static;
    }

    .toc-content .toc-content-wrapper h2 {
        font-size: 20px;
    }

    .toc-content .toc-content-wrapper h3 {
        font-size: 16px;
    }

    .content-toc-image .toc-image {
        max-width: 100%
    }

    .toc-content .toc-expand-btn {
        margin-top: 30px;
    }
}