.service-category-container {
  margin-bottom: 250px;
}
.service-category-container .service-category-header {
  margin-bottom: 3.125rem; /* 50px */
}

.service-category-container h2 {
  font-weight: 500;
  text-align: center;
  font-size: 35px;
  margin: 0;
}

.category-card {
  border-radius: 1.875rem; /* 30px */
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease;
  border: 1px solid #d8d8d8;
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.125rem; /* 50px */
  cursor: pointer;
}
.lawyer-category-card {
  border: 1px solid transparent;
  border-radius: 1.25rem; /* 20px */
  height: 260px;
  padding: 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem; /* 20px */
  cursor: pointer;
}

.category-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.75);
}

.category-img {
  height: 90px;
  object-fit: contain;
  object-position: top center;
  display: block;
}

.category-title {
  font-weight: 500;
  font-size: 1.25rem; /* 20px */
  margin: 0;
  color: #1d1d1d;
}
.lawyer-category-card img {
  height: 70px;
  object-fit: contain;
}
.lawyer-category-card h4 {
  font-weight: 500;
  font-size: 1.25rem; /* 20px */
  margin: 0;
  margin-top: 10px;
  color: #1d1d1d;
}
.lawyer-category-card p {
  font-size: 1rem; /* 16px */
  margin: 0;
  color: #727272;
}
.lawyer-category-wrapper {
  margin-inline: auto;
  padding: 0;
}
#nav-lawyer .download-qanun-text {
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  color: #2d2d2d;
  text-align: center;
  margin-block: 2rem 1.25rem;
}
#nav-lawyer .download-qanun-text a {
  color: #317bb5;
  text-decoration: none;
}
#nav-lawyer .download-qanun-text a:hover {
  text-decoration: underline;
}
#nav-lawyer .download-app-buttons img {
  height: 60px;
  object-fit: contain;
}
#nav-lawyer .download-app-buttons a {
  border-radius: 1rem;
}
#nav-lawyer .download-app-buttons a:hover {
  box-shadow: 2px 6px 6px 0px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}
.download-app-buttons a:active {
  box-shadow: 2px 8px 8px 0px rgba(0, 0, 0, 0.15);
  transform: scale(1);
}

.see-all {
  width: 180px; /* 180px */
}

.see-all a {
  height: 50px;
  text-decoration: none;
  color: #484848;
  font-weight: 500;
  font-size: 1.25rem; /* 20px */
  border: 1px solid #bfbfbf;
  padding: 14px 24px;
  border-radius: 50px;
  gap: 1rem;
  transition: all 0.2s ease-in;
}
.see-all a svg {
  margin-right: 10px;
  transition: all 0.2s ease-in;
}
.see-all a:hover {
  background-color: #f1fffe;
  border-color: #138483;
}
.see-all a:hover svg {
  margin-right: 0px;
}

/* category tabs - desktop */
.nav-tabs {
  border: 1px solid #e5e5e5;
  padding: 6px;
  border-radius: 50px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  width: fit-content;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-tabs::-webkit-scrollbar {
  display: none;
}
.nav-tabs .nav-link {
  border: none;
  padding: 8px 16px;
  padding-left: 8px;
  border-radius: 50px;
  color: #3a3a3a;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 52px;
  transition: all 0.2s ease;
}
.nav-tabs .nav-link.active {
  border: none;
  padding: 8px 18px;
  padding-left: 6px;
  border-radius: 50px;
  background-color: #353535;
  color: #d4d4d4;
}
.nav-tabs .nav-link img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-tabs .nav-link.active img {
  width: 44px;
  height: 44px;
  padding: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(19, 132, 131, 0.15);
}
.nav-tabs .nav-link span {
  font-weight: 600;
  font-size: 16px;
}

@media (max-width: 600px) {
  .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    border-radius: 50px;
    overflow: hidden;
    gap: 0;
  }
  .nav-tabs .nav-link {
    flex: 1 1 50%;
    max-width: 50%;
    justify-content: center;
    text-align: center;
    border-radius: 50px;
    margin: 0;
    padding: 10px 0;
    font-size: 15px;
    transition: background 0.2s;
    background: #fff;
    color: #353535;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nav-tabs .nav-link.active {
    background: #353535;
    color: #fff;
    box-shadow: none;
  }
  .nav-tabs .nav-link img {
    width: 28px;
    height: 28px;
  }
}
@media (max-width: 500px) {
  .nav-tabs .nav-link {
    font-size: 13px;
    padding: 8px 0;
    gap: 6px;
  }
  .nav-tabs .nav-link img {
    width: 22px;
    height: 22px;
  }
}
/* responsive */
@media (min-width: 1200px) {
  .col-xl-5 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}
@media (max-width: 576px) {
  .service-category-container {
    margin-bottom: 150px;
  }
  .category-img {
    height: 70px;
  }
  .category-card {
    height: 220px;
    gap: 2rem;
  }
  .service-category-container h2 {
    font-size: 1.5625rem;
  }
  .service-category-container .service-category-header {
    margin-bottom: 2rem; /* 32px */
    flex-direction: column;
    gap: 1.25rem;
  }
  .lawyer-category-card {
    height: 260px;
    padding: 20px 30px;
    gap: 1rem; /* 20px */
  }
  #nav-lawyer .download-app-buttons a img {
    height: auto;
  }
  .see-all {
    width: 160px;
  }
  .see-all a {
    font-size: 1rem;
  }
  .see-all a svg {
    margin-right: 0px;
    height: 1rem;
  }
  .nav-tabs {
    width: 100%;
  }
}
@media (max-width: 500px) {
  .nav-tabs .nav-link,
  .nav-tabs .nav-link.active {
    padding: 4px 6px;
    min-height: 36px;
    font-size: 13px;
  }
  .nav-tabs .nav-link span {
    font-size: 13px;
  }
  .nav-tabs .nav-link img {
    width: 26px;
    height: 26px;
  }
  .nav-tabs .nav-link.active img {
    width: 30px;
    height: 30px;
    padding: 1px;
  }
}
@media (max-width: 400px) {
  .nav-tabs {
    gap: 4px !important;
  }
  .nav-tabs .nav-link {
    padding-right: 0.5rem;
    gap: 0.5rem !important;
  }
  .nav-tabs .nav-link.active {
    padding-right: 0.5rem;
  }
  .nav-tabs .nav-link img {
    width: 35px;
    height: 35px;
  }
}
