.services {
  padding-top: 0 !important;
  margin-bottom: -5rem;
}
.services-mobile {
  display: none;
}
.services-title {
  margin-bottom: 1rem;
}
.services-description {
  width: 80%;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 3rem;
}
.service-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  background: #5555;
  padding: 50px;
  width: 100%;
  margin-bottom: 5rem;
  border-radius: 1rem;
  transition: transform 1s, box-shadow 1s;
}
.service-group:hover {
  transform: scale(1.05);
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}
.service {
  text-align: center;
  border: 1px solid transparent;
  transition: var(--transition);
}

.service__image {
  opacity: 0.7;
}
.service__image img {
  border-radius: 7px;
}
.service__info {
  padding: 5rem;
  text-align: start;
  position: relative;
}
.service__info::before {
  content: "";
  position: absolute;
  left: 45px; /* Adjust to your preferred positioning */
  top: 80px; /* Adjust to your preferred positioning */
  bottom: 0;
  height: 31%; /* Border height is 100% of the container */
  width: 1px; /* Adjust the width of the border */
  background-color: #f4d956; /* Adjust the color of the border */
}

.service__info p {
  margin: 1.2rem 0 2rem;
  font-size: 0.9rem;
}

.background-services {
  position: relative;
  background-image: url("../assets/images/bg-services.webp"); /* Replace 'your-image-url.webp' with the URL of your background image */
  background-size: 100% 100%;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 650px;
  margin-bottom: 2rem;
}
@media only screen and (max-width: 600px) {
  /* Adjustments for smaller screens */
  .background-services {
    background-size: cover;
  }
}

.background-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.background-services::after {
  content: "";
  position: absolute;
  top: 65%;
  left: 0;
  right: 0;
  padding: 8rem;
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* Adjust the alpha (last) value to control the overlay's transparency */
  transform: translateY(-50%); /* Center vertically */
}

.services-content {
  position: relative;
  z-index: 1;
  text-align: start;
  padding: 20px; /* Add padding as needed */
}

.services-title,
.services-description {
  color: #fff;
}
.services-title {
  margin-top: 230px;
}
.see-more-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
}

@media screen and (max-width: 600px) {
  .service__info {
    padding: 0;
    text-align: center;
  }
  .service__info::before {
    display: none;
  }
  .background-services::after {
    top: 58%;
    padding: 15rem 0;
  }
  .services-title {
    margin-top: 170px;
  }
}

@media screen and (max-width: 1024px) {
  .service-group {
    grid-template-columns: repeat(1, 1fr);
    padding: 1rem;
  }
  .service__info::before {
    height: 31%;
  }
  .services-desktop {
    display: none;
  }
  .services-mobile {
    display: block;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1880px) {
  .service__info {
    padding: 1rem;
  }
  .service__info::before {
    left: -8px;
    top: 20px;
    height: 50%;
  }
}
