/* ================= SERVICES CAROUSEL ================= */
.services {
  position: relative;
  padding: 100px 0;
  background: #f8f9fa;
  overflow: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 32px;
  color: #2c3e50;
}

/* Carousel viewport */
.carousel-container {
  position: relative;
  overflow: hidden;
}

/* The sliding track (transform-driven) */
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.7s ease;
  width: max-content;      /* shrink to fit all cards */
  margin: 0;               /* remove padding */
  will-change: transform;
}

/* Individual service cards */
.service-card {
  flex: 0 0 calc(25% - 20px); /* 4 cards per view */
  box-sizing: border-box;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 250px;
  max-width: 350px;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Icon */
.service-icon {
  background: #2c3e50;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon i {
  font-size: 36px;
  color: #ff9933;
}

/* Content */
.service-content {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #2c3e50;
}
.service-content p {
  font-size: 14px;
  color: #555;
}
.service-btn {
  align-self: center;
  margin-top: auto;
  padding: 10px 20px;
  background-color: #ff9933;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.service-btn:hover {
  background-color: #e67e22;
}

/* Prev/Next buttons */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  z-index: 10;
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-50%) scale(1.1);
}

/* Responsive breakpoints */
@media (max-width: 992px) {
  .service-card {
    flex: 0 0 calc(50% - 20px); /* 2 cards */
  }
}
@media (max-width: 576px) {
  .service-card {
    flex: 0 0 100%; /* 1 card */
  }
}
