.how-it-works-main {
    display: flex;
    gap: 40px;
}

.how-it-works-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.how-it-works-left-img {
    align-self: flex-start;
    width: 100%;
    max-width: 300px;
    height: auto;
}

.how-it-works-right-img {
    display: none;
}

.how-it-works-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex: 2;
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.step {
    position: relative;
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 52px;
    left: 24px;
    width: 3px;
    height: calc(100% - 54px);
    background-color: var(--color-bg-primary-light);
}

.step__number {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 1;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-bg-primary);
    color: var(--color-text-white);
}

.step__content {
    display: flex;
    width: 100%;
    gap: 40px;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--color-bg-white);
}

.step__title {
    width: 150px;
    flex-shrink: 0;
    color: var(--color-brand-secondary);
}

/* Responsive Styles */
/* Mobile-only: 320px – 767px */
@media (max-width: 767px) {
    .how-it-works-right__btn-group {
        flex-direction: column;
        width: 100%;
    }
}

/* Tablet-only: 768px – 1365px */
@media (min-width: 768px) and (max-width: 1365px) {
    .how-it-works-right-img {
        width: 240px;
        height: auto;
    }
}

/* Mobile and Tablet: 1365px below */
@media (max-width: 1365px) {
    .how-it-works-main {
        flex-direction: column;
    }

    .how-it-works-left-img {
        display: none;
    }

    .how-it-works-right-img {
        display: flex;
    }

    .step__number {
        width: 30px;
        height: 30px;
    }

    .step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 32px;
        left: 14px;
        width: 3px;
        height: calc(100% - 34px);
        background-color: var(--color-bg-primary);
    }

    .step__content {
        flex-direction: column;
        gap: 20px;
    }

    .step__title {
        width: 100%;
    }
}