.company-resource-page {
    background: #f4f6f7;
    color: #17313d;
}

.resource-hero {
    position: relative;
    overflow: hidden;

    padding: 112px 0 105px;

    background:
        linear-gradient(
            115deg,
            #073f56 0%,
            #0b566e 58%,
            #0c6179 100%
        );

    color: #ffffff;
}

.resource-hero::after {
    content: "";

    position: absolute;
    top: -220px;
    right: -80px;

    width: 430px;
    height: 430px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}

.resource-hero-copy {
    position: relative;
    z-index: 1;

    max-width: 830px;
}

.resource-hero h1 {
    margin: 0;

    font-family: "Montserrat", sans-serif;
    font-size: clamp(46px, 4.7vw, 68px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.resource-hero h1 strong {
    font-weight: 800;
}

.resource-hero-subtitle {
    max-width: 740px;

    margin: 22px 0 0;

    font-size: clamp(16px, 1.25vw, 20px);
    font-style: italic;
    font-weight: 700;
    line-height: 1.55;
}

.resource-hero-description {
    max-width: 740px;

    margin: 27px 0 0;

    color: rgba(255, 255, 255, 0.84);

    font-size: 15px;
    line-height: 1.75;
}

.resource-main {
    padding: 60px 0 90px;
}

.resource-filter {
    position: relative;
    z-index: 3;

    margin-top: -96px;
    margin-bottom: 55px;
    padding: 26px;

    background: #ffffff;

    border-radius: 8px;

    box-shadow:
        0 14px 38px rgba(16, 47, 59, 0.12);
}

.resource-filter-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(220px, 0.8fr)
        auto;

    gap: 16px;

    align-items: end;
}

.resource-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.resource-field label {
    font-size: 13px;
    font-weight: 600;
}

.resource-field input,
.resource-field select {
    width: 100%;
    min-height: 48px;

    box-sizing: border-box;

    padding: 0 14px;

    border: 1px solid #d8e0e4;
    border-radius: 5px;

    background: #ffffff;

    font: inherit;
}

.resource-filter-action button {
    min-height: 48px;

    padding: 0 26px;

    border: 0;
    border-radius: 5px;

    background: #073f56;
    color: #ffffff;

    font: inherit;
    font-weight: 600;

    cursor: pointer;
}

.resource-featured {
    display: grid;

    grid-template-columns:
        minmax(330px, 0.9fr)
        minmax(0, 1.1fr);

    overflow: hidden;

    margin-bottom: 58px;

    background: #ffffff;

    border: 1px solid #dfe7ea;
    border-radius: 10px;

    box-shadow:
        0 12px 30px rgba(7, 63, 86, 0.07);
}

.resource-featured-media {
    min-height: 360px;

    background: #e8eff1;
}

.resource-featured-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.resource-pdf-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    gap: 11px;

    background:
        linear-gradient(
            135deg,
            #073f56,
            #0b708a
        );

    color: rgba(255, 255, 255, 0.8);
}

.resource-pdf-placeholder i {
    font-size: 48px;
}

.resource-pdf-placeholder span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.resource-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 42px;
}

.resource-featured-label,
.resource-section-heading > div > span,
.resource-detail-label {
    display: block;

    margin-bottom: 8px;

    color: #b68a34;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.resource-category-badge {
    align-self: flex-start;

    margin-bottom: 13px;
    padding: 5px 10px;

    border-radius: 30px;

    background: #eef5f7;
    color: #08647e;

    font-size: 10px;
    font-weight: 600;
}

.resource-featured h2 {
    margin: 0;

    font-family: "Montserrat", sans-serif;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.3;

    color: #073f56;
}

.resource-featured-content > p {
    margin: 18px 0 0;

    color: #586b74;

    font-size: 14px;
    line-height: 1.8;
}

.resource-file-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin: 22px 0;
}

.resource-file-meta span {
    padding: 6px 9px;

    background: #f2f6f7;

    border-radius: 4px;

    color: #66777f;

    font-size: 10px;
}

.resource-primary-button {
    display: inline-flex;
    align-items: center;

    align-self: flex-start;

    gap: 10px;

    min-height: 42px;
    padding: 0 16px;

    border-radius: 5px;

    background: #073f56;
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.resource-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 25px;

    margin-bottom: 28px;
}

