#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 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;
}

.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.small-holder::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.small-holder.hover-category::before,
.category-button.small-holder.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;
}

.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%;
}

/* TABLET */
@media(max-width:980px) {

    /* RESOURCE LIST */
    .resource-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media(max-width:767px) {

    /* CATEGORY TABS */
    .category-buttons {
        justify-content: center;
    }


    /* RESOURCE LIST */
    .resource-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .resource-image {
        height: 40vw;
        min-height: 200px;
    }

    .resource-content {
        text-align: center;
    }

}


/* ==================== ARCHIVE PAGE ==================== */
/* .resource-search-container.archive-page {
    background-image: url(/wp-content/uploads/2025/06/resource-archive-bg-scaled.webp);
    padding: 17em 0 10em;
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 0;
}

.resource-search-container.archive-page:before {
    content: "";
    background-color: rgba(34, 62, 39, .7);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
} */


#resource-filters:has(.resource-search-container.archive-page) {
    background-image: url(/wp-content/uploads/2025/06/resource-archive-bg-scaled.webp);
    padding: 17em 0 10em;
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 0;
}

#resource-filters:has(.resource-search-container.archive-page):before {
    content: "";
    background-color: rgba(34, 62, 39, .7);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.resource-search-container {
    width: 80%;
    margin: auto;
}

.resource-search-container.archive-page .search-header {
    position: relative;
    z-index: 1;
}

.resource-search-container.archive-page .search-header h2 {
    color: #fff;
    font-weight: 700 !important;
}

.resource-search-container.archive-page .resource-content h4 {
    font-weight: 700 !important;
}

/* FILTER TREE */
.resource-archive-content {
    width: 80%;
    padding: 4em 0;
    margin: auto;
    display: flex;
    gap: 2em;
    max-width: 1920px;
}

#resource-content {
    margin-top: -6.5em;
    padding: 6.5em 0 0;
}

.resource-archive-content #resource-results {
    display: none !important;
}

.resource-archive-content .resource-list-container.archive-page {
    width: 350px;
}

.resource-all-list {
    width: 100%;
}

.resource-archive-content .resource-list {
    grid-template-columns: repeat(3, 1fr);
}

.resource-all-list .resource-list.no-content {
    width: 100%;
    height: 60%;
    position: relative;
}

.no-resources {
    /*     background-color: red; */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(500px, 100%);
    text-align: center;
    font-style: italic;
    color: #182E18;
}

.resource-all-list .resource-content h4 {
    font-weight: 700 !important;
}

.resource-filter-item>a {
    position: relative;
    padding-left: 1.2em;
}

.resource-filter-item>a::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: 0%;
    transform: translatey(-50%);
}

.resource-filter-item .resource-filter-item>a {
    padding-left: 0;
}

.resource-filter-item.all>a::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/all-icon.svg);
}

.resource-filter-item.standards>a::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/standards-icon.svg);
}

.resource-filter-item.grievance>a::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/grievance-icon.svg);
}

.resource-filter-item.assurance>a::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/assurance-icon.svg);
}

.resource-filter-item.membership>a::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/membership-icon.svg);
}

.resource-filter-item.smallholder>a::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/small-holder-icon.svg);
}

.resource-filter-item.sustainability>a::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/06/sustainability-icon.svg);
}


.resource-filter-item.all>a.hover-filter::before,
.resource-filter-item.all.active-filter>a::before {
    background-image: url(/wp-content/uploads/2025/06/all-icon-orange.svg) !important;
}

.resource-filter-item.standards>a.hover-filter::before,
.resource-filter-item.standards.active-filter>a::before {
    background-image: url(/wp-content/uploads/2025/06/standards-icon-orange.svg);
}

.resource-filter-item.grievance>a.hover-filter::before,
.resource-filter-item.grievance.active-filter>a::before {
    background-image: url(/wp-content/uploads/2025/06/grievance-icon-orange.svg);
}

.resource-filter-item.assurance>a.hover-filter::before,
.resource-filter-item.assurance.active-filter>a::before {
    background-image: url(/wp-content/uploads/2025/06/assurance-icon-orange.svg);
}

.resource-filter-item.membership>a.hover-filter::before,
.resource-filter-item.membership.active-filter>a::before {
    background-image: url(/wp-content/uploads/2025/06/membership-icon-orange.svg);
}

.resource-filter-item.smallholder>a.hover-filter::before,
.resource-filter-item.smallholder.active-filter>a::before {
    background-image: url(/wp-content/uploads/2025/06/small-holder-icon-orange.svg);
}

.resource-filter-item.sustainability>a.hover-filter::before,
.resource-filter-item.sustainability.active-filter>a::before {
    background-image: url(/wp-content/uploads/2025/06/sustainability-icon-orange.svg);
}


.active-filter {
    transition: .25s;
}

.hover-filter {
    transition: .25s;
}

/* ----- FILTER TREE BREADCRUMBS ----- */
.custom-breadcrumbs {
    /*     text-align: center; */
    display: inline;
}

.custom-breadcrumbs a {
    display: inline-block;
    margin: 0 .5em;
}

