/* Doc Table of Content Block Styles */
.doc-table-of-content-wrapper {
    max-width: 1290px;
    padding: 60px 24px 120px 24px;
    z-index: 50;
}

.doc-table-of-content-wrapper-overlay {
    background-image: linear-gradient(90deg, #6DBDFF 0%, #FFAD56 25%, #DE64FF 52.5%, #92F0FE 75%, #2C6CFF 100%);
    opacity: 0.5;
    filter: blur(200px);
    z-index: -1;
}

/* Editor Preview Styles */
.doc-toc-editor-preview {
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 20px;
    background: #fff;
}

.doc-toc-preview-header h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.doc-toc-preview-content {
    margin-top: 15px;
}

/* Error Styles */
.doc-toc-error {
    padding: 15px;
    background: #fff2cd;
    border: 1px solid #f0ad4e;
    border-radius: 4px;
    color: #856404;
}

.doc-toc-error p {
    margin: 0;
}

/* Header Styles */
.page-header-title {
    font-family: var(--fb-global-all--font-family);
    font-size: var(--fb-global-h2--font-size);
    font-weight: var(--fb-global-all--font-weight);
    line-height: var(--fb-global-h2--font-line-height);
    color: #0B0C0E;
    margin: 0px 0px 62px 0px;
    border: none;
    transition: all .3s ease-in-out;
}

.page-header-aside {
    margin-bottom: 32px;
}

.site-breadcrumbs {
    font-family: var(--fb-global-body--font-family);
    font-size: var(--fb-global-body--font-size);
    font-weight: var(--fb-global-body--font-weight);
    line-height: var(--fb-global-body--line-height);
}

.breadcrumb-trail a {
    color: #007cba;
    text-decoration: none;
}

.breadcrumb-trail a:hover {
    text-decoration: underline;
}

/* Table of Contents Styles */
.toc_header {
    background: #f8f9fa;
    border-bottom: 1px solid #e1e1e1;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toc-header {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.reset_collapse_btn {
    background: none;
    border: none;
    color: #007cba;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.reset_collapse_btn:hover {
    background-color: #f0f0f0;
}

.inner_table_of_content {
    max-height: 600px;
    overflow-y: auto;
}

/* Menu Styles */
.menu-azure-container ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sub-menu {
    margin: 0;
    padding: 0;
}

.sub-menu li {
    position: relative;
}

.sub-menu.menu-depth-1 {
    margin: 24px 0 0 30px;
    border-top: none;
}

.menu-depth-1 .menu-item:last-child {
    padding-bottom: 0;
}

.menu-depth-1 .menu-item {
    border-bottom: none;
    padding: 12px 0 !important;
}

.menu-item {
    border-bottom: 1px solid #E1E3E8;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item a {
    padding: 0;
    color: #404655;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.menu-item a:hover {
    color: #0875FF !important;
}

.menu-link {
    font-weight: 500;
}

.menu-link:focus {
    outline: none;
}

.main-menu-link {
    font-size: 1rem;
    padding-left: 0;
}

.sub-menu-link {
    font-size: 0.9rem;
    padding-left: 40px;
    color: #666;
}

.menu-depth-2 .sub-menu-link {
    padding-left: 30px;
}

.menu-depth-3 .sub-menu-link {
    padding-left: 50px;
}

/* Toggle Button Styles */
.toggle_btn {
    position: absolute;
    right: 15px;
    top: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.toggle_btn svg {
    transition: transform 0.2s;
}

.menu-item.expanded .toggle_btn svg {
    transform: rotate(90deg);
}

/* Collapsed state */
.menu-item.collapsed .sub-menu {
    display: none;
}


.menu-item.expanded .sub-menu {
    display: block;
}

/* Single Lesson Content */
.single_lesson_content {
    padding: 32px;
    border-top: 1px solid #C3C8D2;
    background: #ffffff;
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.03);
}

.single_lesson_content p {
    font-family: var(--fb-global-body--font-family);
    font-weight: var(--fb-global-body--font-weight);
    font-size: var(--fb-global-body--font-size);
    line-height: 32px;
    color: #404655;
    margin-bottom: 24px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-header-aside {
        margin-top: 0;
    }

    .toc_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .main-menu-link {
        padding-left: 15px;
    }

    .sub-menu-link {
        padding-left: 30px;
    }

    .menu-depth-2 .sub-menu-link {
        padding-left: 45px;
    }

    .menu-depth-3 .sub-menu-link {
        padding-left: 60px;
    }
}

.menu-item a[style*="color: #0875FF"] {
    font-weight: 600;
}

/* Animation for smooth expand/collapse */
@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }

    to {
        max-height: 500px;
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        max-height: 500px;
        opacity: 1;
    }

    to {
        max-height: 0;
        opacity: 0;
    }
}

