/**
 * CLICKaligners Knowledge Base & Education
 * Package: CLICKALIGNERS Astra Child Theme
 */

/*knowledge-base - EXT*/
/* Скрываем кнопки по умолчанию */
.clin_func_container {
    display: flex;
    flex-direction: column;
    position: relative;
}

.clin_func_container .additional-buttons {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    margin-top: 10px;
    /* Расстояние между кнопкой и скрытыми кнопками */
}

/* Показываем кнопки при наведении на родительский контейнер */
.clin_func_container:hover .additional-buttons {
    display: flex;
    flex-direction: row;
    position: absolute;
    opacity: 1;
    top: 100%;
    left: -50%;
    width: 240%;
    gap: 20px;
}

/* Стили для кнопок */
.additional-btn {}

.category-filter.active,
.tag-filter {
    cursor: pointer;
}

.category-filter.active {
    background-color: var(--ast-global-color-4);
    color: var(--ast-global-color-0);
    border-color: #003954;
    cursor: pointer;
    transform: translateY(2px);
    /* Эффект нажатия вниз */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lessons-excerpt-block {
    font-size: 13px;
    line-height: 16px;
    color: black;
    font-weight: 400;
}

a.post.grey:has(.lessons-excerpt-block) {
    justify-content: start !important;

    & h2 {
        margin-bottom: 5px;
    }

    & .author_data {
        margin-top: auto;
    }
}

/*END knowledge-base - EXT*/


/* Стили для базы знаний */
.container.page-knowledge-base,
#clinical-examples-list .post {
    & h2 {
        font-family: "Manrope", sans-serif;
        font-size: 18px;
    }
}

.page-knowledge-base h2.title-40.text-black.title {
    font-size: 25px !important;
    margin: 0;
}

.clinical-examples-tags {
    width: 100%;
    gap: 10px;
    margin: 10px 0px;
    display: flex;
    gap: 5px 10px;
    flex-wrap: wrap;

    & .tag-filter {
        color: black;
        background: unset;
        border: 1px solid black;
        border-radius: 109px;
        padding: 4px 10px;

        &.active {
            color: white;
            background: var(--ast-global-color-0);
            border: 1px solid var(--ast-global-color-0);
        }

        &:hover {
            color: white;
            background: var(--ast-global-color-0);
            border: 1px solid var(--ast-global-color-0);
        }

    }
}

details.filter_button {
    transition: height 0.3s ease;
}

details.filter_button>summary {
    border-radius: 109px;
    border: 1px solid black;
    width: fit-content;
    padding: 10px 20px;
    transition: all ease .2s;
    cursor: pointer;
    line-height: 1em;
}

details.filter_button[open]>summary {
    background: var(--ast-global-color-0);
    color: white;
    border-color: var(--ast-global-color-0);
    transition: all ease .2s;
    cursor: pointer;
}


.category-selector {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    gap: 5px;
}

.category-selector button,
a.clinical-button,
.category-filter {
    border-radius: 106px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    border: 1px solid black !important;
    background: unset !important;
    color: black !important;
    transition: all .3s ease;
    font-family: "Manrope", sans-serif !important;
    line-height: 1em;

    &:hover,
    &.active {
        background: #2C6AF4 !important;
        color: white !important;
        border: 1px solid #2C6AF4 !important;
    }
}

#knowledge-base-posts,
#clinical-examples-list {
    margin-top: 20px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;

    & * {
        font-family: "Manrope", sans-serif !important;
    }
}

#knowledge-base-posts.obychenie {
    grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width:1024px) {
    #knowledge-base-posts.obychenie {
        grid-template-columns: repeat(2, 1fr);
    }
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateY(100px);
    }
}


#knowledge-base-posts .post,
#clinical-examples-list .post {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 25px;
    min-height: 248px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: all .5s ease;

    &:hover {
        scale: 1.05;
        transition: all .5s ease;
    }
}

#knowledge-base-posts.related-posts {
    grid-template-columns: 1fr;

    & h2 {
        font-size: 18px;
    }

    & .elementor-menu-anchor {
        display: none;
    }
}



