/* =========================================================
   KEDCO CTA / OUTAGE SECTION
   ========================================================= */

.kedco-cta {
    width: 100%;

    background: transparent;

    position: relative;
    overflow: hidden;

    margin-top: 25px;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.kedco-cta-container {
    width: 100%;
    max-width: none;
    min-height: 120px;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: stretch;

    position: relative;
}


/* =========================================================
   BLUE MAIN AREA
   DESKTOP: 75%
   ========================================================= */

.kedco-cta-main {
    width: 75%;
    min-height: 120px;

    background: #011174;

    display: flex;
    align-items: center;

    position: relative;
    z-index: 2;
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.kedco-cta-content {
    width: 48%;

    padding-left: 20%;

    position: relative;

    z-index: 5;
}


.kedco-cta-title {
    margin: 0 0 5px;

    color: #ffffff;

    font-size: 26px;

    font-weight: 700;

    line-height: 1.1;
}


.kedco-cta-description {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 13px;

    line-height: 1.35;
}


/* =========================================================
   BUTTON
   ========================================================= */

.kedco-cta-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 9px 14px;

    background: #e8de03;

    color: #011174;

    border-radius: 4px;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.kedco-cta-button i {
    font-size: 13px;
}


.kedco-cta-button:hover {
    background: #ffffff;

    color: #011174;

    transform: translateY(-2px);
}


/* =========================================================
   CONTACT INFORMATION
   ========================================================= */

.kedco-cta-contacts {
    width: 52%;

    display: flex;

    padding-left: 8%;

    gap: 30px;

    position: relative;

    z-index: 5;
}


.kedco-cta-contact {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #ffffff;

    white-space: nowrap;
}


.kedco-cta-contact-icon {
    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #ffffff;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}


.kedco-cta-contact-icon i {
    color: #011174;

    font-size: 17px;
}


.kedco-cta-contact-content {
    display: flex;

    flex-direction: column;

    line-height: 1.15;
}


.kedco-cta-contact-content span {
    color: #ffffff;

    font-size: 12px;

    font-weight: 600;
}


.kedco-cta-contact-content strong {
    color: #ffffff;

    font-size: 13px;

    font-weight: 700;
}


/* =========================================================
   YELLOW DIVIDER
   5%
   
   IMPORTANT:
   Keep the class name as .kedco-cta-yellow-shape
   because this is the class used in your HTML.
   ========================================================= */

.kedco-cta-yellow-shape {
    width: 5%;
    min-height: 120px;

    background: #e8de03;

    position: relative;

    flex-shrink: 0;

    z-index: 4;
}


/* =========================================================
   BUS / ROAD AREA
   REMAINING SPACE
   ========================================================= */

.kedco-cta-vehicle {
    flex: 1;

    min-width: 0;
    min-height: 120px;

    position: relative;

    /*
     * Allow the bus to overlap the yellow divider.
     */
    overflow: visible;

    background-image: url("../images/cta-road.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    z-index: 5;
}


/* =========================================================
   ROAD DARKENING
   ========================================================= */

.kedco-cta-vehicle::before {
    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0)
    );

    z-index: 1;

    pointer-events: none;
}


/* =========================================================
   KEDCO BUS
   ========================================================= */

.kedco-cta-bus {
    position: absolute;

    width: 250px;

    max-width: none;

    /*
     * Bus overlaps the yellow divider.
     */
    left: -150px;

    right: auto;

    bottom: -5px;

    z-index: 10;

    object-fit: contain;

    filter: drop-shadow(
        0 8px 10px rgba(0, 0, 0, 0.18)
    );
}


/* =========================================================
   TABLET
   768px - 991px
   ========================================================= */

@media (max-width: 991px) {

    /* =====================================================
       BLUE AREA
       ===================================================== */

    .kedco-cta-main {
        width: 70%;
    }


    /* =====================================================
       YELLOW
       ===================================================== */

    .kedco-cta-yellow-shape {
        width: 5%;

        min-height: 120px;
    }


    /* =====================================================
       ROAD
       ===================================================== */

    .kedco-cta-vehicle {
        width: 25%;

        min-height: 120px;
    }


    /* =====================================================
       LEFT CONTENT
       ===================================================== */

    .kedco-cta-content {
        width: 48%;

        padding-left: 8%;
    }


    .kedco-cta-title {
        font-size: 24px;
    }


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


    /* =====================================================
       CONTACTS
       ===================================================== */

    .kedco-cta-contacts {
        width: 52%;

        padding-left: 4%;

        gap: 12px;
    }


    .kedco-cta-contact {
        gap: 6px;
    }


    .kedco-cta-contact-icon {
        width: 28px;
        height: 28px;
    }


    .kedco-cta-contact-icon i {
        font-size: 16px;
    }


    .kedco-cta-contact-content span {
        font-size: 11px;
    }


    .kedco-cta-contact-content strong {
        font-size: 12px;
    }


    /* =====================================================
       TABLET BUS
       Keep the SAME overlap direction as desktop.
       ===================================================== */

    .kedco-cta-bus {
        width: 245px;

        left: -125px;

        right: auto;

        bottom: -5px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .kedco-cta {
        margin-top: 30px;
    }


    /* =====================================================
       MAIN CONTAINER
       ===================================================== */

    .kedco-cta-container {
        width: 100%;

        max-width: none;

        min-height: auto;

        display: flex;

        flex-direction: column;
    }


    /* =====================================================
       BLUE AREA
       ===================================================== */

    .kedco-cta-main {
        width: 100%;

        min-height: auto;

        padding: 30px 20px;

        display: flex;

        flex-direction: column;

        align-items: flex-start;
    }


    /* =====================================================
       CONTENT
       ===================================================== */

    .kedco-cta-content {
        width: 100%;

        padding-left: 0;
    }


    .kedco-cta-title {
        font-size: 27px;
    }


    .kedco-cta-description {
        font-size: 15px;
    }


    /* =====================================================
       CONTACTS
       ===================================================== */

    .kedco-cta-contacts {
        width: 100%;

        margin-top: 25px;

        padding-left: 0;

        justify-content: flex-start;

        gap: 20px;

        flex-wrap: wrap;
    }


    /* =====================================================
       YELLOW DIVIDER
       ===================================================== */

    .kedco-cta-yellow-shape {
        width: 100%;

        height: 12px;

        min-height: 12px;

        margin: 0;

        background: #e8de03;
    }


    /* =====================================================
       ROAD + BUS
       ===================================================== */

    .kedco-cta-vehicle {
        width: 100%;

        min-height: 160px;

        height: 160px;

        background-position: center;

        overflow: visible;
    }


    /* =====================================================
       MOBILE BUS
       ===================================================== */

    .kedco-cta-bus {
        width: 285px;

        /*
         * Reset desktop overlap and position
         * bus toward the right on mobile.
         */
        left: auto;

        right: -20px;

        bottom: -5px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .kedco-cta-main {
        padding: 28px 18px;
    }


    .kedco-cta-title {
        font-size: 25px;
    }


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


    .kedco-cta-contacts {
        gap: 15px;
    }


    .kedco-cta-contact-icon {
        width: 28px;
        height: 28px;
    }


    .kedco-cta-contact-content span {
        font-size: 11px;
    }


    .kedco-cta-contact-content strong {
        font-size: 12px;
    }


    /* =====================================================
       SMALL MOBILE ROAD
       ===================================================== */

    .kedco-cta-vehicle {
        height: 145px;

        min-height: 145px;

        background-position: center;
    }


    /* =====================================================
       SMALL MOBILE BUS
       ===================================================== */

    .kedco-cta-bus {
        width: 255px;

        left: auto;

        right: -15px;

        bottom: -5px;
    }
}


/* =========================================================
   KEDCO CTA
   DARK MODE REFINEMENT
========================================================= */

[data-theme="dark"] .kedco-cta {
    background: var(--kedco-page-bg);
}


/* =========================================================
   BLUE CTA AREA
========================================================= */

[data-theme="dark"] .kedco-cta-main {
    background: #081535;
}


/* =========================================================
   CTA TEXT
========================================================= */

[data-theme="dark"] .kedco-cta-title {
    color: #FFFFFF;
}

[data-theme="dark"] .kedco-cta-description {
    color: #CBD5E1;
}


/* =========================================================
   CTA BUTTON
========================================================= */

[data-theme="dark"] .kedco-cta-button {
    background: #E8DE03;
    color: #011174;
}

[data-theme="dark"] .kedco-cta-button:hover {
    background: #FFFFFF;
    color: #011174;
}


/* =========================================================
   CONTACT INFORMATION
========================================================= */

[data-theme="dark"] .kedco-cta-contact {
    color: #FFFFFF;
}

[data-theme="dark"] .kedco-cta-contact-icon {
    background: #FFFFFF;
}

[data-theme="dark"] .kedco-cta-contact-icon i {
    color: #011174;
}

[data-theme="dark"] .kedco-cta-contact-content span {
    color: #CBD5E1;
}

[data-theme="dark"] .kedco-cta-contact-content strong {
    color: #FFFFFF;
}


/* =========================================================
   YELLOW DIVIDER
   KEEP KEDCO BRAND YELLOW
========================================================= */

[data-theme="dark"] .kedco-cta-yellow-shape {
    background: #E8DE03;
}


/* =========================================================
   ROAD AREA
========================================================= */

[data-theme="dark"] .kedco-cta-vehicle::before {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.22),
        rgba(0, 0, 0, 0.05)
    );
}