.resource-section-heading h2 {
    margin: 0;

    font-family: "Montserrat", sans-serif;
    font-size: clamp(26px, 3vw, 37px);

    color: #073f56;
}

.resource-section-heading > p {
    margin: 0;

    color: #76868e;

    font-size: 13px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.resource-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #dfe7ea;
    border-radius: 9px;

    box-shadow:
        0 7px 22px rgba(7, 63, 86, 0.04);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.resource-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 32px rgba(7, 63, 86, 0.10);
}

.resource-card-media {
    display: block;

    height: 180px;

    overflow: hidden;

    background: #e7eef0;
}

.resource-card-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.resource-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 20px;
}

.resource-card-meta {
    display: flex;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 11px;
}

.resource-card-meta span {
    color: #b68a34;

    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;
}

.resource-card-meta small {
    color: #939fa4;

    font-size: 9px;
}

.resource-card h3 {
    margin: 0;

    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

.resource-card h3 a {
    color: #073f56;

    text-decoration: none;
}

.resource-card p {
    margin: 13px 0 18px;

    color: #64767e;

    font-size: 12px;
    line-height: 1.7;
}

.resource-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 12px;

    margin-top: auto;
    padding-top: 14px;

    border-top: 1px solid #e8edef;
}

.resource-card-footer > span {
    color: #829097;

    font-size: 10px;
}

.resource-card-footer > a {
    color: #08637e;

    font-size: 10px;
    font-weight: 700;

    text-decoration: none;
}

.resource-empty {
    grid-column: 1 / -1;

    padding: 60px 30px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #dfe7ea;
    border-radius: 8px;
}

.resource-empty h3 {
    color: #073f56;
}

.resource-empty p {
    color: #71828a;
}

.resource-empty a {
    color: #08637e;

    font-weight: 600;
}

.resource-pagination {
    margin-top: 35px;
}

.resource-detail-hero {
    position: relative;

    min-height: 480px;

    display: flex;
    align-items: center;

    padding: 90px 0;

    background:
        linear-gradient(
            115deg,
            #073f56,
            #0b6279
        );

    background-size: cover;
    background-position: center;

    color: #ffffff;
}

.resource-detail-hero-content {
    max-width: 950px;
}

.resource-back-link {
    display: inline-block;

    margin-bottom: 30px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 12px;

    text-decoration: none;
}

.resource-detail-category {
    display: inline-flex;

    margin-bottom: 16px;
    padding: 6px 10px;

    border: 1px solid rgba(213, 173, 89, 0.45);
    border-radius: 20px;

    color: #efc878;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
}

.resource-detail-hero h1 {
    margin: 0;

    font-family: "Montserrat", sans-serif;
    font-size: clamp(39px, 4.4vw, 60px);
    line-height: 1.15;
}

.resource-detail-file-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 11px;

    margin-top: 23px;
}

.resource-detail-file-meta span {
    padding: 6px 10px;

    border-radius: 4px;

    background: rgba(255, 255, 255, 0.10);

    font-size: 10px;
}

.resource-detail-main {
    padding: 55px 0 90px;
}

.resource-detail-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 28px;
    align-items: start;
}

.resource-detail-description {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dfe7ea;
    border-radius: 9px;
}

.resource-detail-accent {
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #d5ad59 0%,
            #d5ad59 25%,
            #0b6984 25%,
            #0b6984 100%
        );
}

.resource-detail-body {
    padding: 38px;
}

.resource-detail-body h2 {
    margin: 0 0 23px;

    font-family: "Montserrat", sans-serif;

    color: #073f56;
}

.resource-rich-text {
    color: #4d626c;

    font-size: 14px;
    line-height: 1.85;
}

.resource-rich-text > *:first-child {
    margin-top: 0;
}

.resource-rich-text > *:last-child {
    margin-bottom: 0;
}

.resource-rich-text h2,
.resource-rich-text h3 {
    color: #073f56;
}

.resource-no-description {
    color: #78888f;
}

