/* Existing newsletter/export styles, extracted unchanged from the view. */

    .hero-section {
        background: url('/Images/banners/newsletter.png') center center / cover no-repeat;
        min-height: 350px;
        position: relative;
    }

        .hero-section .overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1;
        }

        .hero-section .container {
            position: relative;
            z-index: 2;
        }

    .btn-success {
        color: #fff;
        background-color: #198754;
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .card-img-top {
        height: 180px;
        object-fit: cover;
    }

    .text-primary {
        color: #0F4C82 !important;
        font-size: 15px !important;
    }



    /* ============================================================
                           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 {
        width: 145px;
        flex: 0 0 auto;
    }

    .hpc-flag {
        width: 60px;
        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;
        }
    }
