#services-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem 2rem 1rem;
}

#services-title h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

#services-title p {
  font-size: 1.35rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-dark);
}

@media (max-width: 700px) {
  #services-title {
    padding: 2rem 0.5rem 1.5rem 0.5rem;
  }
  #services-title h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  #services-title p {
    font-size: 1rem;
    max-width: 100%;
  }
}


#services-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Row layout for desktop */
.first.row,
.second.row,
.third.row {
  display: flex;
  align-items: stretch;
  gap: 3rem;
  width: 100%;
}

/* Image styling */
.first.image,
.second.image,
.third.image {
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.first.image img,
.second.image img,
.third.image img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  object-fit: cover;
  background: #f6f8fa;
}

/* List styling */
.first.list,
.second.list,
.third.list {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.09);
  padding: 2.5rem 2.5rem 2.5rem 2.5rem;
}

.first.list h2,
.second.list h2,
.third.list h2 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: var(--eco-green);
  font-family: 'HeadingFont', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 1px;
}

.first.list ul,
.second.list ul,
.third.list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.first.list ul li,
.second.list ul li,
.third.list ul li {
  display: flex;
  align-items: center;
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
}

.first.list ul li i,
.second.list ul li i,
.third.list ul li i {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.6rem; /* Larger spanner icon */
  color: var(--eco-green);
  margin-right: 1rem;
  min-width: 1.6rem;
}

/* Enlarge section icons */
.first.list > i.fas.fa-tools {
  font-size: 3.2rem;
  color: var(--eco-green);
  margin-bottom: 0.5rem;
}

.second.list > i.fas.fa-gears {
  font-size: 3.2rem;
  color: var(--eco-green);
  margin-bottom: 0.5rem;
}

.third.list > i.fa-solid.fa-anchor-circle-check {
  font-size: 3.2rem;
  color: var(--eco-green);
  margin-bottom: 0.5rem;
}

/* Responsive layout for mobile */
@media (max-width: 900px) {
  #services-grid {
    padding: 1.5rem 0.5rem;
    gap: 2rem;
  }
  .first.row,
  .second.row,
  .third.row {
    flex-direction: column;
    gap: 1.2rem;
  }
  .first.image,
  .second.image,
  .third.image {
    max-width: 100%;
    margin-bottom: 0.5rem;
  }
  .first.list,
  .second.list,
  .third.list {
    padding: 1.2rem 0.7rem;
    margin-bottom: 1.2rem;
  }
  .first.list h2,
  .second.list h2,
  .third.list h2 {
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
  }
  .first.list ul li,
  .second.list ul li,
  .third.list ul li {
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
  }
  .first.list ul li i,
  .second.list ul li i,
  .third.list ul li i {
    font-size: 1.3rem;
    min-width: 1.3rem;
  }
  .first.list > i.fas.fa-tools,
  .second.list > i.fas.fa-gears,
  .third.list > i.mage-zap-circle-fill {
    font-size: 2.2rem;
  }
}

/* Second row: list left, image right on desktop */
/* Desktop: second row is reversed */
.second.row {
  flex-direction: row-reverse;
}

/* Mobile: all rows are column, so order is image then list */
@media (max-width: 900px) {
  .first.row,
  .second.row,
  .third.row {
    flex-direction: column;
  }
  /* Remove any row-reverse on mobile */
  .second.row {
    flex-direction: column;
  }
}