#resource-category-filter {
    display: none;
}

/* SEARCH BOX */
.resource-search-container {
    margin-bottom: 3em;
}

.search-header {
    text-align: center;
}

.search-header h2 {
    color: #182E18;
    font-weight: 700;
}

.search-header h5 {
    color: #182E18;
}

.search-box {
    width: min(700px, 100%);
    margin: 2em auto 0;
    position: relative
}

/* .search-box:after {
    font-family: 'Font Awesome 6 Pro';
    font-weight: 400 !important;
    font-size: 1.5em;
    content: '\f002';
    display: inline-block;
    color: #F78E1E;
    position: absolute;
    top: 50%;
    right: 3%;
    transform: translatey(-50%);
} */

.search-box input {
    width: 100%;
    border: 1px solid #182E18 !important;
    border-radius: 40px;
    padding: 1em 3em 1em 1.5em !important;
    font-size: 1.1em;
    color: #182E18;
}

.search-box input:focus {
    border: 1px solid #F78E1E !important;
}

.search-box input::placeholder {
    color: #AFA296;
}


.search-buttons {
    position: absolute;
    top: 54%;
    right: 2.5%;
    transform: translatey(-50%);
}

.find-search {
    color: #F78E1E;
    font-size: 1.5em !important;
    font-weight: 400 !important;
}

.reset-search {
    color: #fff;
    background-color: #F78E1E;
    border-radius: 50%;
    padding: 5px 6px 2px;
    text-align: center;
    font-size: 1.3em !important;
    font-weight: 400 !important;
    cursor: pointer
}

/* SUGGESTIONS */
#resource-suggestions {
    position: absolute;
    top: 60px;
    background-color: #fff;
    z-index: 1;
    width: 100%;
    padding: 1.5em;
    border-radius: 15px;
    box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, .2);
}

.suggestion-post {
    margin-bottom: 2em;
}

.suggestion-main {
    font-weight: 700;
    margin-bottom: .5em !important;
}

.suggestion-item a {
    padding: .5em 0;
    width: 100%;
    display: block;
}

.suggestion-item:hover {
    background-color: rgba(0, 0, 0, .05);
}

.suggestion-box p {
    margin: 0;
    color: #182E18;
}

.suggestion-box p a {
    color: #182E18;
}

.no-suggestions {
    display: block;
    padding: .5em 0 1.5em !important;
    margin-bottom: 1.5em !important;
    text-align: center;
    border-bottom: 1px solid #E8E8E8;
    color: #182E18;
    font-weight: 600;
}

/* CATEGORY TABS */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.category-button {
    font-weight: 700;
    color: #182E18;
    border: 1px solid #182E18;
    padding: .3em 1em .3em 2.3em;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    font-size: 1.1em !important;
    transition: .25s;
}

.category-button.all {
    padding: .3em 1em;
}

.category-button::before {
    display: inline-block;
    width: 17px;
    /* adjust as needed */
    height: 17px;
    /* adjust as needed */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translatey(-50%);
}

.category-button.standards::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/standards-icon.svg);
}

.category-button.grievance::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/grievance-icon.svg);
}

.category-button.assurance::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/assurance-icon.svg);
}

.category-button.membership::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/membership-icon.svg);
}

.category-button.smallholder::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/small-holder-icon.svg);
}

.category-button.sustainability::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/sustainability-icon.svg);
}

.active-category {
    background-color: #2CA243;
    border: 1px solid #2CA243;
    color: #fff;
    transition: .25s;
}

.hover-category {
    background-color: #2CA243;
    border: 1px solid #2CA243;
    color: #fff;
    transition: .25s;
}

/* HOVER AND ACTIVE */
.category-button.standards.hover-category::before,
.category-button.standards.active-category::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/standards-icon-white.svg);
}

.category-button.grievance.hover-category::before,
.category-button.grievance.active-category::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/grievance-icon-white.svg);
}

.category-button.assurance.hover-category::before,
.category-button.assurance.active-category::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/assurance-icon-white.svg);
}

.category-button.membership.hover-category::before,
.category-button.membership.active-category::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/membership-icon-white.svg);
}

.category-button.smallholder.hover-category::before,
.category-button.smallholder.active-category::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/small-holder-icon-white.svg);
}

.category-button.sustainability.hover-category::before,
.category-button.sustainability.active-category::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/sustainability-icon-white.svg);
}



/* RESOURCE LIST */
#resource-results {
    margin-top: 3em;
}

.resource-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
    margin-top: 1em;
}

.resource-list.no-content {
    display: block;
    position: relative;
    height: 200px;
}

.resource-list.no-content h5 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    color: #182E18;
    font-style: italic
}

.resource-image {
    position: relative;
    width: 100%;
    height: 13vw;
    min-height: 200px;
}

.featured-image {
    width: 100%;
    height: 100%;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-type {
    display: flex;
    justify-content: center;
    gap: .3em;
    background-color: #2CA243;
    position: absolute;
    bottom: 5%;
    right: 4%;
    padding: .3em .5em;
    width: 60px;
    border-radius: 15px;
}

.resource-type p {
    color: #fff;
    font-size: .7em !important;
    margin-bottom: -.1em;
}

.resource-post {
    background-color: #fff;
    position: relative;
}

.resource-content {
    padding: 2em 1.5em;
}

.resource-content h4 {
    color: #F78E1E;
    font-weight: 700;
}

.resource-content p {
    color: #182E18;
    margin-bottom: 0;
}

.resource-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.row-top-resources.no-top-resources .button-1 {
    display: none;
}

/* TABLET */
@media(max-width:980px) {

    /* CATEGORY TABS */
    .category-buttons {
        justify-content: center;
    }


    /* RESOURCE LIST */
    .resource-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media(max-width:767px) {

    .search-box input {
        font-size: .9em !important;
    }

    .search-buttons {
        right: 3%;
    }

    .find-search {
        font-size: 1.2em !important;
    }

    .reset-search {
        padding: 4px 6px 3px;
        font-size: 1em !important;
    }

    .category-button {
        transition: 0s;
    }

    .active-category {
        transition: 0s;
    }

    .hover-category {
        transition: 0s;
    }


    /* RESOURCE LIST */
    .resource-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .resource-image {
        height: 40vw;
        min-height: 200px;
    }

    .resource-content {
        text-align: center;
    }

}