.mainServices {
  position: relative;
  margin: -150px -200px 80px;
}
.mainServices .service {
  border-radius: 10px;
  position: relative;
  z-index: 1;
  min-height: 230px;
  background: #fff;
  display: block;
  padding: 35px 0 100px;
  height: 100%;
}
.mainServices .service .iconBox {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  right: 20px;
  top: -20px;
  width: 69px;
  height: 69px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 6px 21px rgba(0, 0, 0, 0.16);
  position: absolute;
}
.mainServices .service .iconBox .icon {
  background: var(--color4);
  display: block;
  width: 40px;
  height: 40px;
}
.mainServices .service .imgArea {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  transform: translateY(-100%);
  height: 100px;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  z-index: -1;
  transition: 0.3s ease all;
  animation-direction: reverse;
}
.mainServices .service .imgArea .type {
  position: absolute;
  bottom: 0;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.04em;
  color: #fff;
  z-index: 2;
  left: 0;
  right: 0;
  padding: 20px 25px;
  opacity: 0;
  transition: 0.3s ease all;
}
.mainServices .service .imgArea:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #000;
  z-index: 2;
  opacity: 0;
  transition: 0.3s ease al;
}
.mainServices .service .imgArea:after {
  content: "";
  position: absolute;
  right: 100px;
  bottom: 20px;
  -webkit-mask: url(../../img/svg/arrow.svg);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  width: 16px;
  height: 14px;
  background: #00a12f;
  z-index: 2;
  transform: rotate(180deg);
  opacity: 0;
  transition: 0.3s ease all;
}
.mainServices .service .imgArea img {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.mainServices .service .topContent {
  padding: 0 25px 20px;
  position: relative;
}
.mainServices .service .topContent:before {
  opacity: 0;
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #00a12f;
  border-radius: 3px;
}
.mainServices .service .topContent .title {
  transition: 0.3s ease all;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 30px;
  color: #28303e;
}
.mainServices .service .topContent .description {
  transition: 0.3s ease all;
  font-size: 14px;
  letter-spacing: -0.04em;
  line-height: 18px;
  color: var(--color4);
}
.mainServices .service .bottomDescription {
  overflow: hidden;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.04em;
  line-height: 25px;
  color: #fff;
  position: absolute;
  background: #00a12f;
  padding: 40px 25px 20px;
  text-align: center;
  top: 100%;
  left: 0;
  transform: translateY(-100%);
  right: 0;
  border-radius: 0 0 10px 10px;
  z-index: -2;
  transition: 0.2s ease all;
  opacity: 0;
}
.mainServices .service:hover {
  z-index: 10;
}
.mainServices .service:hover .bottomDescription {
  transform: translateY(0%);
  top: 100%;
  transition: 0.3s 0.4s ease all;
  opacity: 1;
}
.mainServices .service:hover .imgArea {
  animation: 0.5s forwards serviceImageResize;
  border-radius: 10px;
}
.mainServices .service:hover .imgArea .type {
  opacity: 1;
}
.mainServices .service:hover .imgArea:before {
  opacity: 0.5;
}
.mainServices .service:hover .imgArea:after {
  opacity: 1;
  right: 20px;
}
.mainServices .service:hover .title, .mainServices .service:hover .description {
  color: #fff;
}
.mainServices .service:hover .iconBox {
  background: #00a12f;
  box-shadow: 0 6px 21px rgba(0, 0, 0, 0.16);
}
.mainServices .service:hover .iconBox .icon {
  background: #fff;
}
.mainServices .service:hover .topContent:before {
  opacity: 1;
}

@keyframes serviceImageResize {
  0% {
    transform: translateY(-100%);
    height: 100px;
    top: 100%;
  }
  50% {
    transform: translateY(-100%);
    height: 100%;
    top: 100%;
  }
  100% {
    transform: translateY(0%);
    height: 110%;
    top: 0;
  }
}
