#services {
  width: 100%;
}

#services .services-flex {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}

#services #service-search {

  display: flex;
  border: 1px solid #ddd;
  border-radius: 25px;
  width: 40%;
}


#services #service-search input[type='text'] {
  padding-top: 0;
  margin-bottom: 0;
  font-family: Cairo;
  padding: .5rem 1rem;
  line-height: 30px;
  font-size: 18px;
  border: none !important;
}

#services #service-search .btn-search {
  outline: none;
  cursor: pointer;
  border: none;
  background-color: transparent;


}

#services .tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 0;
  outline: none;
  text-align: right;
}

#services .tabs li {
  display: inline-block;
  padding: .5rem 1rem;
  background: #fff;
  cursor: pointer;
  margin: 0 .2rem;
  border-radius: 15px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  font-size: 1.1rem;
  font-weight: 400;
  border: 2px solid #ddd;
  font-family: Cairo;
  width: 240px;
  max-width: 240px;
}

#services .tabs li .cat-content {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  column-gap: .5rem;
}

#services .tabs li .cat-content h4 {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
}

#services .tabs li.tab-link img {
  width: 30px;
}

#services .tabs li.current {
  border-color: #7f1f3b;
  color: #7f1f3b;
}

#services .tab-content {
  display: none;
}

#services .tab-content.current {
  display: flex;
}

#services .tab-content {
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: rgb(245, 245, 249);
  height: auto;
  gap: 20px 2%;
  height: auto;
  flex-wrap: wrap;
  margin-top: .5rem;
  justify-content: center;
}


#services .service-card {
  background-color: #fff;
  border-bottom: 4px solid #7f1f3b;
  border-radius: 0.5rem;
  padding: .5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-height: 150px;
  height: 150px;
  width: 18%;
}

#services .service-card:hover {
  box-shadow: 0px 0px 10px 2px rgba(136.34002075195312, 0, 0, 0.42);
}

#services .service-card h4 {
  margin: 0;
  font-family: cairo;
  font-size: 16px;
  font-weight: 600;
}

#services .service-card a {
  font-size: 12px;
  font-weight: 900;
  color: #818181;
  font-family: cairo;
}

#services .service-card a:hover {
  color: #7f1f3b;
}

@media only screen and (max-width: 1024px) {
  #services {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  #services .tabs {
    width: 100%;
  }

  #services .services-flex {
    row-gap: 0.5rem;
    align-items: flex-start;
    justify-content: start;
    width: 100%;
  }

  #services #service-search {
    width: 100%;
  }

  #services .tabs li {
    display: block;
    margin: .5rem 0;
    padding: .4rem 1rem;

  }

  #services #service-contents {
    width: 100%;
  }

  #services .tab-content,
  #services #service-contents {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    height: auto;
  }

  #services .service-card {
    width: 48%;
  }

  #services .tabs li .cat-content {
    justify-content: start;
  }


}

@media only screen and (max-width: 767px) {
  #services .tabs li {
    width: 45%;
    margin: 0;
  height: 55px;
  }

  #services #service-search input[type='text'] {
    font-size: 14px;
  }

}

/* Loader */
#services .loader {
  display: none;
  border: 16px solid #f3f3f3;

  border-top: 16px solid #7f1f3b;

  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  margin: auto;
  margin-top: .5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}