:root{
    --course-new-background: #ffffff;
    --course-new-color: #000000;
    --course-new-border: #EAEBF4;

    --course-new-background-hover: #f7f7f7;
    --course-new-color-hover: #2d2d2d;
    --course-new-border-hover: #f7f7f7;
}

.ngjs-course-section-dark, .ngjs-course-section-dark-slider {
    background-color: #000000;
    color: #ffffff;

    --course-new-background: #18171C;
    --course-new-color: #ffffff;
    --course-new-border: #4D4D4D;
    --course-new-background-hover: #f7f7f7;
    --course-new-color-hover: #2d2d2d;
    --course-new-border-hover: #727272;
}

.ngjs-course-section.ngjs-course-section-dark-slider, .ngjs-course-section.ngjs-course-section-slider{
    padding: 30px 12px;
}
.ngjs-course-section{
    padding: 30px 12px;
    position: relative;
}
.ngjs-course-container{
    max-width: 1068px;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
    position: relative;
    padding: 30px 12px;
}
.ngjs-course-container > p{
    font-weight: 400;
    font-size: 18px;
    line-height: 1.39;
    margin-bottom: 12px;
    color: inherit;
    text-align: center;
    opacity: .6;
}
.ngjs-course-content{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    margin-left: -12px;
    margin-right: -12px;
    padding: 12px 0;
    margin-bottom: -24px;
}
.ngjs-course-item-block{
    padding: 12px;
    width: 100%;
    max-width: 356px;
    overflow: hidden;
}
.ngjs-course-item-block:hover{
    text-decoration: none;
}
.ngjs-course-item-block:hover .ngjs-course-item{
    color: var(--course-new-color-hover);
    background-color: var(--course-new-background-hover);
    border-color: var(--course-new-border-hover);
}
.ngjs-course-item-block:hover .ngjs-star-block{
    border-color: var(--course-new-border-hover);
}
.ngjs-course-item-block:hover .ngjs-course-category{
    border-color: var(--course-new-border-hover);
}
.ngjs-course-item{
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: background-color .3s, color .3s, border .3s;
    border: 1px solid var(--course-new-border);
    color: var(--course-new-color);
    background-color: var(--course-new-background);
}

.ngjs-course-item-img-block{
    position: relative;
    background-color: inherit;
}
.ngjs-course-item-img{
    height: 186px;
    width: 100%;
    object-fit: cover;
}

.ngjs-course-label{
    background: #1096E1;
    border-radius: 0 10px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    padding: 4px 11px;
    color: #ffffff;
    font-size: 12px;
}
.ngjs-course-category{
    padding: 0 10px;
    background-color: inherit;
    border-radius: 0 6px 0 0;
    font-weight: 400;
    font-size: 12px;
    line-height: 24px;
    color: inherit;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    border-bottom: solid 1px var(--course-new-border);
}
.ngjs-star-block{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 5px 11px;
    border-bottom: solid 1px var(--course-new-border);
    background-color: inherit;
    --star-size: 18px;
}
.ngjs-star-block strong{
    font-weight: 400;
    font-size: 10px;
    opacity: .6;
    margin-left: 2px;
}
.ngjs-course-info{
    background-color: inherit;
    padding: 20px 20px 20px;
    height: 250px;
    display: flex;
    flex-direction: column;
}
.ngjs-course-info .custom-checkbox{
    margin-right: 0;
}
.ngjs-course-info .custom-checkbox input + label{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 0;
}
.ngjs-course-info .custom-checkbox input + label::before{
    bottom: 10px;
    right: 12px;
    left: initial;
    top: initial;
}
.ngjs-course-info .custom-checkbox input + label::after{
    right: 15px;
    bottom: 18px;
    left: initial;
    top: initial;
}

.ngjs-course-author{
    padding: 0 0 14px 0;
    display: flex;
    align-items: center;
}
.ngjs-course-author img{
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 14px;
    border-radius: 50%;
}
.ngjs-course-author span{
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}
.ngjs-course-text{
    margin-bottom: 12px;
}
.ngjs-course-text h3{
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.389;
}
.ngjs-course-text p{
    font-weight: 400;
    font-size: 14px;
    line-height: 1.429;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
    opacity: .7;
}
.ngjs-course-price{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
    line-height: 1.5;
}
.ngjs-course-price p{
    opacity: .6;
    font-size: 14px;
    padding-right: 8px;
}
.ngjs-course-price del{
    opacity: .6;
    font-size: 14px;
}
.ngjs-course-price strong{
    font-weight: 600;
    font-size: 16px;
    margin-left: 6px;
}
.ngjs-course-button{
    margin-top: 35px;
    text-align: center;
}


.slick-list{
    width: 100%;
}
.ngjs-course-section .slick-prev:before, .ngjs-course-section .slick-prev:after,
.ngjs-course-section .slick-next:before, .ngjs-course-section .slick-next:after{
    content: "";
    display: inline-block;
    height: 2px;
    left: 7px;
    position: absolute;
    top: 6px;
    width: 10px;
    padding: 0;
    transform: rotate(45deg);
    background-color: var(--course-new-color);
    transition: transform 0.3s;
    opacity: 1;
    border-radius: 0;
}
.ngjs-course-section .slick-next:after, .ngjs-course-section .slick-prev:after{
    transform: rotate(-45deg);
    top: 12px;
}
.ngjs-course-section .slick-next{
    transform: none;
}
.ngjs-course-section .slick-prev {
    transform: rotate(180deg);
}


@media (max-width: 1159px){

    .ngjs-course-container{
        max-width: 712px;
    }
    .gjs-slick.ngjs-course-content{
        max-width: 688px;
        margin: 0 auto -24px;
    }
    .gjs-slick .ngjs-course-item-block{
        padding: 12px 6px;
    }
}

@media (max-width: 767px){

    .ngjs-course-section, .ngjs-course-container{
        padding: 20px 12px;
    }
    .ngjs-course-container{
        max-width: 356px;
    }
    .ngjs-course-container > p{
        font-size: 16px;
        margin-bottom: 8px;
    }
    .gjs-slick.ngjs-course-content{
        max-width: 356px;
        margin: 0 auto -24px;
    }
    .gjs-slick .ngjs-course-item-block{
        padding: 12px 4px;
    }

    .ngjs-course-section .slick-prev {
        left: -20px;
    }

    .ngjs-course-section .slick-next {
        right: -20px;
    }
    .ngjs-course-section.ngjs-course-section-dark-slider, .ngjs-course-section.ngjs-course-section-slider{
        padding: 20px 15px;
    }
}
