.thim-widget-courses {
    position: relative;
    .view-all-courses {
        border: 1px solid #111;
        color: #333;
        position: absolute;
        top: -96px;
        right: 0;
        line-height: 34px;
        height: 36px;
        padding: 0 20px;
        text-transform: uppercase;
        font-size: 13px;
        font-weight: 700;
        &.position-bottom{
            position: relative;
            top: auto;
            right: auto;
            display: block;
            text-align: center;
            border: none;
            font-size: 16px;
            height: 60px;
            line-height: 40px;
            padding: 10px 0;
            margin-top: 20px;
            margin-bottom: 40px;
        }
    }
    .thim-course-grid {
        margin: 0 -15px;
        width: auto;
    }
}

.thim-course-carousel {
    margin: 0 -15px;
    width: auto;
    &.thim-course-grid{
        .site-main &{
            overflow: visible;
            .owl-buttons{
                top: -60px;
            }
        }
    }
    >.course-item{
        max-width: 270px;
        overflow: hidden;
        float: left;
        margin: 0 15px;
    }
    .owl-item {
        padding: 0 15px;
    }
    .owl-controls{
        .owl-pagination{
            margin-top: 30px;
        }
    }
    .owl-buttons {
        position: absolute;
        right: 15px;
        top: -90px;
        .owl-prev,
        .owl-next {
            display: inline-block;
            margin-left: 10px;
            cursor: pointer;
            border: 1px solid #111;
            width: 30px;
            text-align: center;
            line-height: 28px;
            .fa {
                text-align: center;
                vertical-align: middle;
                line-height: 28px;
                color: #333;
                font-size: 8px;
                display: block;
            }
        }
    }
}

.thim-course-content{
    .course-price{
        .course-origin-price{
            padding-left: 5px;
            padding-right: 0;
            color: #ccc;
            text-decoration: line-through;
        }
    }
}
.thim-course-grid {
    .course-meta{
        .course-origin-price{
            padding-left: 5px;
            padding-right: 0;
            color: #ccc;
            text-decoration: line-through;
        }
    }
    .site-main & {
        overflow: hidden;
        clear: both;
        margin: 0 -15px;
        &#thim-course-archive{
            margin-bottom: -40px;
        }
    }
    .profile-tabs &{
        &.thim-carousel-wrapper{
            overflow: visible;
            margin-bottom: 40px;
            padding-top: 30px;
            .owl-controls{
                top: -60px;
            }
        }
    }
    &:not(.thim-course-carousel) {
        .thim-widget-courses & {
            overflow: hidden;
            clear: both;
            margin: 0 -15px;
        }
    }
    .course-grid-2 {
        width: 50%;
        &:nth-child(2n+1) {
            clear: both;
        }
    }
    .course-grid-3 {
        width: 33.33%;
        &:nth-child(3n+1) {
            clear: both;
        }
    }
    .course-grid-4 {
        width: 25%;
        &:nth-child(4n+1) {
            clear: both;
        }
    }
    .course-grid-5 {
        width: 20%;
        &:nth-child(5n+1) {
            clear: both;
        }
    }
    .lpr_course[class*='course-grid-'] {
        padding: 0 15px;
        float: left;
        margin-bottom: 40px;
        padding-top: 0 !important;
        .thim-ralated-course & {
            margin-bottom: 0;
        }
    }
}

