.how-work {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.how-work::before {
    content: '';
    background: url('../patterns/pattern-r.svg') no-repeat right / contain;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
}

.how-work::after {
    content: '';
    background: url('../patterns/pattern-l.svg') no-repeat left / contain;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.how-work-contents {
    position: relative;
    background: var(--p-color);
    padding: 40px;
    display: flex;
    justify-content: start;
    width: 90%;
    border-radius: 0 50px 50px 0;
    min-height: 480px;
    align-items: center;
}

.how-work-contents::before {
    content: '';
    background: url('../patterns/p-02.svg') no-repeat center / 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: -840px;
    z-index: 0;
}

.how-work-items {
    display: flex;
    gap: 32px;
    z-index: 1;
    flex-direction: column;
}

.how-work-items .section-title h3 {
    color: var(--t-color);
}

.how-work-cards {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.how-work-card {
    width: 100%;
    background: var(--w-color);
    padding: 24px;
    transition: transform 0.4s ease-in-out;
    border-left: 2px solid var(--s-color);
}

.how-work-card:last-child {
    border-bottom: none;
}

.how-work-card:hover {
    transform: translateY(-2px);
}

.how-work-card h3 {
    font-size: 22px;
    color: var(--p-color);
}

.how-work-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.how-work-card-items {
    display: flex;
    align-items: center;
    gap: 24px;
}

.how-work-card-items img {
    width: 120px;
    height: 120px;
}

.how-work-card-content p {
    font-size: 18px;
    line-height: 34px;
}





@media (max-width: 1400px) {
    .how-work-contents {
        min-height: 345px;
    }

    .how-work-card-items img {
        width: 100px;
        height: 100px;
    }

    .how-work-card h3 {
        font-size: 20px;
        line-height: 34px;
    }

    .how-work-card-items {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .how-work-card-content p {
        font-size: 16px;
        line-height: 24px;
        padding: 0 16px 8px;
    }

}

@media (max-width: 1200px) {
    .how-work::before {
        width: 35%;
    }

    .how-work::after {
        width: 35%;
    }

    .how-work-contents {
        width: 100%;
        border-radius: 0;
        max-width: 1600px;
        justify-content: center;
        padding: 70px 0;
        min-height: 438px;
    }

    .how-work-card-items img {
        width: 80px;
        height: 80px;
    }

    .how-work-cards {
        gap: 24px;
    }

    .how-work-card {
        padding: 15px;
    }

    .how-work-card h3 {
        font-size: 18px;
        line-height: 32px;
    }

    .how-work-card-content p {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 992px) {
    .how-work-items .section-title h3 {
        text-align: center;
        line-height: 38px;
    }

    .how-work-contents {
        width: 100%;
        padding: 50px 0;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .how-work-cards {
        gap: 0;
    }

    .how-work-card {
        border-left: 0;
        border-bottom: 2px solid var(--s-color);
    }

    .how-work-cards {
        flex-direction: column;
    }
}


@media (max-width: 480px) {
    .how-work-card-items img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 390px) {

    .how-work-contents {
        padding: 30px 0;
    }

    .how-work-items {
        gap: 16px;
    }

    .how-work-card h3 {
        font-size: 17px;
        line-height: 32px;
    }

    .how-work-cards {
        gap: 16px;
    }

    .how-work-card-items img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 360px) {
    .how-work-card {
        padding: 10px;
        border-radius: 20px;
    }

    .how-work-card-items img {
        width: 50px;
        height: 50px;
    }

    .how-work-card h3 {
        font-size: 16px;
        line-height: 32px;
    }

    .how-work-card-content p {
        font-size: 15px;
        line-height: 24px;
    }
}