.hero-services {
  display: flex;
  width: 100%;
  height: 600px;
  align-items: center;
  gap: 10px;
}

a.hero-services-card {
  position: relative;
  overflow: hidden;
  flex: 1;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 26px;
  gap: 7px;
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
  transition: background-size 0.6s ease,
    background-position 0.6s ease;
}

a.hero-services-card:hover {
  background-size: 115%;
  background-position: center;
}

a.hero-services-card::before {
  background: rgba(0, 0, 0, 0.30);
  position: absolute;
  content: '';
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.hero-services-card>* {
  z-index: 1;
}

.hero-services-card h2 {
  color: #FFF;
  font-size: 33px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.996px;
  text-transform: capitalize;
}

@media (max-width: 1820px) {
  a.hero-services-card {
    background-size: 120%;
  }

  a.hero-services-card:hover {
    background-size: 135%;
  }
}

@media (max-width: 1520px) {

  .hero-services,
  a.hero-services-card {
    height: 500px;
  }
}

@media (max-width: 1260px) {

  .hero-services,
  a.hero-services-card {
    height: 420px;
  }
}

@media (max-width: 1060px) {

  .hero-services,
  a.hero-services-card {
    height: 380px;
  }
}

@media (max-width: 960px) {
  .hero-services {
    flex-direction: column;
  }

  .hero-services{
    height: 640px;
  }
  a.hero-services-card {
    height: 310px;
    width: 100%;
  }
}
@media (max-width: 400px) {
  a.hero-services-card {
    background-size: auto 100%;
  }

  a.hero-services-card:hover {
    background-size: auto 115%;
  }
}