.thim-course-grid {
    .course-item {
        text-align: center;
        box-shadow: none;
        .course-thumbnail {
            margin: 0;
            overflow: hidden;
            position: relative;
            img {
                width: 100%;
                @include transition(all 0.5s ease-in-out);
            }
            &:before{
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                z-index: 2;
                background: rgba(0,0,0,0.6);
                @include transition(all 0.3s);
                @include opacity(0);
            }
            > a {
                width: 100%;
                display: inline-block;
                position: relative;
                &.course-readmore{
                    position: absolute;
                    top: 50%;
                    background: #ffb606;
                    color: #333;
                    line-height: 30px;
                    padding: 5px 25px;
                    z-index: 90;
                    left: 50%;
                    right: auto;
                    margin: auto;
                    width: auto;
                    font-size: 13px;
                    font-weight: 700;
                    text-transform: uppercase;
                    @include opacity(0);
                    @include transition(all 0.3s ease-in-out);
                    @include transform(translate(-50%, -50%) scale(1.2, 1.2));
                }
            }
            &:hover {
                img {
                    @include transform(scale(1.05, 1.05));
                }
                &:before{
                    @include opacity(1);
                }
                >a.course-readmore{
                    @include transform(translate(-50%, -50%) scale(1, 1));
                    @include opacity(1);
                }
            }
        }
        .thim-course-content {
            line-height: 25px;
            border: 1px solid #e5e5e5;
            border-top: 0;
            padding: 0 20px;
            .course-author {
                margin-top: 0;
                position: relative;
                img {
                    margin-top: -28px;
                    border-radius: 50%;
                    border: 2px solid #fff;
                    position: relative;
                    z-index: 3;
                }
                label {
                    display: none;
                }
                .value {
                    font-size: 13px;
                    font-weight: 400;
                    text-transform: capitalize;
                    margin-top: 7px;
                    a {
                        color: #7a7a7a;
                        &:hover {
                            text-decoration: underline;
                        }
                    }
                }
            }
            .course-title {
                font-size: 16px;
                font-weight: 700;
                line-height: 25px;
                margin: 11px 0 22px;
                height: 50px;
                display: block;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
                text-transform: none;
                a{
                    display: block;
                }
            }
            > .course-description,
            > .course-readmore,
            > .course-price {
                display: none;
            }
            .course-meta {
                overflow: hidden;
                position: relative;
                padding: 14px 0 10px;
                display: block;
                margin: 0;
                &:before {
                    content: '';
                    width: 30px;
                    height: 3px;
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    margin: auto;
                    background: #000;
                    z-index: 10;
                }
                &:after {
                    content: '';
                    position: absolute;
                    left: 0;
                    right: 0;
                    top: 1px;
                    height: 1px;
                    width: 100%;
                    background: #e5e5e5;
                }
                .course-author,
                .course-review,
                label {
                    display: none;
                }
                .value {
                    font-size: 14px;
                    color: #ccc;
                    line-height: 30px;
                    font-weight: 400;
                    text-transform: none;
                }
                > div {
                    display: inline-block;
                    float: left;
                    line-height: 30px;
                    margin-right: 15px;
                    color: #ccc;
                    padding: 0;
                    border: 0;
                    a {
                        color: #ccc;
                    }
                    i {
                        display: inline-block;
                        margin-right: 4px;
                        line-height: 30px;
                        font-size: 13px;
                        vertical-align: top;
                        &.fa-comment {
                            margin-top: -1px;
                        }
                    }
                    &.course-price {
                        float: right;
                        margin-right: 0;
                        .value {
                            font-size: 13px;
                            font-weight: 700;
                            color: #f24c0a;
                            &.free-course {
                                color: #54b551;
                            }
                        }
                    }
                }
            }
        }
    }
}

