/*-------------------------------------------------------------------------*/
/*	Globally Applied Styles
/*-------------------------------------------------------------------------*/

.daf-lms-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}
.daf-lms-row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

/*-------------------------------------------------------------------------*/
/*	Shortcodes
/*-------------------------------------------------------------------------*/

/* Daf lms button shortcode  */
.daf-lms-button-shortcode {
    padding: 10px 20px;
    display: inline-block;
    color: white;
    background-color: blue;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

/* Daf lms video shortcode */
.daf-lms-video-shortcode-wrapper .daf-lms-responsive-iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;
}
.daf-lms-video-shortcode-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}
.daf-lms-video-shortcode-wrapper .wp-video {
    width: 100% !important;
}
/*-------------------------------------------------------------------------*/
/*	Single course
/*-------------------------------------------------------------------------*/

.daf-lms-lesson-content iframe {
    max-width: 100%;
}
.daf-lms-single-course-wrapper {
    padding: 30px 0;
    background: white;
}
.daf-lms-container {
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.daf-lms-single-course-wrapper.daf-lms-sidebar > .daf-lms-container {
    display: flex;
    flex-wrap: wrap;
}
.daf-lms-single-course-wrapper.daf-lms-sidebar .daf-lms-course-content{
    order:2;
    width: 100%;
    box-sizing: border-box;
    margin-top: 30px;
}
.daf-lms-single-course-wrapper.daf-lms-sidebar .daf-lms-course-sidebar-wrapper{
    width: 100%;
    box-sizing: border-box;
}
.daf-lms-single-course-wrapper .daf-lms-single-course-title {
    text-align: center;
    margin-bottom: 20px;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 34px;
}
.daf-lms-course-no-access {
    color: red;
}
.daf-lms-single-course-wrapper .daf-lms-single-course-description {
    margin-bottom: 30px;
    margin-top: 30px;
    width: 100%;
    font-size: 16px;
}
.daf-lms-single-course-sections-wrapper .daf-lms-single-course-section > h2 {
    margin-bottom: 30px;
    position: relative;
    font-size: 30px;
}
.daf-lms-single-course-sections-wrapper
    .daf-lms-single-course-section.daf-lms-completed
    > h2::after {
    display: block;
    position: absolute;
    content: "";
    right: 15px;
    top: 12px;
    height: 8px;
    width: 16px;
    border: solid #4bb543;
    border-width: 0 0 4px 4px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.daf-lms-single-course-sections-wrapper .daf-lms-single-course-section.active {
    display: block;
}
.daf-lms-single-course-section-nav button {
    background-color: #2e518e;
    color: white;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 999;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border: none;
}
.daf-lms-single-course-section-nav button:hover {
    background-color: #093361;
    opacity: 0.75;
}
.daf-lms-single-course-section-nav button:focus {
    background-color: #093361;
    outline: none;
}
.daf-lms-single-course-section-nav button.disabled {
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}
.daf-lms-single-course-section-nav .daf-lms-next-section {
    float: right;
}
.daf-lms-section-lessons-wrapper .daf-lms-course-lesson {
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f1f1;
}
.daf-lms-section-lessons-wrapper
    .daf-lms-course-lesson
    .daf-lms-lesson-heading {
    background: #2e518e;
    color:white;
    padding: 15px;
    cursor: pointer;
    position: relative;
    border-radius: 10px;
}
.daf-lms-section-lessons-wrapper
    .daf-lms-course-lesson
    .daf-lms-lesson-heading
    h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    padding-right: 30px;
    color:white;
}
.daf-lms-section-lessons-wrapper
    .daf-lms-course-lesson
    .daf-lms-lesson-heading
    h3
    span.daf-lms-lesson-count {
    font-size: 16px;
    padding-right: 10px;
}
.daf-lms-section-lessons-wrapper
    .daf-lms-course-lesson
    .daf-lms-lesson-heading::after {
    display: block;
    content: "+";
    position: absolute;
    right: 15px;
    top: 10px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid;
    font-size: 30px;
    font-weight: 700;
}
.daf-lms-section-lessons-wrapper
    .daf-lms-course-lesson.daf-lms-visible-lesson
    .daf-lms-lesson-heading::after {
    content: "-";
    line-height: 25px;
}
.daf-lms-section-lessons-wrapper
    .daf-lms-course-lesson
    .daf-lms-lesson-content {
    display: none;
    padding: 20px 15px;
    font-size: 16px;
}
.daf-lms-section-lessons-wrapper
    .daf-lms-course-lesson.daf-lms-visible-lesson
    .daf-lms-lesson-content {
    display: block;
}
.daf-lms-single-course-progress-bar-container {
    margin-bottom: 30px;
}
.daf-lms-single-course-progress-bar-container h4 {
    text-transform: uppercase;
    font-size: 22px;
    font-weight: 500;
}
.daf-lms-single-course-progress-bar {
    background: #f1f1f1;
    border-radius: 6px;
    overflow: hidden;
}
.daf-lms-single-course-progress-bar.not-started span {
    color: black;
    background: transparent;
    padding-left: 10px;
}
.daf-lms-single-course-progress-bar span {
    color: white;
    background: #4bb543;
    text-align: center;
    display: block;
    transition: width 2s;
    padding: 7px 0;
    font-size: 18px;
    font-weight: 700;
    min-width: 70px;
}
.daf-lms-complete-leson-wrapper {
    text-align: center;
    margin-top: 30px;
    display: inline-block;
    width: 100%;
}
.daf-lms-complete-lesson-btn {
    border-radius: 10px;
    margin-left: 10px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    background: #e55834;
    padding: 0.5rem 1rem;
    border: none;
    text-decoration: none !important;
    cursor: pointer;
}
.daf-lms-complete-lesson-btn:hover{
    background: #e55834;
    color:white;
    opacity: 0.7;
}
.daf-lms-complete-lesson-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.daf-lms-complete-lesson-btn.completed {
    background: #4bb543;
    color: white;
    border: none;
}
.daf-lms-single-course-section-nav {
    margin-top: 30px;
}
.daf-lms-single-course-back-to-all-courses-btn{
    width: 100%;
}
.daf-lms-single-course-back-to-all-courses-btn a{
    text-decoration: none;
    background: #2e518e;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    color: white;
    display: inline-block;
    font-size: 16px;
}
.daf-lms-single-course-back-to-my-courses-btn {
    display: none;
    text-align: center;
}
.daf-lms-single-course-back-to-my-courses-btn.active {
    display: block;
}
.daf-lms-single-course-back-to-my-courses-btn a {
    border-radius: 10px;
    padding: 0.5rem 1rem;
    color: white;
    display: inline-block;
    margin-top: 20px;
    text-decoration: none !important;
    background: #4BB543;
}
.daf-lms-loading-btn{
    position: relative;
    overflow: hidden;
}
.daf-lms-loading-btn.active::after{
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top:0;
    left:0;
    background: rgba(240, 240, 240, 0.5);
}
.daf-lms-loading-btn span{
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px;
}
.daf-lms-loading-btn.active span{
    display: block;
}
.daf-lms-loading-btn span::after{
    content: " ";
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 3px solid #000;
    border-color: #000 #000 transparent;
    animation: daf-lms-loading-circle 1.2s linear infinite;
    position: relative;
    z-index: 9;
}

#daf-lms-single-course-loading-section-spinner {
    display: none;
    justify-content: center;
}
#daf-lms-single-course-loading-section-spinner.active {
    display: flex;
}
#daf-lms-single-course-loading-section-spinner span {
    display: inline-block;
    width: 80px;
    height: 80px;
    position: relative;
}
#daf-lms-single-course-loading-section-spinner span:after {
    content: " ";
    display: block;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #000;
    border-color: #000 #000 transparent;
    animation: daf-lms-loading-circle 1.2s linear infinite;
}
@keyframes daf-lms-loading-circle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Course template with sidebar */
.daf-lms-course-sidebar-nav {
    padding-left: 0;
    margin-left: 0;
    display: none;
}
.daf-lms-course-sidebar-content h4 {
    text-transform: uppercase;
    position: relative;
    font-size: 22px;
    font-weight: 500;
    line-height: 32px;
    margin-bottom: 20px;
}
.daf-lms-course-sidebar-content h4::after{
    display: block;
    content: "+";
    position: absolute;
    right: 15px;
    top: 2px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid;
    font-size: 30px;
    font-weight: 700;
}
.daf-lms-course-sidebar-content h4.active::after{
    content:"-";
    line-height: 25px;
}
.daf-lms-course-sidebar-nav li {
    display: block;
    cursor: pointer;
    margin-bottom: 10px;
    background: #2e518e;
    padding: 10px 15px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    position: relative;
    margin-left: 0;
}
.daf-lms-course-sidebar-nav li.daf-lms-active {
    background: #e55834;
    color: white;
}
.daf-lms-course-sidebar-nav li.daf-lms-completed {
    background: #4bb543;
    color: white;
}


