.services-header {
  margin-bottom: 40px;
}

.services-title {
  font-weight: 500;
}

.services-description {
  max-width: 35rem;
}

.balls__wrapper {
  display: flex;
  align-items: center;
  gap: 32px;
}
.ball {
  width: 20px;
  transition: all 0.3s ease;
}

.ball:hover {
  transform: rotate3d(1, 1, 1, -45deg);
  opacity: 1;
}

.services-title__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media screen and (max-width: 500px) {
  .ball {
    width: 15px;
  }

  .balls__wrapper {
    gap: 20px;
  }
}
@media screen and (max-width: 400px) {
  .ball {
    width: 13px;
  }

  .balls__wrapper {
    gap: 14px;
  }

  .services-title__wrapper {
    align-items: baseline;
  }
}
@media screen and (max-width: 342px) {
  .balls__wrapper {
    gap: 10px;
  }

  .ball {
    width: 10px;
  }
}
@media screen and (max-width: 300px) {
  .ball {
    width: 8px;
  }

  .balls__wrapper {
    gap: 8px;
  }
}
/* @media screen and (max-width: 375px) {
  .services-title__wrapper {
    flex-direction: column;
    align-items: baseline;
    row-gap: 20px;
  }
  .balls__wrapper {
    margin-left: auto;
  }
} */
.services-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 20px;
  overflow-x: auto;
  /* mask-image: linear-gradient(to left, transparent, black 60%); */
}

.services-list::-webkit-scrollbar {
  display: none;
}
@moz-document url-prefix() {
  .services-list {
    scrollbar-width: none;
  }
}

.service-item {
  flex: 1 1 calc(25% - 20px);
  max-width: calc(25% - 20px);
  background-color: #f8f9fa;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease;
  height: 375px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  position: relative;
}
@media screen and (max-width: 960px) {
  .service-item {
    min-width: 255px;
  }
}

/* .service-item:hover {
  transform: translateY(-10px);
} */

.service-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.service-content {
  padding: 20px;
  color: #fff;
  z-index: 1;
  width: 90%;
}

.service-title {
  font-size: 23px;
  font-weight: 400;
  margin-bottom: 10px;
  position: relative;
  width: 100%;
}

.service-title::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: white;
  bottom: -10px;
  left: 0;
  max-width: 15rem;
}

.service-description {
  font-size: 16px;
  margin-bottom: 15px;
}
.mask_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 0;
}
.service-link {
  font-size: 14px;
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.service-link:hover {
  text-decoration: underline;
}

.pagination-dots {
  margin-top: 20px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
}

.dot.active {
  background-color: #2c3e50;
}

@media (min-width: 1800px) {
  .service-item {
    height: 480px;
  }
}

@media (max-width: 1200px) {
  .service-item {
    /* flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px); */
    height: 300px;
  }
}

@media (max-width: 870px) {
  .service-item {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
    height: 380px;
  }
}

@media (max-width: 619px) {
  .service-item {
    flex: 1 1 100%;
    max-width: 100%;
    height: 430px;
  }

  /* .services-title {
    font-size: 28px;
  } */

  .services-description {
    font-size: 16px;
  }
}

@media screen and (min-width: 1200px) {
  .service-title {
    max-width: 200px;
  }
}

@media screen and (max-width: 1124px) {
  .service-title {
    font-size: 22px;
  }
}
