/* =========================
   Services Carousel (Modern + Touch Swipe)
   ========================= */

.services-carousel{
  --gap: 16px;
  --cardW: 320px;
}

.services-carousel .carousel-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 18px;
}

.services-carousel .carousel-head .text h2{
  margin:0;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing:-.02em;
}

.services-carousel .carousel-head .text p{
  margin: 8px 0 0;
  color: rgba(255,255,255,.70);
  max-width: 680px;
}

.section.black .services-carousel .carousel-head .text p{
  color: rgba(255,255,255,.70);
}

.services-carousel .controls{
  display:flex;
  gap:10px;
  align-items:center;
}

.services-carousel .ctrl-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  transition: .2s ease;
}
.services-carousel .ctrl-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
}
.services-carousel .ctrl-btn:active{
  transform: translateY(0);
}

/* ===== Scroller ===== */
.services-carousel .track-wrap{
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  /* make drag feel good */
  cursor: grab;
}
.services-carousel .track-wrap.dragging{
  cursor: grabbing;
  scroll-behavior: auto; /* during drag */
}

/* hide scrollbar (still scrollable) */
.services-carousel .track-wrap::-webkit-scrollbar{ height: 0; }
.services-carousel .track-wrap{ scrollbar-width: none; }

/* Track as a horizontal row */
.services-carousel .track{
  display:flex;
  gap: var(--gap);
  padding: 10px 2px;
}

/* Card */
.services-carousel .item{
  scroll-snap-align: start;
  flex: 0 0 var(--cardW);
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  transition: transform .25s ease, border-color .25s ease;
}
.services-carousel .item:hover{
  transform: translateY(-4px);
  border-color: rgba(241,152,41,.25);
}

.services-carousel .item .media{
  height: 190px;
  background: rgba(255,255,255,.04);
  overflow:hidden;
}
.services-carousel .item .media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
}

.services-carousel .item .content{
  padding: 16px 16px 18px;
}
.services-carousel .item .content h3{
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.2;
}
.services-carousel .item .content p{
  margin:0 0 14px;
  color: rgba(255,255,255,.74);
  min-height: 44px;
}
.services-carousel .item .actions{
  margin-top: 10px;
}

/* Dots */
.services-carousel .dots{
  display:flex;
  gap:8px;
  justify-content:center;
  margin-top: 14px;
}
.services-carousel .dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
  cursor:pointer;
  transition: .2s ease;
}
.services-carousel .dot.is-active{
  width: 22px;
  background: rgba(255,255,255,.75);
  border-color: rgba(255,255,255,.55);
}

/* Responsive */
@media (max-width: 980px){
  .services-carousel{ --cardW: 300px; }
}
@media (max-width: 720px){
  .services-carousel{ --cardW: 82vw; }
  .services-carousel .carousel-head{
    flex-direction: column;
    align-items: stretch;
  }
  .services-carousel .controls{
    justify-content: flex-start;
  }
}
