.post_item,.post_item_img {
    position: relative;
    float: right
}

.blog_page_grid {
    width: 100%;
    float: right
}

.blog_filtering_wrapper {
    width: 100%;
    float: right;
    text-align: center;
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 50px
}

.filter,.filterActive {
    width: auto;
    height: 35px;
    font-size: 17px;
    cursor: pointer;
    text-align: center;
    padding: 0 15px;
    margin-left: 5px;
    margin-right: 5px;
    border-radius: 1px;
    align-items: center;
    display: flex;
    font-weight:300
}

.filter {
    justify-content: center;
    color: #666;
    background-color: transparent;
    border: 1px solid #666;
}

.filter:hover,.filterActive {
    background-color: #000;
    color: #fff
}

.filterActive {
    justify-content: center
}

.post_item {
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -o-transition: .2s;
    direction: rtl;
    background-color: #fff;
    border-radius: 1px;
    box-sizing: border-box
}

.post_item_img {
    width: 100%;
    max-width: 100%
}

.post_item_img img {
    width: 100%;
    float: right;
    max-width: 100%
}

.post_item_content_up {
    float: right;
    width: 100%;
    height: 30px;
    text-align: right;
    align-items: center;
    display: flex;
    justify-content: flex-start
}
.post_item_content_up i{
    margin-left:5px
}
.post_item_content {
    width: 100%;
    float: right;
    display: inline-block;
    box-sizing: border-box;
    padding: 20px;
    text-align: right;
    font-weight: 300
}

.post_item_date {
    font-size: 16px;
    text-align: right;
    margin-left: 15px
}

.post_item_views {
    font-size: 16px;
    text-align: right
}

.post_item_content p {
    float: right;
    overflow: hidden;
    visibility: visible;
    height: 100px
}

.post_item_content h3 {
    overflow: hidden;
    visibility: visible;
    margin-top: 5px;
    height: 70px;
    font-weight: 300
}

.post_item_lable {
    width: auto;
    height: 30px;
    padding-left: 10px;
    padding-right: 10px;
    color: #fff;
    font-size: 17px;
    text-align: center;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
    align-items: center;
    display: flex;
    justify-content: center;
    border-radius: 3px
}

.blog_page_grid {
    padding-top: 40px;
    padding-bottom: 40px
}

.blog_page_filtering_items {
    width: calc(100% - 100px);
    padding-left: 50px;
    padding-right: 50px;
    margin: auto;
    position: relative;
    max-width: 1580px;
    direction: rtl;
    align-items: center;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap
}

.post_item {
    width: 22%;
    margin-bottom: 3%;
    margin-left: 1.5%;
    margin-right: 1.5%
}

.post_item_btn_wrapper {
    float: right;
    width: 100%;
    text-align: right;
    margin-top: 20px;
    align-items: center;
    display: flex;
    justify-content: flex-start
}

.post_item_btn {
    float: none;
    width: auto;
    font-size: 16px;
    background-color: #000;
    border: 0px solid #d00e38;
    color:#fff!important;
    box-sizing: border-box;
    padding: 0 10px;
    height: 30px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    transition: .2s;
    border-radius: 1px;
    margin-bottom:2px;
}
.post_item:hover .post_item_btn {
    background-color: #d00e38
}

#dynamic-select {
    width: 100%;
    height: 45px;
    font-size: 16px;
    background-color: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    padding: 0 10px
}

.page_section {
    float: right;
    width: 100%;
}

@media (max-width: 1439px) and (min-width:769px) {
    .post_item {
        width:30.333333333%;
        margin-bottom: 3%;
        margin-left: 1.5%;
        margin-right: 1.5%
    }
}

@media (max-width: 768px) and (min-width:319px) {
   .blog_page_grid {
        padding-top:30px;
        padding-bottom: 40px
    }

    .blog_page_filtering_items {
        width: calc(100% - 40px);
        padding-left: 20px;
        padding-right: 20px;
        align-items: center;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap
    }

    .blog_filtering_wrapper {
        margin-top: 20px;
        margin-bottom: 30px
    }

    .post_item {
        width: 47.5%;
        margin-bottom: 5%;
        margin-left: 0;
        margin-right: 0
    }

    .post_item_content {
        padding: 10px 20px 20px 20px
    }

    .post_item_content h3 {
        margin-top: 7px;
        margin-bottom: 0;
        font-size: 18px;
        height: 60px!important
    }

    .post_item_btn {
        font-size: 16px;
        height: 30px
    }

.post_item_lable {
        height: 28px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 16px;
        top: 10px;
        right: 10px
}
.post_item_date,.post_item_views {
        font-size: 14px
    }
.post_item_btn_wrapper {
    margin-top: 10px;
}
}
