/* Home – dynamic services from menu */
.home-services-section {
  position: relative;
  padding: 72px 0 78px;
  background: linear-gradient(180deg, #f4f9fa 0%, #ffffff 55%, #f8fbfc 100%);
  overflow: hidden;
}

.home-services-section::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(13, 64, 69, 0.06);
  pointer-events: none;
}

.home-services-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(10, 25, 47, 0.04);
  pointer-events: none;
}

.home-services-section .auto-container {
  position: relative;
  z-index: 2;
}

.home-services-head {
  max-width: 640px;
  margin: 0 auto 42px;
  text-align: center;
}

.home-services-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  color: var(--theme-color1);
  background: rgba(10, 25, 47, 0.06);
  border: 1px solid rgba(10, 25, 47, 0.08);
}

.home-services-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0d4045;
}

.home-services-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.22;
  font-weight: 700;
  color: var(--theme-color1);
}

.home-services-intro,
.home-services-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(10, 25, 47, 0.72) !important;
}

.home-services-grid {
  --bs-gutter-x: 24px;
  --bs-gutter-y: 24px;
}

.home-service-card {
  display: block;
  height: 100%;
  padding: 26px 24px 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(10, 25, 47, 0.08);
  box-shadow: 0 8px 28px rgba(10, 25, 47, 0.05);
  text-decoration: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.home-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0a192f 0%, #0d4045 55%, #7ee8df 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.home-service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 64, 69, 0.18);
  box-shadow: 0 20px 44px rgba(10, 25, 47, 0.1);
}

.home-service-card:hover::before {
  transform: scaleX(1);
}

.home-service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.home-service-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.08) 0%, rgba(13, 64, 69, 0.14) 100%);
  border: 1px solid rgba(10, 25, 47, 0.06);
  color: var(--theme-color1);
  font-size: 22px;
  line-height: 1;
}

.home-service-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.home-service-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(10, 25, 47, 0.14);
  line-height: 1;
}

.home-service-title {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--theme-color1);
  transition: color 0.25s ease;
}

.home-service-card:hover .home-service-title {
  color: #0d4045;
}

.home-service-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(10, 25, 47, 0.68);
}

.home-service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #0d4045;
}

.home-service-link i {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.home-service-card:hover .home-service-link i {
  transform: translateX(4px);
}

.home-services-foot {
  margin-top: 36px;
  text-align: center;
}

.home-services-foot .button-theme2 .theme-btn {
  background: linear-gradient(135deg, var(--theme-color1) 0%, #0d4045 100%);
  color: #fff;
}

@media (max-width: 991.98px) {
  .home-services-section {
    padding: 58px 0 64px;
  }

  .home-services-head {
    margin-bottom: 32px;
  }
}

@media (max-width: 575.98px) {
  .home-services-section {
    padding: 48px 0 54px;
  }

  .home-service-card {
    padding: 22px 18px 18px;
  }

  .home-service-title {
    font-size: 17px;
  }
}
