/* Existing Products flyer and export base styles. */
.hpc-badge a {
        color: #b8943f;
    }

    .hpc-footer a {
        color: #fff;
    }
    /* ============================================================
                                   NEWSLETTER DOWNLOADS
                                ============================================================ */

    .newsletter-download-section {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
        margin-bottom: 24px;
        padding: 22px 25px;
        background: #ffffff;
        border: 1px solid #e1e7e4;
        border-radius: 14px;
        box-shadow: 0 8px 25px rgba(20, 55, 37, .07);
    }


    .newsletter-download-info {
        flex: 1 1 auto;
    }


    .newsletter-download-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 5px;
        color: #198754;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .07em;
        text-transform: uppercase;
    }


    .newsletter-download-info h4 {
        margin: 0 0 5px;
        color: #18241e;
        font-size: 20px;
        font-weight: 750;
    }


    .newsletter-download-info p {
        margin: 0;
        color: #6d7872;
        font-size: 13px;
        line-height: 1.55;
    }


    .newsletter-download-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 0 0 auto;
    }


    .newsletter-download-btn {
        min-width: 150px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 15px;
        border-radius: 9px;
        text-decoration: none;
        cursor: pointer;
        font-family: inherit;
        text-align: left;
        transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }

        .newsletter-download-btn:disabled {
            cursor: wait;
            opacity: .72;
        }

        .newsletter-download-btn .spinner-border {
            width: 16px;
            height: 16px;
        }


    .newsletter-download-btn__icon {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 17px;
    }


    .newsletter-download-btn span:last-child {
        display: flex;
        flex-direction: column;
        font-size: 13px;
        font-weight: 750;
        line-height: 1.15;
    }


    .newsletter-download-btn small {
        margin-bottom: 2px;
        font-size: 9px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .05em;
        opacity: .7;
    }


    /* IMAGE */

    .newsletter-download-btn--image {
        border: 1px solid #198754;
        background: #eef9f3;
        color: #157347;
    }


        .newsletter-download-btn--image
        .newsletter-download-btn__icon {
            background: #198754;
            color: #fff;
        }


        .newsletter-download-btn--image:hover {
            background: #198754;
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 10px 22px rgba(25, 135, 84, .16);
        }


    /* PDF */

    .newsletter-download-btn--pdf {
        border: 1px solid #bd3545;
        background: #fff3f4;
        color: #a92737;
    }


        .newsletter-download-btn--pdf
        .newsletter-download-btn__icon {
            background: #bd3545;
            color: #fff;
        }


        .newsletter-download-btn--pdf:hover {
            background: #bd3545;
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 10px 22px rgba(189, 53, 69, .16);
        }


    /* VIDEO */

    .newsletter-download-btn--video {
        border: 1px solid #0F4C82;
        background: #f1f7fc;
        color: #0F4C82;
    }


        .newsletter-download-btn--video
        .newsletter-download-btn__icon {
            background: #0F4C82;
            color: #fff;
        }


        .newsletter-download-btn--video:hover {
            background: #0F4C82;
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 10px 22px rgba(15, 76, 130, .16);
        }


    /* ============================================================
                                   MOBILE
                                ============================================================ */

    @media (max-width: 767.98px) {

        .newsletter-download-section {
            align-items: stretch;
            flex-direction: column;
            gap: 17px;
            padding: 18px;
        }


        .newsletter-download-actions {
            width: 100%;
        }


        .newsletter-download-btn {
            flex: 1 1 30%;
            min-width: 0;
            justify-content: center;
        }
    }


    @media (max-width: 420px) {

        .newsletter-download-actions {
            flex-direction: column;
        }


        .newsletter-download-btn {
            width: 100%;
            justify-content: flex-start;
        }
    }

