@use '../../utils' as *;

/*----------------------------------------*/
/*  4.9 Courses css
/*----------------------------------------*/

.bd-course-thumb-style {
    display: block;
    overflow: hidden;
    @media #{$sm} {
        height: 300px;
    }
    .bd-course-thumb-bg {
        border-radius: 16px 16px 0 0;
        padding: 15px 15px;

        &.bg-1 {
            background-color: #D5EFDE;
        }

        &.bg-2 {
            background-color: #EFCBEF;
        }

        &.bg-3 {
            background-color: #F2E2CA;
        }

        &.bg-4 {
            background-color: #BBDBFB;
        }

        &.bg-5 {
            background-color: #E7DDDE;
        }

        &.bg-6 {
            background-color: #EED8E2;
        }

        &.bg-7 {
            background-color: #DBEACE;
        }

        &.bg-8 {
            background-color: #E0C7D1;
        }

        &.bg-9 {
            background-color: #FBDEBD;
        }

        img {
            width: 100%;
            height: 100%;
            border-radius: 12px;
            object-fit: cover;
        }
    }
    .bd-course-thumb-instructor {
        position: absolute;
        bottom: 0;
        z-index: 5;
        @media #{$xl} {
            width: 160px;
        }
        @media #{$md} {
            width: 120px;
        }
        @media #{$xs} {
            width: 140px;
        }
        &.center {
            left: 50%;
            transform: translateX(-50%);
        }

        &.right {
            right: 20px;
        }

        img {
            width: 100%;
            height: 100%;
        }
    }
    .bd-course-overly-title {
        position: absolute;
        top: 50px;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        font-family: var(--bd-ff-style);
        font-weight: var(--bd-fw-bold);
        line-height: 1;

        &.fs-200 {
            @media #{$md} {
                font-size: 160px;
            }
            @media #{$xs} {
                font-size: 170px;
            }
            @media #{$xxs} {
                font-size: 150px;
            }
        }

        &.fs-140 {
            @media #{$md} {
                font-size: 120px;
            }

            @media #{$xs} {
                font-size: 110px;
            }
        }
    }
    .small-text {
        position: absolute;
        top: 36px;
        left: 30px;
        font-size: 27px;
        font-family: var(--bd-ff-style);
        font-weight: var(--bd-fw-sbold);
    }
    .bd-course-text-content {
        position: absolute;
        left: 30px;
        top: 50%;
        transform: translateY(-50%);

        .text, .text-1, .text-2, .text-3 {
            font-family: var(--bd-ff-style);
            font-weight: var(--bd-fw-bold);
            line-height: 1;
        }
    }
    &.small-style {
        .bd-course-overly-title {
            font-size: 140px;
            &.fs-140 {
                font-size: 100px;
            }
        }
        .small-text {
            font-size: 24px;
            top: 30px;
        }
        .bd-course-text-content {
            .text-1 {
                font-size: 36px;
            }
            .text-2 {
                font-size: 30px;
            }
            .text-3 {
                font-size: 20px;
            }
        }
        .bd-course-thumb-instructor {
            width: 120px;
        }
    }
}

.bd-course-thumb-style-two {
    overflow: hidden;
    display: block;

    &:hover {
        .bd-course-thumb {
            img {
                transform: scale(1.1);
            }
        }
    }

    .bd-course-thumb {
        overflow: hidden;
        border-radius: 16px 16px 0 0;

        img {
            overflow: hidden;
            border-radius: 16px 16px 0 0;
            transition: all 0.3s ease-in-out;
        }
    }

    .bd-course-shape {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        img {
            width: 100%;
            height: 100%;
            border-radius: 16px 16px 0 0;
        }
    }

    .bd-course-logo {
        position: absolute;
        z-index: 999;
        bottom: 20px;
        right: 90px;

        @media #{$xl} {
            bottom: 15px;
            right: 70px;
        }

        @media #{$md} {
            bottom: 10px;
            right: 60px;
        }

        @media #{$sm} {
            right: 40px;
            width: 72px;
            bottom: 5px;
        }

        @media #{$xs} {
            right: 110px;
        }

        @media #{$xxs} {
            bottom: 15px;
            right: 70px;
        }
    }
}

