.services {
    background-color: #F9F9F9;
    position: relative;
    z-index: 0;
    /* height: 500px; */
}

.services .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    justify-items: center;
}

.services::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    background-image: url("../img/section-bg-rec-circle.png");
    background-repeat: no-repeat;
    background-position: bottom;
    background-attachment: fixed;
    opacity: .15;
    z-index: -22;
}

.services .row {
    padding-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 40px;
}

.services .row .col-right {
    width: 28%;
    margin-bottom: 30px;
}

.services .row.row-1 {
    margin-bottom: 200px;
    position: relative;
    z-index: -1;
}

.services .row .col-right .top-quote {
    background-color: var(--primaryColor);
    padding: 10px 30px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 35px;
    color: var(--white);
}

.services .row .col-right h2 {
    margin-block: 30px;
    font-size: 25px;
    font-weight: 700;
}

.services .row .col-right p {
    margin-block: 30px;
    font-size: 17px;
}

.services .row .col-right .btn {
    background-color: var(--primaryColor);
    padding: 10px 30px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 10px;
    color: var(--white);
}

.services .row .col-left {
    width: 68%;
    overflow: hidden;
}

.services-cards {
    display: flex;
    align-items: center;
    will-change: transform;
    touch-action: pan-y;
    user-select: none;
}

/* Desktop transition only */
@media (min-width: 1015px) {
    .services-cards {
        transition: transform 0.8s ease-in-out;
        gap: 20px;
    }
}

.service-card {
    flex: 0 0 33%;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-content: center;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: var(--white);
    position: relative;
}

.service-card::after {
    content: "";
    position: absolute;
    top: 0;
    width: 20%;
    height: 3px;
    background-color: var(--primaryColor);
}

.service-card .service-title {
    display: flex;
    justify-items: center;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.service-card .service-title h2:hover {
    color: var(--primaryColor);
}

.service-card .service-title i {
    color: var(--primaryColor);
    font-size: 20px;
}

.service-card .service-img {
    width: 100%;
}

.service-card img {
    width: 100%;
    object-fit: contain;
    transition: all 1s ease;
}

.service-card img:hover {
    transform: scale(1.1);
}

/* ===== Responsive ===== */
@media (max-width:1014px) {
    .services .row .col-right,
    .services .row .col-left {
        width: 100%;
        text-align: center;
    }

    .services .row .col-left {
        margin-bottom: 50px;
    }

    .services .row .col-right h2 {
        font-size: 30px;
    }

    .services-cards {
        gap: 20px;
    }

    .service-card {
        flex: 0 0 48%;
    }
}

@media (max-width:767px) {
    .services .row .col-right h2 {
        font-size: 25px;
    }

    .services-cards {
        gap: 0;
    }

    .service-card {
        flex: 0 0 100%;
        padding: 20px 15px;
    }
}
.services-cards {
  display: flex;
  align-items: center;
  will-change: transform;
  touch-action: pan-y; /* يسمح بالمس عمودي فقط */
  user-select: none;
  overflow-x: hidden;  /* منع overflow افتراضي */
}

/* Desktop only */
@media (min-width: 1015px) {
  .services-cards {
    transition: transform 0.8s ease-in-out;
    gap: 20px;
  }
}

/* Mobile fix */
@media (max-width: 767px) {
  .services-cards {
    gap: 0; /* الحساب يبقى مظبوط مع scroll */
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .service-card {
    flex: 0 0 100%;
    padding: 20px 15px;
  }
}
