.subjects-block{
    margin-top: 60px;
    margin-bottom: 100px;
}
.subjects-list{
    display: flex;
    flex-wrap: wrap;
}
.subject-box{
    background: #FDD173;
    flex: 0 0 23%;
    margin-right: 2%;
    min-height: 220px;
    max-width: 270px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    padding: 20px;
    justify-content: flex-start;
    align-items: center;
}
.subject-box:before{
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: #EDECE6;
    z-index: 0;
    opacity: 1;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}
.subject-box:hover:before{
    opacity: 0;

}
.subject-box .subject-icon{
    position: relative;
    z-index: 1;
    opacity: 1;
    width: 115px;
    height: 95px;
    margin-bottom: 20px;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}
.subject-box .subject-icon img{
    width: 100%;
    height: auto;
}
.subject-box:hover .subject-icon{
    opacity: 0;
}
.subject-box .subject-title{
    position: relative;
    z-index: 1;
    font-weight: 600;
    font-size: 20px;
    line-height: 23px;
    color: #343A74;
}
@media only screen and (max-width: 1024px) {

    .subjects-block .wrapper{
        padding: 0;
    }

    .subject-box{
        flex: 0 0 48%;
        max-width: 48%;

    }
}
@media only screen and (max-width: 600px) {
    .subjects-list{
        flex-direction: column;
    }
    .subject-box{
        flex: 0 0 100%;
        max-width: inherit;
        margin-right: 0;
    }
}