.bd-course-thumb-style-three {
    border-radius: 16px 16px 0 0;
    display: block;

    .bd-course-thumb-bg {
        border-radius: 16px 16px 0 0;
        @media #{$sm} {
            height: 300px;
        }
        img {
            border-radius: 16px 16px 0 0;
            width: 100%;
            height: 100%;
        }
    }

    .bd-course-instructor {
        position: absolute;
        right: 10px;
        bottom: 0;
        @media #{$md} {
            width: 120px;
        }
        img {
            filter: drop-shadow(-4px 0px var(--bd-white));
            width: 100%;
            height: 100%;
        }
    }

    .bd-course-logo {
        position: absolute;
        bottom: 25px;
        left: 30px;

        img {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border: 2px solid var(--bd-white);
            border-radius: 6px;
            @media #{$md} {
                width: 50px;
                height: 50px;
            }
        }
    }

    .bd-course-text-content {
        position: absolute;
        left: 30px;
        top: 50%;
        transform: translateY(-50%);
        padding-bottom: 50px;
        .text, .text-1, .text-2, .text-3 {
            font-family: var(--bd-ff-style);
            font-weight: var(--bd-fw-bold);
            line-height: 1;
        }
    }
}

.bd-course {
    &-wrapper {
        &.style-one {
            .bd-course-tag {
                span {
                    a {
                        font-size: 16px;
                        font-weight: var(--bd-fw-regular);
                        text-transform: capitalize;
                        padding: 7px 24px 7px 24px;
                        border-radius: 0px 8px 0 0;
                        color: var(--bd-taxonomy-color);
                        background-color: var(--bd-white);
                        position: absolute;
                        left: 0;
                        bottom: -1px;
                        transition: var(--transition);
                        z-index: 9;

                        &:hover {
                            color: var(--bd-white);
                            background-color: var(--bd-secondary);
                        }
                    }
                }
            }

            .bd-course-thumb {
                border-radius: 10px 10px 0 0;
                // height: 220px;
                img {
                    width: 100%;
                    height: 100%;
                }
            }

            .bd-course-content {
                padding: 22px 22px 30px 22px;
                border-radius: 0 0 10px 10px;
                border: 1px solid var(--bd-border-primary);
                background-color: var(--bd-bg-primary);
            }

            &:hover {
                .bd-course-tag span a {
                    color: var(--bd-white);
                    background-color: var(--bd-primary);
                }

                .bd-course-thumb {
                    img {
                        transform: scale(1.1);
                    }
                }
            }
        }

        &.style-two {
            .bd-course-content {
                padding: 25px 25px 30px 25px;
                border-radius: 0 0 16px 16px;
                border: 1px solid var(--bd-border-primary);
                background-color: var(--bd-bg-primary);
            }

            .bd-course-meta {
                margin-bottom: 15px;
            }

            .bd-course-title {
                margin-bottom: 15px;
            }
        }

        &.style-three {
            position: relative;

            .bd-course-content {
                padding: 22px 22px 22px 22px;
                border: none;
                background-color: rgba($color: $black, $alpha: 0.50);
                position: absolute;
                inset-inline-start: 0;
                bottom: -1px;
                transition: all 0.3s ease-in-out;
                width: 100%;
                z-index: 9;
                border-radius: 0 0 10px 10px;
            }

            .bd-course-rating-text span {
                color: var(--bd-light);
            }

            .bd-course-title {
                color: var(--bd-white);
            }

            .bd-course-price {
                .current-price {
                    color: var(--bd-white);
                }

                .old-price {
                    color: var(--bd-light);
                }
            }

            .bd-course-author .name {
                color: var(--bd-white);

                &:hover {
                    color: var(--bd-primary);
                }
            }

            .bd-course-lesson span {
                color: var(--bd-light);
            }

            .bd-course-thumb {
                height: 450px;
                width: 100%;
                border-radius: 10px;

                @media #{$sm,$xs} {
                    height: 450px;
                }

                img {
                    width: 100%;
                    min-height: 100%;
                    border-radius: 10px;
                }
            }

            .bd-course-top-meta {
                .bd-course-badge {
                    position: absolute;
                    top: 16px;
                    left: 16px;
                    right: auto;
                }

                .bd-course-like {
                    position: absolute;
                    inset-inline-end: 16px;
                    top: 16px;
                }
            }

            &:hover {
                filter: drop-shadow(0px 4px 70px rgba(0, 0, 0, 0.15));

                .bd-course-content {
                    background-color: var(--bd-white);

                    &::before {
                        background-image: none;
                    }
                }

                .bd-course-rating-text span {
                    color: rgba($color: $black, $alpha: .60);
                }

                .bd-course-title {
                    color: var(--bd-theme-black);
                }

                .bd-course-price {
                    .current-price {
                        color: var(--bd-theme-black);
                    }

                    .old-price {
                        color: rgba($color: $black, $alpha: .60);
                    }
                }

                .bd-course-author .name {
                    color: var(--bd-theme-black);
                }

                .bd-course-lesson span {
                    color: rgba($color: $black, $alpha: .60);
                }

                .bd-course-thumb {
                    img {
                        transform: scale(1.1);
                    }
                }
            }
        }

        &.style-four {
            background: var(--bd-white);
            padding: 24px;
            border-radius: 16px;
            box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.15);
            &:hover {
                .bd-course-thumb img {
                    transform: scale(1.1);
                }
            }

            .bd-course-thumb-style-three {
                display: block;
                border-radius: 16px;
                margin-bottom: 20px;
                position: relative;

                .bd-course-thumb-bg {
                    border-radius: 16px;

                    img {
                        border-radius: 16px;
                    }
                }
            }

            .bd-course-thumb {
                overflow: hidden;
                transition: all 0.3s ease-out 0s;
                border-radius: 24px;
                position: relative;
                width: 100%;
            }

            .bd-course-thumb img {
                width: 100%;
                transition: all 0.3s ease-out 0s;
                height: 100%;
                object-fit: cover;
            }
            .shape {
                position: absolute;
                bottom: -1px;
                left: 0;
                width: 100%;
                img {
                    width: 100%;
                }
            }
            .bd-course-content {
                p {
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                }
            }
            .bd-course-info-item-wrapper {
                padding: 16px 20px;
                display: flex;
                gap: 10px;
                justify-content: space-between;
                align-items: center;
                border-radius: 8px;
            }

            .bd-course-info-item {
                position: relative;
                text-align: center;

                &:not(:last-child) {
                    &::before {
                        content: "";
                        width: 2px;
                        height: 45px;
                        position: absolute;
                        inset-inline-end: -50%;
                        top: 50%;
                        transform: translate(-50%, -50%);
                        opacity: 0.5;
                        border-right: 2px dashed var(--bd-white);
                        @media #{$lg} {
                            inset-inline-end: -70%;
                        }
                    }
                }
            }

            .bd-course-info-item-title {
                font-size: 18px;
                line-height: 23px;
                color: var(--bd-white);
                margin-bottom: 0;

                span {
                    font-size: 16px;
                    font-weight: var(--bd-fw-normal);
                }
            }
        }

        &.style-five {
            box-shadow: 0px 20px 40px rgba(24, 44, 74, 0.05);
            border-radius: 10px;
            position: relative;

            &:hover {
                .bd-course-info {
                    opacity: 1;
                    visibility: visible;
                }
            }

            .bd-course-thumb {
                border-radius: 10px;
                overflow: hidden;
            }

            .bd-course-content {
                padding: 22px 22px 30px 22px;
                background: var(--bd-white);
                border-radius: 0px 0px 10px 10px;
            }

            .border-pile {
                position: relative;

                &::before {
                    position: absolute;
                    height: 75px;
                    width: 1px;
                    background: var(--bd-border-primary);
                    content: "";
                    top: -20px;
                    left: 0;
                    right: 0;
                    margin: auto;
                }
            }
        }

        &.style-six {
            &:hover {
                .bd-course-thumb img {
                    transform: scale3d(1.15, 1.15, 1.15);
                    overflow: hidden;
                }
            }

            .bd-course-thumb {
                overflow: hidden;
                position: relative;
                &::before {
                    position: absolute;
                    content: "";
                    display: block;
                    height: 100%;
                    width: 100%;
                    top: 0;
                    left: 0;
                    transition: all 0.3s ease-in-out;
                    background: rgba($color: $theme-black, $alpha: .2);
                    z-index: 4;
                }
                img {
                    border-radius: 0;
                    transition: all .5s cubic-bezier(0, 0, 0.2, 1);
                    width: 100%;
                    border-top-left-radius: 6px;
                    border-top-right-radius: 6px;
                }
            }

            .bd-course-content {
                padding: 22px 22px 30px 22px;
                background-color: var(--bd-white);
                box-shadow: 0px 10px 40px rgba(28, 51, 84, 0.07);
                border-bottom-left-radius: 6px;
                border-bottom-right-radius: 6px;
            }
        }

        &.style-seven {
            overflow: hidden;
            position: relative;
            border-radius: 16px;
            box-shadow: 0px 4px 10px 0px rgba(131, 131, 131, 0.1);
            &:hover {
                .bd-course-info {
                    opacity: 1;
                    visibility: visible;
                }
            }

            .bd-course-content {
                padding: 22px 22px 30px 22px;
                border-radius: 0 0 16px 16px;
                background-color: var(--bd-white);
            }
            .bd-course-info {
                width: 100%;
                height: 500px;
                background-color: var(--bd-white);
                border-bottom: 1px solid var(--bd-border-primary);
                @media #{$sm,$xs} {
                    display: none;
                }
                p {
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    margin-bottom: 15px;
                }
            }

            .bd-course-info-list ul {
                margin-bottom: 15px;
            }

            .bd-course-title {
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
            }
        }

        &.style-eight {
            overflow: hidden;

            .bd-course-content {
                padding: 25px 25px 25px 25px;
                border-radius: 0 0 6px 6px;
                position: relative;
            }

            .bd-course-btn {
                position: absolute;
                right: 23px;
                top: -25px;
            }

            &:hover {
                .bd-course-thumb {
                    img {
                        transform: scale3d(1.07, 1.07, 1.07);
                    }
                }
            }

            .bd-course-thumb {
                border-radius: 6px 6px 0 0;
                height: 250px;

                img {
                    transition: all 1.1s cubic-bezier(0, 0, 0.2, 1);
                }
            }

            .bd-course-author {
                margin-bottom: 10px;
            }

            .bd-course-title {
                margin-bottom: 15px;
            }

            .bd-course-description {
                margin-bottom: 15px;
            }

            .bd-course-price {
                margin-bottom: 5px;
            }
        }

        &.style-nine {
            padding: 22px 22px 30px 22px;
            border-radius: 24px;

            .bd-course-thumb {
                border-radius: 16px;
                margin-bottom: 20px;
            }

            &:hover {
                .bd-course-thumb {
                    img {
                        transform: scale(1.1);
                    }
                }
            }
        }

        &.style-ten {
            .bd-course-thumb {
                border-radius: 70px 0 0 0;
                img {
                    border-radius: 0;
                    transition: 1.1s cubic-bezier(0, 0, 0.2, 1);
                    height: 280px;
                  }
            }
            .bd-course-thumb-style {
                overflow: hidden;
                border-radius: 70px 0 0 0;

                img {
                    border-radius: 60px 0 0 0;
                }
            }

            .bd-course-thumb-bg {
                border-radius: 70px 0 0 0;
            }

            .bd-course-content {
                padding: 22px 22px 30px 22px;
                border-radius: 0 0 70px 0;
            }
            .bd-course-description {
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
            }
            &:hover {
                .bd-course-thumb {
                    img {
                        transform: scale3d(1.07, 1.07, 1.07);
                    }
                }
            }
        }

        &.style-eleven {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            align-items: center;
            gap: 30px;
            padding: 25px 25px 25px 25px;
            border-radius: 8px;
            @media #{$xl} {
                gap: 20px;
                padding: 15px 15px 15px 15px;
            }
            @media #{$lg,$md,$sm,$xs} {
                grid-template-columns: repeat(1, 1fr);
            }

            &:hover {
                .bd-course-thumb {
                    img {
                        transform: scale3d(1.07, 1.07, 1.07);
                    }
                }
            }
            &.bg-box-shadow {
                background-color: var(--bd-white);
                box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
            }
            .bd-course-thumb {
                overflow: hidden;
                border-radius: 6px;
                img {
                    width: 100%;
                    height: 100%;
                    border-radius: 6px;
                    transition: all 1.1s cubic-bezier(0, 0, 0.2, 1);
                }
            }

            .bd-course-price {
                margin-bottom: 5px;
            }

            .bd-course-title {
                margin-bottom: 15px;
            }

            .bd-course-description {
                margin-bottom: 20px;
            }

            .bd-course-rating {
                margin-bottom: 12px;
            }

            .bd-course-content-bottom {
                display: flex;
            }

            .bd-course-lesson {
                position: relative;

                &:first-child {
                    margin-right: 15px;
                    padding-right: 15px;
                }

                &::before {
                    position: absolute;
                    content: " ";
                    width: 1px;
                    height: 20px;
                    right: 0px;
                    top: 50%;
                    background: var(--bd-border-primary);
                    transform: translateY(-50%);
                }
            }

            &.circle {
                .bd-course-thumb {
                    border-radius: 50%;
                    width: 260px;
                    height: 260px;
                    @media #{$lg,$md,$sm,$xs} {
                        margin: 0 auto;
                    }
                    img {
                        width: 260px;
                        height: 260px;
                        border-radius: 50%;
                    }
                }
            }
        }

        &.style-twelve {
            display: grid;
            grid-template-columns: 389px auto;
            align-items: center;
            width: 100%;
            @media #{$md,$sm,$xs} {
                grid-template-columns: auto;
            }
            .bd-course-thumb-style {
                border-radius: 16px 0 0 16px;
                @media #{$md,$sm,$xs} {
                    border-radius: 16px 16px 0 0;
                }
                .bd-course-thumb-bg {
                    border-radius: 16px 0 0 16px;
                    @media #{$md,$sm,$xs} {
                        border-radius: 16px 16px 0 0;
                    }
                }
            }

            .bd-course-content {
                padding: 15px 30px;
                background-color: var(--bd-bg-primary);
                border-radius: 0 16px 16px 0;
                @media #{$md,$sm,$xs} {
                    border-radius: 0 0 16px 16px;
                }
            }

            .bd-course-title {
                font-size: 34px;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 1;
                -webkit-box-orient: vertical;
                @media #{$md,$sm,$xs} {
                    font-size: 26px;
                    -webkit-line-clamp: 3;
                }
            }

            .bd-course-description {
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                margin-bottom: 20px;
            }

            .bd-course-price {
                .current-price {
                    font-size: 20px;
                    font-weight: 600;
                }

                .old-price {
                    font-size: 18px;
                    font-weight: 600;
                }
            }

            .bd-course-rating-text {
                p {
                    font-size: 14px;
                    display: inline-flex;
                    align-items: center;
                    gap: 5px;
                }

                span {
                    font-size: 18px;
                    color: var(--bd-theme-black);
                }
            }
        }
    }

    &-thumb {
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    &-info {
        background: var(--bd-white);
        padding: 30px 30px;
        min-width: 380px;
        position: absolute;
        opacity: 0;
        visibility: hidden;
        top: 0;
        left: 0;
        right: 0;
        transition: 0.3s;
        z-index: 11;
        transition: all 0.3s linear;
        border-radius: 16px;
        @media #{$md} {
            min-width: 100%;
            width: 100%;
        }
        &-label {
            font-size: 18px;
            font-weight: 600;
            color: var(--bd-theme-black);

            span {
                color: var(--bd-primary);
            }
        }

        &-list {
            ul {
                margin-bottom: 30px;
                list-style: none;

                li {
                    &:not(:last-child) {
                        margin-bottom: 8px;
                    }

                    i {
                        margin-right: 15px;
                        color: var(--bd-primary);
                    }
                }
            }
        }
    }

    &-favorite {
        position: absolute;
        top: 16px;
        left: 16px;
    }

    &-like {
        display: inline-flex;
        text-align: center;
        justify-content: center;
        align-items: center;
        width: 35px;
        height: 35px;
        background-color: var(--bd-white);
        color: var(--bd-theme-black);
        border-radius: 50%;
        transition: var(--transition);

        &:hover {
            background-color: var(--bd-secondary);
            color: var(--bd-white);
        }

        i {
            font-size: 16px;
        }

        &.has-border {
            background-color: transparent;
            border: 1px solid var(--bd-border-primary);
            transition: var(--transition);

            &:hover {
                color: var(--bd-white);
                background-color: var(--bd-secondary);
                border-color: var(--bd-secondary);
            }
        }

        &.has-bg {
            border-radius: 5px;
            color: var(--bd-white);
            background-color: rgba($color: $white, $alpha: 0.30);

            &:hover {
                color: var(--bd-secondary);
            }
        }
    }

    &-rating {
        &-icon {
            gap: 2px;
        }

        &-text {
            span {
                color: var(--bd-taxonomy-color);
            }
        }
    }

    &-price {
        display: flex;
        gap: 0 10px;
        align-items: center;
    }

    &-author {
        display: flex;
        align-items: center;
        gap: 10px;

        .thumb {
            img {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                border: 3px solid var(--bd-white);
                box-shadow: 0px 3px 10px rgba(17, 32, 81, 0.08);
            }
        }

        .name {
            color: var(--bd-theme-black);
            transition: all 0.3s linear;
            font-weight: var(--bd-fw-medium);

            &:hover {
                color: var(--bd-primary);
            }
        }

        .subtitle {
            font-size: 14px;
            margin-bottom: 0px;
            color: var(--bd-taxonomy-color);
        }
    }

    &-lesson {
        span {
            display: inline-flex;
            color: var(--bd-taxonomy-color);
            align-items: center;
            font-size: 14px;

            i {
                font-size: 16px;
                margin-right: 6px;
                color: var(--bd-primary);
            }
        }
    }

    &-student {
        span {
            display: inline-flex;
            color: var(--bd-taxonomy-color);
            align-items: center;
            font-size: 14px;

            i {
                font-size: 16px;
                margin-right: 6px;
                color: var(--bd-primary);
            }
        }
    }

    &-level {
        span {
            display: inline-flex;
            color: var(--bd-taxonomy-color);
            align-items: center;
            font-size: 14px;

            i {
                font-size: 16px;
                margin-right: 6px;
                color: var(--bd-primary);
            }
        }
    }

    &-duration {
        span {
            display: inline-flex;
            color: var(--bd-taxonomy-color);
            align-items: center;
            font-size: 14px;

            i {
                font-size: 16px;
                margin-right: 6px;
                color: var(--bd-primary);
            }
        }
    }

    &-badge {
        position: absolute;
        top: 25px;
        right: 25px;
        z-index: 4;

        @media #{$xxs} {
            top: 15px;
            right: 15px;
        }

        &.badge-left {
            right: auto;
            left: 25px;

            @media #{$xxs} {
                left: 15px;
            }
        }
    }

    &-divider {
        border-bottom: 1px solid var(--bd-border-primary);
        padding-top: 20px;
        margin-bottom: 15px;
    }

    &-full-border {
        position: relative;
        padding-top: 20px;
        margin-bottom: 20px;

        &::before {
            position: absolute;
            content: "";
            left: -28px;
            height: 1px;
            background-color: var(--bd-border-primary);
            width: calc(100% + 55px);
        }
    }

    &-tab-btn-wrap {
        display: flex;
        gap: 10px;
        justify-content: end;

        .bd-btn {
            padding: 0 20px;
            height: 40px;
        }

        button {
            &.active {
                color: var(--bd-white);
                background: var(--bd-primary);
            }
        }
    }

    &-list {
        .bd-course-wrapper {
            &:not(:last-child) {
                margin-bottom: 30px;
                padding-bottom: 30px;
                border-bottom: 1px solid var(--bd-border-primary);
            }
        }
    }

    &-widget {
        background-color: var(--bd-bg-primary);
        border-radius: 5px;
        padding: 30px 30px;
        margin-bottom: 50px;

        &:not(:last-child) {
            margin-bottom: 30px;
        }
    }

    &-filter {
        &-search-form {
            position: relative;

            input[type="text"] {
                outline: none;
                background-color: transparent;
                height: 50px;
                width: 100%;
                font-size: 16px;
                border: none;
                -webkit-border-radius: 6px;
                -moz-border-radius: 6px;
                -o-border-radius: 6px;
                -ms-border-radius: 6px;
                border-radius: 6px;
                border: 1px solid var(--bd-border-primary);
                color: var(--bd-theme-black);
                padding-inline-start: 25px;
                padding-inline-end: 50px;
            }

            button {
                font-size: 20px;
                color: var(--bd-theme-black);
                position: absolute;
                top: 50%;
                right: 0;
                transform: translateY(-50%);
                width: 50px;
                height: 50px;
                background-color: transparent;
                transition: all 0.3s ease-in-out;
                display: inline-flex;
                align-items: center;
                justify-content: center;

                &:hover {
                    background-color: var(--bd-bg-primary);
                    color: var(--bd-primary);
                }
            }
        }

        &-content {
            display: none;
        }

        &-widget {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 30px;
            background-color: var(--bd-bg-primary);
            border-radius: 5px;
            padding: 30px 30px;
            margin-bottom: 30px;
        }
    }
}

