.service-boxes-container {
  position: relative;
  width: 100%;
  min-height: 500px;
  overflow: hidden;
}

.service-boxes-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}

.service-boxes-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* For smooth transition effect */
.service-boxes-background.transitioning {
  opacity: 1;
}

.service-boxes-cards {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 40px 20px;
}

.service-card {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.service-card-image {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-card-image img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.service-card-text {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
}

.service-boxes-bottom-text {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 2;
  color: #fff;
  font-size: 14px;
  font-style: italic;
  padding: 10px 15px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .service-boxes-cards {
    flex-direction: column;
    padding: 20px 10px;
  }

  .service-card {
    max-width: 100%;
    width: 100%;
  }

  .service-boxes-bottom-text {
    position: relative;
    bottom: auto;
    right: auto;
    text-align: center;
    margin-top: 20px;
  }
}
