
#courses-list {
    user-select: none;
    background: #2C57DC;
    color: #F8FBFF;
    padding: 40px 0;
    margin: 0;
}




.courses-header {
    display: flex;
    align-items: flex-end;
    padding: 40px 0;
    margin: 0;
}

#courses-list h2 {
    padding: 0 200px 0 120px;
    margin: 0;
}

.courses-info {
    padding: 20px 30px;
    width: 270px;
    border-radius: 15px;
    background: #0D2F90;
    border: 1px dashed #F8FBFF;
}

.courses-info p {
    font-size: 14px;
    margin: 0;
}
.courses-card {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 90vh;
    width: 400px;
}

.courses-card:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 20px;
    right: -40px;
    background-color: #2C57DC;
    background-image: url("../img/courses/arrow.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%;
    height: 60px;
    width: 60px;
    z-index: 20;
    border-radius: 50%;
}




.courses-img {
    user-select: none;
    width: 100%;
    height: 320px;
    border-radius: 15px;
    box-shadow: 0px 2px 6px 0px #2E2E2E80;
    background: #2C57DC;
    overflow: hidden;
    position: relative;
}
.courses-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}    




.courses-card_content {
    padding: 30px;
    margin: 20px 0;
    background: #F8FBFF;
    color: #2C57DC;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 15px;
    box-shadow: 0px 2px 6px 0px #2E2E2E80;
}

.courses-card_description {
    font-size: 14px;
}

.courses-card_title {
    font-size: 24px;
    font-family: "Evolventa";
    margin: 0;
}

.courses-card_btn {
    text-align: center;
    background: #2C57DC;
    color: #F8FBFF;
    border-radius: 15px;
    padding: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Evolventa-Regular';
    border: 2px solid #2C57DC;
    box-shadow: 0px 2px 6px rgba(46, 46, 46, 0.5);
}
.courses-card:not(:last-child) .courses-card_btn:hover {
    background-color: #0D2F90;
    border: 2px solid #2C57DC;
}
.courses-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    position: relative;
    scroll-behavior: smooth;
    padding: 0 120px;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}




@media only screen and (max-width: 600px) {
    #courses-list {
        padding: 3.75rem 0.9375rem;
    }
    .courses-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        padding: 0;
        margin: 0;
    }
    .courses-card {
        width: 100%;
    }
    #courses-list h2 {
        padding: 0;
        margin: 0;
    }

    .courses-info {
        width: 100%;
        box-sizing: border-box;
        padding-top: 1.2rem 2.5rem;
        margin-top: 20px;
        margin-bottom: 20px;
    }

  

    .courses-card {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: auto;
        width: 100% !important;
    }

    .courses-container {
        padding: 0 !important;
    }

    .courses-img {
        display: flex;
        flex: 2;
        height: auto;
    }

    .courses-card:not(:last-child)::before {
        display: none;
    }
    .courses-card::before {
        content: "";
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: black !important;
        background-image: url("../img/courses/arrow.svg");
        background-position: center;
        background-repeat: no-repeat;
        background-size: 50%;
        height: 40px;
        width: 40px;
        z-index: 20;
        border-radius: 50%;
    }
    .courses-card::after {
        content: "";
        position: absolute;
        top: 40px;
        right: 10px;
        background-color: #2C57DC;
        background-image: url("../img/courses/arrow.svg");
        background-position: center;
        background-repeat: no-repeat;
        transform: rotate(180deg);
        background-size: 50%;
        height: 40px;
        width: 40px;
        border: 1px dashed #F8FBFF;
        z-index: 20;
        border-radius: 50%;
    }
    .courses-card_content {
        flex: 3;
        padding: 30px;
        margin: 14px 0;
    }

    .courses-card:not(:last-child)::before {
        display: none;
    }
    
}
