/*********************** Filters ************************/
.blog_filtering {
    width: calc((100% - 60px) / 3);
    z-index: 100;
}

.store_filtering {
    z-index: 100;
}

.filter {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    z-index: 40;
    margin-top: 96px;
    margin-bottom: 66px;
}

.blog_opening_wrapper .filter {
    display: block;
}

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

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

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

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

.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(--form-grey);
    color: var(--form-grey);
    background-color: transparent;
    outline: none;
    font-family: 'Roboto', sans-serif !important;
    font-size: 16px;
    box-sizing: border-box;
}

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

.category_filter {
    width: 100%;
    height: 46px;
    overflow: hidden;
    z-index: 40;
}

.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(--white);
    color: var(--black);
    box-sizing: border-box;
    border: 2px solid var(--border-grey);
    transition: 0.1s all ease-in-out;
    cursor: pointer;
    outline: none;
    z-index: 120;
}

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

.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(--border-grey);
    border-top: none;
    z-index: 40;
}

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

.category_list a:hover,
.category_list .option {
    background-color: var(--light-blue);
    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) {
    .blog_opening p {
        width: 500px;
        margin: 15px auto;
    }

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

    .blog_filtering {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .blog_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;
    }

    .blog_opening p {
        width: 100%;
    }
}