.resources-search__header {
    position: relative;
    background: var(--wp--preset--color--light-grey);
}
.resources-search__header::after {
    content: '';
    display: block;
    margin: 0 auto;
    width: 1070px;
    height: 15px;
    max-width: calc(100vw - 220px);
    border-top: 1px solid var(--wp--preset--color--grey);
}
.resources-search__header__pattern-1,
.resources-search__header__pattern-2 {
    position: absolute;
}
.resources-search__header__pattern-1 {
    top: calc(100% - 503px);
    left: 70px;
    width: 353px;
    height: 353px;
    border-radius: 20px;
    border: 3px solid #FFF;
    transform: rotate(45deg);
    transform-origin: 0 0;
}
.resources-search__header__pattern-2 {
    bottom: 13px;
    left: -42px;
    width: 275px;
    height: 275px;
    background: url("../../assets/images/resources-header.webp") center center / contain no-repeat;
}

.resources-search__header__cta {
    margin-right: calc(var(--wp--style--root--padding-right) * -1);
    min-height: 100px;
}
.resources-search-cta {
    display: block;
    margin-left: calc(50% - 487px);
    background: var(--wp--preset--color--medium-green);
    clip-path: polygon(78px 0, 100% 0, 100% 100%, 0 100%);

    height: 170px;
    padding: 50px var(--wp--style--root--padding-right) 33px 114px;
    transition: 0.5s ease-out;
}

.resources-search-cta[aria-hidden="true"] {
    transform: translateX(130%);
    height: 100px;
}
.resources-search-cta__text {
    font-size: 1rem;
    line-height: 1.5625;
    max-width: calc(var(--wp--style--global--content-size) - 158px - 114px - var(--wp--style--root--padding-right) / 2 - 190px);
}
.resources-search-cta__close-btn {
    position: absolute;
    right: calc(50% - 1290px / 2);
    top: 40px;
    color: #FFF;
    border: 1px solid #FFF;
    border-radius: 3px;
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease-out;
}
.resources-search-cta__close-btn:hover {
    background: #FFF;
    color: var(--wp--preset--color--medium-green);
}

.resources-search-cta .resources-search-cta__link {
    --custom-theme-button-bg-color: #FFF;
    --custom-theme-button-text-color: #FFF;
    --custom-theme-button-text-color-alt: var(--wp--preset--color--medium-green);
    margin-top: 21px;
}


.resources-search__header__inner {
    position: relative;
    justify-content: space-between;
    padding-top: 27px;
    padding-bottom: 30px;
}

.resources-search__title {
    --custom-theme-flex-span: 3;
    line-height: 0.85;
    align-self: flex-end;
}
.resources-search__filters {
    --custom-theme-flex-span: 9;
}
.resources-filters {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 25px;
}

.resources-filters label {
    display: block;
    font-size: 0.75rem;
    line-height: 2.08;
}
.resources-filters .filter--search-terms {
    flex: 0 0 auto;
}
#resource-search-terms {
    min-width: 230px;
}
#page .resources-filters .select2-container {
    width: auto!important;
    min-width: 246px;
}
#page #resources-search-ressource-type + .select2-container {
    width: 246px!important;
}

.resources-search__highlighted {
    margin-top: 60px;
    margin-bottom: 76px;
}
.resources-search__highlighted[hidden] {
    display: none;
}
.resources-search__highlighted__title {
    margin-top: 0;
    margin-bottom: 30px;
}
.resources-search__pagination {
    margin-top: 50px;
}

