
/* =========================
   CONTAINER WRAPPER
========================= */
.blog-filters-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   GLOBAL SAFETY
========================= */
.blog-filters-section *,
.astra-blog-filter-bar * {
    box-sizing: border-box;
}

/* =========================
   GRID LAYOUT
   75% SEARCH | 25% FILTER
========================= */
.astra-blog-filter-bar {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 36px;
    align-items: center;
    margin-top: 60px;
    width: 100%;
}

/* =========================
   SEARCH FIELD
========================= */
.astra-filter-search {
    position: relative;
    width: 100%;
}

/* INPUT */
.astra-filter-search input[type="text"] {
    width: 100%;
    height: 52px;
    /* padding: 0 16px 0 55px; */
    padding: 0 55px 0 16px; /* icon space on right */
    border: 1px solid #dcdcdc;
    border-color: var(--medium-grey-color, #b5b5b2);
    /* border-radius: 6px; */
    font-size: var(--h3-font-size, 24px);
    /* background-color: #fff; */
    outline: none;
}

/* SEARCH ICON */
/* .astra-filter-search::before {
    content: "";
    position: absolute; */
    /* left: 16px; */
    /* right: 16px; */      /* changed from left */
    /* top: 50%;
    width: 28px;
    height: 28px;
    transform: translateY(-50%); */
    /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-893 477 142 142'%3E%3Cpath d='M-787.4,568.7h-6.3l-2.4-2.4c7.9-8.7,12.6-20.5,12.6-33.1c0-28.4-22.9-51.3-51.3-51.3c-28.4,0-51.3,22.9-51.3,51.3c0,28.4,22.9,51.3,51.3,51.3c12.6,0,24.4-4.7,33.1-12.6l2.4,2.4v6.3l39.4,39.4l11.8-11.8L-787.4,568.7z M-834.7,568.7c-19.7,0-35.5-15.8-35.5-35.5c0-19.7,15.8-35.5,35.5-35.5c19.7,0,35.5,15.8,35.5,35.5C-799.3,553-815,568.7-834.7,568.7z'/%3E%3C/svg%3E"); */
    /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M221.09 64A157.09 157.09 0 1 0 378.18 221.09 157.1 157.1 0 0 0 221.09 64Z' fill='none' stroke='currentColor' stroke-width='32' stroke-miterlimit='10'/%3E%3Cline x1='338.29' y1='338.29' x2='448' y2='448' fill='none' stroke='currentColor' stroke-width='32' stroke-linecap='round' stroke-miterlimit='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5; */
    /* filter: invert(40%) grayscale(100%); */
    /* pointer-events: none;
} */

.astra-filter-search {
    position: relative;
}

.search-submit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #333333;
    line-height: 1;
    opacity: 0.5;
    padding: 5px;
    border-radius: 50%;
}

.search-submit:hover, .search-submit:focus {
    background-color: var(--medium-grey-color, #b5b5b2);
    color: #333333;
}

.search-submit svg {
    display: block;
    width: 28px;
    height: 28px;
}

.astra-filter-search input[type="text"] {
    padding-right: 55px;
}

.custom-filter {
    position: relative;
    width: 100%;
}

.filter-toggle {
    width: 100%;
    /* height: 48px;

    padding: 0 16px;

    border: 1px solid #dcdcdc;
    background: #e5e5e5;

    font-size: 16px;
    font-weight: 600; */

    text-align: left;
    cursor: pointer;

    position: relative;
}

.filter-toggle::after {
    
    content: '';
    position: absolute;
    /* right: 24px; */
    top: 50%;
    width: 9px;
    height: 9px;
    transform: translateY(-50%) rotate(45deg);
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transition: transform 0.2s ease;
    margin-left: 10px;
}

.filter-menu {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;

    background: #fff;

    /* border: 1px solid #dcdcdc; */
    border-top: none;

    z-index: 999;
    padding: 0.5rem 0.8rem;
    border-radius: var(--button-border-radius, 5px);
    box-shadow: var(--button-dropdown-box-shadow, (rgb(0 0 0 / 12%) 0 4px 18px -2px, rgb(0 0 0 / 14%) 0 2px 8px -1px));
}

.custom-filter.open .filter-menu {
    display: block;
    margin-top: 2px;
}

.filter-menu li {
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    word-break: break-all;
    border-radius: var(--button-border-radius, 5px);
}

.filter-menu li:hover {
    background: var(--warm-grey-color, #eeedeb);
}

@media (max-width: 767px) {
    .astra-blog-filter-bar {
    grid-template-columns: 1fr;
}
}