/* === service Card Carousel Styles === */

/*
.service-cards-section {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
   padding: 25px 0; 
}*/

.service-cards-section * {
  box-sizing: border-box;
}
/* 
.service-cards-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}*/
/* 
.service-cards-title {
  text-align: center;
  font-size: 45px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333333;
}*/
/*
.service-cards-subtitle {
  text-align: center;
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}*/

.service-cards-carousel {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 16px 80px 24px 80px; /* padding: 80px 80px 60px 80px; */
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-container {
  position: relative;
  overflow: visible;
  border-radius: 12px;
  min-height: 400px;
  width: 100%;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 20px;
  cursor: grab;
  will-change: transform;
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-slide {
  flex: 0 0 auto;
  width: 300px;
  min-width: 300px;
  max-width: 350px;
  min-height: 450px;
  transition: transform 0.3s ease;
}

.carousel-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  left: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 100;
  padding: 0 10px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  backdrop-filter: blur(10px);
  z-index: 101;
}

.carousel-btn:hover {
  background:  var(--bs-primary);
  color: white;
  transform: scale(1.1);
  border-color:  var(--bs-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: scale(0.9);
}

.carousel-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  transform: scale(0.9);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  padding: 0;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(var(--bs-primary-rgb), 0.7);
  transform: scale(1.2);
}

.carousel-dot.active {
  background:  var(--bs-primary);
  transform: scale(1.3);
}

.service-card {
  background: white;
  /* border-radius: 25px; */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: visible;
  position: relative;
  aspect-ratio: 4/5;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

 /*.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  position: relative;
} */

.service-card-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /*border-radius: 25px; */
}

.service-card-image {
  position: relative;
  width: 100%;
  height: 100%;
  /* 60% */
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 2;
}

.hover-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
  overflow: hidden;
  transform: scale(1);
  /*border-radius: 25px;*/
}

.hover-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
}

.service-card-content {
  padding: 0.8rem;
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /*space-between*/
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
  border-radius: 0 0 25px 25px;
}

.service-card-title {
  font-size: 18px;
  font-weight: 600;
 /* color: #333333;*/
  margin-bottom: 0.3rem;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card-description {
 /* color: #666666;*/
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



/* Hover Effects */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .hover-image-overlay {
    opacity: 1;
  }

  .service-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    z-index: 10;
  }

  .service-card:hover .service-card-image img {
    transform: scale(1.1);
  }

  .service-card:hover .service-card-content {
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
  }

  .service-card:hover .service-card-title {
    color:  var(--bs-primary);
  }

  .service-card:hover .service-card-description {
    color: #333333;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .carousel-slide {
    width: 280px;
    min-width: 280px;
  }

  .service-cards-carousel {
    padding: 16px 60px 24px 60px;   
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    width: 280px;
    min-width: 280px;
    min-height: 420px;
  }

  .service-cards-carousel {
    padding: 16px 20px 24px; 
  }

  .service-card-content {
    padding: 1rem;
    height: 35%;
  }

  .service-card-title {
    font-size: 1rem;
  }

  .service-card-description {
    font-size: 0.8rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .service-cards-title {
    font-size: 37px;
  }

  .service-cards-subtitle {
    font-size: 14px;
  }

  .carousel-slide {
    width: 260px;
    min-width: 260px;
    min-height: 400px;
  }

  .service-cards-carousel {
    padding: 16px 15px 24px;
  }

  .service-card-content {
    padding: 1.2rem;
  }
}