/* ===================================================
   Custom Elementor Widget — Automation Tabs
   Connected Active Tab Design
   =================================================== */

/* ── Wrapper ── */
.cew-header{
    align-items: center;
    display: flex;
    justify-content: center;
}
.cew-automation-tabs {
    margin: 0 auto;
    padding: 0px 20px 60px 20px;
}

/* ── Heading ── */
.cew-heading {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #111;
    margin-bottom: 40px;
    line-height: 1.3;
    width: 80%;
}

/* ── Tabs Navigation ── */
.cew-tabs-nav {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    position: relative;
    z-index: 2;
}

.cew-tab-btn {
    background: transparent;
    border: none;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 400;
    color: #888;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: none !important;
    border-radius: 0;
    margin-bottom: 0;
    white-space: nowrap;
    outline: none;
}

.cew-tab-btn:hover {
    color: #333;
}

/* ── Active Tab — CONNECTED to content card with concave curves ── */
.cew-tab-btn.cew-tab-active {
    background: #0059e1;
    color: #fff;
    font-weight: 600;
    z-index: 3;
    border-radius: 14px 14px 0 0;
    margin-bottom: -1px;
    padding: 14px 30px 16px 30px;
}

/* Inverse concave curve — LEFT side */
.cew-tab-btn.cew-tab-active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -17px;
    width: 27px;
    height: 22px;
    background: transparent;
    border-bottom-right-radius: 38px;
    box-shadow: 6px 0 0 0 #0059e1;
    pointer-events: none;
}

/* Inverse concave curve — RIGHT side */
.cew-tab-btn.cew-tab-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -13px;
    width: 21px;
    height: 21px;
    background: transparent;
    border-bottom-left-radius: 22px;
    box-shadow: -6px 0 0 0 #0059e1;
    pointer-events: none;
}

/* ── Content Container ── */
.cew-tabs-content {
    position: relative;
    z-index: 1;
    background: #0059e1;
    border-radius: 20px;
    min-height: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* ── Tab Panels ── */
.cew-tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.cew-tab-panel.cew-panel-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ── Panel Inner (two-column) ── */
.cew-panel-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 50px 50px 50px 50px;
}

/* ── Left: Text Column ── */
.cew-panel-text {
    flex: 1 1 50%;
    min-width: 0;
}

.cew-panel-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.cew-panel-desc {
    font-size: 14.5px;
    line-height: 1.75;
    color: white ;
    margin: 0 0 30px 0;
}

/* ── Button ── */
.cew-panel-btn {
    display: inline-block;
    padding: 13px 32px;
    background: white !important;
    color: #0058de;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/*.cew-panel-btn:hover {*/
/*    background: #FF9C08;*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 8px 25px rgba(255, 156, 8, 0.35);*/
/*}*/

/* ── Right: Image Column ── */
.cew-panel-image {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cew-panel-image img {
    max-width: 100%;
    height: auto !important; 
    max-height: 340px;
    border-radius: 14px !important;
    object-fit: contain;
}

/* ── Orange accent glow behind image ── */
.cew-panel-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: linear-gradient(86deg, #ff9c0836 0%, #FF9C08 100%);
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
}

/* ===================================================
   Responsive
   =================================================== */

@media (max-width: 991px) {
    .cew-heading {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .cew-tabs-nav {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }

    .cew-tab-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .cew-panel-inner {
        flex-direction: column;
        padding: 35px 30px;
        gap: 30px;
    }

    .cew-panel-text {
        flex: 1 1 100%;
    }

    .cew-panel-image {
        flex: 1 1 100%;
    }

    .cew-panel-image img {
        max-height: 260px;
    }
}


@media (max-width: 575px) {
    .cew-automation-tabs {
        padding: 0px !important;
    }

    .cew-heading {
        font-size: 23px;
        margin-bottom: 24px;
    }

    .cew-tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .cew-panel-inner {
        padding: 25px 20px;
        gap: 24px;
    }

    .cew-panel-title {
        font-size: 22px;
    }

    .cew-panel-desc {
        font-size: 13px;
    }

    .cew-panel-btn {
        padding: 11px 26px;
        font-size: 13px;
    }
}
@media(max-width:767px){
    .cew-tab-btn.cew-tab-active{
            border-radius: 10px !important;
                padding: 9px 12px !important;
    }
    .cew-tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    gap: 8px;
        padding-left: 362px;
    margin-bottom: 10px;
}

.cew-tabs-nav::-webkit-scrollbar , .cew-tab-btn.cew-tab-active::before , .cew-tab-btn.cew-tab-active::after{
    display: none; /* Chrome/Safari */
}

.cew-tabs-nav .cew-tab-btn {
    flex-shrink: 0;
}
}