/*
 Theme Name:  Kadence Child
 Theme URI:   https://www.kadencewp.com/kadence-theme/
 Description: Child theme for Kadence
 Author:      Vasily
 Template:    kadence
 Version:     1.0.0
 Text Domain: kadence-child
*/

@font-face {
    font-family: 'Inter';
    font-weight: 100 900;
    font-display: swap;
    src: url("./fonts/Inter-var.subset.woff2") format("woff2");
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-weight: 100 900;
    font-display: swap;
    src: url("./fonts/PlusJakartaSans-var-latin.woff2") format("woff2");
}


:root {
    --color-blue-darker: #201C44;
    --color-blue: #2998FF;
}

body {
    font-family: Inter, sans-serif;
    color: var(--color-blue-darker);
}

body h1, body h2, body h3, body h4, body h5, body h6 {
    font-family: Plus Jakarta Sans, sans-serif;
    color: var(--color-blue-darker);
    line-height: 1.4;
}

p, span {
    line-height: 1.6;
    font-family: Inter, sans-serif;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a {
    color: var(--color-blue-darker);
}

.ld-course-list-items .ld_course_grid .thumbnail.course .ribbon.enrolled {
    display: none;
}

.single-sfwd-courses {
    h1.entry-title {
        text-align: center;
        padding: 0 130px;
    }

    .ld-tab-bar__panel .ld-featured-image {
        display: none;
    }

    .ld-details {
        display: none;
    }

    .ld-enrollment__pricing {
        display: none;
    }

    .ld-enrollment {
        padding: 0;
        border: none;
    }

    .ld-enrollment__login-link {
        font-size: 1rem;
        font-weight: 400;
    }

    .ld-enrollment__login-text {
        font-size: 1rem;
    }

}

.ld-course-list-items .ld_course_grid .thumbnail.course {
    height: 100%;
}

.ld-course-list-items .ld_course_grid .entry-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    height: calc(1.4em * 2);
}

.ribbon {
    display: none;
}

.ribbon.completed {
    display: block;
}

.learndash-wrapper .ld-login-modal .ld-login-modal-form .ld-login-modal-branding img {
    justify-self: center;
}

.learndash-wrapper .ld-login-modal .ld-login-modal-register:hover {
    opacity: 1;
}

.learndash-wrapper .ld-button:hover:not([disabled]):not(.ld-button-transparent):not(.ld--ignore-inline-css) {
    background-color: var(--color-blue) !important;
}

.learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) a:not(.button):not(.screen-reader-shortcut) {
    margin: 1rem 0;
}

.ld-registration-order {
    display: none;
}

body .ld-breakpoint--medium .ld-registration-order__return-wrapper,
body .ld-registration__wrapper--has-order.ld-breakpoint--medium .ld-registration__form {
    flex: 0 0 100%;
    max-width: 100%;
    border-right: none;
}

body .ld-layout.ld-breakpoint--extra-small:not(.ld-layout--no-sidebar).ld-layout--no-header {
    grid-template-areas: unset;
    grid-template-columns: unset;
    gap: 0;
}

.ld-enrollment__join {
    position: absolute;
    top: 20px;
    right: 20px;
}

body .learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete .learndash_mark_complete_button {
    display: none;
}

footer {
    p {
        margin: 0;
        line-height: 1.43;
        color: rgba(32, 28, 68, 0.5);
        font-family: Inter, serif;
        font-size: 16px;
        font-weight: 300;
    }
}

@media (max-width: 991px) {
    .single-sfwd-courses {
        h1.entry-title {
            padding: 0;
        }
    }

    .ld-enrollment__join {
        position: inherit;
        top: 0;
        right: 0;
        justify-self: center;
        align-self: center;
    }

    body .ld-layout--no-header {
        gap: 0;
    }
}