@use "mixins/mixins-master" as *;
@use "mixins/flex" as *;
@use "variables" as *;
.thim-courses-megamenu {
    &.col-sm-12 {
        padding: 0;
    }
    .course-item {
        position: relative;
        border-radius: $thim_border_radius;
        overflow: hidden;
        .feature-img {
            position: relative;
            overflow: hidden;
            border-radius: $thim_border_radius;
            &::before {
                content: "";
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 200px;
                background: linear-gradient(358.31deg, rgba(0, 0, 0, 0.8) 7.56%, rgba(0, 0, 0, 0) 98.53%);
                z-index: 999;
            }
            img {
                width: 100%;
                -o-transition: all 0.5s ease-in-out;
                transition: all 0.5s ease-in-out;
                min-height: 320px;
                object-fit: cover;
                border-radius: $thim_border_radius;
            }
            .img-link {
                position: absolute;
                width: 100%;
                height: 100%;
                z-index: 3;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
            }
            &:hover img {
                -webkit-transform: scale(1.05, 1.05);
                -moz-transform: scale(1.05, 1.05);
                -ms-transform: scale(1.05, 1.05);
                -o-transform: scale(1.05, 1.05);
                border-radius: $thim_border_radius;
            }
            // &.hovered::before {
            //     background: linear-gradient(358.31deg, #000000 7.56%, rgba(0, 0, 0, 0) 98.53%);
            // }
        }
        .course-detail {
            text-align: center;
            padding-top: 15px;
            position: absolute;
            bottom: 12px;
            max-width: 200px;
            margin: 0 auto;
            left: 30px;
            z-index: 999;
            .title {
                font-size: 16px;
                line-height: 22px;
                margin: 0 0 5px;
                font-weight: 400;
                z-index: 999;
                position: relative;
                text-align: left;
                color: #fff;
            }
            .price {
                text-transform: uppercase;
                color: #34c759;
                font-weight: 500;
                margin-top: 5px;
                display: flex;
                // justify-content: center;
                // align-items: center;
                &:empty {
                    display: none;
                }
                .course-origin-price {
                    color: #999;
                    order: 2;
                    margin-left: 5px;
                    font-weight: 400;
                    margin-right: 0;
                    font-size: 85%;
                    text-decoration: line-through;
                }
            }
        }
        &:hover {
            .feature-img::before {
                background: linear-gradient(358.31deg, #000000 7.56%, rgba(0, 0, 0, 0) 98.53%);
            }
            .title {
                color: $thim_body_primary_color;
            }
        }
    }
}
