:root {
    --dpo-red: #A12124;
    --dpo-dark-red: #8f171b;
    --dpo-bright-red: #d51d24;
    --dpo-bg: #fbf1df;
    --dpo-white: #ffffff;
    --dpo-light-gray: #efefef;
    --dpo-black: #222222;
    --dpo-text-muted: #506b78;

    /* --dpo-subheader-top: 124px;
    --dpo-subheader-height: 54px; */
}

/* ================================
   RESOURCES PAGE
================================ */

body {
    font-family: 'Century Gothic', 'Poppins', Arial, sans-serif;
}

.dpo-resources-page {
    width: 100%;

    background: var(--dpo-beige) !important;
    color: var(--dpo-black);

    /*
     * Only fill the viewport space remaining
     * underneath the fixed SDCA + DPO headers.
     */
    min-height: calc(100vh - var(--dpo-content-top));

    display: flex;
    flex-direction: column;

    font-family:
        'Century Gothic',
        'Poppins',
        Arial,
        sans-serif;
}


.dpo-resources-main {
    width: 100%;

    flex: 1 0 auto;

    background: var(--dpo-beige) !important;

    padding: 18px 0 70px;
}

.dpo-resources-page>.dpo-footer {
    width: 100%;

    margin-top: auto !important;

    flex-shrink: 0;
}

.dpo-resources-container {
    max-width: 1240px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 32px !important;
    box-sizing: border-box !important;
}

.dpo-resources-section {
    max-width: 1180px;
    margin: 0 auto;
}

.dpo-resources-heading {
    width: 100%;
    background: linear-gradient(to bottom, #d7252e, var(--dpo-red));
    color: var(--dpo-white);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    padding: 10px 18px;
    margin: 0 0 18px;
    text-transform: uppercase;
    box-sizing: border-box;
}

/* ================================
   RESOURCE CAROUSEL
================================ */

.dpo-resource-card {
    width: 100%;
    max-width: 760px;
    background: var(--dpo-white);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.13);
    padding: 24px 0 22px;
    position: relative;
    margin: 0 auto 70px;
}

.dpo-featured-image-wrap {
    width: 76%;
    margin: 0 auto;
    position: relative;
}

.dpo-resource-image-button {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    display: block;
    cursor: pointer;
}

.dpo-featured-image {
    width: 100%;
    height: 290px;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 10px;
    transition: opacity 0.2s ease;
}

.dpo-resource-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 68px;
    height: 68px;
    border: 0;
    background: rgba(170, 25, 31, 0.25);
    color: rgba(255, 255, 255, 0.75);
    font-size: 62px;
    line-height: 1;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpo-resource-carousel-arrow:hover {
    background: rgba(170, 25, 31, 0.55);
}

.dpo-resource-prev {
    left: 14px;
}

.dpo-resource-next {
    right: 14px;
}

