#courses {
    width: 100%;
    height: 1400px;
    background-image: url(../imgs/courses__bg.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#courses #courses__inner h2 {
    color: rgba(4, 4, 4, 1);
    font-size: 40px;
    font-weight: 900;
    line-height: 140%;
    font-style: normal;
    padding-top: 80px;
    text-align: center;
}

#courses #courses__inner #cards {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 32px;
}

#cards #card {
    padding: 32px 32px 20px 32px;
    margin-bottom: 32px;
    border-radius: 10px;
    border-color: rgba(234, 234, 234, 1);
    border-style: solid;
    border-width: 2px;
}

#cards #card img {
    width: 309px;
    height: 232px;
    object-fit: cover;
}

#cards #card h3 {
    color: rgba(0, 0, 0, 1);
    font-size: 25px;
    text-align: center;
    font-weight: 700;
    line-height: 150%;
    font-style: normal;
    margin: 22px 0 6px 0;
}

#cards #card p {
    color: rgba(68, 68, 68, 1);
    font-size: 18px;
    text-align: center;
    font-weight: 400;
    line-height: 150%;
    font-style: normal;
    box-shadow: 0 2px 0 0 rgba(234, 234, 234, 1);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

#cards #card span {
    color: rgba(0, 0, 0, 1);
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    line-height: 125%;
    font-style: normal;
    display: block;
}

#cards #card a {
    border-radius: 182px;
    border-color: rgba(31, 80, 161, 1);
    border-style: solid;
    border-width: 0px;
    background: rgba(255, 186, 0, 1);
    background: linear-gradient(0deg, rgba(255, 186, 0, 1), rgba(255, 227, 0, 1));
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='rgba(255,186,0,1)', endColorstr='rgba(255,227,0,1)', GradientType=0);
    background-attachment: scroll;
    background-position: 0% 0%;
    color: rgba(0, 0, 0, 1);
    font-size: 16px;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    line-height: 100%;
    font-style: normal;
    padding: 22px 15px;
    margin: 16px 8px 16px 8px;
    box-shadow: 0 3px 0 0 rgba(248, 129, 0, 1);
    width: 100%;
    display: block;
}

#cards #card a:hover {
    border-color: rgb(51, 100, 181);
    background: rgb(255, 206, 20);
    background: -o-linear-gradient(0deg, rgb(255, 206, 20), rgb(255, 247, 20));
    background: linear-gradient(0deg, rgb(255, 206, 20), rgb(255, 247, 20));
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='rgb(255, 206, 20)', endColorstr='rgb(255, 247, 20)', GradientType=0);
    box-shadow: 0 3px 0 0 rgb(255, 149, 20);
}

@media (min-width: 769px) and (max-width: 1024px) {
    #courses {
        height: 1400px;
    }

    #courses__inner #cards #card {
        padding: 32px 32px 20px 32px;
    }

    #courses__inner #cards #card img {
        width: 209px;
        height: 232px;
        object-fit: cover;
    }

    #courses__inner #cards #card h3 {
        color: rgba(0, 0, 0, 1);
        font-size: 25px;
        text-align: center;
        font-weight: 700;
        line-height: 150%;
        font-style: normal;
        margin: 22px 0 6px 0;
    }

    #courses__inner #cards #card p {
        color: rgba(68, 68, 68, 1);
        font-size: 18px;
        text-align: center;
        font-weight: 400;
        line-height: 150%;
        font-style: normal;
        box-shadow: 0 2px 0 0 rgba(234, 234, 234, 1);
        padding-bottom: 16px;
        margin-bottom: 24px;
    }

    #courses__inner #cards #card span {
        color: rgba(0, 0, 0, 1);
        font-size: 24px;
        text-align: center;
        font-weight: 700;
        line-height: 125%;
        font-style: normal;
        display: block;
    }

    #courses__inner #cards #card a {
        border-radius: 182px;
        border-color: rgba(31, 80, 161, 1);
        border-style: solid;
        border-width: 0px;
        background: rgba(255, 186, 0, 1);
        background: linear-gradient(0deg, rgba(255, 186, 0, 1), rgba(255, 227, 0, 1));
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='rgba(255,186,0,1)', endColorstr='rgba(255,227,0,1)', GradientType=0);
        background-attachment: scroll;
        background-position: 0% 0%;
        color: rgba(0, 0, 0, 1);
        font-size: 16px;
        text-align: center;
        font-weight: 500;
        text-decoration: none;
        line-height: 100%;
        font-style: normal;
        padding: 22px 15px;
        margin: 16px 8px 16px 8px;
        box-shadow: 0 3px 0 0 rgba(248, 129, 0, 1);
        width: 100%;
        display: block;
    }

    #courses__inner #cards #card a:hover {
        border-color: rgb(51, 100, 181);
        background: rgb(255, 206, 20);
        background: -o-linear-gradient(0deg, rgb(255, 206, 20), rgb(255, 247, 20));
        background: linear-gradient(0deg, rgb(255, 206, 20), rgb(255, 247, 20));
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='rgb(255, 206, 20)', endColorstr='rgb(255, 247, 20)', GradientType=0);
        box-shadow: 0 3px 0 0 rgb(255, 149, 20);
    }
}

@media (min-width: 429px) and (max-width: 768px) {
    #courses {
        height: 1900px;
    }

    #courses__inner h2 {
        font-size: 32px;
    }

    #courses__inner #cards {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #courses__inner #cards #card {
        padding: 24px;
        margin: 0 20px 32px 20px;
    }

    #cards #card img {
        width: 239px;
        height: 210px;
    }
}

@media (min-width: 0) and (max-width: 428px) {
    #courses {
        height: 3700px;
    }

    #courses__inner h2 {
        font-size: 24px;
    }

    #courses__inner #cards #card {
        width: 100%;
        padding: 16px;
    }

    #courses__inner #cards #card img {
        width: 100%;
        height: 252px;
    }

    #courses__inner #cards #card a {
        margin: 16px auto;
    }
}