.custom-breadcrumbs .active-breadcrumb {
    display: inline-block;
    margin: 0 .5em;
}

.custom-breadcrumbs a {
    color: #909090;
    font-size: clamp(.9rem, 1.1vw, 1rem) !important;
    font-weight: 500;
}

.custom-breadcrumbs a:hover {
    color: #2CA243;
    font-weight: 500;
}

.custom-breadcrumbs .active-breadcrumb {
    font-size: clamp(.9rem, 1.1vw, 1rem) !important;
    color: #2CA243;
    font-weight: 700;
}

.resource-category-desc {
    margin: .5em 0 1em;
}

.resource-category-desc h2 {
    color: #182E18;
    font-weight: 700 !important;
    margin-bottom: .2em;
}

.resource-category-desc h5 {
    color: #182E18;
}

/* ----- FILTER TREE ----- */
.resource-filter-item.has-children>.child-category-list {
    display: none;
}

.resource-filter-item.has-children>a::after {
    content: "\f078";
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
    transition: transform 0.2s;
    font-size: .9em;
    float: right;
}

.resource-filter-item.has-children.open>a::after {
    transform: rotate(180deg);
    /* Arrow rotates when open */
}


.resource-filter-tree {
    padding: 0 !important;
    list-style-type: none !important;
    background-color: #FFF1E2;
    display: block;
    padding: 1.5em !important;
    border-radius: 15px;
    border: 1px solid #F78E1E;
}

.resource-filter-tree .resource-filter-tree {
    border: 0;
}

.resource-filter-tree .resource-filter-item {
    margin-bottom: 1.5em;
    position: relative;
}

.dropdown-toggle {
    position: absolute;
    top: 0;
    right: -5px;
    width: 25px;
    height: 100%;
    /*     background-color: red; */
    cursor: pointer;
}

.resource-filter-tree .resource-filter-item:last-child {
    margin-bottom: 0;
}

.resource-filter-tree .category-link {
    color: #182E18;
    font-weight: 700;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    transition: .25s;
}

.resource-filter-tree .category-link:hover,
.resource-filter-tree .category-link.hovered {
    color: #F78E1E;
    transition: .25s;
}


.resource-filter-tree .child-category-list {
    list-style-type: none !important;
    background-color: #FFEBD6;
    border-radius: 15px;
    padding: 1.5em;
    margin-top: 1em;
}

.resource-filter-tree .child-category-list a {
    line-height: 1.2em !important;
    display: inline-block !important;
}

.resource-filter-tree .child-category-list .resource-filter-item {
    margin-bottom: 1.5em;
}

.child-category-list .resource-filter-item:last-child {
    margin-bottom: 0;
}

.resource-filter-tree .child-category-list .category-link {
    font-weight: 600;
    font-size: clamp(.9rem, 1.1vw, 1rem);
}

.resource-filter-tree .child-category-list .child-category-list {
    background-color: transparent;
    border-radius: 0;
    padding: 0 0 0 1em;
    margin-top: 0;
}

.child-category-list .resource-filter-item .child-category-list .resource-filter-item:first-child {
    margin-top: .5em !important;
}

.child-category-list .resource-filter-item .child-category-list .resource-filter-item {
    margin-bottom: .5em !important;
}


.resource-filter-tree .child-category-list .child-category-list .category-link {
    font-weight: 500;
    font-size: clamp(.9rem, 1.1vw, 1rem);
}

.resource-filter-tree .resource-filter-tree {
    padding: 0 !important;
}

.resource-filter-item.active-filter>a {
    color: #F78E1E !important;
    font-weight: 700 !important;
}

.resource-filter-item.open>.child-category-list {
    display: block;
}


/* ----- PAGINATION ----- */
.resource-pagination {
    display: flex;
    gap: 1em;
    justify-content: center;
    margin-top: 3em;
}

.resource-pagination .page-nav {
    background-color: transparent;
    border: 0;
    color: #F78E1E;
    font-size: 1.2em;
    cursor: pointer;
}

.resource-pagination .page-btn {
    background-color: #fff;
    border: 0;
    border-radius: 5px;
    padding: .6em .9em;
    font-size: clamp(.9rem, 1.1vw, 1rem) !important;
    color: #F78E1E;
    font-weight: 600;
    cursor: pointer;
}

.resource-pagination .page-btn.active {
    background-color: #F78E1E;
    border: 0;
    border-radius: 5px;
    padding: .6em .9em;
    font-size: clamp(.9rem, 1.1vw, 1rem) !important;
    color: #fff;
    font-weight: 600;
}

/* TABLET */
@media(max-width:980px) {

    .resource-search-container {
        width: 90%;
    }

    /* FILTER TREE */
    .resource-archive-content {
        width: 90%;
    }

    .resource-archive-content {
        flex-direction: column;
    }

    .resource-archive-content .resource-list-container.archive-page {
        width: 100% !important;
    }

    .resource-archive-content .resource-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .resource-all-list .resource-list.no-content {
        width: 100%;
        min-height: 150px;
        position: relative;
    }
}

/* MOBILE */
@media(max-width:767px) {
    .resource-archive-content .resource-list {
        grid-template-columns: repeat(1, 1fr);
    }
}