.services-section {
  background-color: #eaebea;
  width: calc(100% - 60px);
  min-height: 700px;
  padding-top: 140px;
  padding-bottom: 140px;
  border-radius: 30px;
  margin-top: 0;
  margin-right: auto;
  margin-bottom: 30px;  /* 👈 this creates the space after the section */
  margin-left: auto;  
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.2s ease;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header layout */
.services-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

/* Title */
.services-header-inner h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #1C1C1E;
  transition: all 0.2s ease;
}

/* Button */
.section-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1C1C1E;
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid #1C1C1E;
  border-radius: 30px;
  transition: all 0.1s ease;
  white-space: nowrap;
}

.section-link:hover {
  background-color: #6EC7AE;
  color: #1C1C1E;
  box-shadow: 0 0 10px rgba(110, 199, 174, 0.3);
  border-color: #6EC7AE;
}

.section-link:active {
  transform: scale(0.97);
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1430px) {
  .services-container{
    max-width: 591px;
  }
}

@media (max-width: 800px) {
  .services-section {
    margin-bottom: 15px;
  }
  .services-container{
    max-width: 288px;
  }
  .services-header-inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .services-header-inner h2 {
  font-size: 28px;
  }
  .section-link {
  font-size: 16px;
  }
  .services-section{
    padding: 40px 20px;
    width: calc(100% - 30px);
  }
}

.service-card {
  min-width: 288px;
  min-height: fit-content;
  background: #f7f8f9;
  border-radius: 22px;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.02);
}

.service-icon {
  width: auto;
  height: 65px;
  object-fit: contain;
  margin-right: auto;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 5px;
}

/* Card Title */
.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1C1C1E;
  margin: 0;
}

/* Card Description */
.service-card p {
  font-family: 'Geologica', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #4A4A4A;
  line-height: normal;
  margin: 0;
  width: 248px;
}

.service-btn {
  width: fit-content;
  background: #e5e7e7;
  color: #1c1c1e;
  padding: 12px 17px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-variation-settings: "wght" 600;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease;
  margin-top: auto;
  margin-right: auto;/* text left, arrow right */
  margin-top: 5px;
}

.service-btn:hover {
  background-color: #6EC7AE;
  color: #1C1C1E;
  box-shadow: 0 0 10px rgba(110, 199, 174, 0.3);
  transform: scale(1.02);
  border-radius: 20px;
}

.service-btn:hover .service-btn-icon {
  filter: invert(1);
}

.service-btn:active {
  transform: scale(0.98);
}



.service-card, .services-header-inner{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
}
.service-card.lazyloaded, .services-header-inner.lazyloaded {
  opacity: 1;
  transform: translateY(0);
}