.menu-item.expanding .sub-menu {
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

.menu-item.collapsing .sub-menu {
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}


.pricing_column .mepr-price-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

@media only screen and (max-width: 767px) {
    .pricing_column .mepr-price-boxes {
        grid-template-columns: 1fr;
    }
}

.pricing_column .mepr-price-boxes .mepr-price-box {
    width: 100% !important;
    border-radius: 5px;
}

.pricing_column .mepr-price-box .mepr-price-box-button {
    padding: 12px 0 17px;
}

.pricing_column .mepr-price-box .mepr-price-box-button a {
    color: #fff;
    background-color: #0875FF;
    padding: 10px 15px;
    border-radius: 5px;
}

.sticky-lessons-title {
    position: sticky;
    top: 0;
    background-color: #f5f5f5;
    padding: 10px;
}

.lessons-template-custom-single #primary {
    width: 100% !important;
}

.wpb-content-wrapper {
    display: flex;
    margin-top: 32px;
    gap: 50px;
}

@media all and (max-width: 768px) {
    .wpb-content-wrapper {
        flex-direction: column;
    }
}

.single_lesson_title,
.search_lesson_title {
    width: 30%;
}

.single_lesson_content,
.search_lesson_content {
    width: 850px;
    max-width: 100%;
}

.single_lesson_title ul {
    list-style: none;
}

.search_lesson_content .mepr-unauthorized-message {
    margin-bottom: 20px;
}

.search_lesson_content .mepr-unauthorized-message p {
    display: none;
}

/* Media query for max width 767px */
@media screen and (max-width: 767px) {

    .page-template-custom-templete .wpb-content-wrapper,
    .lessons-template .wpb-content-wrapper {
        display: block;
    }

    .single_lesson_title,
    .single_lesson_content,
    .search_lesson_title,
    .search_lesson_content {
        width: 85%;
    }
}

.search_lesson_title h2 {
    margin: 0;
}

.single_lesson_content h2 {
    margin-top: 0;
}

.single_lesson_content p:last-child {
    margin-bottom: 0;
}

.table_of_content {
    background: #ffffff;
    border-top: 1px solid #C3C8D2;
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.03);
    border-radius: 2px;
    overflow: hidden;
    max-height: 600px;
    padding: 8px 32px;
    width: 410px;
    max-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

@media all and (max-width: 768px) {
    .table_of_content {
        width: 85%;
        margin-bottom: 40px;
        position: static;
    }
}

.table_of_content h3 {
    margin-top: 0;
    font-size: 20px;
}

/* Start scrollbar css */
.table_of_content .inner_table_of_content {
    max-height: 580px;
    height: 100%;
    overflow-y: scroll;
}

.table_of_content .inner_table_of_content::-webkit-scrollbar {
    width: 5px;
}

.table_of_content .inner_table_of_content::-webkit-scrollbar-thumb {
    opacity: 0;
    visibility: hidden;
    transition: 0.5s ease-in-out;
    background: #0875FF;
    border-radius: 10px;
}

.table_of_content .inner_table_of_content:hover::-webkit-scrollbar-thumb {
    opacity: 1;
    visibility: visible;
}

/* End scrollbar css */

/*.inner_table_of_content ul li ul {*/
/*    display: none;*/
/*}*/

/*.inner_table_of_content ul li ul.expanded_tree {*/
/*    display: block !important;*/
/*}*/

.inner_table_of_content ul ul.expanded-tree {
    display: block !important;
}

.inner_table_of_content li.active-ul>ul {
    display: block !important;
}

.table_of_content .inner_table_of_content>ul {
    margin-bottom: 0;
    margin-left: 0;
}

.table_of_content .inner_table_of_content ul {
    list-style: none;
}

