.m300-steps-section {
    position: relative;
    background-image: url(../img/cta-background.webp);
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    border: 1px solid #00B8DB33;
    background-color: #020618;
    z-index: 2;
}

.m300-steps-section .steps-inner {
    padding: 60px;
}

/* Heading stays left */
.m300-steps-section .steps-heading {
    max-width: 862px;
    color: #fafafa;
    font-family: Geist;
    font-weight: 400;
    font-size: 48px;
    line-height: 60px;
    vertical-align: middle;
}


/* TWO COLUMNS */
/* Main content 2-column layout */
.m300-steps-section .steps-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin: 44px 0 26px 0;
}

/* LEFT SIDE (tabs + text vertically centered together) */
.m300-steps-section .steps-left {
    max-width: 683px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* vertical center relative to the IMAGE height */
    gap: 40px;
}

/* Centered tabs */
.m300-steps-section .steps-tabs {
    display: flex;
    gap: 12px;
}

.m300-steps-section .step-tab {
    padding: 12px 24px;
    color: #FAFAFA;
    border-radius: 40px;
    cursor: pointer;
    border-width: 1px 0;
    border-color: #FFFFFF3B;
    backdrop-filter: blur(6px);
    box-shadow: 0px 1px 0px 0px #F5F5F533;
    transition: 0.3s;
    background: transparent;
}

.m300-steps-section .step-tab.active {
    background: #2f87ff;
    /* border: 1px solid #2f87ff; */
    backdrop-filter: blur(6px);
    box-shadow: 0px 1px 0px 0px #F5F5F533;
    transition: 0.3s;
}

/* Left tab content */
.m300-steps-section .steps-text {
    /* display: grid; */
    position: relative;
    min-height: 180px;
    height: 100%;
    width: 100%;
    max-width: 506px;
    /* fixed height to prevent jump — adjust as needed */

}

.m300-steps-section .step-item {
    /* display: none; */

    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    transition: opacity .35s ease;
    pointer-events: none;
    /* prevents focusing hidden layers */

}

.m300-steps-section .step-item.active {
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.m300-steps-section .step-item h3 {
    font-family: Geist;
    font-weight: 400;
    font-size: 30px;
    line-height: 40px;
    color: #FAFAFA;
}

.m300-steps-section .step-item p {
    font-family: Geist;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #90A1B9;
}

/* RIGHT IMAGE column */
.m300-steps-section .steps-right {
    /* width: 40%;
    display: flex;
    justify-content: center;
    align-items: center; */

    position: relative;
    width: 40%;
    height: 260px;
}

.m300-steps-section img.step-img {
    /* width: 100%;
    height: auto;
    border-radius: 20px !important;
    overflow: hidden;
    display: none; */
}

.m300-steps-section img.step-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 390px;
    height: 100%;
    object-fit: cover;
    /* prevents layout shift */
    border-radius: 20px;
    opacity: 0;
    transition: opacity .35s ease;
}

.m300-steps-section img.step-img.active {
    opacity: 1;
    position: relative;
}


/* .m300-steps-section .step-img.active {
    display: block;
} */

/* CTA */
.m300-steps-section .steps-cta-box {
    background: #FAFAFA;
    padding: 20px 30px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.m300-steps-section .steps-cta-box::before {
    content: "";
    height: 60px;
    width: 357px;
    background: url(../img/cta-blue-gradient.webp);
    position: absolute;
    bottom: 0;
    right: 28px;
    z-index: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
}

.m300-steps-section .cta-box-outline {
    border: 1px solid #00B8DB33;
    border-radius: 20px;
    padding: 10px;
}

.m300-steps-section .cta-text {
    font-family: Geist;
    font-weight: 200;
    font-size: 34px;
    line-height: 24px;
    vertical-align: middle;
    color: #000000;
}

.m300-steps-section .cta-text strong {
    font-weight: 600;
}

@media screen and (min-width: 1025px) and (max-width: 1199px) {
    .m300-steps-section .cta-text {
        font-size: 24px;
        line-height: 32px;
    }
}
@media screen and (min-width: 1200px) and (max-width: 1365px) {
    .m300-steps-section .cta-text {
        font-size: 28px;
        line-height: 36px;
    }
}

.m300-steps-section .cta-btn {
    background: linear-gradient(45deg, #288bff, #1ec8ff);
    padding: 22px 24px;
    border-radius: 30px;
    color: #fafafa !important;
    font-family: Geist;
    font-weight: 600;
    font-size: 18px;
    line-height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 1024px) {
    .m300-steps-section .steps-cta-box {
        flex-direction: column;
        align-items: baseline;
        gap: 20px;
    }

    .m300-steps-section .steps-inner {
        padding: 40px;
    }

    .m300-steps-section .step-tab {
        font-size: 14px;
        line-height: 20px;
    }

    .m300-steps-section .steps-heading {
        font-size: 34px;
        line-height: 43px;
    }

    .m300-steps-section .step-item h3 {
        font-size: 24px;
        line-height: 30px;
    }

    .m300-steps-section .steps-cta-box::before {
        right: -34px;
    }

    .m300-steps-section .steps-right {
        display: none;
    }

    .m300-steps-section .steps-left {
        max-width: unset;
        width: 100%;
    }

    .m300-steps-section .cta-text {
        font-size: 31px;
        line-height: 1.2em;
    }
    
    .m300-steps-section .steps-text {
        min-height: unset;
        max-width: unset;
    }

    .m300-steps-section .steps-content {
        margin: 40px 0;
    }
}

@media screen and (max-width: 767px) {
    .m300-steps-section .steps-inner {
        padding: 16px;
    }

    .m300-steps-section .steps-heading {
        font-size: 30px;
        line-height: 40px;
    }

    .m300-steps-section .steps-cta-box {
        padding: 16px;
    }

    .m300-steps-section .cta-btn {
        padding: 22px;
    }

    .m300-steps-section .cta-btn svg {
        display: none;
    }

    .m300-steps-section .steps-tabs {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .m300-steps-section .steps-tabs::-webkit-scrollbar {
        display: none;
    }

    .m300-steps-section .step-tab {
        flex: 0 0 auto;
        /* prevent shrinking */
        white-space: nowrap;
    }
}