.more_subjects {
    margin: 130px 0 130px;
}

.more_subjects__header {
    text-align: center;
    margin-bottom: 25px;
}

.html_content .more_subjects .more_subjects__title,
.post-content .more_subjects .more_subjects__title {
    font-family: 'Aeonik';
    font-style: normal;
    font-weight: 500;
    font-size: 20px !important;
    line-height: 28px !important;
    /*color: #112031;*/
    margin: 0;
}

.more_subjects__row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.more_subject_item {
    padding: 0 12px;
    margin-bottom: 33px;
    box-sizing: border-box;
}

.items_row_2 .more_subject_item {
    width: 50%;
}

.items_row_3 .more_subject_item {
    width: 33.33%;
}

.items_row_4 .more_subject_item {
    width: 25%;
    min-height: 240px;
}

.more_subject_item__wrapper {
    box-shadow: -4px 5px 8px rgba(116, 126, 142, 0.15);
    border-radius: 15px;
    border: 1px solid #F5F5F5;
    background-color: #fff;
    border-top: 10px solid #E5EDF0;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}

.items_row_2 .more_subject_item__wrapper {
    padding: 34px 30px 42px;
}

.items_row_3 .more_subject_item__wrapper {
    padding: 31px 30px 53px;
}

.items_row_4 .more_subject_item__wrapper {
    padding: 27px 5px 34px 20px;
}

.more_subject_item__wrapper:before {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    background-image: url("img/bg_gray.png");
    width: 100%;
    height: 100%;
    background-position: bottom right;
    background-repeat: no-repeat;
}

.gray .more_subject_item__wrapper {
    border-top-color: #E5EDF0;
}

.gray .more_subject_item__wrapper:before {
    background-image: url("img/bg_gray.png");
}

.blue .more_subject_item__wrapper {
    border-top-color: #D6F6FF;
}

.blue .more_subject_item__wrapper:before {
    background-image: url("img/bg_blue.png");
}

.yellow .more_subject_item__wrapper {
    border-top-color: #FDFF37;
}

.yellow .more_subject_item__wrapper:before {
    background-image: url("img/bg_yellow.png");
}

.purple .more_subject_item__wrapper {
    border-top-color: #C2CDFF;
}

.purple .more_subject_item__wrapper:before {
    background-image: url("img/bg_purple.png");
}

.more_subject_item__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.html_content .more_subjects .more_subject_item__title,
.post-content .more_subjects .more_subject_item__title {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 29px;
    letter-spacing: -0.02em;
    /*color: #112031;*/
    margin: 0;
}

.items_row_2 .more_subject_item__button {
    margin-top: 17px;
}

.items_row_3 .more_subject_item__button {
    margin-top: 35px;
}

.items_row_4 .more_subject_item__button {
    margin-top: 20px;
}

.post-content .more_subjects .more_subject_item__button .yellow_anim {
    text-decoration: none !important;
}

.html_content .more_subjects .more_subject_item__button .yellow_anim span,
.post-content .more_subjects .more_subject_item__button .yellow_anim span {
    font-family: 'Aeonik';
    font-weight: 700;
    font-size: 18px;
    line-height: 33px;
    letter-spacing: 0.01em;
    /*color: #25282B;*/

}

.html_content .more_subjects .more_subject_item__button .yellow_anim,
.post-content .more_subjects .more_subject_item__button .yellow_anim {
    text-decoration: none !important;
}

.post-content .more_subjects .more_subject_item__button .yellow_anim:hover {
    text-decoration: none !important;
}

.gray .more_subject_item__button .yellow_anim:before {
    background: #E5EDF0;
}

.blue .more_subject_item__button .yellow_anim:before {
    background: #D6F6FF;
}

.purple .more_subject_item__button .yellow_anim:before {
    background: #C2CDFF;
}

.gray .more_subject_item__button .yellow_anim:hover::before {
    -webkit-animation-name: gray-animation;
    animation-name: gray-animation;
}

.blue .more_subject_item__button .yellow_anim:hover::before {
    -webkit-animation-name: blue-animation;
    animation-name: blue-animation;
}

.purple .more_subject_item__button .yellow_anim:hover::before {
    -webkit-animation-name: purple-animation;
    animation-name: purple-animation;
}

@-webkit-keyframes gray-animation {
    0% {
        width: 100%;
        height: 10px;
    }
    20% {
        width: 5px;
        height: 10px;
        background: #E5EDF0;
    }
    50% {
        width: 5px;
        height: 5px;
        opacity: 0.5;
        background: #25282B;
    }
    85% {
        opacity: 1;
        height: 2px;
    }
    100% {
        height: 2px;
        background: #25282B;
        width: 100%;
    }
}

@keyframes gray-animation {
    0% {
        width: 100%;
        height: 10px;
    }
    20% {
        width: 5px;
        height: 10px;
        background: #E5EDF0;
    }
    50% {
        width: 5px;
        height: 5px;
        opacity: 0.5;
        background: #25282B;
    }
    85% {
        opacity: 1;
        height: 2px;
    }
    100% {
        height: 2px;
        background: #25282B;
        width: 100%;
    }
}

@-webkit-keyframes blue-animation {
    0% {
        width: 100%;
        height: 10px;
    }
    20% {
        width: 5px;
        height: 10px;
        background: #D6F6FF;
    }
    50% {
        width: 5px;
        height: 5px;
        opacity: 0.5;
        background: #25282B;
    }
    85% {
        opacity: 1;
        height: 2px;
    }
    100% {
        height: 2px;
        background: #25282B;
        width: 100%;
    }
}

@keyframes blue-animation {
    0% {
        width: 100%;
        height: 10px;
    }
    20% {
        width: 5px;
        height: 10px;
        background: #D6F6FF;
    }
    50% {
        width: 5px;
        height: 5px;
        opacity: 0.5;
        background: #25282B;
    }
    85% {
        opacity: 1;
        height: 2px;
    }
    100% {
        height: 2px;
        background: #25282B;
        width: 100%;
    }
}

@-webkit-keyframes purple-animation {
    0% {
        width: 100%;
        height: 10px;
    }
    20% {
        width: 5px;
        height: 10px;
        background: #C2CDFF;
    }
    50% {
        width: 5px;
        height: 5px;
        opacity: 0.5;
        background: #25282B;
    }
    85% {
        opacity: 1;
        height: 2px;
    }
    100% {
        height: 2px;
        background: #25282B;
        width: 100%;
    }
}

@keyframes purple-animation {
    0% {
        width: 100%;
        height: 10px;
    }
    20% {
        width: 5px;
        height: 10px;
        background: #C2CDFF;
    }
    50% {
        width: 5px;
        height: 5px;
        opacity: 0.5;
        background: #25282B;
    }
    85% {
        opacity: 1;
        height: 2px;
    }
    100% {
        height: 2px;
        background: #25282B;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .more_subjects {
        margin: 80px 0;
    }

    .items_row_2 .more_subject_item,
    .items_row_3 .more_subject_item,
    .items_row_4 .more_subject_item {
        width: 100%;
    }

    .items_row_3 .more_subject_item__wrapper,
    .items_row_4 .more_subject_item__wrapper {
        padding: 34px 30px 42px;
    }

    .items_row_3 .more_subject_item__button,
    .items_row_4 .more_subject_item__button {
        margin-top: 17px;
    }

    .items_row_2 .more_subjects__row .more_subject_item {
        order: 1;
    }

    .items_row_2 .more_subjects__row .more_subject_item:nth-child(3) {
        order: 4;
    }

    .items_row_2 .more_subjects__row .more_subject_item:nth-child(4) {
        order: 3;
    }
}