/* adding toc to single post */
.container.single-container2 {
    display: flex;
    align-items: flex-start;
    position: relative;
}
.container.single-container2 .ws-single-with-toc {
    max-width: 46rem;
    margin-bottom: 2rem;
}
.ws_toc_wrap {
    border-radius: 0.375rem;
    border: 1px solid var(--border);
    background: var(--hd-ft-bg);
}
.ws_toc-title, a.ws_toc_item {
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    font-size: .875rem;
    color: var(--title-color);
    font-weight: 500;
}
.ws_toc-title {
    border-bottom: 1px solid var(--border);
}
a.ws_toc_item:last-child {
    border-bottom-width: 0;
}
.ws_toc-title span {
}
a.ws_toc_item {
    display: block;
}
a.ws_toc_item:hover {
    color: var(--yellow);
}
@media  (min-width: 768px) {
    .ws_toc_wrap.ws_toc_wrap_mobile {
        display: none
    }
    .container.single-container2 .ws-toc:not(:empty) {
        flex-basis: 20rem;
        flex-shrink: 0;
        margin-right: 5rem;
        padding-top: 0;
        padding-bottom: 2rem;
        top: 6.5rem;
        left:0;
        position: -webkit-sticky;
        position: sticky;
        z-index: 1;
    }
    a.ws_toc_item {
        border-bottom: 1px solid var(--border);
        text-decoration: none;
    }
    a.ws_toc_item.active {
        color: var(--yellow);
    }
}
@media (max-width: 991px) and (min-width: 768px) {
    .container.single-container2 .ws-toc:not(:empty) {
        flex-basis: 15rem;
        margin-right: 2rem;
    }
    .container.single-container2 .ws-single-with-toc {
        max-width: calc(100% - 17rem);
    }
}

@media (max-width: 767px) {
    .container.single-container2 {
        flex-direction: column;
    }
    .container.single-container2 .ws-toc:not(:empty) {
        /* flex-basis: 0;
        width: 0; */
        flex-basis: 100%;
        width: 100%;
        margin-right: 0;
        /* margin-bottom: 1.5rem; */
        margin-bottom: 0;
    }
    .ws_toc_wrap {
        width: 100%;
    }
    .ws_toc-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }
    .ws_toc_wrap.hidden .ws_toc-title {
        border-bottom-color: transparent
    }
    .ws_toc_wrap .ws_toc-title i {
        transform: rotate(180deg);
        font-size: 1.25rem
    }
    .ws_toc_wrap.hidden .ws_toc-title i {
        transform: rotate(0);
    }
    .ws_toc-items {
        max-height:2000px;
        opacity: 1;
        visibility: visible;
        transition: all .5s
    }
    .ws_toc_wrap.hidden .ws_toc-items {
        max-height:0;
        opacity: 0;
        padding-top:0;
        visibility: hidden;
    }

    .ws_toc_mobile_button {
        bottom: 8rem;
        right: 10px;
        position: fixed;
        z-index: 2;
        display: flex;
        padding: 0.625rem 0.875rem;
        justify-content: center;
        align-items: center;
        border-radius: 624rem;
        border: 1px solid var(--alternate-border);
        background: var(--hd-ft-bg);
        color: var(--icon-color);
        font-size: .875rem;
        font-weight: 600
    }
    .single-post .ws_toc_mobile_button, .page-template-page-landing .ws_toc_mobile_button {
        bottom: 10px;
    }
    .ws_toc_mobile_button i {
        font-size: 1rem;
        font-weight: 600;
        vertical-align: text-top;
    }
    .ws_toc_wrap {
        bottom: 0;
        border-radius: 1rem 1rem 0 0;
    }
    .ws_toc_wrap .ws_toc-title i {
        font-size: 1.25rem;
    }
    .ws_toc_wrap .ws_toc-title i:before {
        content: '\e90a';
    }
    .ws_toc_wrap {
        position: fixed;
        bottom:0;
        left: 0;
        z-index: 999999;
        width: 100%;
        transform: translateY(0);
        -webkit-transition: transform 0.5s;
        -moz-transition: transform 0.5s;
        transition: transform 0.5s;
    }
    .ws_toc_wrap > * {
        z-index: 1;
        position: relative;
    }
    .ws_toc_wrap:before {
        content: '';
        position: fixed;
        left: 0;right: 0; bottom: 0;
        height: 400vh;
        z-index: 0;
        background-color: var(--overlay);
    }
    .ws_toc_wrap.hidden:before {
        display:none
    }
    .ws_toc-title {
        font-weight: 600;
        border-radius: 1rem 1rem 0 0;
    }
    .ws_toc-items {
        padding: 1px .38rem 1.5rem;
    }
    .ws_toc-title, .ws_toc-items {
        background: var(--hd-ft-bg);
    }
    a.ws_toc_item {
        font-size: 1rem;
        padding: 0.625rem 2rem 0.625rem 0.5rem;
        border-radius: 0.375rem;
        position: relative;
    }
    a.ws_toc_item.active {
        background: var(--bg-color);
    }
    a.ws_toc_item:before {
        content: '\e911';
        font-family: 'vipbit' !important;
        position: absolute;
        right: .625rem;
        font-weight: 600;
        color: transparent;
        transition: color .5s
    }
    a.ws_toc_item.active i {
        color: var(--yellow);
    }
    .ws_toc_wrap.hidden {
        transform: translateY(calc(100dvh));
    }
    .container.single-container2 .ws-single-with-toc {
        max-width: 100%;
        margin-bottom: 3rem
    }

}
/* end toc */
