.services-header {
  position: relative;
  min-height: 320px;
  padding: 70px 0;
  background-image: url('../images/features-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.services-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.services-header-inner {
  position: relative;
  z-index: 1;
}

.services-header h1 {
  color: #fff;
  font-size: 42px;
  margin: 15px 0 10px;
}

.back-home {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 8px 14px;
  border-radius: 4px;
}

.back-home:hover,
.back-home:focus {
  color: #fff;
  border-color: #fff;
}

.services-page {
  background: #f6f8fb;
  padding: 50px 0 80px;
}

.filters-box {
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 8px;
  padding: 28px 24px 32px;
  margin-bottom: 25px;
}

.filters-box h2 {
  margin-top: 0;
  font-size: 26px;
}

.service-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-chip {
  border: 1px solid #d7dce5;
  background: #fff;
  color: #1a1f2b;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}

.filter-chip:hover,
.filter-chip:focus {
  border-color: #1ca7d3;
  color: #1ca7d3;
}

.filter-chip.active {
  background: #1ca7d3;
  border-color: #1ca7d3;
  color: #fff;
}

.extra-filters label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4a5467;
}

.extra-filters .form-control {
  height: 42px;
  border-radius: 6px;
}

.extra-filters > [class*="col-"] {
  margin-bottom: 10px;
}

.services-filter-row-gap {
  margin-top: 12px;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

#results-count {
  margin: 0;
  color: #4a5467;
  font-weight: 600;
}

.table-scroll-wrap {
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 8px;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: auto;
  margin-bottom: 20px;
}

.services-table {
  margin-bottom: 0;
  min-width: 1180px;
}

.services-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f7fc;
  color: #1e293b;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
}

.services-table tbody td {
  color: #334155;
  vertical-align: middle;
}

.empty-state {
  background: #fff;
  border: 1px dashed #cad2e1;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  color: #4a5467;
}

@media (max-width: 767px) {
  .services-header {
    min-height: 270px;
    padding: 46px 0;
  }

  .services-header h1 {
    font-size: 30px;
  }

  .filters-box {
    padding: 16px;
  }

  .services-filter-row-gap {
    margin-top: 0;
  }

  .table-scroll-wrap {
    max-height: 440px;
  }
}
