/* ============================================================
   CTA Banner Bar Block
   Horizontal notification/CTA banner with text and button
   ============================================================ */

/* ═══════════════════════════════════════════════════════════
   1. MAIN SECTION
   ═══════════════════════════════════════════════════════════ */
.cta-banner-bar {
    background-color: var(--cta-bg, #0b2137);
    padding: var(--cta-padding-top, 24px) 0 var(--cta-padding-bottom, 24px);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: var(--cta-bg-image, none);
}

/* Background Overlay */
.cta-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.cta-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}


/* ═══════════════════════════════════════════════════════════
   2. LAYOUT - CENTER
   ═══════════════════════════════════════════════════════════ */
.cta-banner-bar.layout-center .cta-banner-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.cta-banner-bar.layout-center .cta-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-banner-bar.layout-center .cta-banner-text {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════════════════
   3. LAYOUT - LEFT-RIGHT
   ═══════════════════════════════════════════════════════════ */
.cta-banner-bar.layout-left-right .cta-banner-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.cta-banner-bar.layout-left-right .cta-banner-content {
    flex: 1;
}

.cta-banner-bar.layout-left-right .cta-banner-text {
    max-width: 600px;
}


/* ═══════════════════════════════════════════════════════════
   4. TEXT CONTENT
   ═══════════════════════════════════════════════════════════ */
.cta-banner-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta-banner-text {
    color: var(--cta-text, #ffffff);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.cta-banner-text p {
    margin: 0;
}

.cta-banner-text strong {
    font-weight: 700;
}

.cta-banner-description {
    color: var(--cta-text, #ffffff);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.85;
}

.cta-banner-description p {
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════
   5. CTA BUTTON
   ═══════════════════════════════════════════════════════════ */
.cta-banner-button {
    flex-shrink: 0;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background-color: var(--cta-btn-bg, #ea580c);
    color: var(--cta-btn-text, #ffffff);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-btn:hover {
    background-color: #fff;
    color: #ea580c;
}

.cta-btn i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.cta-btn:hover i {
    transform: translateX(4px);
}


/* ═══════════════════════════════════════════════════════════
   6. RESPONSIVE - TABLET (≤ 1024px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cta-banner-container {
        gap: 24px;
    }

    .cta-banner-text {
        font-size: 16px;
    }

    .cta-banner-description {
        font-size: 14px;
    }

    .cta-btn {
        padding: 12px 28px;
        font-size: 14px;
    }
}


/* ═══════════════════════════════════════════════════════════
   7. RESPONSIVE - MOBILE (≤ 768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .cta-banner-bar {
        padding: 20px 0;
    }

    .cta-banner-container {
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
        padding: 0 20px;
    }

    .cta-banner-bar.layout-center .cta-banner-content,
    .cta-banner-bar.layout-left-right .cta-banner-content {
        align-items: center;
    }

    .cta-banner-text {
        font-size: 15px;
    }

    .cta-banner-description {
        font-size: 13px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}


/* ═══════════════════════════════════════════════════════════
   8. RESPONSIVE - SMALL MOBILE (≤ 480px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .cta-banner-bar {
        padding: 16px 0;
    }

    .cta-banner-container {
        padding: 0 16px;
        gap: 16px;
    }

    .cta-banner-bar.layout-center .cta-banner-text {
        font-size: 20px;
    }

    .cta-banner-text {
        font-size: 14px;
    }

    .cta-banner-description {
        font-size: 12px;
    }

    .cta-btn {
        font-size: 13px;
        padding: 12px 20px;
        white-space: normal;
    }   
}


/* ═══════════════════════════════════════════════════════════
   9. ALIGNMENT SUPPORT
   ═══════════════════════════════════════════════════════════ */
.cta-banner-bar.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.cta-banner-bar.alignwide .cta-banner-container {
    max-width: 1400px;
}