.thim-course-list {
    .lpr_course {
        clear: both;
        border-bottom: 1px solid #e5e5e5;
        padding: 40px 0;
        padding-top: 40px !important;
        overflow: hidden;
        &:first-child {
            padding-top: 0px !important;
        }
    }
    .course-item {
        overflow: hidden;
        .course-thumbnail {
            float: left;
            height: auto;
            overflow: hidden;
            max-width: 22%;
            max-width: calc(270px);
            max-width: -webkit-calc(270px);
            max-width: -moz-calc(270px);
            margin-right: 3%;
            margin-right: calc(30px);
            margin-right: -webkit-calc(30px);
            margin-right: -moz-calc(30px);
            img {
                width: 100%;
                @include transition(all 0.5s ease-in-out);
            }
            > a {
                display: inline-block;
                position: relative;
                width: 100%;
            }
            &:hover {
                img {
                    @include transform(scale(1.05, 1.05));
                }
            }
            .course-readmore{
                display: none;
            }
        }
        .thim-course-content {
            width: 75%;
            width: calc(100% - 300px);
            width: -webkit-calc(100% - 300px);
            width: -moz-calc(100% - 300px);
            float: right;
            > .course-author {
                display: none;
            }
            .course-title {
                font-size: 24px;
                font-weight: 700;
                line-height: 30px;
                margin: 3px 0 2px;
                text-transform: none;
                a{
                    display: block;
                }
            }
            .course-meta {
                overflow: hidden;
                position: relative;
                padding: 0;
                label {
                    font-size: 12px;
                    font-weight: 700;
                    color: #ccc;
                    margin-bottom: 0;
                }
                .value {
                    font-size: 12px;
                    text-transform: uppercase;
                    font-weight: 700;
                    color: #7a7a7a;
                }
                > div {
                    margin-top: 15px;
                    display: inline-block;
                    line-height: 20px;
                    margin-right: 20px;
                    padding-right: 20px;
                    color: #ccc;
                    border-right: 1px solid #eeeeee;
                    float: left;
                    &:last-child{
                        margin-right: 0;
                        padding-right: 0;
                        border-right: none;
                    }
                    .value {
                        line-height: 16px;
                    }
                    i {
                        display: none;
                    }
                    &.course-author {
                        img {
                            border-radius: 50%;
                            width: 40px;
                            height: auto;
                            float: left;
                            margin-right: 10px;
                        }
                        .author-contain {
                            display: inline-block;
                        }
                        .value {
                            a {
                                color: #7a7a7a;
                                &:hover {
                                    text-decoration: underline;
                                }
                            }
                        }
                    }
                    &.course-comments-count,
                    &.course-price {
                        display: none;
                    }
                    &.course-students {
                        padding-right: 0;
                        margin-right: 0;
                        border-right: 0;
                    }
                }
            }
            .course-description {
                margin: 30px 0 30px;
                height: 75px;
                line-height: 25px;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
            }
            .course-price {
                float: left;
                font-weight: 700;
                font-size: 18px;
                line-height: 25px;
                label,
                .value {
                    display: inline-block;
                }
                label {
                    color: #999;
                    margin-bottom: 0;
                }
                .value {
                    color: #f24c0a;
                    &.free-course {
                        color: #54b551;
                    }
                }
            }
            .course-readmore {
                float: right;
                text-transform: uppercase;
                font-weight: 700;
                font-size: 13px;
                margin-top: 4px;
                a {
                    line-height: 30px;
                    height: 40px;
                    padding: 5px 25px;
                    display: inline-block;
                }
            }
        }
    }
}

.course-meta .course-review .review-stars-rated{
    float: left;
    .review-stars{
        margin-top: 2px;
    }
}
.course-review .review-text .review-stars-rated .review-stars{
    margin-top: 4px;
}
.add-review .review-stars-rated,
.rating-box .review-stars-rated,
.course-review .review-stars-rated {
    height: 16px;
    line-height: 16px;
    width: 80px;
    .review-stars {
        margin: 0;
        display: inline-block;
        list-style: none;
        line-height: 16px;
        height: 16px;
        float: left;
        font-size: 0;
        > li {
            width: 16px;
            height: 16px;
            display: inline-block;
            float: none;
            margin-bottom: 0;
            span {
                font-size: 13px;
                width: auto;
                height: auto;
                border-bottom: none;
                text-decoration: none;
                &:before {
                    width: auto;
                    height: auto;
                }
            }
        }
        &.filled {
            height: 16px;
            > li {
                position: static;
            }
        }
    }
}

