/* ==========================================================
   JIYE RESOURCES
========================================================== */

.jiye-resources-page {
    background: #FFFFFF;
    color: #171A18;
}

.jiye-resources-page *,
.jiye-resources-page *::before,
.jiye-resources-page *::after {
    box-sizing: border-box;
}

.jiye-resources-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.jiye-resources-eyebrow {
    margin: 0 0 18px;
    color: #1F4D3A;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
}


/* HERO */

.jiye-resources-hero {
    padding: 88px 0 84px;
    background: #F5F7F5;
}

.jiye-resources-hero h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(44px, 4.5vw, 64px);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.jiye-resources-lead {
    max-width: 800px;
    margin: 26px 0 0;
    color: #4D5350;
    font-size: 18px;
    line-height: 1.75;
}


/* TYPES */

.jiye-resources-types {
    padding: 76px 0;
}

.jiye-resources-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid #DDE2DF;
    background: #DDE2DF;
}

.jiye-resources-type-grid a {
    min-height: 220px;
    padding: 30px;
    background: #FFFFFF;
    color: inherit !important;
    text-decoration: none !important;
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.jiye-resources-type-grid a:hover {
    transform: translateY(-2px);
    background: #F5F7F5;
}

.jiye-resources-type-grid a.is-active {
    background: #17392B;
    color: #FFFFFF !important;
}

.jiye-resources-type-grid a.is-active span,
.jiye-resources-type-grid a.is-active h2,
.jiye-resources-type-grid a.is-active p {
    color: #FFFFFF;
}

.jiye-resources-type-grid span {
    color: #1F4D3A;
    font-size: 12px;
    font-weight: 700;
}

.jiye-resources-type-grid h2 {
    margin: 48px 0 12px;
    font-size: 21px;
}

.jiye-resources-type-grid p {
    margin: 0;
    color: #5D625F;
    font-size: 14px;
    line-height: 1.65;
}


/* LIBRARY */

.jiye-resources-library {
    padding: 92px 0 100px;
    background: #F5F7F5;
    scroll-margin-top: 90px;
}

.jiye-resources-heading {
    display: grid;
    grid-template-columns: 1fr .65fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 48px;
}

.jiye-resources-heading h2,
.jiye-resource-empty h2,
.jiye-resources-support h2 {
    margin: 0;
    font-size: clamp(32px, 3vw, 42px);
    line-height: 1.15;
}

.jiye-resources-heading-actions p {
    margin: 0;
    color: #4D5350;
    line-height: 1.7;
}

.jiye-resources-heading-actions a {
    display: inline-block;
    margin-top: 16px;
    color: #17392B !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}


/* RESOURCE CARDS */

.jiye-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.jiye-resource-card {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 28px;
    border: 1px solid #DDE2DF;
    background: #FFFFFF;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.jiye-resource-card:hover {
    transform: translateY(-3px);
    border-color: #CBD4CF;
    box-shadow: 0 16px 38px rgba(17, 21, 19, .07);
}

.jiye-resource-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jiye-resource-type {
    color: #1F4D3A;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.jiye-resource-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #DDE2DF;
    color: #747B77;
    font-size: 10px;
    font-weight: 700;
}

.jiye-resource-card h3 {
    margin: 45px 0 12px;
    font-size: 21px;
    line-height: 1.3;
}

.jiye-resource-summary {
    margin: 0;
    color: #5D625F;
    font-size: 14px;
    line-height: 1.65;
}

.jiye-resource-meta {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    color: #747B77;
    font-size: 12px;
}

.jiye-resource-action {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid #EDF0EE;
}

.jiye-resource-action a {
    color: #17392B !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.jiye-resource-action span {
    color: #747B77;
    font-size: 13px;
}


/* EMPTY */

.jiye-resource-empty {
    max-width: 700px;
    padding: 42px;
    border: 1px solid #DDE2DF;
    background: #FFFFFF;
}

.jiye-resource-empty > p:not(.jiye-resources-eyebrow) {
    margin: 18px 0 24px;
    color: #4D5350;
    line-height: 1.7;
}

.jiye-resource-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid #17392B;
    border-radius: 3px;
    background: #17392B;
    color: #FFFFFF !important;
    font-weight: 700;
    text-decoration: none !important;
}


/* CTA */

.jiye-resources-support {
    padding: 76px 0;
    background: #17392B;
}

.jiye-resources-support-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 70px;
    align-items: center;
}

.jiye-resources-eyebrow-light {
    color: #DDE2DF;
}

.jiye-resources-support h2 {
    color: #FFFFFF;
}

.jiye-resources-support p:last-child {
    max-width: 720px;
    margin: 16px 0 0;
    color: #DDE2DF;
    line-height: 1.7;
}

.jiye-resources-support-grid > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 24px;
    border: 1px solid #FFFFFF;
    border-radius: 3px;
    background: #FFFFFF;
    color: #17392B !important;
    font-weight: 700;
    text-decoration: none !important;
}

.jiye-resources-support-grid > a:hover {
    background: transparent;
    color: #FFFFFF !important;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .jiye-resources-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jiye-resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jiye-resources-heading {
        grid-template-columns: 1fr;
        gap: 25px;
    }

}

@media (max-width: 650px) {

    .jiye-resources-container {
        width: min(100% - 40px, 1200px);
    }

    .jiye-resources-hero {
        padding: 56px 0 52px;
    }

    .jiye-resources-hero h1 {
        font-size: clamp(35px, 10vw, 40px);
    }

    .jiye-resources-lead {
        font-size: 16px;
    }

    .jiye-resources-types {
        padding: 52px 0;
    }

    .jiye-resources-type-grid,
    .jiye-resource-grid {
        grid-template-columns: 1fr;
    }

    .jiye-resources-type-grid a {
        min-height: 0;
        padding: 24px;
    }

    .jiye-resources-type-grid h2 {
        margin-top: 28px;
    }

    .jiye-resources-library {
        padding: 64px 0 70px;
    }

    .jiye-resource-empty {
        padding: 28px 22px;
    }

    .jiye-resources-support-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

}
