.values {
  padding: 0 30px;
  margin: 200px 0 50px 0;
  position: relative;
}
.values .heading {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.values .heading h2 {
  font-size: 4rem;
  margin: 0;
  font-family: var(--font-bold);
  color: #fff;
}
.values .heading p {
  font-size: 18px;
  color: white;
  margin: 0 0 80px 0;
  font-family: var(--font-light);
}
#second {
  color: #fff;
  width: 100%;
  height: auto;
}
#second .sevices-card {
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.elem {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 30vh;
  padding: 30px;
}
#js-target {
  width: 100%;
  height: 1px;
  background-color: #333;
}
#second .elem .service-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 50%;
  font-family: var(--font-bold);
}
#second .elem .service-heading span {
  color: #717070;
  font-family: var(--font-light);
}
.elem .service-heading h2 {
  text-transform: uppercase;
  font-size: 2.5rem;
  width: 50%;
  color: #fff;
  font-family: var(--font-bold);
}
.elem p {
  width: 30%;
  justify-self: end;
  color: #717070;
  font-family: var(--font-light);
  letter-spacing: 1px;
}
.elem:hover #minicircle {
  display: none;
  /* align-items: center; */
  vertical-align: center;
  text-align: center;
}
.elemlast {
  border-bottom: 1px solid #888;
}
.elem img {
  opacity: 0;
  pointer-events: none;
  height: 80%;
  z-index: 999;
  position: absolute;
  object-fit: contain;
  transform: translate(-50%, -50%);
}
@media (max-width: 1279px) {
}
@media (max-width: 1023px) {
  .values .heading h2 {
    font-size: 3rem;
  }
  .values .heading p {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .values .heading h2 {
    font-size: 2.5rem;
  }
  .elem img {
    display: none;
  }
  .elem .service-heading h2 {
    font-size: 2rem;
  }
  .elem p {
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  .elem {
    flex-direction: column;
    align-items: start;
    padding: 25px 10px;
    height: fit-content;
  }
  .elem .service-heading {
    font-size: 2rem;
    margin: 0 0 20px 0;
  }
  #second .elem .service-heading {
    width: 100%;
  }
  .elem .service-heading h2 {
    width: 100%;
  }
  .elem p {
    font-size: 14px;
    width: 100%;
  }
  #second .elem .service-heading span {
    font-size: 14px;
  }
}
@media (max-width: 479px) {
  .values {
    padding: 0 12px;
  }
  .elem {
    flex-direction: column;
    align-items: start;
    padding: 25px 10px;
    height: fit-content;
  }
  .elem .service-heading span {
    font-size: 14px;
  }
  .elem .service-heading h2 {
    font-size: 1.6rem;
    margin: 0 0 10px 0;
  }
  .elem p {
    font-size: 14px;
    width: 100%;
  }
}