@media screen and (min-width: 1280px) {
    .resource-highlighted,
    .last-resource {
        display: flex;
        flex-direction: column;
    }
    .resource-highlighted .resource-summary,
    .last-resource .resource-summary {
        flex: 1 1 auto;
    }

    .resource-highlighted {
        --custom-theme-flex-span: 7;
    }
    .resource-highlighted .resource-summary {
        overflow: hidden;
        display: flex;
        gap: 30px;
        padding: 15px 15px 15px 0;
    }
    .resource-highlighted .resource-summary__image {
        margin: -15px 0 0 0;
    }
    .resource-highlighted .resource-summary__image img {
        width: 300px;
    }
    .resource-highlighted .resource-summary__title {
        margin-bottom: 20px;
    }
    .resource-highlighted .resource-summary__title::after {
        content: '';
        display: block;
        margin-top: 11px;
        width: 135px;
        height: 1px;
        background: var(--wp--preset--color--red);
    }
    .resource-highlighted .resource-summary__excerpt::after {
        display: none;
    }
    .resource-highlighted__since {
        padding-left: 10px;
        margin-top: 13px;
    }
    .resource-highlighted .resource-summary__tags {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 40px;
    }
    .resource-highlighted .resource-summary__resource-type {
        order: -1;
    }
    .resource-highlighted .resource-summary__excerpt {
        margin-bottom: 16px;
    }


    .last-resource {
        --custom-theme-flex-span: 5;
    }
    .last-resource .resource-summary {
        overflow: hidden;
        display: flex;
        flex-wrap: wrap;
        gap: 6px 21px;
        padding: 15px 15px 15px 0;
    }
    .last-resource .resource-summary__image {
        margin: -15px 0 0 0;
    }
    .last-resource .resource-summary__image img {
        width: 220px;
        aspect-ratio: 220/155;
    }
    .last-resource .resource__meta {
        width: calc(100% - 21px - 220px);
    }
    .last-resource .resource-summary__title {
        margin-bottom: 13px;
    }
    .last-resource .resource-summary__title::after {
        content: '';
        display: block;
        margin-top: 11px;
        width: 135px;
        height: 1px;
        background: var(--wp--preset--color--red);
    }
    .last-resource .resource-summary__excerpt::after {
        display: none;
    }
    .last-resource .resource-summary__resource-type {
        order: -1;
    }
    .last-resource .resource__content {
        padding-left: 21px;
    }
    .last-resource .resource-summary__excerpt {
        margin-bottom: 12px;
    }
}
/*
.resource-search__sort {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 50px;
}
.resource-search__sort__title,
.resource-search__sort__by {
    font-size: 0.875rem;
    line-height: 1.43;
}
.resource-search__sort__title {
    font-weight: 600;
}
.resource-search__sort__by {
    position: relative;
    font-style: italic;
    text-align: left;
    height: 20px;
    width: 66px;
}
.resource-search__sort__by span {
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.3s ease-out;
}

.resource-search__sort__by span[aria-selected="false"] {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.resource-search__sort__order svg {
    display: block;
}
.resource-search__sort__order .icon-sort-order__arrow {
    fill: var(--wp--preset--color--light-black);
}
.resource-search__sort__order .icon-sort-order__arrow.is-selected {
    fill: #000;
}
*/

.resources-search__list__title {
    margin-bottom: 50px;
    margin-top: 50px;
}

.resources-search__list__list {
    flex-wrap: wrap;
    gap: 50px var(--custom-theme-flex-gap);
}
.resources-search__list__item {
    --custom-theme-flex-span: 3;
}



.resource-summary__exclusive-notice {
    margin: 20px -15px -6px;
    padding: 15px;
    border-radius: 4px;
    background: var(--wp--preset--color--medium-grey);
    font-size: 0.75rem;
    line-height: 1.5;
}
.resource-summary__exclusive-notice__cta {
    margin-top: 12px;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding-top: 8px;
    padding-bottom: 8px;
}
.resource-summary--exclusive .resource-summary__excerpt > div {
    filter: blur(5px);
}


.resource-summary--sponsored {
    position: relative;
}
.resource-summary--sponsored::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--wp--preset--color--red);
    border-radius: 8px;
    pointer-events: none;
}
.resource-summary--sponsored .resource-summary__image {
    z-index: 1;
}

