.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-section .item_link_block {
  position: relative;
}
.service-section .item_link_block:after {
    content: "";
    position: absolute;
    top: 11%;
    right: 0;
    height: 75%;
    width: 1px;
    background: #aaaaaa;
}
.service-section .item_link_block:last-child:after {
  display: none;
}
.service-thumb {
  position: relative;
  text-align: center;
}

.service-thumb img {
  width: 100% !important;
}

.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: 77px;
    width: 77px;
    background: var(--color-primary);
    text-align: center;
    line-height: 77px;
    position: absolute;
    top: -75px !important;
    /* top: -27px; */
    border-radius: 30% 70% 70% 30% / 50% 50% 50% 50%;
}

.service-section .service-icon-thumb img {
  width: 35px !important;
  height: auto;
  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);*/
  width: 100% !important;
  /*margin-left: 60px;*/
  margin-left: 0 !important;
  text-align: center !important;
}


.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: 320px;
  max-height: 230px;
  left: 0;
  right: 0;
  top: 0;
  margin: auto;
  transition: .5s;
}
.service-text h4 {
  font-size: 22px;
  transition: all .3s;
}
.service-box:hover .service-text{
  bottom: 0;
}
.service-box:hover .service-text p {
  font-size: 14px !important;
}
.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;
  font-size: 16px !important;
}

/* ===== section title css ===== */
.section-sub-title {
  position: relative;
  display: inline-block;
  margin-bottom: 7px;
}
.service-section {
  padding: 90px 0 !important;
}
.service-text-content p {
  color: #000;
}
.service-section .title_block {
  /*height: 225px;*/
    position: absolute;
    top: 50%;
    left: 0;
    color: #fff;
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 10px;
}
.service-section .title_block h3 {
  color: #fff;
  font-size: 34px;
}
.section-sub-title:not(.left)::before {
  position: absolute;
  content: "";
  height: 2px;
  width: 35px;
  background: var(--color-primary);
  left: 0;
  top: 35%;
  transform: translateY(-50%);
}

.section-sub-title:not(.left)::after {
  position: absolute;
  content: "";
  height: 2px;
  width: 35px;
  background: var(--color-primary);
  left: -12px;
  top: 65%;
  transform: translateY(-50%);
}

.section-sub-title h4 {
  font-size: 24px;
  color: var(--color-primary);
  font-weight: 500;
  position: relative;
  padding: 0 50px 0;
}
.section-sub-title.left h4 {
  padding: 0 50px 0 0;
}

.section-sub-title h4::before {
  position: absolute;
  content: "";
  height: 2px;
  width: 35px;
  background: var(--color-primary);
  right: 0;
  top: 35%;
  transform: translateY(-50%);
}

.section-sub-title h4::after {
  position: absolute;
  content: "";
  height: 2px;
  width: 35px;
  background: var(--color-primary);
  right: -12px;
  top: 65%;
  transform: translateY(-50%);
}

.section-main-title h2 {
  margin-bottom: 40px;
}



@media (max-width: 1500px) {
  .service-section .title_block h3 {
    font-size: 26px;
  }
  .service-text h4 {
    font-size: 20px;
  }
}
@media (max-width: 1440px) {
  .service-section {
    padding: 60px 0 !important;
  }
}
@media (max-width: 1300px) {
  .service-text {
    padding: 25px 0 15px;
  }
  .service-text-content h4 a {
    margin: 10px 0 12px;
  }
  .service-text-content p {
    -webkit-line-clamp: 1;
  }
  .service-section .title_block {
    /*top: 18%;*/
  }
  .service-section .title_block h3 {
    font-size: 24px;
  }
  .service-text h4 {
    font-size: 18px;
  }
}

@media (max-width: 1200px) {
  .service-text {
    padding: 5px 0;
  }
  .service-main-content {
    bottom: 0;
    height: 48px;
  }
  .section-main-title h2 {
    font-size: 40px;
  }
  .roofing-btn a {
    padding: 12px;
    font-size: 16px;
  }
  .service-text h4 {
    font-size: 15px;
  }
}

@media (max-width: 992px) {
  .section-main-title h2 {
    font-size: 38px;
  }
  .service-section .item_link_block:nth-of-type(2):after {
    display: none;
  }
  .service-text h4 {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .service-section {
    padding: 50px 0;
  }
  .section-main-title h2 {
    font-size: 34px;
    line-height: 1.1;
  }
  .section-sub-title h4 {
    font-size: 20px;
  }
  .service-thumb img {
    width: auto !important;
  }
  .service-section .item_link_block:nth-of-type(2):after {
    display: block;
  }
}

@media (max-width: 576px) {
  .section-main-title h2 {
    font-size: 32px;
  }
  .section-sub-title h4 {
    font-size: 18px;
  }
  .service-section .item_link_block:after {
    /*display: none !important;*/
  }
  .service-section .item_link_block:after {
    top: 50%;
    right: 50%;
    height: 100%;
    transform: rotateZ(90deg);
  }
  .service-section .item_link_block:nth-of-type(2):after {
    display: block;
  } 
  .service-section .title_block p {
    width: 80%;
  }
}

@media (max-width: 479px) {
  .section-main-title h2 {
    font-size: 28px;
  }
  .section-sub-title h4 {
    font-size: 18px;
  }
}