.bd-widget-content {
    .checkbox-option {
        &:not(:last-child) {
            margin-bottom: 15px;
        }
    }
}

.bd-new-course-info {
    background-color: var(--primary-rgb-05);
    padding: 30px 30px;
    border-radius: 12px;

    &-list {
        list-style-type: none;

        li {
            margin-left: 30px;
            position: relative;

            &:not(:last-child) {
                margin-bottom: 15px;
            }
        }

        .icon {
            width: 20px;
            height: 20px;
            background-color: var(--primary-rgb-1);
            color: var(--bd-primary);
            position: absolute;
            left: -30px;
            top: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            border-radius: 50%;
        }
    }
}

.bd-new-course-general-item {
    &:not(:last-child) {
        margin-bottom: 20px;
    }

    .form-input-box {
        display: grid;
        grid-template-columns: 200px auto;
        align-items: baseline;
    }
}

.bd-radio-switcher {
    label {
        * {
            font-weight: 400;
            font-size: 15px;
            line-height: 20px;
            color: #5F6168;
            position: relative;
        }

        input {
            display: none;
        }

        input+span {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
            background-color: var(--bd-bg-primary);
            border-radius: 50px;
            transition: all 0.3s ease-in-out;
            cursor: pointer;
            flex: 0 0 auto;

            &::before {
                position: absolute;
                content: "";
                display: block;
                width: 20px;
                height: 20px;
                border-radius: 50%;
                transition: all 0.3s ease-in-out;
                left: 4px;
                top: 3px;
                background-color: var(--bd-light);
            }
        }

        input:checked+span {
            background-color: var(--bd-primary);

            &::before {
                left: 56%;
            }
        }
    }
}

