/*
color1:#171c1e;
color2:#ef7c00;
*/

#services {
  position: relative;
  top: -80px;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
}

.service-item {
  padding: 2.4rem 2rem;
  width: 23%;
  background: var(--color-surface, #fff);
  justify-content: flex-start;
  border-radius: var(--radius-lg, 1.6rem);
  border: 0.1rem solid rgba(23, 28, 30, 0.06);
  box-shadow: var(--shadow-card, 0 0.4rem 2.4rem rgba(23, 28, 30, 0.08));
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.service-item:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.2rem 3.2rem rgba(23, 28, 30, 0.12),
    0 0 0 0.1rem rgba(239, 124, 0, 0.2);
  border-color: rgba(239, 124, 0, 0.35);
}

.service-item img {
  /* width: 100%; */
  height: 15rem;
  max-width: 100%;
  margin-bottom: 1;
}

.service-item-head {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-heading, inherit);
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  min-height: 6rem;
  border-bottom: 0.25rem solid var(--color-accent, #ef7c00);
  width: 100%;
}

.service-item-body {
  font-size: 1.7rem;
  line-height: 2.5rem;
  text-align: justify;
}

#service-title {
  position: absolute;
  top: -5rem;
  right: 0;
  height: 5rem;
  padding: 0 1.6rem;
  border-left: 0.8rem solid var(--color-dark, #171c1e);
  background: linear-gradient(
    135deg,
    var(--color-accent, #ef7c00),
    #f59e38
  );
  color: var(--color-dark, #171c1e);
  font-family: var(--font-heading, inherit);
  border-radius: 0 0 0 var(--radius-md, 1.2rem);
  box-shadow: 0 0.4rem 1.2rem rgba(239, 124, 0, 0.35);
}


@media screen and (max-width: 1200px) {
  .service-item {
    width: 24%;
  }

  .service-item-body {
    font-size: 1.8rem;
    line-height: 2.6rem;
  }
}

@media screen and (max-width: 992px) {
  .service-item {
    width: 48%;
    margin-bottom: 3rem;
  }

  .service-item-body {
    font-size: 1.9rem;
  }

}

@media screen and (max-width: 576px) {
  .service-item {
    width: 100%;
  }

  .service-item-head {
    font-size: 1.4rem;
  }

  .service-item-body {
    font-size: 2rem;
    line-height: 2.8rem;
  }
}