.how-work {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 270px;
}

.how-work::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../patterns/hrpattern.svg') no-repeat right / contain;
    z-index: -1;
    right: 0;
    height: 260px;
}

.how-work::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../patterns/hlpattern.svg') no-repeat left / contain;
    z-index: -1;
    left: 0;
    height: 260px;
}

.how-work-contents {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    z-index: 2;
}

.how-work-items {
    display: flex;
    width: 100%;
    gap: 32px;
    z-index: 1;
    flex-direction: column;
}

.how-work-items .section-title h3 {
    color: var(--t-color);
}

.h-shape {
    background: var(--p-color);
    width: 50%;
    height: 460px;
    border-radius: 0 50px 50px 0;
    position: absolute;
    left: 0;
    top: -100px;
    z-index: -1;
}

.how-work-cards {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.how-work-card {
    width: 100%;
    background: var(--w-color);
    padding: 16px;
    border-radius: 32px;
    transition: transform 0.4s ease-in-out;
    display: flex;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.how-work-card:hover {
    transform: translateY(-2px);
}

.how-work-card h3 {
    font-size: 20px;
    color: var(--s-color);
}

.how-work-card-items {
    display: flex;
    align-items: center;
    gap: 24px;
}

.how-work-card-items img {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
}

.how-work-card-content p {
    font-size: 16px;
    line-height: 30px;
}


@media (max-width: 1400px) {
    .how-work {
        margin-top: 120px;
    }

    .how-work::before,
    .how-work::after {
        height: 160px;
        top: 38%;
    }

    .h-shape {
        height: 200px;
        top: 110px;
    }

    .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: 18px;
        line-height: 30px;
    }

}

@media (max-width: 1200px) {
    .how-work {
        margin-top: 80px;
    }

    .how-work::before,
    .how-work::after {
        height: 270px;
        top: 30%;
    }

    .h-shape {
        width: 30%;
        height: 460px;
        top: 80px;
    }

    .how-work-contents {
        width: 100%;
        border-radius: 0;
        max-width: 1600px;
        justify-content: center;
        padding: 70px 0;
        min-height: 438px;
    }

    .how-work-card-content {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }

    .how-work-card-items img {
        width: 80px;
        height: 80px;
    }

    .how-work-cards {
        gap: 24px;
        flex-direction: column;
    }

    .how-work-card {
        padding: 15px;
        border-radius: 30px;
    }

    .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) {

    .h-shape {
        width: 30%;
        height: 420px;
        top: 120px;
    }

    .how-work-items {
        gap: 52px;
    }

    .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 {
        margin-top: 40px;
    }

    .how-work::before,
    .how-work::after {
        top: 40%;
    }

    .how-work-cards {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .h-shape {
        width: 30%;
        height: 450px;
        top: 90px;
    }

    .how-work-contents {
        padding: 20px 0;
    }

    .r-arrow:first-child {
        margin-right: 0;
    }

    .r-arrow:last-child {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .how-work-items {
        gap: 12px;
    }

.how-work-card-items img {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
}
}

@media (max-width: 390px) {

    .how-work::before,
    .how-work::after {
        top: 40%;
        height: 190px;
    }

    .h-shape {
        width: 30%;
        height: 420px;
        top: 90px;
    }

    .how-work-items {
        gap: 16px;
    }

    .how-work-cards {
        gap: 16px;
    }

    .how-work-card-items img {
        width: 60px;
        height: 60px;
    }

    .how-work-card h3 {
        font-size: 16px;
        line-height: 28px;
    }

    .how-work-card-content p {
        font-size: 15px;
        line-height: 24px;
    }

}

@media (max-width: 360px) {
    .h-shape {
        width: 30%;
        height: 408px;
        top: 90px;
    }

    .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;
    }
}