
/********************************************************************************/ /* Best Sale */
.best-sale-course .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
}

.best-sale-course .swiper-slide {
    margin: 0 !important;
}

.best-sale-course {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.best-sale-course .section-head {
    width: 392px;
    background: color-mix(in srgb, var(--primary_color) 8%, transparent);
    padding: 40px;
    border-radius: 0 24px 24px 0;
    flex-direction: column;
    align-items: start;
}

.best-sale-course .section-head .section-head-btns-wrap {
    justify-content: center;
}

.best-sale-course .section-head .section-head-btns-wrap .swiper-button-lock {
    display: flex !important;
}

.best-sale-course .section-head .section-mid-text:before {
    display: none;
}

.best-sale-course .section-head .section-mid-text {
    padding: 32px 0 48px;
}

.best-sale-course-items {
    width: calc(100% - 392px);
    background: #ffffff;
    border-radius: 32px;
    padding: 24px;
    min-height: 469px;
    position: relative;
}

.best-sale-course-items .nav-tabs {
    padding-bottom: 24px;
    border: 0;
    white-space: nowrap;
    display: block !important;
    overflow: auto;
    scroll-behavior: smooth;
}

.best-sale-course-items .nav-tabs::-webkit-scrollbar,
.best-sale-course-items .nav-tabs::-webkit-scrollbar-track {
    visibility: hidden;
    opacity: 0;
    height: 0;
}

.scrollLeft,
.scrollRight {
    color: var(--primary_color);
    font-size: 25px;
    z-index: 9;
    position: absolute;
    top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 60px;
}

.scrollLeft i,
.scrollRight i {
    height: 25px;
    z-index: 2;
}

.scrollRight {
    left: 0;
}

.scrollLeft {
    right: 0;
}

.hide {
    display: none;
}

.scrollLeft:before {
    content: " ";
    width: 70px;
    height: 60px;
    --start_color: #fff;
    --mid_color: rgba(255, 255, 255, 0.7);
    background: linear-gradient(to left, var(--start_color) 0, var(--mid_color) 55%, transparent 100%);
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

.scrollRight:before {
    content: " ";
    width: 70px;
    height: 60px;
    --start_color: #fff;
    --mid_color: rgba(255, 255, 255, 0.7);
    background: linear-gradient(to right, var(--start_color) 0, var(--mid_color) 55%, transparent 100%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.best-sale-course-items .nav-tabs .nav-item {
    padding: 0 13px;
    display: inline-block;
}

.best-sale-course-items .nav-tabs .nav-item .nav-link,
.best-sale-course-items .nav-tabs .nav-item.show .nav-link {
    border: 1px solid transparent;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 16px;
    color: var(--dark_gray_color);
}

.best-sale-course-items .nav-tabs .nav-link.active {
    border-color: var(--primary_color);
    color: var(--primary_color);
    background: color-mix(in srgb, var(--primary_color) 6%, transparent);
    border-radius: 100px;
}

@media (max-width: 1399px) {

    .best-sale-course {
        flex-wrap: wrap;
    }

    .best-sale-course-items {
        width: 100%;
    }

    .best-sale-course .section-head {
        width: 50%;
        border-radius: 24px 24px 0 0;
        align-items: center;
        margin: 0 auto;
    }

}


@media (max-width: 1199px) {

    .best-sale-course .section-head {
        width: 100%;
        border-radius: 0;
        background: transparent;
    }

    .best-sale-course .section-head .section-head-btns-wrap {
        display: flex;
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: 0 12px;
    }

    .best-sale-course .section-head .section-mid-text {
        display: none;
    }

    .best-sale-course {
        margin-bottom: 58px;
    }

    .best-sale-course .section-head {
        padding: 0;
    }

    .best-sale-course-items {
        background: transparent;
        padding: 32px 0;
    }

    .scrollLeft:before,
    .scrollRight:before {
        --start_color: var(--bg_color);
        --mid_color: color-mix(in srgb, var(--bg_color) 70%, transparent);
    }

    .best-sale-course-items .nav-tabs .nav-item .nav-link,
    .best-sale-course-items .nav-tabs .nav-item.show .nav-link {
        font-weight: 400;
        padding: 14px;
    }

    .scrollLeft, .scrollRight {
        top: 26px;
    }

}

@media (max-width: 767px) {


    .best-sale-course .section-head .section-head-btns-wrap > div {
        display: none !important;
    }

    .best-sale-course .section-head-btns-wrap.text-dark .btn:before {
        display: none;
    }

    .best-sale-course .section-head .section-head-btns-wrap .btn {
        width: 100%;
        margin: 0 auto;
        justify-content: space-between;
        display: flex;
        align-items: center;
    }

}