.table_of_content .inner_table_of_content a {
    font-family: var(--fb-global-all--font-family);
    font-size: var(--fb-global-fb_customtypo_a0az4--font-size);
    font-weight: var(--fb-global-all--font-weight);
    line-height: var(--fb-global-fb_customtypo_a0az4--font-line-height);
    color: #404655;
    margin: 0px 0px 0px 0px;
    border: none;
    transition: all .3s ease-in-out;
}

.table_of_content .inner_table_of_content .menu-depth-1 a {
    font-family: var(--fb-global-fb_customtypo_q0ron--font-family);
    font-size: var(--fb-global-fb_customtypo_q0ron--font-size);
    font-weight: var(--fb-global-fb_customtypo_q0ron--font-weight);
    line-height: var(--fb-global-fb_customtypo_q0ron--font-line-height);
}

.table_of_content .inner_table_of_content .menu-depth-2 a {
    font-family: var(--fb-global-fb_customtypo_fxd62--font-family);
    font-size: var(--fb-global-fb_customtypo_fxd62--font-size);
    font-weight: var(--fb-global-fb_customtypo_fxd62--font-weight);
    line-height: 20px;
}

.table_of_content .inner_table_of_content a.active {
    color: #0875FF;
}

#search-entries {
    gap: 40px;
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: auto auto auto;
}

#search-entries .search_page_wrapper {
    border: 1px solid #f5f5f5;
    border-radius: 10px;
    padding: 20px;
}

#search-entries .search_page_wrapper a {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}

#search-entries .search_page_wrapper a .search_lesson_content,
#search-entries .search_page_wrapper a .search_lesson_title {
    width: 100%;
}

/* Media query for max width 767px */
@media screen and (max-width: 767px) {
    .books_title {
        width: 100%;
        margin-bottom: 30px;
    }
}

.page-template-custom-templete .post-pagination-wrap,
.lessons-template .post-pagination-wrap {
    display: none;
}

.page-template-custom-templete #content-wrap {
    margin-bottom: 45px;
}

.lessons_title ul {
    display: none;
}

.tree_wrapper {
    padding-left: 0;
}

.tree_wrapper ul li ul {
    display: none;
}

.tree_wrapper ul li.open>ul {
    display: block !important;
}

.tree_wrapper ul li.collapsed>ul {
    display: none;
}

.lessons-template-custom-single .mepr-login-form-wrap {
    display: none;
}

.lessons-template-custom-single .mepr-price-menu.minimal_horizontal .mepr-price-box .mepr-most-popular {
    display: none;
}


/* Pricing table container */
.lessons-template-custom-single .mepr-price-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

@media only screen and (max-width: 1024px) {
    #search-entries {
        grid-template-columns: auto auto;
    }
}

@media screen and (max-width: 767px) {
    .lessons-template-custom-single .mepr-price-boxes {
        grid-template-columns: 1fr;
    }

    #search-entries {
        grid-template-columns: auto;
    }
}

/* Individual pricing box */
.lessons-template-custom-single .mepr-price-box {
    padding: 7px;
    border-radius: 5px;
    text-align: center;
    background-color: #dedede;
}

