.service-section {
  padding: 106px 0 90px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.service-section .section-main-title h2 {
  color: #ffffff;
}

.service-box {
  overflow: hidden;
  margin-bottom: 30px;
}

.service-thumb {
  position: relative;
}

.service-thumb img {
  width: 100%;
  aspect-ratio: 1;
}

.service-main-content {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  margin: auto;
  background: #ffffff;
  width: 100%;
  max-width: 280px;
  height: 54px;
  transition: .5s;
}

.service-box:hover .service-main-content {
  left: -50%;
  opacity: 0;
}

.service-icon-thumb {
  display: inline-block;
  height: 57px;
  width: 57px;
  background: var(--color-primary);
  text-align: center;
  line-height: 57px;
  position: absolute;
  top: -27px;
}

.service-icon-thumb img {
  width: 36px;
  vertical-align: middle;
}

.service-main-title {
  display: inline-block; 
  width: 100%;
  padding: 0 10px;
  text-align: center;
}
.service-icon-thumb + .service-main-title {
  width: calc(100% - 80px);
  margin-left: 60px;
  text-align: left;
}


.service-main-title h3 {
  font-size: 18px;
  line-height: 54px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-text {
  position: absolute;
  bottom: -300%;
  text-align: center;
  background-color: #ffffff;
  border: 1px dashed var(--color-primary);
  padding: 30px 0px 20px;
  max-width: 290px;
  max-height: 230px;
  left: 0;
  right: 0;
  top: 0;
  margin: auto;
  transition: .5s;
}

.service-box:hover .service-text{
  bottom: 0;
}

.sevice-text-icon i {
  display: inline-block;
  width: 54px;
  height: 54px;
  line-height: 54px;
  font-size: 22px;
  color: var(--color-primary);
  text-align: center;
  border-radius: 50%;
  background: #f1f1f1;
  transform: rotate(-45deg);
}
.sevice-text-icon i:hover {
  color: #ffffff;
  background-color: var(--color-primary);
}

.service-text-content {
  padding: 0 10px;
}

.service-text-content h4 a {
  display: block;
  margin: 12px 0 15px;
  font-family: var(--title-font-family);
  font-size: 18px;
  color: var(--title-text-color);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: .5s;
}

.service-text-content h4 a:hover{
  color: var(--color-primary);
}

.service-text-content p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


@media (min-width: 1200px) and (max-width: 1279px) {
  .service-text {
    padding: 25px 0 15px;
  }
  .service-text-content h4 a {
    margin: 10px 0 12px;
  }
  .service-text-content p {
    -webkit-line-clamp: 1;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .service-main-content {
    bottom: 0;
    height: 48px;
  }
}