.resource-page-hero {
    position: relative;
    overflow: hidden;
    background: #0b365e url('../images/IMG_20181212_121538.jpg') center 48% / cover no-repeat;
}

.resource-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 35, 62, .9) 0%, rgba(7, 53, 91, .72) 52%, rgba(10, 57, 86, .42) 100%);
}

.resource-page-hero::after {
    content: '';
    position: absolute;
    right: -90px;
    bottom: -150px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(118, 192, 67, .32);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(118, 192, 67, .06), 0 0 0 90px rgba(85, 174, 224, .05);
}

.resource-page-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 370px;
    padding-top: 110px;
    padding-bottom: 48px;
}

.resource-page-hero__copy {
    max-width: 720px;
}

.resource-page-eyebrow,
.resource-directory__kicker,
.resource-category-panel__heading > span,
.resource-card__type {
    color: #76c043;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.resource-page-hero h1 {
    margin: 8px 0 13px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(38px, 4.2vw, 54px);
    font-weight: 700;
    line-height: 1.12;
}

.resource-page-hero__copy > p {
    max-width: 660px;
    margin: 0;
    color: #e5eef5;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

.resource-page-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 21px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 20px;
    color: #eff7fb;
    background: rgba(255, 255, 255, .11);
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.resource-page-hero__meta i {
    color: #a9dc87;
}

.resource-page-hero__meta strong {
    font-size: 15px;
}

.resource-directory {
    padding: clamp(50px, 6vw, 78px) 0;
    background: linear-gradient(180deg, #f5f8fa 0%, #fff 48%, #f6f9fb 100%);
}

.resource-directory__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.resource-directory__heading h2,
.resource-category-panel__heading h2 {
    margin: 4px 0 0;
    color: #17324d;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.resource-directory__heading h2 {
    font-size: clamp(27px, 2.5vw, 34px);
}

.resource-directory__count {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid #dbe6ee;
    border-radius: 18px;
    color: #536a7d;
    background: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(16, 76, 153, .06);
}

.resource-list {
    display: grid;
    min-width: 0;
    gap: 20px;
}

.resource-card {
    position: relative;
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 170px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce6ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(16, 55, 90, .075);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    z-index: 2;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #76c043;
}

.resource-card:hover {
    border-color: #c6d9e6;
    box-shadow: 0 15px 38px rgba(16, 55, 90, .125);
    transform: translateY(-3px);
}

.resource-card__cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 235px;
    padding: 17px;
    overflow: hidden;
    border-right: 1px solid #e3eaf0;
    background: linear-gradient(145deg, #eef4f7, #f8fafb);
}

.resource-card__cover img {
    display: block;
    width: 136px;
    height: 190px;
    border: 1px solid rgba(19, 50, 77, .12);
    background: #fff;
    object-fit: contain;
    box-shadow: 0 7px 18px rgba(17, 54, 83, .13);
    transition: transform .28s ease, box-shadow .28s ease;
}

.resource-card:hover .resource-card__cover img {
    box-shadow: 0 10px 23px rgba(17, 54, 83, .18);
    transform: scale(1.02);
}

.resource-card__cover span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid #d5e3ec;
    border-radius: 5px;
    color: #104c99;
    background: rgba(255, 255, 255, .94);
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
}

.resource-card__cover span i {
    color: #d25555;
}

.resource-card__body {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 25px 22px;
}

.resource-card__type {
    margin-bottom: 8px;
    color: #418023;
    font-size: 10.5px;
}

.resource-card h3 {
    margin: 0 0 11px;
    color: #123b60;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.38;
    overflow-wrap: anywhere;
}

.resource-card__body p {
    margin: 0 0 18px;
    color: #52697b;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.resource-card__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 7px 11px;
    border: 1px solid #cfe0ec;
    border-radius: 6px;
    color: #104c99;
    background: #f1f7fb;
    font-family: 'Roboto', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.resource-card__action i {
    color: #64a83b;
    font-size: 10px;
}

.resource-card__action:hover,
.resource-card__action:focus {
    border-color: #a9cadf;
    color: #0b365e;
    background: #e6f1f7;
    text-decoration: none;
}

.resource-category-panel {
    position: sticky;
    top: 105px;
    overflow: hidden;
    margin-top: 1px;
    border: 1px solid #dce6ed;
    border-top: 3px solid #104c99;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 55, 90, .09);
}

.resource-category-panel__heading {
    padding: 22px 20px 17px;
    border-bottom: 1px solid #e6edf2;
    background: linear-gradient(135deg, #fff, #f1f6f9);
}

.resource-category-panel__heading h2 {
    font-size: 20px;
    line-height: 1.3;
}

.resource-category-panel__heading p {
    margin: 8px 0 0;
    color: #6a7e8e;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
}

.resource-category-panel nav {
    padding: 10px;
}

.resource-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 3px;
    padding: 11px 11px;
    border-radius: 6px;
    color: #344c60;
    font-family: 'Roboto', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease;
}

.resource-category-link__label {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.resource-category-link__label i {
    width: 17px;
    color: #2671b4;
    text-align: center;
}

.resource-category-link strong {
    flex: 0 0 auto;
    min-width: 28px;
    padding: 3px 7px;
    border-radius: 14px;
    color: #104c99;
    background: #eaf2f9;
    font-size: 11px;
    text-align: center;
}

.resource-category-link:hover,
.resource-category-link:focus,
.resource-category-link.active {
    color: #fff;
    background: #104c99;
    text-decoration: none;
}

.resource-category-link:hover .resource-category-link__label i,
.resource-category-link:focus .resource-category-link__label i,
.resource-category-link.active .resource-category-link__label i {
    color: #b8e49c;
}

.resource-category-link:hover strong,
.resource-category-link:focus strong,
.resource-category-link.active strong {
    color: #104c99;
    background: #fff;
}

.resource-empty-state {
    padding: 55px 24px;
    border: 1px dashed #cad9e4;
    border-radius: 11px;
    color: #607587;
    background: #fff;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

.resource-empty-state > i {
    margin-bottom: 13px;
    color: #73b94a;
    font-size: 33px;
}

.resource-empty-state h3 {
    margin: 0 0 7px;
    color: #17324d;
    font-size: 20px;
}

.resource-empty-state p {
    margin: 0;
    font-size: 14px;
}

.resource-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.resource-pagination .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 0;
}

.resource-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid #d3e1ea;
    border-radius: 6px;
    color: #31536d;
    background: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(16, 55, 90, .05);
}

.resource-pagination .page-item .page-link:hover,
.resource-pagination .page-item .page-link:focus {
    border-color: #a8c9de;
    color: #104c99;
    background: #edf5fa;
}

.resource-pagination .page-item.active .page-link {
    border-color: #104c99;
    color: #fff;
    background: #104c99;
}

.resource-pagination .page-item.disabled .page-link {
    border-color: #e4ebf0;
    color: #9babb7;
    background: #f5f8fa;
    box-shadow: none;
}

.resource-card__cover:focus-visible,
.resource-card__action:focus-visible,
.resource-category-link:focus-visible {
    outline: 3px solid rgba(118, 192, 67, .65);
    outline-offset: 2px;
}

@media (max-width: 1199px) {
    .resource-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .resource-card__cover {
        min-height: 220px;
        padding: 14px;
    }

    .resource-card__cover img {
        width: 118px;
        height: 165px;
    }

    .resource-card__body {
        padding: 21px 21px 20px;
    }
}

@media (max-width: 991px) {
    .resource-directory .row > [class*='col-'] {
        min-width: 0;
    }

    .resource-page-hero__content {
        min-height: 345px;
        padding-top: 100px;
        padding-bottom: 42px;
    }

    .resource-category-panel {
        position: static;
        margin-top: 32px;
    }

    .resource-category-panel nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .resource-category-link {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .resource-page-hero__content {
        min-height: 325px;
        padding-top: 94px;
        padding-bottom: 37px;
    }

    .resource-page-hero__copy > p {
        font-size: 15px;
    }

    .resource-card {
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .resource-card__cover {
        min-height: 205px;
        padding: 12px;
    }

    .resource-card__cover img {
        width: 104px;
        height: 146px;
    }

    .resource-card__body {
        padding: 19px 18px 18px;
    }

    .resource-card h3 {
        font-size: 18px;
    }

    .resource-card__body p {
        font-size: 13.5px;
        line-height: 1.62;
    }
}

@media (max-width: 575px) {
    .resource-page-hero::after {
        right: -180px;
    }

    .resource-page-hero__content {
        min-height: 315px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .resource-page-hero h1 {
        font-size: 36px;
    }

    .resource-directory {
        padding: 44px 0 52px;
    }

    .resource-directory__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .resource-card {
        display: block;
    }

    .resource-card__cover {
        min-height: 218px;
        border-right: 0;
        border-bottom: 1px solid #e3eaf0;
    }

    .resource-card__cover img {
        width: 133px;
        height: 185px;
    }

    .resource-card__body {
        padding: 20px;
    }

    .resource-category-panel nav {
        display: block;
    }

    .resource-category-link {
        margin-bottom: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .resource-card,
    .resource-card__cover img,
    .resource-card__action,
    .resource-category-link {
        transition: none;
    }

    .resource-card:hover,
    .resource-card:hover .resource-card__cover img {
        transform: none;
    }
}
