/************************ News Filter and Search ***************************/
.filter {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.multiple_items,
.filter_flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.filter_flex .blog_filter:first-of-type {
    margin-right: 25px;
}

.news_filter,
.search_bar {
    display: flex;
    align-items: center;
}

.news_filter_button {
    padding: 0 30px;
    text-align: center;
    color: var(--dark-blue);
}

.news_filter_button:last-child {
    margin-right: 0;
}

.news_hide,
.blog_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: 350px;
    height: 46px;
    margin-right: 15px;
    padding: 0;
    padding-left: 15px;
    border: 2px solid var(--form-grey);
    color: var(--form-grey);
    border-radius: 5px;
    background-color: transparent;
    outline: none;
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px;
    box-sizing: border-box;
}

.search_box::placeholder {
    color: var(--form-grey);
}

.blog_filter {
    height: 46px;
    overflow: hidden;
    border-radius: 5px;
}

/* .blog_filter:hover ,
.blog_filter:active {
    height: 100%;
    overflow: visible;
} */

/*
Cursive: duplicating the hover state to provide similar ux on touch devices via click.
*/
.blog_filter_opened {
    height: 100%;
    overflow: visible;
}

.category {
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: max-content;
    width: 240px;
    border-radius: 5px;
    background-color: var(--yellow);
    color: var(--dark-blue);
    box-sizing: border-box;
    box-shadow: 0px 5px 10px #00000014;
    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: 46px;
    font-weight: 500;
}

.category_list {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    margin-left: -30px;
    border-radius: 0px 0px 5px 5px;
    box-shadow: 0px 5px 10px #00000014;
}

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

.category_list a:hover,
.category_list .option,
.blue_filter,
.blue_filter a,
.blue_filter .option_2 {
    background-color: var(--light-blue);
    color: var(--white);
}

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

.blue_filter {
    z-index: 8;
}

.blue_filter .category_list {
    z-index: 6;
}

.blue_filter a:hover,
.blue_filter .option {
    background-color: var(--yellow);
    color: var(--dark-blue);
}

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

.category_list a:last-of-type {
    border-radius: 0px 0px 5px 5px;
}

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

.display {
    display: block;
}

@media (max-width: 800px) {
    .filter {
        flex-direction: column;
        align-items: center;
    }

    .blog_filter {
        margin-bottom: 25px;
    }
}

@media (max-width: 600px) {
    .news_filter {
        display: block;
    }

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

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

    .search_bar {
        flex-direction: column;
    }

    .search_box,
    .search_bar .search_button {
        width: 100%;
        margin-right: 0;
    }

    .search_bar .search_button {
        margin-top: 25px;
    }
}