.header+h2 {
    text-align: center;
    margin: 50px 0;
    padding:0 20px;
}

.sub-grp {
    display: flex;
    text-align: center;
}

.sub-grp a{
    text-decoration: none;
    padding-bottom:10px;
}

.subjects h3{
    cursor: pointer;

}

@media screen and (min-width: 1024px) {
    .header+p {
        font-size: 1.5rem;
        margin: 50px 0;
    }

    .sub-grp {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-items: center;
    }

    .subjects{
        margin: 0 50px;
    }

    .subjects img {
        height: 330px;
        width: 300px;
        border-radius: 5px;
        cursor: pointer;
    }
}

@media screen and (max-width: 820px) {
    .header+p {
        font-size: 1.2rem;
        margin: 30px 0;
    }

    .header+h2 {
        padding:0 20px;
    }
    

    .sub-grp {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-items: center;
    }

    .subjects{
        margin: 0 50px;
    }

    .subjects img {
        height: 280px;
        width: 250px;
        border-radius: 5px;
        cursor: pointer;
    }
}

@media screen and (max-width: 480px) {
    .header+p {
        font-size: 1rem;
    }

    .header+h2 {
        padding:0 20px;
        font-size: 1.2rem;
    }

    .sub-grp {
        flex-direction: column;
        margin-bottom: 50px;
    }

    .subjects img {
        height: 250px;
        width: 250px;
        border-radius: 5px;
        cursor: pointer;
    }

}