.dpo-resource-link-bar {
    width: 60%;
    height: 34px;
    margin: 12px auto 0;
    background: #bcbcbc;
    text-align: center;
    color: var(--dpo-white) !important;
    font-size: 14px;
    line-height: 34px;
    overflow: hidden;
    padding: 0 14px;
    display: block;
    text-decoration: none !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.dpo-resource-link-bar:hover {
    background: var(--dpo-red);
    color: #ffffff !important;
}

.dpo-resource-link-bar.is-disabled {
    pointer-events: none;
    opacity: 0.55;
}

/* ================================
   RESOURCE DESCRIPTION SECTION
================================ */

.dpo-resources-divider {
    max-width: 1180px;
    border: 0;
    border-top: 1px solid #777777;
    margin: 0 auto 50px;
}

.dpo-resource-lower {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    min-height: 290px;
}

.dpo-resource-side-arrow {
    position: absolute;
    top: 35px;
    font-size: 100px;
    color: rgba(220, 220, 220, 0.23);
    line-height: 1;
    pointer-events: none;
}

.dpo-resource-side-arrow.left {
    left: 40px;
}

.dpo-resource-side-arrow.right {
    right: 40px;
}

.dpo-resource-description {
    width: 48%;
    margin-left: auto;
    padding-right: 12px;
    font-size: 16px;
    line-height: 1.35;
    text-align: justify;
    color: var(--dpo-black);
}

.dpo-resource-description p {
    margin: 0 0 12px;
}

.dpo-resource-description ul,
.dpo-resource-description ol {
    margin-top: 0;
    padding-left: 22px;
}

.dpo-resource-description li {
    margin-bottom: 8px;
}

.dpo-resources-empty {
    max-width: 1180px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
    color: #777777;
    background: var(--dpo-white);
    border: 1px solid #eeeeee;
}

/* ================================
   RESOURCE MODAL
================================ */

body.dpo-resource-modal-open {
    overflow: hidden;
}

.dpo-resource-modal[hidden] {
    display: none !important;
}

.dpo-resource-modal {
    position: fixed;
    inset: 0;
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dpo-resource-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.dpo-resource-modal-dialog {
    width: 100%;
    max-width: 980px;
    max-height: 90vh;
    overflow: auto;
    background: var(--dpo-white);
    position: relative;
    z-index: 2;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.dpo-resource-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--dpo-red);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

.dpo-resource-modal-image-wrap {
    width: 100%;
    background: #f4f4f4;
    padding: 28px;
    box-sizing: border-box;
}

.dpo-resource-modal-image {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.dpo-resource-modal-content {
    padding: 26px 32px 32px;
}

.dpo-resource-modal-content h2 {
    color: var(--dpo-red);
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 16px;
}

.dpo-resource-modal-body {
    color: var(--dpo-black);
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
}

.dpo-resource-modal-body p {
    margin-top: 0;
}

.dpo-resource-modal-link {
    display: inline-block;
    margin-top: 18px;
    background: var(--dpo-red);
    color: #ffffff !important;
    padding: 11px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
}

.dpo-resource-modal-link:hover {
    background: var(--dpo-dark-red);
}

.dpo-resource-modal-link.is-disabled {
    pointer-events: none;
    opacity: 0.55;
}

/* ================================
   RESPONSIVE
================================ */

@media screen and (max-width: 991px) {


    .dpo-resources-container {
        max-width: 100% !important;
        padding: 0 24px !important;
    }

    .dpo-resources-section {
        max-width: 100% !important;
    }

    .dpo-resource-card {
        max-width: 760px;
    }

    .dpo-resource-description {
        width: 60%;
    }
}

@media screen and (max-width: 768px) {
    /* :root {
        --dpo-subheader-top: 104px;
    } */



    .dpo-resources-main {
        padding: 24px 0 44px;
    }

    .dpo-resources-container {
        padding: 0 18px !important;
    }

    .dpo-resources-heading {
        font-size: 21px;
        padding: 9px 14px;
    }

    .dpo-featured-image-wrap {
        width: 88%;
    }

    .dpo-featured-image {
        height: 220px;
    }

    .dpo-resource-card {
        margin-bottom: 40px;
    }

    .dpo-resource-link-bar {
        width: 78%;
    }

    .dpo-resources-divider {
        margin-bottom: 30px;
    }

    .dpo-resource-lower {
        min-height: auto;
    }

    .dpo-resource-side-arrow {
        display: none;
    }

    .dpo-resource-description {
        width: 100%;
        padding: 0 5px;
        font-size: 15px;
    }

    .dpo-resource-carousel-arrow {
        width: 48px;
        height: 48px;
        font-size: 44px;
    }

    .dpo-resource-modal {
        padding: 16px;
    }

    .dpo-resource-modal-image-wrap {
        padding: 18px;
    }

    .dpo-resource-modal-content {
        padding: 22px;
    }

    .dpo-resource-modal-content h2 {
        font-size: 22px;
    }

}

@media screen and (max-width: 575px) {
    /* :root {
        --dpo-subheader-top: 94px;
    } */

    .dpo-resources-container {
        padding: 0 12px !important;
    }


    .dpo-resources-heading {
        font-size: 18px;
    }

    .dpo-featured-image-wrap {
        width: 90%;
    }

    .dpo-featured-image {
        height: 175px;
    }

    .dpo-resource-carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 36px;
    }

    .dpo-resource-prev {
        left: 8px;
    }

    .dpo-resource-next {
        right: 8px;
    }

    .dpo-resource-link-bar {
        width: 82%;
        font-size: 12px;
    }


}