.hpc-ad-banner {
        position: relative;
        margin-top: 18px;
        border-radius: 8px;
        padding: 26px 18px 20px;
        text-align: center;
        background: linear-gradient(165deg, #16213f 0%, #0c1320 65%, #0a0f1c 100%);
        border: 1px solid rgba(184, 148, 63, 0.35);
        box-shadow: 0 4px 14px rgba(0,0,0,.25);
        overflow: hidden;
    }

    .hpc-ad-banner-accent {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #8a6d2f, #d4b25f, #8a6d2f);
    }

    .hpc-ad-banner-logo-wrap {
        width: 80px;
        height: 80px;
        margin: 0 auto 14px;
        border-radius: 50%;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 0 1px rgba(184,148,63,.5), 0 4px 10px rgba(0,0,0,.3);
    }

    .hpc-ad-banner-logo {
        height: 32px;
        width: auto;
    }

    .hpc-ad-banner-tag {
        display: inline-block;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #0c1320;
        background: #b8943f;
        padding: 4px 12px;
        border-radius: 20px;
        margin-bottom: 12px;
    }

    .hpc-ad-banner-msg {
        font-size: 17px;
        font-weight: 800;
        color: #fff;
        letter-spacing: .3px;
        margin-bottom: 4px;
    }

    .hpc-ad-banner-sub {
        font-size: 12px;
        color: #a9b0c0;
        margin-bottom: 16px;
    }

    .hpc-ad-banner-divider {
        width: 40px;
        height: 2px;
        background: #b8943f;
        margin: 0 auto 16px;
        border-radius: 2px;
    }

    .hpc-ad-banner-contact {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hpc-ad-banner-contact-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 12px;
        color: #e6e6e6;
    }

    .hpc-ad-banner-icon {
        width: 22px;
        height: 22px;
        flex: 0 0 auto;
        border-radius: 50%;
        background: rgba(184,148,63,.15);
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .hpc-ad-banner-icon i {
            color: #b8943f;
            font-size: 11px;
        }
    /* ===== HPC Newsletter Flyer — matches published design ===== */
    .hpc-flyer {
        font-family: 'Segoe UI', Arial, sans-serif;
        background: #fff;
        max-width: 1000px;
        margin: 0 auto;
        border: 1px solid #ddd;
        overflow: hidden;
    }

    /* Top strip */
    .hpc-topstrip {
        display: flex;
        align-items: stretch;
    }

    .hpc-region-block {
        flex: 0 0 210px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
        background: #fff;
    }

    .hpc-region-label {
        font-size: 12px;
        font-weight: 800;
        line-height: 1.3;
        color: #0c1320;
        letter-spacing: .5px;
        white-space: nowrap;
    }

    .hpc-logo {
        height: 40px;
        flex: 0 0 auto;
    }

    .hpc-flag {
        width: 100px;
        height: auto;
        border-radius: 2px;
        flex: 0 0 auto;
        border: 1px solid rgba(0,0,0,.1);
    }

    .hpc-title-block {
        flex: 1 1 auto;
        background: #0c1320;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 24px;
        gap: 16px;
    }

    .hpc-title-center {
        flex: 1 1 auto;
        text-align: center;
    }

    .hpc-company {
        font-size: 20px;
        font-weight: 400;
        letter-spacing: 1px;
    }

    .hpc-newsletter {
        font-size: 28px;
        font-weight: 900;
        letter-spacing: 1px;
    }

    .hpc-meta {
        flex: 0 0 auto;
        font-size: 12px;
        text-align: right;
        line-height: 1.5;
        white-space: nowrap;
    }

    /* Body */
    .hpc-body {
        display: flex;
    }

    .hpc-sidebar {
        width: 32%;
        background: #0c1320;
        color: #fff;
        padding: 22px 20px;
    }

    .hpc-sidebar-heading {
        font-weight: 800;
        font-size: 18px;
        margin-bottom: 2px;
        color: #fff;
    }

    .hpc-sidebar-date {
        font-size: 12px;
        opacity: .85;
        margin-bottom: 14px;
        text-transform: uppercase;
    }

    .hpc-hotsell-list {
        list-style: square;
        padding-left: 18px;
        font-size: 13px;
        line-height: 1.6;
        margin: 0;
    }

        .hpc-hotsell-list li {
            margin-bottom: 10px;
        }

    .hpc-ad-image {
        width: 100%;
        margin-top: 18px;
        border-radius: 4px;
        display: block;
    }

    .hpc-articles {
        width: 68%;
        padding: 22px 24px;
    }

    .hpc-article {
        margin-bottom: 20px;
        overflow: hidden;
    }

    .hpc-article-img {
        max-width: 120px;
        float: right;
        border-radius: 4px;
        margin: 0 0 8px 12px;
    }

    .hpc-badge {
        display: inline-block;
        background: #0c1320;
        color: #b8943f;
        font-weight: 700;
        font-size: 11px;
        letter-spacing: .3px;
        text-transform: uppercase;
        padding: 5px 14px;
        border-radius: 3px;
        margin-bottom: 8px;
    }

    .hpc-article-title {
        font-size: 15px;
        font-weight: 700;
        color: #0c1320;
        margin: 4px 0;
    }

    .hpc-article-desc {
        font-size: 13px;
        color: #333;
        margin: 0;
        line-height: 1.5;
    }

    /* Footer (static) */
    .hpc-footer {
        background: #0c1320;
        color: #fff;
        text-align: center;
        font-size: 13px;
        padding: 12px;
    }

/* ===================================================
                                               RESPONSIVE OVERRIDES — tablets & phones
                                               Desktop (≥992px) is untouched, uses your existing rules above.
                                               =================================================== */

    /* ---------- Tablets (≤991px) ---------- */
    @media (max-width: 991.98px) {
        .hero-section {
            min-height: 260px;
        }

        .container.py-5 {
            padding-top: 2rem !important;
            padding-bottom: 2rem !important;
        }

        .hpc-sidebar {
            width: 38%;
        }

        .hpc-articles {
            width: 62%;
        }
    }

    /* ---------- Phones & small tablets (≤767px) ---------- */
    @media (max-width: 767.98px) {
        .hero-section {
            min-height: 200px;
            margin-bottom: 50px !important;
        }

            .hero-section h5 {
                font-size: 1rem;
            }

        .card-body {
            padding: 16px !important;
        }
        /* Top strip: stack region block above the title block instead of side-by-side */
        .hpc-topstrip {
            flex-direction: column;
        }

        .hpc-region-block {
            width: 100%;
            justify-content: center;
            flex-wrap: wrap;
            text-align: center;
            padding: 12px;
        }

        .hpc-title-block {
            flex-direction: column;
            text-align: center;
            padding: 16px;
            gap: 6px;
        }

        .hpc-title-center {
            text-align: center;
        }

        .hpc-meta {
            text-align: center;
            white-space: normal;
        }

        .hpc-company {
            font-size: 16px;
        }

        .hpc-newsletter {
            font-size: 20px;
        }
        /* Body: stack sidebar above articles instead of side-by-side */
        .hpc-body {
            flex-direction: column;
        }

        .hpc-sidebar,
        .hpc-articles {
            width: 100%;
        }

        .hpc-sidebar {
            padding: 18px 16px;
        }

        .hpc-articles {
            padding: 18px 16px;
        }
        /* Article images no longer float beside text on narrow screens — full width above the text reads better */
        .hpc-article-img {
            float: none;
            display: block;
            max-width: 100%;
            width: 100%;
            margin: 0 0 12px 0;
        }
    }

    /* ---------- Small phones (≤480px) ---------- */
    @media (max-width: 480px) {
        .hpc-logo {
            height: 30px;
        }

        .hpc-flag {
            width: 70px;
        }

        .hpc-region-label {
            font-size: 11px;
        }

        .hpc-newsletter {
            font-size: 18px;
        }

        .hpc-company {
            font-size: 13px;
            letter-spacing: 0.5px;
        }

        .hpc-badge {
            font-size: 10px;
            padding: 4px 10px;
        }

        .hpc-article-title {
            font-size: 14px;
        }

        .hpc-article-desc {
            font-size: 12px;
        }

        .hpc-sidebar-heading {
            font-size: 16px;
        }

        .hpc-hotsell-list {
            font-size: 12px;
        }

        .hpc-footer {
            font-size: 11px;
            padding: 10px 8px;
        }
    }

/* Reading design adapted from the HPC main website (read-only reference). */
/* Edition reading layout; original export targets and controls are preserved. */
.hpc-newsletter-edition .hpc-sectors-header h1 {
    color: #fff;
}

.hpc-edition-date {
    margin-top: 18px;
    color: #d7eadd;
    font-size: 14px;
}

.hpc-newsletter-edition .newsletter-download-section {
    background: #f3f8f5;
    box-shadow: none;
    padding: 28px;
}

.hpc-newsletter-edition > .container > .card {
    border: 1px solid #dce7df;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: none;
}

.hpc-newsletter-edition .hpc-edition-sheet {
    padding: 0;
    background: #fff;
}

.hpc-newsletter-edition .hpc-flyer {
    width: 100%;
    max-width: none;
    border: 0;
    box-shadow: none;
}

.hpc-newsletter-edition .hpc-topstrip {
    display: grid;
    grid-template-columns: minmax(240px, 28%) minmax(0, 1fr);
    background: #edf8f2;
    color: #12382a;
    border-bottom: 1px solid #dce7df;
    padding: 24px;
}

/* Give the flag, region and logo their own space inside the flyer header. */
.hpc-newsletter-edition .hpc-region-block {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-content: center;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 18px;
}
.hpc-newsletter-edition .hpc-flag {
    width: 72px;
    height: 48px;
    object-fit: contain;
}
.hpc-newsletter-edition .hpc-region-label {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
.hpc-newsletter-edition .hpc-logo {
    grid-column: 1 / -1;
    justify-self: center;
    width: 124px;
    height: 48px;
    object-fit: contain;
}
.hpc-newsletter-edition .hpc-title-block {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.hpc-newsletter-edition .hpc-title-center { min-width: 0; }
.hpc-newsletter-edition .hpc-meta { white-space: normal; }

@media (max-width: 767px) {
    .hpc-newsletter-edition .hpc-topstrip {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }
    .hpc-newsletter-edition .hpc-region-block {
        grid-template-columns: 72px minmax(0, 1fr);
        text-align: left;
    }
}

.hpc-newsletter-edition .hpc-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 0;
}

.hpc-newsletter-edition .hpc-sidebar {
    width: auto;
    background: #f3f8f5;
    color: #12382a;
    padding: 28px;
    border-right: 1px solid #dce7df;
}

.hpc-newsletter-edition .hpc-sidebar-heading {
    color: #12382a;
    font-size: 23px;
    line-height: 1.35;
}

.hpc-newsletter-edition .hpc-sidebar-date {
    color: #56675e;
    font-size: 13px;
}

.hpc-newsletter-edition .hpc-hotsell-list li {
    color: #43594d;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 18px;
}

.hpc-newsletter-edition .hpc-articles {
    min-width: 0;
    width: auto;
    padding: 28px;
}

.hpc-edition-stories-title {
    font-size: 26px;
    margin-bottom: 28px;
}

.hpc-newsletter-edition .hpc-article {
    display: flow-root;
    border: 1px solid #dce7df;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 22px;
    background: #fff;
}

.hpc-newsletter-edition .hpc-article-title {
    font-size: 21px;
    line-height: 1.4;
    margin: 14px 0;
}

.hpc-newsletter-edition .hpc-article-title a {
    color: #12382a;
    text-decoration: none;
}

.hpc-newsletter-edition .hpc-article-title a:hover {
    color: #0b6b3a;
    text-decoration: underline;
}

.hpc-newsletter-edition .hpc-article-desc {
    font-size: 15px;
    line-height: 1.85;
    color: #43594d;
    overflow-wrap: anywhere;
}

.hpc-edition-story-image {
    float: right;
    width: 150px;
    margin: 0 0 16px 20px;
    border-radius: 10px;
    overflow: hidden;
}

.hpc-edition-story-image .hpc-media-fallback {
    height: 140px;
}

.hpc-edition-story-image .hpc-brand-art {
    padding: 16px;
}

.hpc-edition-story-image .hpc-art-logo {
    font-size: 36px;
}

.hpc-edition-story-image .hpc-art-logo span {
    font-size: 10px;
    margin-top: 10px;
}

.hpc-edition-back {
    padding-bottom: 64px;
}

@media (max-width: 991px) {
    .hpc-newsletter-edition .hpc-body {
        grid-template-columns: 1fr;
    }

    .hpc-newsletter-edition .hpc-sidebar {
        border-right: 0;
        border-bottom: 1px solid #dce7df;
    }
}

@media (max-width: 575px) {
    .hpc-newsletter-edition .hpc-sidebar,
    .hpc-newsletter-edition .hpc-articles,
    .hpc-newsletter-edition .newsletter-download-section {
        padding: 22px;
    }

    .hpc-newsletter-edition .hpc-article {
        padding: 20px;
    }

    .hpc-edition-story-image {
        float: none;
        width: 100%;
        margin: 0 0 20px;
    }

    .hpc-edition-story-image .hpc-media-fallback {
        height: 160px;
    }
}

.hpc-newsletter-edition .hpc-badge {
    background: #e9f4ed;
    color: #0b6137;
    border-radius: 6px;
}

.hpc-newsletter-edition .hpc-badge a {
    color: #0b6137;
    text-decoration: none;
}

.hpc-newsletter-edition .hpc-badge a:hover {
    text-decoration: underline;
}


/* Keep the main-site section title size above the shared heading defaults. */
.hpc-newsletter-edition .hpc-edition-stories-title {
    font-size: 26px;
}
