
.knowledge-layout {
    display: flex;
    margin: 30px 0;
    padding: 0 15px;
    @media (min-width: 1300px) {
        padding: 0;
    }
}

.knowledge-content {
    max-width: 960px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    @media (min-width: 1000px) {
        border-left: 1px solid var(--grey-100);
        padding-left: 30px;
    }
}
/*sidebar*/
.knowledge-sidebar-container {
    width:315px;
    flex-shrink:0;
    display: none;
    @media (min-width: 1000px) {
        display: block;
    }
}
.knowledge-sidebar {

    width: 315px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    height: 100%;
    flex-shrink: 0;
    padding: 35px 5px 25px 5px;
    overflow:auto;
    @media (min-width: 1000px) {
        max-height:calc(100vh - 40px);
        position: sticky;
        top:20px;
        padding:10px 15px 30px;
    }
}

.knowledge-toggle {
    width: 15px;
    height: 15px;
    cursor: pointer;
    img {
        width: 100%;
        height: 100%;
    }
}

[class^="knowledge-level-"] {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--grey-25);
}

[class^="knowledge-level-"] {
    display: none;
}

.open > [class^="knowledge-level-"] {
    display: block;
}
.open > [class^="knowledge-level-"] a {
    display: flex;
}
.knowledge-toggle img {
    transition: transform 0.2s ease;
}

.open > a .knowledge-toggle img {
    transform: rotate(180deg);
}

.knowledge-section {
    background: var(--grey-25);
    border-radius: 6px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    flex-shrink: 0;
}

.knowledge-section.active {
    box-shadow: 0px 2px 15px 0px rgba(0, 0, 0, 0.15);

}

.knowledge-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    min-height: 30px;
    p {
        color: var(--grey-900);
        font-weight: 600;
    }
}
.knowledge-link.current {
    background: var(--grey-50);
}

.knowledge-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.knowledge-level-2-link {
    font-weight: 600;
    color: var(--grey-900);
    display: flex;
    padding: 0 10px 0 35px;
    align-items: center;
    min-height: 30px;
    border-top: 1px solid var(--grey-100);
    justify-content: space-between;
}

.knowledge-level-3-link {
    display: flex;
    align-items: center;
    padding: 0 10px 0 50px;
    text-decoration: none;
    color: var(--grey-800);
    border-top: 1px solid var(--grey-100);
    min-height: 30px;
    justify-content: space-between;
}

.knowledge-level-4-link {
    display: flex;
    align-items: center;
    padding: 0 10px 0 65px;
    border-top: 1px solid var(--grey-100);
    min-height: 30px;
    justify-content: space-between;
}

.knowledge-level-5-link {
    display: flex;
    align-items: center;
    padding: 0 10px 0 80px;
    border-top: 1px solid var(--grey-100);
    min-height: 30px;
    justify-content: space-between;
}

[class^="knowledge-level-"] a.current,
[class*="-link"].current {
    background: var(--grey-50);
}

.knowledge-children-link span,
.knowledge-grandchildren-link span,
[class*="knowledge-level-"] a span{
    flex:1;
}

/*kb feedback*/
.kb-feedback {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}
.kb-feedback-buttons {
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.15);
    background: var(--grey-25);
    min-width: 141px;
    border-radius: 16px;
    display: flex;
    gap: 15px;
    padding: 0 5px;
    overflow: hidden;
}
.kb-feedback-separator {
    height: 31px;
    width: 1px;
    background: var(--grey-100);
}
.kb-dislike {
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 50px;
    cursor: pointer;
    img {
        transform: rotate(180deg);
        transform-origin: center;
    }
}
.kb-like {
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 50px;
    cursor: pointer;
}


.knowledge-nav-box {
    background: var(--grey-25);
    box-shadow: 0px 2px 15px 0px rgba(0, 0, 0, 0.15);
    max-width: 960px;
    width: 100%;
    padding: 15px;
    border-radius: 6px;
    display: flex;
}
.knowledge-children-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 464px;
    width: 100%;
    padding-right: 30px;
    border-right: 1px solid var(--grey-100);
}
.knowledge-children-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--orange-700);
}
.knowledge-help {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 464px;
    width: 100%;
    padding-left: 30px;
}
.knowledge-nav-box:not(:has(.knowledge-children-list)) .knowledge-help{
    padding-left: 0;
}

.knowledge-search {
    max-width: 410px;
    width: 100%;
    position: relative;
    height: 45px;
}
.knowledge-search-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
}
.knowledge-search-input {
    width: 100%;
    height: 100%;
    border-radius: 23px;
    border: 1px solid var(--orange-700);
    background: var(--white);
    padding: 12px 35px 12px 20px;
    outline: none;
}
.knowledge-heading-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    @media (min-width: 1300px) {
        flex-direction: row;
        justify-content: space-between;
    }
}
.knowledge-post-content > p {
    margin-bottom: 30px;
    img {
        vertical-align: middle;
    }
}
.knowledge-search-results {
    display: none;
    flex-direction: column;
    gap: 15px;
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    width: 100%;
    box-shadow: 0px 2px 15px 0px rgba(0, 0, 0, 0.15);
    background: var(--grey-25);
    padding: 10px;
    z-index: 1001;
    border-radius: 6px;
}
.knowledge-search-item {
    color: var(--grey-800);
    font-size: 14px;
    padding: 5px 10px;
    text-decoration: underline;
}
.knowledge-search-no-results-container {
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: center;
    justify-content: center;
    padding: 15px 0 11px 0;
}

.wp-block-image{
    position:relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0px 2px 15px 0px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--grey-25);
    /*width: 310px;*/
    /*height: 190px;*/
    margin-bottom: 20px!important;
    object-fit: contain!important;
    img {
        width: 100%!important;
        height: 100% !important;
    }
}

.wp-block-image img{
    display:block;
    width:100%;
}

.wp-block-image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--grey-75) !important;
    height: 41px;
    z-index: 1;
}

.wp-block-image figcaption{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: var(--grey-75) !important;
    color: var(--grey-800)!important;
    font-size: 14px!important;
    font-weight: 400!important;
    text-shadow: none!important;
    margin: 0;
    padding: 10px 15px!important;
    z-index: 2;
}
.kb-expand-btn {
    position: absolute;
    cursor: pointer;
    bottom: 13px;
    right: 15px;
    z-index: 2;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kb-expand-btn svg{
    width: 15px;
    height: 15px;
}

.kb-lightbox {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.7);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.kb-lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:8px;
}


.open-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left top;

    background: var(--grey-25);
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--grey-100);

    z-index: 9999;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 0 15px;
    height: 30px;
    @media (min-width: 1000px) {
        display: none;
    }
}
.open-sidebar > img {
    position: absolute;
    top: 20px;
    transform: translateY(-50%) rotate(-90deg);
    width: 8px;
    height: 21px;
}


.mobile_sidebar {
    position: fixed;
    top: 0;
    left: -325px;
    width: 325px;
    height: 100%;
    background: #fff;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    transition: left 0.3s ease;
    z-index: 9999;
}

.mobile_sidebar.active {
    left: 0;
}

.mobile_sidebar_inner {
    height: 100%;
    overflow-y: auto;
}


.mobile_sidebar_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.4);

    opacity: 0;
    visibility: hidden;
    transition: 0.3s;

    z-index: 9998;
}

.mobile_sidebar_overlay.active {
    opacity: 1;
    visibility: visible;
}

body.no-scroll {
    overflow: hidden;
}