: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; */
}

/* ================================
   MONTHLY NEWSLETTER PAGE
================================ */

body {
    font-family: 'Century Gothic', 'Poppins', Arial, sans-serif;
}

.dpo-monthly-page {
    width: 100%;

    background: var(--dpo-beige) !important;
    color: var(--dpo-black);

    /*
     * Front.php has already reserved --dpo-content-top
     * for the fixed headers.
     */
    min-height: calc(100vh - var(--dpo-content-top));

    display: flex;
    flex-direction: column;

    font-family:
        'Century Gothic',
        'Poppins',
        Arial,
        sans-serif;
}


.dpo-monthly-main {
    width: 100%;

    flex: 1 0 auto;

    background: var(--dpo-beige) !important;

    padding: 18px 0 70px;
}

.dpo-monthly-container {
    max-width: 1240px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 32px !important;
    box-sizing: border-box !important;
}

.dpo-monthly-page-title {
    max-width: 1180px !important;
    margin: 0 auto 14px !important;
    color: var(--dpo-red);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}


.dpo-monthly-page>.dpo-footer {
    width: 100%;

    margin-top: auto !important;

    flex-shrink: 0;
}

/* ================================
   ISSUE SELECTOR + NEWSLETTER VIEWER
================================ */

.dpo-monthly-viewer {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    background: transparent;
}

