
.subjects-block{
    margin-top: 60px;
    margin-bottom: 100px;
}
.subjects-block:before{
    content: "";
    display: block;
    background: url("../../../assets/images/left-overlay.svg");
    background-size: auto;
    background-size: auto;
    background-size: cover;
    position: absolute;
    left: 5vw;
    top: 20vh;
    width: 39vw;
    height: 37.6vw;
    z-index: 0;
    position: absolute;
}

.title-subject:before{
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin-bottom: 15px;
}
.subjects-list{
    display: flex;
    flex-wrap: wrap;
}
.subject-box{
    flex: 0 0 24%;
    margin-right: 1%;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    justify-content: flex-start;
}
.subject-box::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    background: var(--primary);
    opacity: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    left: 0;
    right: 0;
    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:after{
    opacity: 0.85;
}
.subject-icon{
    position: relative;
}
.subject-icon:before{
    content: "";
    position: absolute;
    bottom: 0;
    height: 60%;
    width: 100%;
    z-index: 1;
    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 18.25%, var(--secondary) 100%);
    bottom: 0;
    left: 0;
    z-index: 0;
}
.subject-box img{
    width: 100%;
    height: auto;
    display: block;
}

.subject-box .article-hover{
    position: absolute;
    z-index: 2;
    top:0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 2;
    padding: 0 10px;
    box-sizing: border-box;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    opacity: 0;
    justify-content: center;
    align-items: center;
    font-family: var(--font);
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
}
.subject-box:hover .article-hover{
    opacity: 1;
}
.subject-box .subject-title{
    position: absolute;
    font-weight: 600;
    font-size: 22px;
    line-height: 32px;
    color: #EBEBEB;
    bottom: 16px;
    opacity: 1;
    margin-bottom: 0;
    padding: 0 20px;
    z-index: 5;
    text-transform: none;
    text-align: center;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    width: 100%;
    box-sizing: border-box;
}
.subject-box:hover .subject-title{
    opacity: 0;
}
.subject-box .hover-text{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    z-index: 3
}
.subject-box:hover .hover-text{
    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;
}
@media only screen and (max-width: 1024px) {

    .subjects-block .wrapper{
        padding: 0;
    }

    .subject-box{
        flex: 0 0 48%;
        max-width: 48%;

    }
    .subject-icon{
        width: 100%;
        height: auto;
    }
}
@media only screen and (max-width: 600px) {
    .subjects-list{
        flex-direction: column;
        flex-wrap: initial;
    }
    .subject-box{
        flex: 0 0 100%;
        max-width: inherit;
        margin-right: 0;
    }

}