.tf-course-category .courses {
    position: relative;
    clear: both;
    list-style: none;
    margin: 0;
}

.tf-course-category:not(.has-carousel) .courses {
    display: grid;
}

.tf-course-category .courses li {
    width: auto !important;
    padding: 0;
    margin: 0 !important;
    float: none !important;
}

.tf-course-category .courses li .inner {
    border: none;
    padding: 20px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.tf-course-category .courses li .category-thumbnail {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.tf-course-category .courses li .category-thumbnail a {
    display: inline-block;
}

.tf-course-category .courses li .category-thumbnail:before {
    content: '';
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #dce2ea;
}

.tf-course-category .courses li .category-thumbnail img {
    position: relative;
    z-index: 1;
}

.tf-course-category .courses li .category_title {
    margin: 0;
}

.tf-course-category .courses li .shop_cat_desc {
    margin-top: 10px;
}

.tf-course-category:not(.has-carousel) ul.courses.columns-1 {
    grid-template-columns: repeat(1,1fr);
}
.tf-course-category:not(.has-carousel) ul.courses.columns-2 {
    grid-template-columns: repeat(2,1fr);
}
.tf-course-category:not(.has-carousel) ul.courses.columns-3 {
    grid-template-columns: repeat(3,1fr);
}
.tf-course-category:not(.has-carousel) ul.courses.columns-4 {
    grid-template-columns: repeat(4,1fr);
}
.tf-course-category:not(.has-carousel) ul.courses.columns-5 {
    grid-template-columns: repeat(5,1fr);
}
.tf-course-category:not(.has-carousel) ul.courses.columns-6 {
    grid-template-columns: repeat(6,1fr);
}

/*carousel*/
.tf-course-category .owl-carousel .owl-nav .owl-next, 
.tf-course-category .owl-carousel .owl-nav .owl-prev {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    border-radius: 50%;
    color: #fff;
    text-align: center;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.tf-course-category .owl-carousel .owl-nav .owl-next {
    left: unset;
    right: 0;
}
.tf-course-category .owl-carousel .owl-nav .owl-prev:before,
.tf-course-category .owl-carousel .owl-nav .owl-next:before,
.tf-course-category .owl-carousel .owl-dots .owl-dot:before {
    display: none;
}
.tf-course-category .owl-carousel .owl-nav {
    position: absolute;
}

@media (max-width: 1024px) {
    .tf-course-category:not(.has-carousel) ul.courses.columns-4,
    .tf-course-category:not(.has-carousel) ul.courses.columns-5,
    .tf-course-category:not(.has-carousel) ul.courses.columns-6 {
        grid-template-columns: repeat(2,1fr);
    }
} 

@media (max-width: 767px) {
    .tf-course-category:not(.has-carousel) ul.courses.columns-2,
    .tf-course-category:not(.has-carousel) ul.courses.columns-3,
    .tf-course-category:not(.has-carousel) ul.courses.columns-4,
    .tf-course-category:not(.has-carousel) ul.courses.columns-5,
    .tf-course-category:not(.has-carousel) ul.courses.columns-6 {
        grid-template-columns: repeat(1,1fr);
    }
}