/* ==========================================================================
   Services Page Specific Styles
   ========================================================================== */

/* 1. Filter Tabs */
.services-filter-section {
  background-color: var(--color-white);
  padding: 48px 0 0 0;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-btn {
  background-color: transparent;
  color: var(--color-text-muted);
  border: 2px solid var(--color-border-light);
  padding: 0 16px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 24.6px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.filter-btn:hover {
  border-color: var(--color-primary-red);
  color: var(--color-primary-red);
}

.filter-btn.active {
  background-color: var(--color-primary-red);
  color: var(--color-white);
  border-color: var(--color-primary-red);
}

/* 2. Services List */
.services-list-section {
  background-color: var(--color-white);
  padding-bottom: 80px;
}

.service-category {
  margin-bottom: 80px;
}

/* Divider between categories (not after the last one) */
.service-category:not(:last-child)::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-border-light);
  margin-top: 80px;
}

.service-category h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 39.1px;
  color: var(--color-text-main);
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 24px;
}

/* Card grid: 5 columns */
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

/* Single service card */
.service-list-card {
  background-color: #F4F4F4; /* 更轻的浅灰 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); /* 极淡阴影 */
  padding: 16px;
  min-height: 186px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-list-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); /* 阴影加深 */
}

.service-list-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 39.1px;
  color: var(--color-primary-red);
  margin-top: 0;
  margin-bottom: 8px;
}

.service-list-card p {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: var(--color-text-muted);
  margin-top: 0;
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .services-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-category {
    margin-bottom: 48px;
  }
  .service-category:not(:last-child)::after {
    margin-top: 48px;
  }
}

/* Hide divider after the last VISIBLE category (handles filter state) */
.service-category.is-last-visible::after {
  display: none;
}