* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', 'Tajawal', sans-serif; }
a { text-decoration: none; transition: all 0.5s; }
ul { list-style: none; }

.serve-all { padding: 80px 20px; text-align: center;   background:#f4faff;}

.services-title h2 { color: var(--middleColor); margin-bottom: 10px; }
.services-title h3 { color: var(--primaryColor); margin-bottom: 15px; }
.services-title p { max-width: 700px; margin: auto; line-height: 1.8; color: #555; }

/* ── Slider wrapper ── */
.services-slider { position: relative; margin-top: 60px; }
.services-viewport { overflow: hidden; width: 100%; cursor: default; user-select: none; }

/* ── DESKTOP + TABLET: grid عادي بدون سلايدر ── */
.services-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  transition: none;
      padding: 10px;
}

/* ── Card ── */
.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  /* box-shadow: 0 10px 25px rgba(0,0,0,.08); */
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  text-align: center;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 18px 35px rgba(0,0,0,.13); }
.service-card img { width: 100%; height: 180px; object-fit: cover; pointer-events: none; }
.service-card h4 { color: var(--primaryColor); margin: 15px 0 10px; }
.service-card p { padding: 0 15px 20px; color: #555; line-height: 1.7; }

/* ── Dots: مخفية على desktop ── */
.services-dots { display: none; }

/* ── POPUP ── */
.service-popup { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1000; }
.service-popup.active { display: flex; }
.popup-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.popup-box { position: relative; background: #fff; padding: 20px; max-width: 600px; width: 90%; border-radius: 12px; z-index: 2; text-align: center; }
.popup-close { position: absolute; top: 10px; left: 10px; border: none; background: none; font-size: 22px; cursor: pointer; color: #888; }
.popup-features { margin: 10px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.popup-features span { background: var(--lightHelper); color: var(--primaryColor); padding: 8px 14px; border-radius: 20px; font-size: 14px; }
.btn-book { display: inline-block; margin-top: 15px; background: var(--helperColor); color: #fff; padding: 12px 25px; border-radius: 6px; }

/* ── no-anim helper ── */
.services-track.svc-no-anim { transition: none !important; }

/* ── TABLET: 2 columns ── */
@media (min-width: 769px) and (max-width: 992px) {
  .services-track { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE ONLY: سلايدر مع peek ── */
@media (max-width: 768px) {
  /* شيل padding الـ serve-all الجانبي علشان الـ peek يبان لحافة الشاشة */
  .serve-all { padding: 80px 0; }
  .services-title { padding: 0 20px; }

  .services-viewport {
    cursor: grab;
    overflow: hidden; /* الـ JS بيتحكم في الـ transform */
  }

  .services-track {
    display: flex;          /* flex بدل grid على موبايل */
    gap: 16px;
    transition: transform 0.4s ease;
    will-change: transform;
  }

  /* الكارت: عرضها بيتحدد من الـ JS */
  .service-card { flex-shrink: 0; }

  /* إظهار الـ dots */
  .services-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }
  .services-dots button {
    width: 8px; height: 8px;
    border-radius: 50%; border: none;
    background: #bfe7f7; cursor: pointer;
    transition: all .3s; padding: 0;
  }
  .services-dots button.active {
    background: var(--blue);
    width: 22px; border-radius: 4px;
  }
}