.ps-b9d8e8bf-container {
    position: relative;
    width: 100%;
    padding: 40px 0;
    overflow: visible;
}

/* Steps Wrapper */
.ps-b9d8e8bf-steps-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: nowrap;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Single Step Column */
.ps-b9d8e8bf-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 15px;
}

/* Bubble Styling */
.ps-b9d8e8bf-bubble-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    z-index: 3;
}

.ps-b9d8e8bf-bubble {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #3498db;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ps-b9d8e8bf-step:hover .ps-b9d8e8bf-bubble {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Text Content */
.ps-b9d8e8bf-title {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.ps-b9d8e8bf-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* WAVE LINE (Desktop background layer) */
.ps-b9d8e8bf-connector {
    position: absolute;
    top: 40px; /* Aligns with the middle of bubble */
    left: 10%;
    width: 80%;
    height: 60px;
    z-index: 1;
    pointer-events: none;
}
.ps-b9d8e8bf-connector svg {
    width: 100%;
    height: 100%;
}

/* SOLID & DASHED straight lines between steps */
.ps-b9d8e8bf-line-solid .ps-b9d8e8bf-step:not(:last-child)::after,
.ps-b9d8e8bf-line-dashed .ps-b9d8e8bf-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 35px; /* Half of bubble size default */
    left: 50%;
    width: 100%;
    height: 2px;
    z-index: 1;
}

.ps-b9d8e8bf-line-solid .ps-b9d8e8bf-step:not(:last-child)::after {
    border-top: 3px solid #3498db;
}

.ps-b9d8e8bf-line-dashed .ps-b9d8e8bf-step:not(:last-child)::after {
    border-top: 3px dashed #3498db;
}

/* Tablet Layout (Max Width 1024px) */
@media (max-width: 1024px) {
    .ps-b9d8e8bf-steps-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px 20px;
    }

    .ps-b9d8e8bf-step {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
        padding: 0 10px;
    }

    /* Hide desktop horizontal connectors on tablet and below */
    .ps-b9d8e8bf-connector {
        display: none !important;
    }
    
    .ps-b9d8e8bf-line-solid .ps-b9d8e8bf-step:not(:last-child)::after,
    .ps-b9d8e8bf-line-dashed .ps-b9d8e8bf-step:not(:last-child)::after {
        display: none !important;
    }
}

/* Mobile Layout (Max Width 767px) */
@media (max-width: 767px) {
    .ps-b9d8e8bf-steps-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .ps-b9d8e8bf-step {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 20px;
        padding: 0 10px;
    }

    .ps-b9d8e8bf-bubble-wrapper {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .ps-b9d8e8bf-content {
        padding-top: 8px;
    }

    /* Vertical connector line for mobile */
    .ps-b9d8e8bf-step:not(:last-child)::before {
        content: '';
        position: absolute;
        top: 70px; /* Starting below bubble */
        left: 45px; /* Aligned with center of the bubble */
        width: 2px;
        height: calc(100% + 15px);
        border-left: 2px dashed #3498db;
        z-index: 1;
    }
    
    .ps-b9d8e8bf-line-solid .ps-b9d8e8bf-step:not(:last-child)::before {
        border-left: 2px solid #3498db;
    }

    .ps-b9d8e8bf-line-wave .ps-b9d8e8bf-step:not(:last-child)::before {
        border-left: 2px dashed #3498db;
    }
}