#knowledge-base-posts .post h3,
#clinical-examples-list .post h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}


#knowledge-base-posts .post.blue,
#clinical-examples-list .post.blue {
    background: #2C6AF4;
    color: white;

    & h3 {
        color: white;
    }

    & h2 {
        color: white;
    }
}

#knowledge-base-posts .post.grey,
#clinical-examples-list .post.grey {
    background: #F6F6F6;

    & h3 {
        color: black;
    }
}

#knowledge-base-posts .post.white,
#clinical-examples-list .post.white {
    background: white;
    border: 1px solid black;

    & h3 {
        color: black;
    }
}


#knowledge-base-posts .post .author_data,
#clinical-examples-list .post .author_data {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

#knowledge-base-posts .post .author_data span.position,
#clinical-examples-list .post .author_data span.position {
    font-size: 13px;
    font-weight: 500;
}



#knowledge-base-posts .post .author_data .img,
#clinical-examples-list .post .author_data .img {
    max-width: 16%;
    border-radius: 100px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    background: white;
    overflow: hidden;
    max-height: 44px;

    & img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

@media screen and (max-width:1024px) {

    #knowledge-base-posts,
    #clinical-examples-list {
        margin-top: 20px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 11px;
    }

    #knowledge-base-posts .post,
    #clinical-examples-list .post {
        padding: 15px 10px;
        border-radius: 23px;
        font-size: 13px;
        min-height: 220px;
    }

    #knowledge-base-posts .post h3,
    #clinical-examples-list .post h3 {
        font-size: 12px;

    }

    #knowledge-base-posts .post .author_data .img,
    #clinical-examples-list .post .author_data .img {
        max-width: 35px;
    }

    .page-knowledge-base h2.title-40.text-black {
        font-size: 35px;
        margin-top: 10px;
    }

    .category-selector .button {
        font-size: 12px;
        padding: 10px 15px;
    }
}

@media screen and (max-width:560px) {

    #knowledge-base-posts,
    #clinical-examples-list {
        margin-top: 20px;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 11px;
    }

    #knowledge-base-posts .post,
    #clinical-examples-list .post {
        padding: 15px 10px;
        border-radius: 22px;
        font-size: 14px;
        min-height: 220px;
    }

    #knowledge-base-posts .post h3,
    #clinical-examples-list .post h3 {
        font-size: 13px;
    }

    #knowledge-base-posts .post .author_data span.position,
    #clinical-examples-list .post .author_data span.position {
        font-size: 12px;
    }

    #knowledge-base-posts .post .author_data .img,
    #clinical-examples-list .post .author_data .img {
        max-width: 32px;
    }

    .page-knowledge-base h2.title-40.text-black {
        font-size: 24px;
        margin-top: 10px;
    }

    .category-selector .button {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* Стили для базы знаний END */

/* Стили для поста базы знаний */
.post-knowledge-base {
    margin-top: 43px;

    background: #F6F6F6;
    padding: 35px 25px;
    border-radius: 40px;

    & * {
        font-family: "Manrope", sans-serif;
    }

    & h2,
    h3,
    h4 {
        margin: 0;
    }
}

.container.post {
    width: 100%;
}

.post-knowledge-base ul.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    list-style: disc;
    width: 100%;
    list-style-position: inside;
    gap: 10px;
    width: fit-content;
    font-family: 'Manrope', sans-serif;
    font-size: 14.15px;
    margin: 0;
    color: black;
}


ul.breadcrumbs li {
    color: black;
    transition: all .5s ease;

    &:hover {
        scale: 1.05;
        transition: all .5s ease;
    }

    &:hover a {
        color: var(--ast-global-color-0);
    }

    & a {
        color: black;
    }
}

ul.breadcrumbs li.this_post {
    font-weight: 500;
}

ul.breadcrumbs li:first-child {
    list-style: none;
}

.breadcrumbs_and_date {
    display: flex;
    width: 100%;
}

