.services-section {
  position: relative;
  text-align: center;
  margin-top: 20px;
  color: white;
}

#slide-services-section {
  margin: 0 20px 0;
  max-width: 1440px;
}

#slide-services-section {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20%;
  z-index: 2;
}

#slide-services-section .swiper-pagination {
  position: static;
  z-index: 99;
  margin-top: 12px;
}

#slide-services-section .swiper-button-next,
#slide-services-section .swiper-button-prev
 {
  background-color: #fff;
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 40px;
  align-items: center;
  justify-content: center;
  display: none;
}

#slide-services-section .swiper-button-next::after,
#slide-services-section .swiper-button-prev::after {
  content: "";
}

.services-background img {
  width: 100%;
  height: 80vh;
  display: block;
  filter: brightness(50%);
  margin-bottom: 10%;
  object-fit: cover;
}

.services-section .section-title {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  min-height: 400px;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s;
  max-height: 400px;
  min-height: 400px;
}

.card-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover .card-hover {
  opacity: 1;
}

.card-hover p {
  font-size: 1rem;
  text-align: center;
  margin: 0;
  padding: 0 10px;
}


.card-title {
  background-color: #3a3a3a;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: bold;
  position: relative;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  #slide-services-section {
    margin: 0 auto 0;
  }

  #slide-services-section .swiper-button-next,
  #slide-services-section .swiper-button-prev {
    display: flex;
  }
}