.services-section {
  padding: 100px 6%;
  background: #fbfcfc;
  border-radius: 30px 20px 0 0;
}

.services-header {
  text-align: center;
  margin-bottom: 40px;
}

.services-header h2 {
  font-size: clamp(30px, 4vw, 44px);
  color: #070707;
  margin-bottom: 10px;
}

.services-header p {
  color: #555;
  font-size: 20px;
}

/* BIG WRAPPER CARD */
.services-wrapper {
  display: grid;
  grid-template-columns: 1fr 3fr; /* wider right side */
  gap: 50px;
  padding: 60px;
  border: 2px solid #ccc;
  border-radius: 28px;
  background: #fff;

  max-width: 1900px;   /* ⬅ much wider */
  width: 100%;         /* ensure full stretch */
  min-height: 650px;
  margin: auto;
}

/* LEFT SIDE */
.services-list h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #0d0d0e;
}

.services-list ul {
  list-style: none;
}

.services-list li {
  font-size: 16px;
  padding: 12px 0;
  color: #333;
  border-bottom: 1px solid #eee;
}

/* RIGHT SIDE SCROLL AREA */
.services-cards {
  height: 420px;
  overflow-y: auto;
  padding-right: 0px;
}

.services-cards::-webkit-scrollbar {
  width: 6px;
}
.services-cards::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* SERVICE CARD */
.service-card {
  position: relative;
  height: 400px; /* increased */
  width: 100%;
  border-radius:8px;
  overflow: hidden;
  margin-bottom: 30px;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY CONTENT */
.overlay-content {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.overlay-content h4 {
  font-size: 20px;
  margin-bottom: 6px;
}

.overlay-content p {
  font-size: 14px;
  line-height: 1.5;
}

/* COLOR OVERLAYS */
.overlay-blue::before,
.overlay-green::before,
.overlay-purple::before,
.overlay-orange::before,
.overlay-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.75;
}

.overlay-blue::before   { background: linear-gradient(135deg,#0a2540,#2564eb75); }
.overlay-green::before  { background: linear-gradient(135deg,#064e3b5b,#10b981); }
.overlay-purple::before { background: linear-gradient(135deg,#4d1d9563,#7c3aed); }
.overlay-orange::before { background: linear-gradient(135deg,#7c2d12,#f97316); }
.overlay-dark::before   { background: linear-gradient(135deg,#020617,#1e293b); }



/* ================= MOBILE CAROUSEL MODE ================= */
@media (max-width: 768px) {

  .services-section {
    padding: 40px 0 32px; /* was probably 80–100px */
  }
  
  /* Kill wrapper constraints on mobile */
  .services-wrapper {
    display: block;
    padding: 0;
    border: none;
    max-width: 100%;
  }

  /* Hide left list */
  .services-list {
    display: none;
  }

  

  .services-cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;

    padding: 0 16px 10px;
    width: 100%;
  }

  .services-cards::-webkit-scrollbar {
    display: none;
  }

  .service-card {
    min-width: 88vw;   /* THIS fixes the narrow card */
    height: 260px;
    scroll-snap-align: center;
    border-radius: 22px;

    opacity: 0;
    transform: translateX(40px);
    transition: transform 0.6s ease, opacity 0.6s ease;
  }

  .service-card.show {
    opacity: 1;
    transform: translateX(0);
  }

  /* Bigger readable text */
  .overlay-content h4 {
    font-size: 20px;
  }

  .overlay-content p {
    font-size: 14px;
  }

  /* Dash pagination */
  
  .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .carousel-indicators .dash {
    width: 16px;
    height: 4px;
    background: #d0d5dd;
    border-radius: 999px;
    transition: all 0.3s ease;
  }

  .carousel-indicators .dash.active {
    width: 28px;
    background: #635bff;
  }
}



  .carousel-indicators {
    margin-top: 6px;
    margin-bottom: 0;
  }
/* Hide dashes on desktop */
@media (min-width: 769px) {
  .carousel-indicators {
    display: none;
  }
}




@media (max-width: 768px) {

  .services-section {
    min-height: auto;
    height: auto;
  }

  .services-wrapper {
    min-height: auto;
    height: auto;
  }

  .services-cards {
    min-height: auto;
    height: auto;
  }

}