.bd-course-attachments-input {
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--bd-primary);
    padding: 10px 19px;
    border-radius: 6px;
    background: transparent;
    display: inline-block;
    border: 1px solid var(--bd-primary);
    transition: var(--transition);

    &:hover {
        background-color: var(--bd-primary);
        border-color: var(--bd-primary);
        color: var(--bd-white);
    }

    input {
        display: none;
    }

    label {
        cursor: pointer;
    }

    span {
        display: inline-block;
        margin-right: 5px;
    }
}

.modal-content {
    padding: 10px 20px;
}

.bd-course-product-item {
    display: grid;
    grid-template-columns: 300px auto;
    align-items: center;
    gap: 30px 0;

    &:not(:last-child) {
        margin-bottom: 20px;
    }

    .title {
        color: var(--bd-theme-black);
    }
}

.bd-course-thumbnail {
    width: 790px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;

    &-label {
        position: relative;
        overflow: hidden;

        &:hover {
            &::before {
                opacity: 1;
                visibility: visible;
            }

            & .label-title {
                opacity: 1;
                visibility: visible;
            }
        }

        input {
            display: none;
        }

        label {
            cursor: pointer;
            position: relative;
        }

        &::before {
            position: absolute;
            content: "";
            bottom: 0;
            left: 0;
            width: 100%;
            height: 65px;
            background-color: var(--bd-primary);
            z-index: 5;
            transition: all 0.3s ease-in-out;
            opacity: 0;
            visibility: hidden;
        }

        & .label-title {
            position: absolute;
            z-index: 9;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            color: var(--bd-white);
            transition: all 0.3s ease-in-out;
            opacity: 0;
            font-size: 20px;
            visibility: hidden;
            text-align: center;
        }
    }

    &-preview {
        width: 790px;
        height: 300px;
        position: relative;
        display: inline-flex;
    }

    &-preview-box {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
}

.bd-course-video-lessons {
    display: inline-block;
    width: 100%;
}

.bd-course-intro-video {
    display: inline-block;
    width: 100%;
}


.bd-course-list {
    &.with-sidebar {
        .bd-course-wrapper{
            &.style-twelve {
                @media #{$lg} {
                    grid-template-columns: auto;
                    .bd-course-thumb-style .bd-course-thumb-bg {
                        border-radius: 16px 16px 0 0;
                    }
                    .bd-course-thumb-style {
                        height: 320px;
                    }
                    .bd-course-content {
                        border-radius: 0 0 16px 16px;
                      }
                }
              }
        }
    }
}

.bd-course-slider-navigation {
    button {
        width: 50px;
        height: 50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        background-color: transparent;
        border: 1px solid var(--bd-primary);
        border-radius: 6px;
        color: var(--bd-primary);
        transition: all 0.3s ease-in-out;

        &:hover {
            background-color: var(--bd-primary);
            color: var(--bd-white);
        }
    }
}