.course_card {
    background-color: #fff;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s linear;
    margin-bottom: 25px;

    &:hover {
        border-color: var(--primary);
    }


    .course_image {
        position: relative;
        height: 240px;
        overflow: hidden;

        .course_category {
            position: absolute;
            top: 15px;
            inset-inline-start: 15px;
            z-index: 2;
            padding: 7px 12px;
            border-radius: 50px;
            background-color: #fff;
            font-size: 11px;
            font-weight: 500;
        }

        .favorite_btn {
            position: absolute;
            top: 15px;
            inset-inline-end: 15px;
            z-index: 2;

            width: 38px;
            height: 38px;

            display: flex;
            align-items: center;
            justify-content: center;

            padding: 0;

            border: 0;
            border-radius: 50%;

            background-color: #fff;
            color: var(--primary);

            cursor: pointer;

            transition: all 0.3s linear;

            i {
                font-size: 16px;
            }

            &:hover,
            &.active {
                background-color: var(--primary);
                color: #fff;
            }
        }
    }


    .course_content {
        padding: 25px;

        .course_modules {
            display: flex;
            align-items: center;
            gap: 7px;

            margin-bottom: 12px;

            color:  var(--primary);

        }

        h3 {
            color: #222;
            line-height: 1.3;
            font-weight: bold;
        }

        > p {
            color: #888;
            line-height: 1.6;
        }
    }


    .course_meta {
        display: flex;
        align-items: center;
        gap: 20px;

        padding-top: 15px;

        border-top: 1px solid #eee;

        color: #777;

        font-size: 13px;

        span {
            display: inline-flex;
            align-items: center;
            gap: 6px;

            b {
                color: #333 ;
            }
            i {
                color: var(--primary);
            }
        }
    }
}

.course_status {
    position: absolute;
    top: 15px;
    inset-inline-end: 15px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 12px;

    border-radius: 50px;

    background-color: #fff;

    color: #71879a;
    font-size: 11px;
    font-weight: 500;

    .status_dot {
        width: 6px;
        height: 6px;

        border-radius: 50%;
        background-color: #71879a;
    }

    &.inProgress {
        color: #d58b19;

        .status_dot {
            background-color: #d58b19;
        }
    }

    &.completed {
        color: #159b69;

        .status_dot {
            background-color: #159b69;
        }
    }

    &.notStarted {
        color: #71879a;

        .status_dot {
            background-color: #71879a;
        }
    }
}

.course_progress {
    margin-bottom: 18px;

    .progress_info {
        display: flex;
        align-items: center;
        justify-content: space-between;

        margin-bottom: 8px;

        color: #71879a;
        font-size: 12px;

        span:last-child {
            color: var(--primary);
            font-weight: 600;
        }
    }

    .progress_bar {
        width: 100%;
        height: 6px;

        overflow: hidden;

        background-color: #e9f0f4;
        border-radius: 10px;

        span {
            display: block;
            height: 100%;

            background-color: var(--primary);
            border-radius: inherit;
        }
    }
}

.progress_bar {
    width: 100%;
    height: 6px;
    overflow: hidden;
    background: #e9f0f4;
    border-radius: 10px;

    span {
        display: block;
        height: 100%;
        background: var(--primary);
        border-radius: inherit;
    }

    &.completed {
        span {
            background: #159b69;
        }
    }
}

.course_date {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    i {
        color: var(--primary);
        font-size: 12px;
    }
}

.course_action {
    width: 100%;
    height: 40px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background-color: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;

    i {
        font-size: 11px;
    }

    &:hover {
        background-color: transparent;
        color: var(--primary) !important;
    }

    &.course_action_completed {
        background-color: transparent;
        color: var(--primary);

        &:hover {
            background-color: var(--primary);
            color: #fff !important;
        }
    }
}

@media screen and (max-width: 991px) {

    .course_card {

        .course_image {
            height: 220px;
        }

        .course_content {
            padding: 20px;
        }
    }

}


@media screen and (max-width: 575px) {

    .course_card {

        .course_image {
            height: 200px;
        }

        .course_content {
            padding: 18px;
        }

        .course_meta {
            gap: 12px;
            flex-wrap: wrap;
        }
    }

}