.how-it-works-main {
    display: flex;
    gap: 40px;
}

.how-it-works-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    line-height: 1.5;
    position: relative;
    min-height: 100%;
}

.how-it-works-left-img {
    align-self: flex-start;
    width: 100%;
    max-width: 300px;
    position: absolute;
    top: 300px;
    left: 0;
    z-index: 1;
}

.how-it-works-right-img {
    display: none;
}

.how-it-works-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex: 2;
}

.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.step-section {
    position: relative;
    padding-bottom: 20px;
}

.step-item {
    display: flex;
    gap: 20px;
}

.step-section:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 52px;
    left: 24px;
    width: 3px;
    height: calc(100% - 54px);
    background-color: var(--color-bg-primary);
}

.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;
    line-height: 1.5;
    background-color: var(--color-bg-white);
}

.step-content h3 {
    width: 150px;
    flex-shrink: 0;
    color: var(--color-brand-secondary);
}

.how-it-works-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsive Styles */
/* Mobile-only: 320px – 767px */
@media (max-width: 767px) {
    .how-it-works-btn {
        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-section: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;
    }
}