.dpo-monthly-issue-selector {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.dpo-monthly-issue-button {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-bottom: 1px solid #8d161a;
    background: linear-gradient(to bottom, #d7252e, var(--dpo-red));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: 9px 100px 9px 24px;
    font-family: 'Century Gothic', 'Poppins', Arial, sans-serif;
}

.dpo-monthly-issue-button.is-active {
    background: linear-gradient(to bottom, #d7252e, var(--dpo-red));
    color: #ffffff;
    border-bottom: 1px solid #8d161a;
}

.dpo-monthly-issue-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.dpo-monthly-issue-more {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    font-weight: 400;
    color: inherit;
}

.dpo-monthly-issue-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: #f1f1f1;
    color: var(--dpo-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border-radius: 3px;
    transition: transform 0.2s ease;
}

.dpo-monthly-issue-button.is-open .dpo-monthly-issue-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.dpo-monthly-issue-options {
    width: 100%;
    background: #ffffff;
}

.dpo-monthly-issue-option {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-bottom: 1px solid #bdbdbd;
    background: linear-gradient(to bottom, #f5f5f5, #dddddd);
    color: #111111;
    font-family: 'Century Gothic', 'Poppins', Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    padding: 8px 20px;
}

.dpo-monthly-issue-option:hover {
    background: linear-gradient(to bottom, #eeeeee, #cfcfcf);
}

.dpo-monthly-issue-option.is-current {
    display: none;
}

.dpo-monthly-selected-preview {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    background: #ffffff;
    position: relative;
    padding: 34px 46px 42px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    box-sizing: border-box !important;
}

.dpo-monthly-selected-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: top center;
    transition: opacity 0.2s ease;
}

.dpo-monthly-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 74px;
    border: 0;
    border-radius: 0;
    background: rgba(161, 33, 36, 0.70);
    color: #ffffff;
    font-size: 46px;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    align-items: center;
    justify-content: center;
}

.dpo-monthly-carousel-arrow:hover {
    background: rgba(161, 33, 36, 0.95);
}

.dpo-monthly-carousel-prev {
    left: 0;
}

.dpo-monthly-carousel-next {
    right: 0;
}

.dpo-monthly-carousel-count {
    text-align: center;
    color: #777777;
    font-size: 13px;
    margin-top: 12px;
}

.dpo-monthly-selected-body {
    max-width: 1120px !important;
    margin: 20px auto 0;
    color: #222222;
    font-size: 15px;
    line-height: 1.7;
}

.dpo-monthly-newsletter-actions {
    margin-top: 20px;
    text-align: center;
}

.dpo-monthly-open-btn {
    display: inline-block;
    background: var(--dpo-red);
    color: #ffffff !important;
    padding: 11px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
}

.dpo-monthly-open-btn:hover {
    background: var(--dpo-dark-red);
    color: #ffffff !important;
}

.dpo-monthly-empty {
    max-width: 1180px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
    color: #777777;
    background: var(--dpo-bg);
    border: 1px solid #eeeeee;
}

/* ================================
   NEWSLETTER IMAGE CAROUSEL
================================ */

.dpo-monthly-selected-preview {
    width: 100%;
    max-width: 1050px;
    margin: 28px auto 0;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

    overflow: hidden;
}

.dpo-monthly-image-container {
    width: 100%;
    position: relative;
}

.dpo-monthly-image-container a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.dpo-monthly-selected-image {
    width: 100%;
    max-width: 100%;
    height: auto;

    display: block;

    object-fit: contain;
    object-position: center;

    transition: opacity 0.2s ease;
}

/* ================================
   PREVIOUS / NEXT BUTTONS
================================ */

.dpo-monthly-carousel-arrow {
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    width: 58px;
    height: 70px;

    padding: 0;

    border: 0;
    border-radius: 5px;

    background: rgba(161, 33, 36, 0.78);
    color: #ffffff;

    font-size: 52px;
    font-weight: 300;
    line-height: 1;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 20;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.dpo-monthly-carousel-arrow:hover {
    background: #A12124;
}

.dpo-monthly-carousel-prev {
    left: 18px;
}

.dpo-monthly-carousel-next {
    right: 18px;
}

/* ================================
   IMAGE COUNTER
================================ */

.dpo-monthly-carousel-count {
    position: absolute;

    bottom: 15px;
    left: 50%;

    transform: translateX(-50%);

    min-width: 95px;

    padding: 7px 14px;

    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;

    border-radius: 20px;

    text-align: center;

    font-size: 13px;
    font-weight: 600;

    z-index: 15;
}


/* ================================
   RESPONSIVE
================================ */

@media screen and (max-width: 991px) {

    .dpo-monthly-container {
        max-width: 100% !important;
        padding: 0 24px !important;
    }

    .dpo-monthly-viewer,
    .dpo-monthly-issue-selector,
    .dpo-monthly-selected-preview,
    .dpo-monthly-selected-body,
    .dpo-monthly-page-title {
        max-width: 100% !important;
    }

    .dpo-monthly-selected-preview {
        padding: 28px 32px 35px !important;
    }
}

@media screen and (max-width: 768px) {
    /* :root {
        --dpo-subheader-top: 104px;
    } */

    .dpo-monthly-hero {
        height: 120px !important;
        min-height: 120px !important;
    }

    .dpo-monthly-main {
        padding: 24px 0 44px;
    }

    .dpo-monthly-container {
        padding: 0 18px !important;
    }

    .dpo-monthly-page-title {
        font-size: 21px;
    }

    .dpo-monthly-issue-button {
        min-height: 36px;
        padding: 8px 72px 8px 12px;
    }

    .dpo-monthly-issue-title {
        font-size: 13px;
    }

    .dpo-monthly-issue-more {
        right: 38px;
        font-size: 8px;
    }

    .dpo-monthly-issue-arrow {
        right: 10px;
        width: 20px;
        height: 20px;
    }

    .dpo-monthly-issue-option {
        min-height: 34px;
        font-size: 13px;
        padding: 8px 12px;
    }

    .dpo-monthly-selected-preview {
        max-width: 100% !important;
        padding: 22px 22px 28px !important;
    }

    .dpo-monthly-carousel-arrow {
        width: 32px;
        height: 54px;
        font-size: 32px;
    }

    .dpo-monthly-carousel-arrow {
        width: 44px;
        height: 58px;

        font-size: 40px;
    }

    .dpo-monthly-carousel-prev {
        left: 8px;
    }

    .dpo-monthly-carousel-next {
        right: 8px;
    }

    .dpo-monthly-carousel-count {
        bottom: 8px;

        padding: 5px 10px;

        font-size: 11px;
    }
}

@media screen and (max-width: 575px) {
    /* :root {
        --dpo-subheader-top: 94px;
    } */

    .dpo-monthly-container {
        padding: 0 12px !important;
    }

    .dpo-monthly-hero {
        height: 100px !important;
        min-height: 100px !important;
    }

    .dpo-monthly-page-title {
        font-size: 19px;
    }

    .dpo-monthly-issue-title {
        font-size: 12px;
    }

    .dpo-monthly-issue-more {
        display: none;
    }

    .dpo-monthly-issue-button {
        padding: 8px 42px 8px 10px;
    }

    .dpo-monthly-issue-option {
        font-size: 12px;
        padding: 8px 10px;
    }

    .dpo-monthly-selected-preview {
        padding: 16px 12px 20px !important;
    }

}

@media screen and (max-width: 480px) {

    .dpo-monthly-carousel-arrow {
        width: 36px;
        height: 48px;

        font-size: 32px;
    }

    .dpo-monthly-carousel-prev {
        left: 5px;
    }

    .dpo-monthly-carousel-next {
        right: 5px;
    }
}