/* Single course compulsory modules completion popup */

.daf-lms-compulsory-modules-completion-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 999;
}
.daf-lms-compulsory-modules-completion-popup::after {
    content: "";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    opacity: 0.5;
}
.daf-lms-compulsory-modules-completion-popup-centered {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 500px;
    height: 100%;
    margin: 0 auto;
    z-index: 1055;
}
.daf-lms-compulsory-modules-completion-popup-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    padding: 10px 20px 20px;
}
.daf-lms-compulsory-modules-completion-popup-content .close {
    text-align: right;
    cursor: pointer;
}
.daf-lms-compulsory-modules-completion-popup-content p {
    margin-bottom: 0;
    margin-top: 10px;
}

/* Single course ask a question */

.daf-lms-course-ask-question {
    max-width: 400px;
    padding: 34px 0 0;
    background: #093361;
    position: fixed;
    bottom: 30px;
    right: -430px;
    z-index: 10;
    transition: 0.5s ease-in-out;
}
.daf-lms-course-ask-question.daf-lms-active {
    right: 0;
}
.daf-lms-course-ask-question .daf-lms-close-ask-question {
    color: white;
    position: absolute;
    right: 15px;
    top: 0px;
    font-size: 2rem;
    cursor: pointer;
}
.daf-lms-course-ask-question-content {
    padding: 20px;
}
.daf-lms-course-ask-question input[type="submit"] {
    margin-top: 20px;
    background-color: white;
    color: black;
    border: none;
}
.daf-lms-course-contact-btn {
    position: fixed;
    bottom: 90px;
    right: -200px;
    transition: 0.5s ease-in-out;
    z-index: 99;
    display: none;
}
.daf-lms-course-contact-btn.daf-lms-active {
    right: 0;
}
.daf-lms-course-contact-btn button {
    background: #e55834;
    color: white;
    text-transform: uppercase;
    padding: 15px 25px;
    font-weight: 700;
    border: none;
}
.daf-lms-course-contact-btn button:hover {
    opacity: 0.7;
    color: white;
}
#daf-lms-ask-question-response span {
    background: white;
    padding: 10px;
    display: block;
    margin-top: 15px;
}

