section.services {
    width: 1200px;
    display: flex;
    flex-direction: column;
    justify-self: center;
}

section.services {
    width: 1200px;
    display: flex;
    flex-direction: column;
    justify-self: center;
}

.services-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 90px 20px;
}

/* From Uiverse.io by Creatlydev */
.service-card {
    width: min(300px, 100%);
    margin: auto;
    background-color: #f4f5f2;
    text-align: center;
    border-top-left-radius: 4rem;
    border: 2px solid #fff;
    position: relative;
    height: 370px;
}

.service-card::before {
    content: "";
    position: absolute;
    height: 30px;
    width: 120px;
    background-color: var(--secondary);
    top: 32px;
    right: -2.5px;
    -webkit-clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.service-card .card__body {
    padding: 2rem 1.5rem;
    max-width: 25ch;
    margin: auto;
}

.service-card .card__title {
    font-weight: 800;
    color: #121513;
    font-size: 1.25rem;
    margin-block: 1.5rem 0.75rem;
}

.service-card .card__paragraph {
    color: #303830;
    font-size: 0.875rem;
}

.service-card .card__ribbon {
    margin-top: 1.5rem;
    display: grid;
    place-items: center;
    height: 50px;
    background-color: var(--secondary);
    position: relative;
    width: 110%;
    right: -5%;
    top: 5px;
    position: relative;
    border-radius: 0 0 2rem 2rem;
}

.service-card .card__ribbon::after,
.service-card .card__ribbon::before {
    content: "";
    position: absolute;
    width: 20px;
    aspect-ratio: 1/1;
    bottom: 100%;
    z-index: -2;
    background-color: var(--secondary);
}

.service-card .card__ribbon::before {
    left: 0;
    transform-origin: left bottom;
    transform: rotate(45deg);
}

.service-card .card__ribbon::after {
    right: 0;
    transform-origin: right bottom;
    transform: rotate(-45deg);
}

.service-card .card__ribbon-label {
    display: block;
    width: 84px;
    aspect-ratio: 1/1;
    background-color: #fff;
    position: relative;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 8px solid var(--secondary);
    display: grid;
    place-items: center;
    font-weight: 900;
    line-height: 1;
    font-size: 1.5rem;
}

.service-card .card__ribbon-label::before,
.service-card .card__ribbon-label::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    bottom: 50%;
}

.service-card .card__ribbon-label::before {
    right: calc(100% + 4px);
    border-bottom-right-radius: 20px;
    box-shadow: 5px 5px 0 var(--secondary);
}

.service-card .card__ribbon-label::after {
    left: calc(100% + 4px);
    border-bottom-left-radius: 20px;
    box-shadow: -5px 5px 0 var(--secondary);
}




.service-card1 {
    width: min(300px, 100%);
    margin: auto;
    background-color: #f4f5f2;
    text-align: center;
    border-top-left-radius: 4rem;
    border: 2px solid #fff;
    position: relative;
    height: 370px;
}

.service-card1::before {
    content: "";
    position: absolute;
    height: 30px;
    width: 120px;
    background-color: var(--primary);
    top: 32px;
    right: -2.5px;
    -webkit-clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.service-card1 .card__body {
    padding: 2rem 1.5rem;
    max-width: 25ch;
    margin: auto;
}

.service-card1 .card__title {
    font-weight: 800;
    color: #121513;
    font-size: 1.25rem;
    margin-block: 1.5rem 0.75rem;
}

.service-card1 .card__paragraph {
    color: #303830;
    font-size: 0.875rem;
}

.service-card1 .card__ribbon {
    margin-top: 1.5rem;
    display: grid;
    place-items: center;
    height: 50px;
    background-color: var(--primary);
    position: relative;
    width: 110%;
    right: -5%;
    top: 5px;
    position: relative;
    border-radius: 0 0 2rem 2rem;
}

.service-card1 .card__ribbon::after,
.service-card1 .card__ribbon::before {
    content: "";
    position: absolute;
    width: 20px;
    aspect-ratio: 1/1;
    bottom: 100%;
    z-index: -2;
    background-color: var(--primary);
}

.service-card1 .card__ribbon::before {
    left: 0;
    transform-origin: left bottom;
    transform: rotate(45deg);
}

.service-card1 .card__ribbon::after {
    right: 0;
    transform-origin: right bottom;
    transform: rotate(-45deg);
}

.service-card1 .card__ribbon-label {
    display: block;
    width: 84px;
    aspect-ratio: 1/1;
    background-color: #fff;
    position: relative;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 8px solid var(--primary);
    display: grid;
    place-items: center;
    font-weight: 900;
    line-height: 1;
    font-size: 1.5rem;
}

.service-card1 .card__ribbon-label::before,
.service-card1 .card__ribbon-label::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    bottom: 50%;
}

.service-card1 .card__ribbon-label::before {
    right: calc(100% + 4px);
    border-bottom-right-radius: 20px;
    box-shadow: 5px 5px 0 var(--primary);
}

.service-card1 .card__ribbon-label::after {
    left: calc(100% + 4px);
    border-bottom-left-radius: 20px;
    box-shadow: -5px 5px 0 var(--primary);
}


.service-card .card-button {
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    border: 0;
    background-color: white;
    box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
    text-transform: uppercase;
    font-size: 15px;
    transition: all 0.5s ease;
}

.service-card .card-button:hover {
    background-color: var(--secondary);
    color: white;
    box-shadow: var(--secondary) 0px 7px 29px 0px;
}

.service-card .card-button:active {
    background-color: var(--secondary);
    color: white;
    box-shadow: var(--secondary) 0px 7px 29px 0px;
    transform: translateY(10px);
    transition: 100ms;
}


.service-card1 .card-button {
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    border: 0;
    background-color: white;
    box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
    text-transform: uppercase;
    font-size: 15px;
    transition: all 0.5s ease;
}

.service-card1 .card-button:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--primary) 0px 7px 29px 0px;
}

.service-card1 .card-button:active {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--primary) 0px 7px 29px 0px;
    transform: translateY(10px);
    transition: 100ms;
}

.services-swiper{
    display: none !important;
}



@media(max-width: 1024px) {
    .services-swiper{
    display: block !important;
}
    section.services {
        width: 100%;
    }

    .swiper-button-prev:after,
 .swiper-button-next:after {
        content: 'prev';
        font-size: 20px !important;
        background: var(--primary);
        padding: 10px;
        border-radius: 10px;
        width: 30px;
        color: white;
    }

    .services-cards {
        display: none;
    }

    .services-swiper .swiper-slide {
        display: flex;
        justify-content: center;
        flex: none;
        /* بسیار مهم */
    }

    .service-card,
    .service-card1 {
        width: 100%;
        max-width: 300px;
        /* عرض کارت */
    }



}