.steps {
    padding: 30px 0;
    
}

.steps-heading {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
}

.steps-subheading {
    display: block;
    text-align: center;
    margin: 0 auto 60px;
    font-size: 1.2rem;
    color: var(--blue);
    font-weight: 500;
    max-width: 300px;
}

.steps-timeline {
    position: relative;
    margin: 50px auto;
    padding: 40px 0;
    max-width: 1000px;
    box-sizing: border-box;
}

/* Central vertical line */
.steps-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 3px;
    height: 110%;
    background: var(--blue);
    transform: translateX(-50%);
    top: 0px;
}

.step-item {
    list-style: none;
    position: relative;
    width: 50%;
    padding: 10px 70px;
    box-sizing: border-box;
    margin-bottom: 0;
    margin-top: -40px;
}

/* Left side steps (odd numbers) */
.step-left {
    float: left;
    text-align: right;
    clear: both;
}

/* Right side steps (even numbers) */
.step-right {
    float: right;
    text-align: left;
    clear: both;
}

/* Step content */
.step-content {
    padding-bottom: 20px;
    position: relative;
}

/* Step number circles for odd items (left side) */
.step-left::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    top: 0px;
    right: 0px;
    background: linear-gradient(140deg ,#00D187,#0049FF);
}

/* Step number circles for even items (right side) */
.step-right::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    top: 0px;
    left: 0px;
    background: linear-gradient(140deg ,#0049FF ,#00D187);
}

/* Step number styling */
.step-number {
    margin: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/wp-content/themes/four-c-consulting/assets/images/Circle.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--navy);
    
    font-weight: 600;
}

/* Position step numbers for left side */
.step-left .step-number {
    position: absolute;
    top: -36px;
    right: -9px;
}

/* Position step numbers for right side */
.step-right .step-number {
    position: absolute;
    top: -36px;
    left: -5px;
}

/* Step content text */
.step-content span {
    display: block;
    padding: 0;
}

/* Clear floats */
.steps-timeline::after {
    content: '';
    display: table;
    clear: both;
}



.benefits-box{
    max-width: 1000px !important;
    margin: auto;
    position: relative;
    display: block;
    padding: 5px;
    background: linear-gradient(12deg, #4ade80, #3b82f6);
    border-radius: 10px;
}
.benefits-box .benefits-overlay{
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    right: 5px;
    background: white;
    overflow: hidden;
    border-radius: 5px;
}
.benefits-box .benefits-inner{
    display: flex;
    z-index: 123;
    position: relative;
    flex-wrap: nowrap;
}
.benefits-box .benefits-image,
.benefits-box .benefits-content{
    flex-basis: 50%;
}
.benefits-box .benefits-image{
    position: absolute;
    right: 0px;
    left: 0%;
    top: -40px;
    bottom: 0px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
}
.benefits-box .benefits-inner.txt-img .benefits-image{
    left: 50%;
    max-width: 50%;
}
.benefits-box .benefits-content h2,
.benefits-box .benefits-content h4,
.benefits-box .benefits-content h3{
    color: var(--blue);
}
.benefits-box .benefits-content p{
    margin-top: 0px;
    margin-bottom: 0px;
}
.benefits-box .benefits-content{
    padding: 30px;
}
.benefits-box .benefits-inner.img-txt .benefits-content{
    order: 2;
}
.benefits-box .benefits-inner.img-txt .img-outer{
    width: 50%;
    order: 1;
}
.benefits-box .benefits-inner.img-txt .img-outer .img-container{
    position: relative;
    width: 100%;
    height: 100%;
}

.step-item {
    /* Add these animation properties to your existing .step-item styles */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.step-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.step-item.fade-out {
    opacity: 0;
    transform: translateY(-30px);
}
#editor .step-item{
    opacity: 1;
}
.benefits-box .more-btn{
    max-width: 300px;
    border: 3px solid var(--blue);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0px;
    color: #fff;
    background-color: var(--blue);
    transition: 0.3s;
}
.benefits-box .more-btn:hover{
    background-color: #fff;
    color: var(--blue);
    transition: 0.3s;
    cursor: pointer;
}
/* Responsive design */

@media screen and (min-width: 1001px){

}
@media (max-width: 1000px) {
    .steps-timeline {
        width: 100%;
    }
    .benefits-box{
        max-width: 95% !important;
    }
}

@media (max-width: 768px) {

    
    .steps-heading {
        font-size: 2rem;
    }
    
    .steps-timeline {
        width: 100%;
        padding-bottom: 0;
    }
    
    .steps-timeline::before {
        left: 20px;
        height: 160%;
    }
    
    .step-left,
    .step-right {
        width: 100%;
        text-align: left;
        padding-left: 50px;
        padding-bottom: 50px;
        float: none;
    }
    
    .step-left::before,
    .step-right::before {
        top: 0px;
        left: 21px;
        right: auto;
    }
    
    .step-left .step-number,
    .step-right .step-number {
        top: -35px;
        left: 30px;
        right: auto;
    }
    .step-left::before{
        background: linear-gradient(140deg ,#0049FF ,#00D187);
    }
    .benefits-box .benefits-image, .benefits-box .benefits-content{
        flex-basis: 100%;
    }
  
    .benefits-box .benefits-image{
        position: absolute;
        /* right: 0px;
        left: 0px; */
        top: -5px;
        bottom: 0px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: bottom;
        width: 250px;
    }
    .step-item{
        padding: 20px 20px 20px 60px;
    }
    .steps-subheading{
        margin-bottom: 0px;
    }
    .steps-timeline{
        margin: 0px auto;
    }
    .steps-timeline{
        margin-bottom: 300px;
    }
    .benefits-box .benefits-inner{
        flex-wrap: wrap;
    }

    .benefits-box .benefits-inner.img-txt .img-outer {
        width: 100%;
        height: 250px;
        margin-top: -250px;
    }

    .benefits-box .benefits-inner .img-outer {
        width: 100%;
        height: 250px;
        margin-top: -250px;
        position: absolute;
    }
    .benefits-box .benefits-inner .img-outer .img-container{
        position: relative;
        width: 100%;
        height: 100%;
    }
    .benefits-box .benefits-inner.txt-img .benefits-image{
        max-width: 100%;
        left: unset;
        width: 100%;
    }
  
}

