.service-content-top .service-head-content {
  flex: 1;
}
.left-heading {
  padding-right: 200px;
}
.service-listing-wrapper {
  display: flex;
  flex-wrap: wrap;
  row-gap: 20px;
  margin-bottom: 50px;
}
.service-listing-wrapper li {
  width: calc(25% - 20px);
  margin: 0 10px;
}
.service-listing-wrapper li a {
  display: block;
  padding: 55px;
  background-color: #fff0e6;
  height: 100%;
  position: relative;
  z-index: 1;
}
.service-listing-wrapper li a :is(.icon, [class*="heading_"]) {
  margin-bottom: 20px;
}
.service-listing-wrapper li a:before{
  content: "";
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height:100%;
  background: var(--dark-blue);
  opacity: 0;
  z-index: -1;
  transition: all 0.5s linear;
  -webkit-transition: all 0.5s linear;
  -moz-transition: all 0.5s linear;
}
.service-listing-wrapper li a:hover:before{
  opacity: 1;
}
.service-listing-wrapper li a:hover :is( p , [class*="heading_"] , .more){
  color: var(--white);
}
.service-listing-wrapper li a:hover .more:after{
  filter: brightness( 0) invert(1);
}
.service-listing-wrapper li a p {
  margin-bottom: 30px;
  display: block;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  height: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-listing-wrapper li .heading_sm {
  position: relative;
  min-height: 58px;
}
.service-listing-wrapper li .heading_sm:before {
  position: absolute;
  content: "";
  left: -55px;
  width: 4px;
  min-height: 47px;
  top: 0;
  bottom: 0;
  height: 100%;
  background: #fa6900;
}
.service-listing-wrapper li a .more {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-blue);
  position: relative;
}
.service-listing-wrapper li a .more:after {
  background: url(../images/svg/more-arrow.svg) no-repeat;
  content: "";
  position: relative;
  margin-left: 10px;
  width: 20px;
  display: inline-block;
  height: 8px;
}
.servicepg .hm_family_law {
  margin-bottom: 200px;
}
.service-listing-wrapper li a .hover-icon{
  display: none;
}

.service-listing-wrapper li a:hover .hover-icon{
  display: block;
}
.service-listing-wrapper li a:hover .main-icon{
  display: none;
}
.service-listing-wrapper li a .icon{
  height: 90px;
}

/* START MEDIA  */

@media screen and (max-width: 1599.98px){
  .servicepg .hm_family_law {
    margin-bottom: 100px;
}
}
@media screen and (max-width: 1439.98px){
  .service-listing-wrapper li a{
    padding: 20px;
  }
  .service-listing-wrapper li .heading_sm:before{
    left: -20px;
  }
}
@media screen and (max-width: 1199.98px) {
  .left-heading {
      padding-right: 90px;
  }
  .service-listing-wrapper li {
    width: calc(25% - 10px);
    margin: 0 5px;
  }
  .service-listing-wrapper li a p{
    height: 100px;
  }
  .service-listing-wrapper li a .icon{
    min-height: 60px;
    margin-bottom: 15px;
    height: 60px;
  }
  .service-listing-wrapper li a .icon > img{
    max-width: 55px;
  }
  .service-listing-wrapper li .heading_sm{
    font-size: 18px;
  }
  .servicepg .hm_family_law {
      margin-bottom: 40px;
  }
}

@media screen and (max-width: 991.98px){
  .service-listing-wrapper li {
    width: calc(50% - 10px);
  }
  .left-heading {
      padding-right: 0;
  }
  .service-listing-wrapper li .heading_sm {
      min-height: 42px;
  }
  .service-listing-wrapper{
    row-gap: 10px;
  }
  
}

@media screen and (max-width: 575.98px){
  .service-listing-wrapper li .heading_sm {
      min-height: auto;
  }
  .service-listing-wrapper li {
    width: 100%;
  }
}