.breadcrumbs_and_date .date {
    margin-left: auto;
    width: fit-content;
}

.header_post {
    display: grid;
    grid-template-columns: 60% 40%;
    margin-top: 27px;
}

.header_post h1 {
    FONT-WEIGHT: 600;
    font-size: 26px;
}

.header_post .author_box {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: end;
    align-items: center;
    gap: 12px;
    color: #2C6AF4;

    & h2 {
        font-weight: 600;
        font-size: 16px;
        color: var(--ast-global-color-0);
    }

    & h3 {
        font-weight: 400;
        font-size: 16px;
    }

    & img {
        transition: all .5s ease;

        &:hover {
            scale: 2;
            transition: all 0.5s ease;
        }
    }
}



.header_post .author_box img {
    width: 44px;
}

.header_post .author_box div:first-child {
    text-align: right;
}

.post-knowledge-base {
    margin: 0px 40px 40px 40px;
}

.post-knowledge-base .line {
    width: 100%;
    height: 1px;
    border-top: 1px solid #9E9E9E;
    margin-top: 28px;
}

.post-knowledge-base .auto-column-content {
    column-count: 2;
    transition: column-count 0.3s ease;
    margin-top: 30px;
}

.post-knowledge-base .auto-column-content p {
    line-height: 20px;
}

@media screen and (max-width:1024px) {
    .container .post-knowledge-base {

        border-radius: 20px;
        margin: 20px 20px;
    }

    .breadcrumbs_and_date {
        flex-direction: column;
        font-size: 12px;
    }

    .breadcrumbs_and_date a {
        font-size: 12px;
    }

    .breadcrumbs_and_date .date {
        margin: unset;

    }

    .breadcrumbs_and_date ul li:last-child {
        display: none;
    }

    .header_post h1 {
        font-size: 18px;
    }

    .header_post .author_box {
        font-size: 14px;

        & h3 {
            font-size: 12px;
        }

        & img {
            width: 42px;
        }
    }


    .post-knowledge-base .line {
        margin-top: 25px;
    }

    .post-knowledge-base .auto-column-content p {
        font-size: 15px;
        overflow-wrap: anywhere;
    }

    .auto-column-content p {
        hyphens: auto;
    }

}

@media screen and (max-width:769px) {
    .post-knowledge-base .auto-column-content {
        column-count: 1 !important;
    }
}

@media screen and (max-width:560px) {
    .post-knowledge-base {
        padding: 22px 10px;
    }

    .header_post {
        grid-template-columns: 1fr;
        justify-content: flex-start;
        gap: 20px;
    }

    .author_box {
        order: -1;
        justify-content: start !important;
        gap: 10px !important;
    }

    .author_box div:first-child {
        text-align: left !important;
    }


    .author_box div:last-child {
        order: -1;
    }

    .header_post h1 {
        font-size: 18px;
    }

    .auto-column-content p {
        hyphens: auto;
    }
}



/* Стили для поста базы знаний END */


/*Стили для Knowledge base obychenie*/
.lesson-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.lessons-block {
    padding: 5px 10px;
    border: 2px solid;
    width: fit-content;
    border-radius: 90px;

    & p {
        margin-bottom: 0;
    }
}

.lesson-content {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

.lesson-navigation {

    & .prev-lesson-container,
    .next-lesson-container {

        & a.mobile {
            display: none;
        }
    }
}

@media screen and (max-width:1024px) {
    .lesson-content {
        max-width: unset;
    }

    .next-lesson-container,
    .prev-lesson-container {
        width: 50%;
    }

    .next-lesson-container a,
    .prev-lesson-container a {

        font-size: 14px;

    }

    .lesson-navigation {

        & .prev-lesson-container,
        .next-lesson-container {

            & a:not(.mobile) {
                display: none;
            }
        }

        & .prev-lesson-container,
        .next-lesson-container {
            display: flex;
            justify-content: space-between;

            & a.mobile {
                display: flex;
            }
        }

        & .next-lesson-container {
            justify-content: end;
        }
    }
}

/*END Стили для Knowledge base obychenie*/