/* Most Popular label */
.lessons-template-custom-single .mepr-most-popular {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Pricing title */
.lessons-template-custom-single .mepr-price-box-title {
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 0px;
    text-transform: capitalize;
}

/* Pricing amount */
.lessons-template-custom-single .mepr-price-box-price {
    margin-top: 0px;
    margin-bottom: 0px;
    font-weight: bold;
    font-size: 20px;
}

/* Pricing benefits list */
.lessons-template-custom-single .mepr-price-box-benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.lessons-template-custom-single .mepr-price-box-button {
    padding: 12px 0 17px;
    margin: 10px 0;
}

/* Pricing button */
.lessons-template-custom-single .mepr-price-box-button a {
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    background-color: #0875FF;
    padding: 10px 15px;
    border-radius: 5px;
}


/* Search page */
.search-results .search-entry {
    display: none;
}

.search-results .mepr-login-form-wrap {
    display: none;
}

.search-results .mepr-price-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

@media screen and (max-width: 767px) {
    .search-results .mepr-price-boxes {
        grid-template-columns: 1fr;
    }
}

/* Individual pricing box */
.search-results .mepr-price-box {
    padding: 7px;
    border-radius: 5px;
    text-align: center;
    background-color: #dedede;
}

/* Most Popular label */
.search-results .mepr-most-popular {
    display: none;
}

/* Pricing title */
.search-results .mepr-price-box-title {
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 0px;
    text-transform: capitalize;
}

/* Pricing amount */
.search-results .mepr-price-box-price {
    margin-top: 0px;
    margin-bottom: 0px;
    font-weight: bold;
    font-size: 28px;
}

/* Pricing benefits list */
.search-results .mepr-price-box-benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.search-results .mepr-price-box-button {
    padding: 12px 0 17px;
    margin: 10px 0;
}

/* Pricing button */
.search-results .mepr-price-box-button a {
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    background-color: #0875FF;
    padding: 10px 15px;
    border-radius: 5px;
}

.book_content .book {
    height: 100%;
}

.books_title>ul {
    padding: 0;
    margin: 0;
}

.lessons_title ul li ul {
    display: none;
}

.books_title ul {
    list-style: none;
}

.book_content .book .loader-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.loader {
    width: 30px;
    height: 30px;
    border: 2px solid #0875FF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}




/* Pricing Switch start */
.pricing-table {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.pricing-table .plan {
    background-color: #f2f2f2;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    text-align: center;
    width: 300px;
}

.pricing-table .plan h3 {
    margin-top: 0;
}

.pricing-table .price {
    font-size: 24px;
    margin: 20px 0;
}


.switch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.switch-container .switch {
    display: inline-block;
    margin-right: 10px;
}

.switch-container .switch input[type="checkbox"] {
    display: none;
}

.switch-container .switch label {
    display: block;
    background-color: #dcdcdc;
    border-radius: 20px;
    cursor: pointer;
    padding: 3px;
    width: 60px;
    height: 30px;
    position: relative;
    transition: background-color 0.3s ease-in-out;
}

.switch-container .switch label:after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fff;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    transition: left 0.3s ease-in-out;
}

.switch-container .switch input[type="checkbox"]:checked+label {
    background-color: #616161ab;
}

.switch-container .switch input[type="checkbox"]:checked+label:after {
    left: calc(100% - 27px);
}

#pricing-option {
    color: #616161;
    font-size: 30px;
    font-weight: 600;
}

/* Pricing Switch end */

/* Pricing Box Start*/
.plan.monthly .mepr-price-box-price,
.plan.annual .mepr-price-box-price {
    margin-top: 0px;
    margin-bottom: 0px;
    font-weight: bold;
    font-size: 20px;
}

.plan.monthly .mepr-price-box-button a,
.plan.annual .mepr-price-box-button {
    padding: 12px 0 17px;
    margin: 10px 0;
}

.plan.monthly .mepr-price-box-button a,
.plan.annual .mepr-price-box-button a {
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    background-color: #0875FF;
    padding: 10px 15px;
    border-radius: 5px;
}

/* Pricing Box End*/

/* Price table */
.plan.annual {
    display: none;
}

/* Azure Price start */
.plan.monthly #mepr-price-box-154 {
    display: block;
    width: 100%;
    border-radius: 5px;
}

.plan.monthly #mepr-price-box-155 {
    display: none;
}

.plan.annual #mepr-price-box-154 {
    display: none;
}

.plan.annual #mepr-price-box-155 {
    display: block;
    width: 100%;
    border-radius: 5px;
}

/* Azure Price end */


/* On-Premises Price start */
.plan.monthly #mepr-price-box-152 {
    display: block;
    width: 100%;
    border-radius: 5px;
}

.plan.monthly #mepr-price-box-153 {
    display: none;

}

.plan.annual #mepr-price-box-152 {
    display: none;
}

.plan.annual #mepr-price-box-153 {
    display: block;
    width: 100%;
    border-radius: 5px;
}

/* On-Premises Price end */


/* OLS Price start*/
.plan.monthly #mepr-price-box-156 {
    display: block;
    width: 100%;
    border-radius: 5px;
}

.plan.monthly #mepr-price-box-157 {
    display: none;
    width: 0%;
    border-radius: 5px;
}

.plan.annual #mepr-price-box-156 {
    display: none;
}

