.resource-library-page {
    color: #3E3A3A;
}

.resource-library-page .bottom-content {
    margin-top: 30px;
}


.resource-library-page__intro {
    margin-bottom: 30px;
    text-align: center;
}

.resource-library-page__intro > * {

}

.resource-library-filter {
    display: grid;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 44px;
    padding: 20px;
    background: #F8F3E8;
}

.resource-library-filter__field {
    position: relative;
}

.resource-library-filter__dropdown {
    position: relative;
    z-index: 5;
}

.resource-library-filter__summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 10px 46px 10px 16px;
    background: #FFFFFF;
    border: 1px solid #D8D2D2;
    color: #3E3A3A;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.resource-library-filter__summary::-webkit-details-marker {
    display: none;
}

.resource-library-filter__summary::after {
    content: "\e917";
    position: absolute;
    right: 18px;
    top: 50%;
    color: #990033;
    font-family: 'icomoon';
    font-size: 14px;
    line-height: 1;
    transform: translateY(-50%) rotate(180deg);
}

.resource-library-filter__dropdown[open] .resource-library-filter__summary::after {
    transform: translateY(-50%);
}

.resource-library-filter__panel {
    width: 100%;
    max-height: 310px;
    overflow-y: auto;
    padding: 14px;
    background: #FFFFFF;
    border: 1px solid #D8D2D2;
    border-top: 0;
    box-shadow: 0 12px 24px rgba(62, 58, 58, 0.12);
}

.resource-library-filter__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 6px 0;
    color: #000000;
    font-size: 15px;
    line-height: 1.35;
    cursor: pointer;
}

.resource-library-filter__checkbox input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #990033;
}

.resource-library-filter__checkbox span {
    flex: 1 1 auto;
}

.resource-library-filter__empty {
    color: #3E3A3A;
    font-size: 15px;
}

.resource-library-filter__field--search input {
    width: 100%;
    min-height: 50px;
    padding: 10px 16px;
    background: #FFFFFF;
    border: 1px solid #D8D2D2;
    border-radius: 0;
    color: #3E3A3A;
    font-family: inherit;
    font-size: 16px;
}

.resource-library-filter__field--search input::placeholder {
    color: #7B7474;
}

.resource-library-filter__submit {
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-height: 50px;
    justify-content: center;
}

.resource-library-filter__clear {
    align-self: center;
    justify-self: center;
    color: #8D002F;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.resource-library-results__count {
    margin-bottom: 16px;
    padding-bottom: 0;
    color: #000000;
    font-size: 15px;
    font-weight: 500;
}

.resource-library-list {
    border-top: 1px solid #D8D2D2;
}

.resource-library-card {
    padding: 24px 0;
    border-bottom: 1px solid #D8D2D2;
}

.resource-library-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 9px;
}

.resource-library-card__category {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: #990033;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.resource-library-card__title {
    margin: 0 0 6px;
    padding: 0;
    color: #000000;
    font-size: 20px;
    line-height: 1.3;
}

.resource-library-card__title a {
    color: inherit;
    background: none;
    font-weight: 600;
}

.resource-library-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: #3E3A3A;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
}

.resource-library-card__meta span + span::before {
    content: "\2022";
    margin-right: 8px;
    color: #990033;
}

.resource-library-card__tags {
    padding-bottom: 0;
    color: #3E3A3A;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.resource-library-card__tags span {
    color: #000000;
}

.resource-library-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.resource-library-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 10px 13px !important;
    background: transparent;
    border: 1px solid transparent;
    color: #990033;
    font-weight: 500;
    line-height: 1;
}

.resource-library-pagination .page-numbers.current,
.resource-library-pagination .page-numbers:hover {
    background: #5F0020;
    border-color: #5F0020;
    color: #FFFFFF;
}

.resource-library-results__empty {
    padding: 34px;
    background: #F8F8F8;
    border-left: 3px solid #990033;
}

@media (min-width: 768px) {
    .resource-library-filter {
        grid-template-columns: minmax(210px, 280px) minmax(280px, 1fr) auto auto;
        align-items: center;
        gap: 12px;
        padding: 15px 24px;
    }

    .resource-library-filter__summary,
    .resource-library-filter__field--search input,
    .resource-library-filter__submit {
        min-height: 42px;
    }

    .resource-library-filter__panel {
        position: absolute;
        left: 0;
        top: 100%;
    }

    .resource-library-filter__submit {
        width: auto;
    }

    .resource-library-filter__clear {
        justify-self: end;
        white-space: nowrap;
    }

    .resource-library-card {
        padding: 28px 0;
    }

    .resource-library-card__title {
        font-size: 22px;
    }
    
    .resource-library-page .bottom-content {
        margin-top: 40px;
    }    
}

@media (min-width: 1200px) {
    .resource-library-page .bottom-content {
        margin-top: 60px;
    }    
    
    .resource-library-card__title a:hover {
        color: #FFFFFF;
        background: linear-gradient(to bottom, rgba(153,0,51,1) 0%, rgba(153,0,51,1) 100%);
        background-position: 0 100%;
        background-repeat: repeat-x;
        background-size: 2px 50px;
    }
}
