/*********************** Filters ************************/
.news_filtering {
    width: calc((100% - 80px) / 3);
    z-index: 10;
}

.filter {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    z-index: 10;
}

.news_opening_wrapper .filter {
    display: block;
}

.search_bar {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.category_filter_button {
    padding: 0 15px;
    text-align: center;
    color: var(--white);
    z-index: 10;
}

.category_filter_button:last-of-type {
    border-radius: 0 0 3px 3px;
}

.category_hide,
.category_hide {
    display: none;
}

.search_bar .button,
.search_bar .button i {
    width: 46px;
    height: 46px;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search_box {
    width: calc(100% - 66px);
    height: 46px;
    margin-right: 20px;
    padding: 0;
    padding-left: 15px;
    border: 2px solid var(--white);
    color: var(--white);
    background-color: var(--trans-white);
    outline: none;
    font-family: 'Roboto', sans-serif !important;
    font-size: 16px;
    border-radius: 5px;
    box-sizing: border-box;
}

.search_box::placeholder {
    color: var(--white);
    text-transform: capitalize;
}

.category_filter {
    width: 100%;
    height: 46px;
    overflow: hidden;
}

.category_filter:hover {
    height: 100%;
    overflow: visible;
}

.category {
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: max-content;
    height: 46px;
    width: 100%;
    background-color: var(--trans-brown);
    color: var(--white);
    box-sizing: border-box;
    border: 2px solid var(--brown);
    border-radius: 5px;
    transition: 0.1s all ease-in-out;
    cursor: pointer;
    outline: none;
    z-index: 12;
}

.category_preselect {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
    font-weight: 500;
}

.category_filter:hover .category {
    border-radius: 5px 5px 0 0;
}

.category_list {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: calc(100% + 4px);
    box-sizing: border-box;
    margin-left: -17px;
    border: 2px solid var(--brown);
    border-top: none;
    border-radius: 0 0 5px 5px;
}

.category_list a,
.category_list .option_2 {
    display: flex;
    align-items: center;
    height: 46px;
    box-sizing: border-box;
    background-color:  var(--brown);
    color: var(--white);
    padding: 0 15px;
}

.category_list a:hover,
.category_list .option {
    background-color: #6B5D4B;
    color: var(--white);
}

.category_list a:active.category_filter {
    height: 46px;
    overflow: hidden;
}

.no_posts {
    display: none;
    width: 100%;
    text-align: center;
    margin: 60px auto;
}

.display {
    display: block;
}

@media (max-width: 1350px) {
    .news_opening p {
        width: 500px;
        margin: 0 auto 15px;
    }

    .filter {
        margin: 30px auto;
        width: calc((100% - 30px) / 2);
    }

    .news_filtering {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .news_filtering {
        width: 100%;
    }

    .filter {
        margin-top: 30px;
        width: 75%;
    }
}

@media (max-width: 800px) {
    .search_box {
        width: calc(100% - 66px);
        margin-right: 20px;
    }
}

@media (max-width: 650px) {
    .filter {
        display: block;
    }

    .category_filter_button {
        width: 100%;
        padding: 10px 0;
    }

    .filter,
    .filter form,
    .category_filter,
    .category {
        width: 100%;
    }

    .search_bar {
        width: 100%;
        margin-top: 20px;
    }

    .news_opening p {
        width: 100%;
    }
}