.courses{
    width: 70%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    margin: auto;
}
.course{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0px 10px 0px 0;
}
.course h3{
    font-size: 1.5rem;
    font-weight: 500;
}
.courseDesc{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 20px 20px 20px 0px;
}
.courseTitle{
    margin-bottom: 5px;
    font-weight: 500;
    cursor: pointer;
    text-transform: capitalize;
    text-decoration: underline;
}
.courseBtn{
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: fit-content;
    padding: 10px 30px 10px 30px;
}
.courseBtn:hover{
    color: #f93839;
    border-color: #f93839;
}


/* Extra large devices (large laptops and desktops, 1200px) */
@media only screen and (max-width: 1200px) {
    .courseDesc{
        align-items: flex-start;
    }
    .courseDesc h3{
        margin-bottom: 10px;
    }
    .courses{
        width: 90%;
    }
    .courseBtn{
        margin: 15px 0 15px 0;
    }
}

/* Large devices (laptops/desktops, 992px) */
@media only screen and (max-width: 992px) {
    .course{
        flex-direction: column;
    }
    .courseDesc{
        width: 100%;
        margin: 0;
        flex-direction: row;
    }
    .courseImg{
        width: 100%;
    }
    .courseDetails{
        margin-bottom: 15px;
    }
}

/* Medium devices (landscape tablets, 768pxp) */
@media only screen and (max-width: 768px) {
    .courses{
        flex-direction: column;
    }
    .course{
        width: 100%;
    }
}

/* Small devices (portrait tablets and large phones, 600px) */
@media only screen and (max-width: 600px) {
    .courseDesc{
        flex-direction: column;
        justify-content: left;
        align-items: left;
    }
}