.resource-summary__sponsored-notice {
    background: var(--wp--preset--color--red);
    height: 45px;
    margin: -20px -26px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;

    font-size: 1rem;
    text-transform: uppercase;
    line-height: 1.1875;
    font-weight: 600;
}


.resources-search__list__more-btn {
    --custom-theme-button-bg-color: var(--wp--preset--color--green);
    --custom-theme-button-text-color-alt: var(--wp--preset--color--green);
    gap: 15px;
    margin-top: 40px;
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 1600px) {
    .resources-search__header__pattern-1 {
        left: -80px;
    }
    .resources-search__header__pattern-2 {
        left: -192px;
    }
}

@media screen and (max-width: 1439px) {
    .resources-search__header__cta {
        margin-left: 200px;
    }
    .resources-search-cta__close-btn {
        right: var(--wp--style--root--padding-right);
    }
}

@media screen and (max-width: 1279px) {

    .resources-search__header::after {
        display: none;
    }
    .resources-search__header__pattern-1,
    .resources-search__header__pattern-2 {
        display: none;
    }
    .resources-search__header__cta {
        margin-left: calc(var(--wp--style--root--padding-left) * -1);
    }
    .resources-search-cta {
        margin-left: 0;
        clip-path: none;
        padding-left: var(--wp--style--root--padding-left);
        padding-right: calc(var(--wp--style--root--padding-right) + 39px + 20px);
        height: auto;
    }
    .resources-search__header__cta {
        min-height: 0;
    }
    .resources-search__header__cta:empty,
    .resources-search-cta[aria-hidden="true"] {
        display: none;
    }

    .resources-search__header__inner {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 44px;
        gap: 15px var(--custom-theme-flex-gap);
    }
    .resources-search__title {
        align-self: flex-start;
    }

    .resource-highlighted {
        --custom-theme-flex-span: 6;
    }
    .last-resource {
        --custom-theme-flex-span: 6;
    }
    .resource-highlighted__since {
        margin-top: 20px;
        margin-left: 26px;
    }
    .resource-highlighted__content,
    .last-resource .resource-summary {
        display: flex;
        flex-direction: column;
    }
    .resource-highlighted .resource-summary__tags,
    .last-resource .resource-summary__tags {
        order: 100;
    }
    .resource-highlighted .resource-summary__permalink,
    .last-resource .resource-summary__permalink {
        order: 101;
    }

    .last-resource__title {
        min-height: calc(2.54em + 17px);
    }

    .resources-search__list__item {
        --custom-theme-flex-span: 4;
    }
}

@media screen and (max-width: 991px) {
    .resources-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .resources-search__highlighted {
        flex-direction: column;
        gap: 60px;
    }
    .last-resource__title {
        min-height: 0;
    }
    .resource-highlighted .resource-summary,
    .last-resource  .resource-summary {
        max-width: 600px;
    }

    .resources-search__list__item {
        --custom-theme-flex-span: 6;
    }
}

@media screen and (max-width: 767px) {
    .resources-search-cta {
        padding-top: 25px;
        padding-bottom: 30px;
        padding-right: calc(var(--wp--style--root--padding-right) + 39px + 30px);
    }
    .resources-search-cta__close-btn {
        top: 30px;
    }
    .resources-search-cta__link {
        margin-right: -30px;
    }

    .resources-search__highlighted {
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .resource-highlighted .resource-summary,
    .last-resource .resource-summary {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }


    .resources-search__list__title {
        text-align: left;
        margin-bottom: 25px;
    }
    /*
    .resource-search__sort {
        margin-bottom: 40px;
    }
     */

    .resources-search__list__item {
        --custom-theme-flex-span: 12;
    }

    .resources-search__list__list {
        row-gap: 30px;
    }

    .resources-filters {
        align-items: stretch;
        width: 100%;
    }
    .resources-filters .filter {
        width: 100%;
    }
    #page .resources-filters .select2-container,
    #page #resources-search-ressource-type + .select2-container {
        width: 100% !important;
        max-width: 100%;
    }
}
