#post-filter {
    margin:96px auto 0px auto;
}
#post-filter:before {
    content:'';
    display:block;
    width: 100%;
    height: 1px;
    background-color: #a7b2be;
    margin-bottom: 96px;
}
#post-filter h2.filter_title_head {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2em;
    color: #000;
    margin-bottom: 40px;
}
#post-filter select{
    appearance: none;
    position: relative;
    border-radius: 4px;
    background-color: #F9FAFB;
    border: 1px solid #D3D9DE;
    padding: 0px 16px 0px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #454D54;
    min-width: 208px;
    line-height: 2em;
    height: 40px;
    overflow: auto;
    margin: 24px 16px 40px 0;
    background-image: url(../img/expand_more.png);
    background-position: calc(100% - 20px) center;
    background-size: auto;
    background-repeat: no-repeat;
}
#filter-buttons {
    margin-bottom: 20px;
}
.category-button {
    margin-right: 16px;
}
.category-button.active {
    background: #E7E8FD;
    box-shadow: inset 0px 0px 0px 2px #000;
    transition: 0.3s ease;
}
#posts-container {
    display: flex;
    flex-wrap: wrap;
}
#posts-container .post-item {
    box-sizing: border-box;
    width: 33.333%;
    max-width: calc(33.333% - 16px);
    margin-right: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}
#posts-container .post-item:nth-child(3n) {
    margin-right: 0;
}
#posts-container .post-item img {
    width: 100%;
}
#posts-container .post-item .slider_post_date {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 8px;
    color: #575a66;
}
#posts-container .post-item .slider_post_title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2em;
    margin-bottom: 8px;
    min-height: 50px;
}
#posts-container .post-item .slider_post_title:hover {
    text-decoration: underline;
}
#posts-container .post-item .slider_post_text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4em;
    margin-bottom: 22px;
    color: #2e3338;
}
#posts-container .post-item .slider_post_text a {
    font-weight: 700;
    font-size: 12px;
    color: #000;
    display: block;
    margin-top: 5px;
    text-align: right;
    text-decoration: underline;
}
#posts-container .post-item .slider_post_category {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    padding: 2px 10px;
    color: #000000;
    border-radius: 20px;
    background-color: #E8DFD9;
}
#pagination-container {
    display: flex;
    justify-content: end;
    margin-top: 20px;
    flex: none;
    margin-right: 0;
    width: 100%;
    text-align: right;
}
#pagination-container .pg-link {
    display: inline-block;
    width:32px;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #000;
    margin: 0 8px;
    box-shadow:0px 0px 0px 2px #fff;
    border-radius: 4px;
}
#pagination-container .pg-link.active {
    box-shadow:0px 0px 0px 2px #000;
}
#pagination-container .prev-page {
    display: inline-block;
    width:32px;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #000;
    margin: 0 8px;
    box-shadow:0px 0px 0px 2px #F3F5F6;
    border-radius: 4px;
    background-image: url(../img/chevron_left.png);
    background-size: 7px 12px;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #F3F5F6;
}
#pagination-container .next-page {
    display: inline-block;
    width:32px;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #000;
    margin: 0 8px;
    box-shadow:0px 0px 0px 2px #F3F5F6;
    border-radius: 4px;
    background-image: url(../img/chevron_right.png);
    background-size: 7px 12px;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #F3F5F6;
}
#sort-options {
    margin-bottom: 20px;
}

@media (max-width:991px) {
    #posts-container {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    }
    #posts-container .post-item {
        display:flex;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        gap:15px;
    }
    #posts-container .post-item .flex_right {
        display:block;
        flex:1;
        position: relative;
    }
    #posts-container .post-item img {
        max-width: 180px;
    }
    #posts-container .post-item .slider_post_date {
        margin-top: 0;
    }
    #posts-container .post-item .slider_post_title {
        min-height: auto;
    }
    #posts-container .post-item .slider_post_category {
        position: absolute;
        bottom: 0;
    }
}
@media (max-width:600px) {
    #posts-container .post-item {
        flex-direction: column;
    }
    #posts-container .post-item img {
        max-width: 100%;
    }
    #posts-container .post-item .slider_post_text {
        min-height: 80px;
    }
    #sort-options select {
        width:100%;
        margin:0 auto 20px auto;
    }
    #filter-buttons .button_default {
     font-size: 14px;
     margin:0px 10px 10px 0;
    }
    #post-filter {
        margin-top: 0;
    }
    #post-filter:before {
        margin-bottom: 80px;
        background: none;
    }
    #post-filter h2.filter_title_head {
        font-size: 24px;
    }
}