#featured-services .services-header {
  text-align: center;
  margin-bottom: 40px;
}

#featured-services .services-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #0C0C0C;
  margin: 0;
}

#featured-services .services-header .highlight {
  color: #08C;
}

#featured-services .service-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  overflow: visible;
}

#featured-services .service-card-link {
  text-decoration: none;
  color: #002633;
  display: block;
  width: 100%;
}

#featured-services .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#featured-services .service-icon {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  z-index: 10;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}


#featured-services .icon-circle img {
  width: 87%;
  height: 100%;
  object-fit: cover;
}

#featured-services .service-title {
  font-size: 15px;
  font-weight: 600;
  color: #002633;
  text-align: center;
  line-height: 1.4;
  padding-top: 0;
  margin-top: 10px;
  width: 100%;
}

/* Grid Layout - Center aligned cards */
#featured-services .services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#featured-services .service-col {
  flex: 0 0 calc(20% - 16px);
  max-width: calc(20% - 16px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  #featured-services .service-col {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
  }
}

@media (max-width: 992px) {
  #featured-services .service-col {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
  }

  #featured-services .service-card {
    height: 200px;
    padding: 15px 10px;
  }

  #featured-services .service-title {
    font-size: 14px;
  }

  #featured-services .icon-circle {
    width: 100px;
    height: 100px;
  }

  #featured-services .service-icon {
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  #featured-services .service-col {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  #featured-services .services-container {
    gap: 15px;
  }

  #featured-services .service-card {
    height: 200px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #featured-services .service-icon {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #featured-services .icon-circle img {
  width: 80%;
  height: 90%;
  object-fit: cover;
  margin-top: 8px;
}

  #featured-services .service-title {
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
    width: 100%;
  }

  #featured-services .services-header h2 {
    font-size: 22px;
  }
}

@media (max-width: 576px) {
  #featured-services .service-col {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }

  #featured-services .services-container {
    gap: 12px;
    padding: 0 10px;
  }

  #featured-services .service-card {
    height: 150px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }


  #featured-services .service-icon {
    margin-bottom: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  #featured-services .service-title {
    font-size: 14px;
    text-align: center;
    top: 20px;
    width: 100%;
    display: block;
    position: relative;
    z-index: 2;
  }

  #featured-services .services-header h2 {
    font-size: 20px;
  }
}

@media (max-width: 400px) {
  #featured-services .service-card {
    height: 180px;
    padding: 15px 8px;
  }

  #featured-services .icon-circle {
    width: 80px;
    height: 80px;
  }

  #featured-services .service-icon {
    margin-bottom: 8px;
  }

  #featured-services .service-title {
    font-size: 12px;
    margin-top: 6px;
  }
}