/* ==========================================================================
   News Notification Banner - Styles
   ========================================================================== */

/* --- Elementor Integration ---
   Reset Elementor widget container padding/margin so the banner
   can occupy the full width of its section.                              */
.elementor-widget-cbpr-news-notification-banner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-widget-cbpr-news-notification-banner > .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible;
}

/* --- Widget Root --- */
.cbpr-nnb-widget {
    width: 100%;
}

/* --- Main Banner --- */
.cbpr-nnb-banner {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #000000;
    overflow: hidden;
    width: 100%;
}

/* --- Sliding Mechanics --- */
.cbpr-nnb-viewport {
    width: 100%;
    overflow: hidden;
}

.cbpr-nnb-track {
    display: flex;
    width: 100%;
}

.cbpr-nnb-slide {
    flex: 0 0 100%;
    position: relative;
    padding: 15px 60px;
    min-height: 90px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
}

/* Dark overlay on each slide */
.cbpr-nnb-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* --- Navigation Arrows --- */
.cbpr-nnb-prev,
.cbpr-nnb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #FFFFFF;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    transition: transform 0.2s ease;
}

.cbpr-nnb-prev { left: 5%; }
.cbpr-nnb-next { right: 5%; }

.cbpr-nnb-prev:hover,
.cbpr-nnb-next:hover {
    transform: translateY(-50%) scale(1.15);
}

/* --- Slide Content Layout --- */
.cbpr-nnb-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 80vw;
    margin: 0 auto;
}

.cbpr-nnb-content {
    flex: 1;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cbpr-nnb-label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    color: #FFFFFF !important;
}

/* --- CTA Button --- */
.cbpr-nnb-button {
    flex-shrink: 0;
}

.cbpr-nnb-link {
    display: inline-block;
    border-radius: 500px;
    padding: 6px 32px;
    background: #FFFFFF;
    border: 3px solid #23395E;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #23395E !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 767px) {
    .cbpr-nnb-slide {
        padding: 15px 40px;
        min-height: 120px;
    }

    .cbpr-nnb-container {
        flex-direction: column;
        gap: 15px;
        max-width: 90vw;
        text-align: center;
    }

    .cbpr-nnb-content {
        text-align: center;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .cbpr-nnb-label {
        font-size: 16px;
    }

    .cbpr-nnb-prev { left: 5px; font-size: 26px; }
    .cbpr-nnb-next { right: 5px; font-size: 26px; }

    .cbpr-nnb-button {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cbpr-nnb-link {
        font-size: 16px;
        padding: 6px 24px;
        width: 100%;
        text-align: center;
    }
}