.plan.annual #mepr-price-box-157 {
    display: block;
    width: 100%;
    border-radius: 5px;
}

/* OLS Price end*/

/* Corporate Price start*/
.plan.monthly #mepr-price-box-408 {
    display: block;
    width: 100%;
    border-radius: 5px;
}

.plan.monthly #mepr-price-box-409 {
    display: none;
    width: 0%;
    border-radius: 5px;
}

.plan.annual #mepr-price-box-408 {
    display: none;
}

.plan.annual #mepr-price-box-409 {
    display: block;
    width: 100%;
    border-radius: 5px;
}

/* Corporate Price end*/
.table_of_content .inner_table_of_content ul span {
    cursor: pointer;
}

.table_of_content .inner_table_of_content ul span svg {
    width: 20px;
    height: 20px;
    position: relative;
    top: 1px;
}

.table_of_content .inner_table_of_content .tree_wrapper>ul {
    margin-left: 0;
}

.open>.toggle_btn {
    transform: rotate(90deg);
    display: inline-block;
}

.page-template-custom-templete .page-header,
.lessons-template .page-header {
    display: none !important;
}

.page-template-custom-templete .custom_page_header,
.lessons-template .custom_page_header {
    display: block !important;
}

.custom_page_header .breadcrumb-trail.wpex-clr a {
    font-family: var(--fb-global-body--font-family);
    font-size: var(--fb-global-body--font-size);
    font-weight: var(--fb-global-body--font-weight);
    line-height: var(--fb-global-body--line-height);
    margin: 0px 0px 0px 0px;
    border: none;
    transition: all .3s ease-in-out;
    color: #404655;
}

.custom_page_header .breadcrumb-trail.wpex-clr span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--fb-global-body--font-family);
    font-size: var(--fb-global-body--font-size);
    font-weight: var(--fb-global-body--font-weight);
    line-height: var(--fb-global-body--line-height);
    margin: 0px 0px 0px 0px;
    border: none;
    transition: all .3s ease-in-out;
    color: #404655;
}

.custom_page_header .breadcrumb-trail.wpex-clr span span {
    font-family: var(--fb-global-body--font-family);
    font-size: var(--fb-global-body--font-size);
    font-weight: var(--fb-global-body--font-weight);
    line-height: var(--fb-global-body--line-height);
    color: #0B0C0E;
}

.table_of_content .inner_table_of_content ul li.active>a {
    color: #0875FF;
}

.table_of_content .inner_table_of_content ul li {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 24px 0;
}

.table_of_content .inner_table_of_content ul li span.toggle_btn {
    position: absolute;
    top: 26px;
    left: unset;
    right: 0;
}

.single-lessons .menu li.current-menu-item>a {
    color: #0875FF !important;
}

.tree_wrapper ul li.current-menu-ancestor.collapsed>ul {
    display: none;
}

.loader_outer_wrapper {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    background: #fff;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add CSS for the loader */
.loader-container {
    display: block;
    border: 4px solid #0875FF;
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.toc_header {
    display: none;
    align-items: center;
    justify-content: space-between;
}

.reset_collapse_btn {
    cursor: pointer;
    margin-bottom: 20px;
    line-height: 1.375em;
    font-size: 15px;
    color: #222;
    font-weight: 600;
}

/* Sign up Button update to coming soon and button disable*/
.comingsoon .mepr-price-box-button a {
    pointer-events: none;
    cursor: default;
    background-color: gray !important;
}

.single_lesson_content h2 {
    font-size: var(--fb-global-h4--font-size);
    line-height: var(--fb-global-h4--font-line-height);
}

.single_lesson_content h3 {
    font-size: var(--fb-global-h5--font-size);
    line-height: var(--fb-global-h5--font-line-height);
}

.single_lesson_content h4 {
    font-size: var(--fb-global-h6--font-size);
    line-height: var(--fb-global-h6--font-line-height);
}

.single_lesson_content h5 {
    font-size: var(--fb-global-h6--font-size);
    line-height: var(--fb-global-h6--font-line-height);
}

.single_lesson_content h2,
.single_lesson_content h3,
.single_lesson_content h4,
.single_lesson_content h5,
.single_lesson_content h6 {
    margin-bottom: 12px;
}

.single_lesson_content .wp-block-list {
    margin-bottom: 24px !important;
}