.feature-icon {
  width: 70px;
  height: 70px;
  background-color: #f3f6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.feature-icon img {
  width: 70px;
  height: 70px;
}

.feature-item {
  text-align: center;
  padding: 20px 10px;
  transition: all 0.3s ease;
  display: block;
}

.feature-item:hover {
  transform: translateY(-5px);
  cursor: pointer;
}

.feature-item:hover .feature-text {
  color: var(--accent-hover-color);
}

.feature-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-color);
}

.service-card {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: block;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-title {
  background-color: #fff;
  padding: 15px;
  text-align: center;
  font-weight: 600;
  color: var(--accent-color);
}

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

.featured-services-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 30px;
}

.section-padding {
  padding: 20px 0;
}

/* Custom col-xl-1-5 class for feature items (8 in a row at xl breakpoint) */
.col-xl-1-5 {
  position: relative;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 1200px) {
  /* For features - 8 per row */
  .features-row .col-xl-1-5 {
    flex: 0 0 12.5%;
    max-width: 12.5%;
  }

  /* For services - 5 per row */
  .services-row .col-xl-1-5 {
    flex: 0 0 20%;
    max-width: 20%;
  }

  .features-row {
    justify-content: space-between;
  }

  .feature-item {
    padding: 20px 5px;
  }

  .services-row {
    margin-right: -10px;
    margin-left: -10px;
  }

  .services-row > [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* For screens between md and xl, maintain 3 items per row for services */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .features-row .col-xl-1-5 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  /* For services - 5 per row */
  .services-row .col-xl-1-5 {
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }

  .features-row {
    justify-content: center;
  }

  .services-row {
    justify-content: flex-start;
  }

  .service-image {
    height: 180px;
  }
}

/* For mobile screens, 2 items per row */
@media (max-width: 767.98px) {
  .features-row .col-xl-1-5 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  /* For services - 5 per row */
  .services-row .col-xl-1-5 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .features-row,
  .services-row {
    justify-content: center;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
  }

  .feature-icon img {
    width: 30px;
    height: 30px;
  }

  .service-image {
    height: 160px;
  }

  .service-title {
    padding: 10px;
    font-size: 14px;
  }
}