.resource-download-card {
    position: sticky;
    top: 100px;

    padding: 28px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #dfe7ea;
    border-radius: 9px;

    box-shadow:
        0 10px 28px rgba(7, 63, 86, 0.06);
}

.resource-download-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #fff0f0;

    color: #c63f3f;

    font-size: 27px;
}

.resource-download-card h3 {
    margin: 0;

    overflow-wrap: anywhere;

    font-size: 14px;

    color: #304f5b;
}

.resource-download-card > p {
    margin: 7px 0 20px;

    color: #8a989e;

    font-size: 11px;
}

.resource-preview-button,
.resource-download-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 44px;

    box-sizing: border-box;

    gap: 8px;

    border-radius: 5px;

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.resource-preview-button {
    margin-bottom: 9px;

    border: 1px solid #0a6884;

    background: #ffffff;
    color: #08637e;

    cursor: pointer;
}

.resource-download-button {
    border: 1px solid #073f56;

    background: #073f56;
    color: #ffffff;
}

.resource-download-card > small {
    display: block;

    margin-top: 14px;

    color: #97a3a8;

    font-size: 9px;
    line-height: 1.5;
}

.resource-related {
    margin-top: 60px;
}

.resource-preview-modal {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: none;
}

.resource-preview-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-preview-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.68);
}

.resource-preview-dialog {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    width: min(1180px, calc(100% - 40px));
    height: min(820px, calc(100vh - 50px));

    overflow: hidden;

    background: #ffffff;

    border-radius: 9px;
}

.resource-preview-header,
.resource-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 15px 20px;

    background: #ffffff;
}

.resource-preview-header {
    border-bottom: 1px solid #e2e8ea;
}

.resource-preview-header h3 {
    margin: 0;

    color: #073f56;

    font-size: 16px;
}

.resource-preview-header small {
    color: #839198;
}

.resource-preview-close {
    border: 0;

    background: transparent;

    font-size: 27px;

    cursor: pointer;
}

.resource-preview-body {
    position: relative;

    flex: 1;

    min-height: 0;

    background: #444444;
}

.resource-preview-loading {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    background: #eef2f3;

    color: #68777e;

    font-size: 12px;
}

.resource-preview-loading[hidden] {
    display: none !important;
}

.resource-preview-spinner {
    width: 30px;
    height: 30px;

    border: 3px solid #ccd6da;
    border-top-color: #08637e;
    border-radius: 50%;

    animation: resourceSpinner 0.8s linear infinite;
}

#resourcePreviewFrame {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;

    background: #ffffff;
}

#resourcePreviewFrame[hidden] {
    display: none !important;
}

.resource-preview-footer {
    justify-content: flex-end;

    border-top: 1px solid #e2e8ea;
}

.resource-preview-footer .resource-download-button {
    width: auto;

    padding: 0 17px;
}

.resource-modal-close-button {
    min-height: 42px;

    padding: 0 18px;

    border: 1px solid #cbd5d9;
    border-radius: 5px;

    background: #ffffff;

    cursor: pointer;
}

.resource-modal-open {
    overflow: hidden;
}

@keyframes resourceSpinner {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1050px) {
    .resource-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .resource-featured,
    .resource-detail-layout {
        grid-template-columns: 1fr;
    }

    .resource-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .resource-download-card {
        position: static;
    }
}

@media (max-width: 650px) {
    .resource-hero {
        padding: 95px 0;
    }

    .resource-filter {
        margin-top: -80px;

        padding: 20px;
    }

    .resource-filter-grid {
        grid-template-columns: 1fr;
    }

    .resource-filter-action button {
        width: 100%;
    }

    .resource-featured-content {
        padding: 26px;
    }

    .resource-featured-media {
        min-height: 260px;
    }

    .resource-section-heading {
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-card-media {
        height: 220px;
    }

    .resource-detail-hero {
        min-height: 420px;
    }

    .resource-detail-hero h1 {
        font-size: 33px;
    }

    .resource-detail-body {
        padding: 25px;
    }

    .resource-preview-dialog {
        width: calc(100% - 20px);
        height: calc(100vh - 25px);
    }

    .resource-preview-footer {
        flex-wrap: wrap;
    }
}