/*-------------------------------------------------------------------------*/
/*	Archive course
/*-------------------------------------------------------------------------*/
.daf-lms-archive-course-wrapper {
    padding-top: 30px;
    padding-bottom: 30px;
}
.daf-lms-course-categories-filter {
    margin-bottom: 30px;
    text-align: center;
}
.daf-lms-course-categories-filter button {
    cursor: pointer;
    border: 0;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 7px 14px;
    background: #2e518e;
    color:white;
    font-size: 16px;
}
.daf-lms-course-categories-filter button:hover{
    text-decoration: none;
    background: #e55834;
}
.daf-lms-course-categories-filter button.daf-lms-active-filter-btn {
    color: white;
    background: #e55834;
}
.daf-lms-course-category-nav{
    text-align: center;
    margin-bottom: 30px;
}
.daf-lms-course-category-nav a{
    padding: 7px 14px;
    margin-right: 10px;
    margin-bottom: 10px;
}
.daf-lms-archive-box.daf-lms-scale {
    transition: transform 1s;
    transform: scale(1);
}
.daf-lms-archive-box:not(.daf-lms-scale) {
    transition: transform 1s;
    transform: scale(0);
}
.daf-lms-archive-row .daf-lms-archive-box {
    text-align: center;
    margin-bottom: 30px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.daf-lms-archive-row .daf-lms-archive-box .daf-lms-archive-box-content {
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    padding: 8px;
    border-radius: 12px;
}
.daf-lms-archive-box-content .daf-lms-archive-box-img {
    height: 300px;
    background-size: cover;
    background-position: center;
}
.daf-lms-archive-box-content .daf-lms-archive-box-excerpt{
    margin-bottom: 15px;
    font-size: 16px;
}
.daf-lms-archive-row .daf-lms-archive-box .daf-lms-archive-box-content h2 {
    font-size: 20px;
}
.daf-lms-archive-box-content a {
    padding: 7px 20px;
    display: inline-block;
    margin-bottom: 15px;
    background: #093361;
    color: white;
    font-size: 16px;
    text-decoration: none;
}
.daf-lms-archive-box-content a:hover {
    color: white;
    opacity: 0.4;
}
.daf-lms-archive-box-content a.daf-lms-archive-completed-btn {
    background: #4BB543;
}
.daf-lms-archive-box-content a.daf-lms-archive-continue-btn {
    background: #e55834;
}
.daf-lms-archive-box-content a.daf-lms-archive-start-btn {
    background: #2e518e;
}
.daf-lms-archive-box-content a.daf-lms-archive-buy-btn {
    background: #e55834;
}
.daf-lms-archive-box-progress-bar {
    background-color: #ebebeb;
    -moz-box-shadow: 0 3px 6px 0 #d6d4d4 inset;
    -webkit-box-shadow: 0 3px 6px 0 #d6d4d4 inset;
    box-shadow: 0 3px 6px 0 #d6d4d4 inset;
    border-radius: 6px;
    width: 100%;
    overflow: hidden;
}
.daf-lms-archive-box-progress-bar span {
    background: #4bb543;
    height: 15px;
    display: block;
}

/*-------------------------------------------------------------------------*/
/*	Woocommerce my account my courses
/*-------------------------------------------------------------------------*/
.daf-lms-my-account-my-courses-wrapper {
    margin-top: 40px;
}
.daf-lms-my-account-my-courses-wrapper .daf-lms-my-account-course-box-img {
    height: 300px;
    background-size: cover;
    background-position: center;
}
.daf-lms-my-account-my-courses-wrapper .daf-lms-my-account-course-box a {
    padding: 7px 20px;
    display: inline-block;
    margin-bottom: 15px;
    background: #093361;
    color: white;
    text-decoration: none !important;
}

/*-------------------------------------------------------------------------*/
/*	Responsive
/*-------------------------------------------------------------------------*/

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
}
/* Min-width 1001px */
@media only screen and (min-width: 1001px) {

    .daf-lms-single-course-wrapper.daf-lms-sidebar .daf-lms-course-content {
        width: 70%;
        flex: 0 0 auto;
    }
    .daf-lms-single-course-wrapper.daf-lms-sidebar .daf-lms-container .daf-lms-course-content{
        order:1;
    }
    .daf-lms-single-course-wrapper.daf-lms-sidebar .daf-lms-container .daf-lms-course-sidebar-wrapper{
        order:2;
    }
    .daf-lms-course-sidebar-nav {
        display: block;
    }
    .daf-lms-course-sidebar-content h4::after{
        display: none;
    }
    .daf-lms-single-course-wrapper.daf-lms-sidebar
        .daf-lms-course-sidebar-wrapper {
        display: block;
        padding-top: 30px;
        width: 30%;
        flex: 0 0 auto;
        padding-left: 50px;
    }
    .daf-lms-course-sidebar-content {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
    }
    .daf-lms-archive-row .daf-lms-archive-box {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    .daf-lms-my-account-my-courses-wrapper .daf-lms-my-account-course-box {
        width: 50%;
        flex: 0 0 auto;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }
    .daf-lms-my-account-my-courses-wrapper
        .daf-lms-my-account-course-box:nth-child(odd) {
        padding-right: 15px;
    }
    .daf-lms-course-contact-btn {
        display: block;
    }
    .daf-lms-col-third {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
}

/* Extra large devices (large laptops and desktops, 1600px and up) */
@media only screen and (min-width: 1600px) {
}
/* Large Phones And Tablet */
@media only screen and (max-width: 768px) {
}
/* Extra Small Devices, Phones */
@media only screen and (max-width: 480px) {
    .daf-lms-course-sidebar-content h4{ 
        background: #f0f0f0;
        padding: 10px;
    }
    .daf-lms-course-sidebar-content h4::after{
        top: 10px;
    }
}