/** Search course **/
.switch-layout-container {
    background: #f5f5f5;
    padding: 10px 10px 10px 20px;
    margin-bottom: 60px;
    min-height: 54px;
    .switch-layout {
        float: left;
        a {
            font-size: 18px;
            display: inline-block;
            line-height: 34px;
            margin-right: 5px;
            color: #ccc;
        }
    }
    .course-index{
        display: inline-block;
        line-height: 34px;
        font-size: 13px;
        color: #999;
        margin-left: 15px;
    }
    .courses-searching {
        float: right;
        position: relative;
        max-width: calc(100% - 70px);
        max-width: -webkit-calc(100% - 70px);
        max-width: -moz-calc(100% - 70px);
        ul {
            margin: 0;
            left: 0px;
            right: 0px;
            z-index: 99;
            overflow: hidden;
            line-height: 30px;
            background: #f6f6f6;
            border: none;
            margin-top: 2px;
            min-width: 270px;
            position: absolute;
            box-shadow: inset 0px 0px 1px 1px #eee;
            li {
                list-style: none;
                line-height: 30px;
                padding: 0px 20px;
                height: 30px;
                display: block;
                a {
                    display: inline-block;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    overflow: hidden;
                    max-width: 100%;
                    color: #666;
                    font-size: 13px;
                    &:hover {
                        text-decoration: underline;
                    }
                }
                &.ob-selected{
                    a{
                        text-decoration: underline;
                    }
                }
                &:first-child {
                    margin-top: 10px;
                }
                &:last-child {
                    margin-bottom: 10px;
                }
            }
        }
        form {
            border: 0;
            background: #fff;
            width: 270px;
            position: relative;
            line-height: 34px;
            max-width: 100%;
            input[type='text'] {
                font-size: 13px;
                color: #999;
                line-height: 20px;
                padding: 6px 0 6px 10px;
                border-radius: 0;
                width: 100%;
                height: 34px;
                border: 1px solid #e5e5e5;
                @include transition(all 0.3s ease-in-out);
                box-shadow: none;
                &:focus {
                    outline: none;
                    box-shadow: none;
                }
            }
            button[type='submit'] {
                position: absolute;
                right: 0;
                top: 0;
                bottom: 0;
                text-align: center;
                z-index: 10;
                background: transparent;
                box-shadow: none;
                border: none;
                outline: none;
                width: 30px;
                padding: 0;
                line-height: 34px;
                i {
                    font-size: 14px;
                    color: #ccc;
                    line-height: 34px;
                }
            }
        }
    }
}

/** Addon wishlist **/
.course-item {
    .course-thumbnail{
        position: relative;
        .course-wishlist-box{
            position: absolute;
            right: 15px;
            top: 15px;
            z-index: 88;
            .fa{
                cursor: pointer;
                width: 20px;
                height: 20px;
                display: block;
                text-align: center;
                line-height: 20px;
                font-size: 18px;
                &:before{
                    line-height: 20px;
                    display: inline-block;
                }
            }
            .course-wishlist{
                color: #fff;
                @include transition(all 0.3s);
                &:hover{
                    color: #F24C0A;
                }
            }
            .course-wishlisted{
                color: #F24C0A;
            }
            .text{
                display: none !important;
            }
        }
    }
}


.thim-course-megamenu{
    .course-item{
        text-align: center;
    }
    .course-thumbnail{
        img{
            width: 100%;
            margin: 0;
        }
    }
    .course-title{
        font-size: 14px;
        font-weight: 700;
        text-transform: none;
        line-height: 25px;
        margin: 0;
        a{
            padding: 0 !important;
            margin-top: 3px;
        }
    }
    .course-price{
        .value{
            font-size: 13px;
            font-weight: 700;
            color: #f24c0a;
            margin-bottom: 7px;
            margin-top: 5px;
            &.free-course{
                color: #54b551;
            }
        }
    }
    .course-readmore{
        text-transform: uppercase;
        font-weight: 700;
        font-size: 13px;
        padding: 5px 22px !important;
        display: inline-block !important;
        line-height: 30px;
    }
}

.course-thumbnail .course-readmore{
    white-space: nowrap;
}

.thim-category-tabs{
    &.thim-course-grid{
        .thim-widget-courses &{
            margin-top: -108px;
        }
    }
    .nav-tabs{
        float: right;
        border: 0;
        margin-bottom: 78px;
        margin-right: 15px;
        li{
            margin: 0;
            padding: 0 15px;
            &:last-child{
                padding-right: 0;
            }
            a{
                border: 0;
                background: none;
                font-weight: 700;
                line-height: 20px;
                margin: 0;
                padding: 5px 0;
                border-bottom: 1px solid transparent;
                &:hover{
                    border: 0;
                    background: none;
                }
            }
            &.active{
                a{
                    border: 0;
                    background: none;
                }
            }
        }
    }
}


body .course-meta > * {
    display: inline-block;
    font-style: normal;
    font-size: inherit;
}

body .course-meta > *:after {
    display: none;
}

body .course-content.popup-content .message{
    margin-bottom: 30px;
}

#learn-press-popup-certificate{
    background: #54B551;
    color: #fff;
    &:hover{
        background: #51a74e;
    }
}

body .learnpress ul,
body .learnpress li{
    list-style: inherit;
}
.learnpress ol{
    margin-left: 25px;
}
