/*--------------------------------------------------------------
# LearnDash Overrides
--------------------------------------------------------------*/

.bb-learndash-banner {
    background-color: var(--blue) !important;

    .bb-course-banner-inner * {
        color: white !important;
    }

    :before {
        background-image: unset !important;
        background-color: unset !important;
    }
}

/* LearnDash Styles */

.bb-about-instructor,
.bb-course-category,
.bb-profile-grid h1.entry-title,
.lms-course-members-list,
#account-data-export-form,
#export-personal-li,
#wp-admin-bar-my-account-settings-export,
.bb-single-course-sidebar .bb-course-preview-content .ld-status-incomplete,
#course-dir-list .bb-course-pay,
#sfwd_cats-order-by,
#sfwd_instructors-order-by,
.bb-course-points,
.lms-header-title,
.lms-header-instructor {
    display: none !important;
}

.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab:hover {
    box-shadow: unset !important;
}

.learndash_post_sfwd-courses.user_has_no_access .ld-tab-content[aria-labelledby="materials"] {
    pointer-events: none !important;
    opacity: 0.5 !important;
}

.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active {
    background: var(--blue) !important;
    color: white !important;
}

.learndash-wrapper .ld-tabs .ld-tabs-navigation:after {
    background-color: var(--blue) !important;
}

.ld-tabs-content .ld-tab-content p a.button {
    padding: 12px 24px !important;
    color: white !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    background: var(--red) !important;
    line-height: 1.2em !important;

    &:hover {
        background: var(--blue) !important;
    }
}

.lms-topic-sidebar-wrapper .lms-lesson-content {
    background: white !important;
}
.bb-grid .ld-course-status .ld-progress-bar,
.lms-topic-sidebar-wrapper .ld-progress-bar {
    background: white !important;
}

#course-dir-list .bb-course-excerpt {
    margin-bottom: 0 !important;
}

.bb-course-items.list-view .course-progress-wrap {
    max-width: unset !important;
}

/* Course Styles */

.learndash-wrapper .ld-item-list-item {

    .ld-item-list-item-preview {
        box-shadow: unset !important;
        background: var(--light-grey);
    }

    .ld-topic-title:before,
    .ld-icon-arrow-down,
    .ld-item-name .ld-item-title .lms-is-locked-ico i {
        color: var(--red) !important;
    }

    a span {
        color: var(--text) !important;
    }

    a .ld-secondary-background span {
        color: white !important;
    }
}

.learndash-wrapper .ld-course-status.ld-course-status-enrolled,
.learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-list-item-preview,
.lms-topic-sidebar-wrapper {
    box-shadow: unset !important;
    background: var(--light-grey);
}

.learndash_content_wrap .learndash-wrapper .learndash_mark_complete_button,
.bb-single-course-sidebar a.btn-advance {
    border: none !important;
    background: var(--red) !important;

    &:hover {
        border: none !important;
        background: var(--blue) !important;
    }
}

.bb-course-banner-inner h1.entry-title {
    font-size: 40px !important;
}

div.bb-lms-header .bb-position {
    margin-bottom: 15px !important;
}

.ld-content-actions {
    justify-content: center !important;
}

.learndash_content_wrap .ld-tabs-content {
    margin-bottom: 30px;
}

.bb-course-single-meta,
.bb-course-meta {
    display: none !important;
}

@media(max-width: 1000px) {
    .bb-course-banner-inner h1.entry-title {
        font-size: 36px !important;
    }
}

@media(max-width: 690px) {
    .bb-course-banner-inner h1.entry-title {
        font-size: 32px !important;
    }

    .ld-item-name .ld-item-title {
        font-size: 14px !important;
    }
}

/* Lesson Styles */

.lms-topic-sidebar-wrapper {
    background: var(--blue) !important;

    li.current a {
        background: rgba(255,255,255,0.5) !important;
        color: var(--blue) !important;
    }

    .ld-progress-stats div,
    h2.course-entry-title {
        color: white !important;
    }

    a.bb-lesson-head {
        color: white !important;

        &:hover {
            background: rgba(255,255,255,0.5);
        }
    }

    a.course-entry-link {
        background: rgba(255,255,255,0.5);
        color: var(--blue);

        &:hover {
            background: var(--red);
            color: white;
        }
    }
}

.ld-tab-content h3 {
    margin-bottom: 10px;
    font-size: 30px !important;
}

@media(max-width: 1300px) {
    .ld-tab-content h3 {
        font-size: 28px !important;
    }//
}

@media(max-width: 800px) {
    .ld-tab-content h3 {
        font-size: 26px !important;
    }
}

@media(max-width: 480px) {
    .ld-tab-content h3 {
        font-size: 23px !important;
    }
}