/* FAQ page category filters */
.icv-faq-page {
  --icv-faq-primary: #007dc5;
  --icv-faq-dark: #0b1f33;
  --icv-faq-muted: #5f6f82;
  padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px);
  background: linear-gradient(180deg, #f7fbfe 0%, #ffffff 48%);
}

.icv-faq-page__intro {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.icv-faq-page__intro-title {
  margin: 0 0 10px;
  color: var(--icv-faq-dark);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
}

.icv-faq-page__intro-text {
  margin: 0;
  color: var(--icv-faq-muted);
  font-size: 16px;
  line-height: 1.7;
}

.icv-faq-filters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 auto 40px;
  max-width: 980px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 14px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 125, 197, 0.45) rgba(0, 125, 197, 0.08);
}

.icv-faq-filters::-webkit-scrollbar {
  height: 6px;
}

.icv-faq-filters::-webkit-scrollbar-track {
  background: rgba(0, 125, 197, 0.08);
  border-radius: 999px;
}

.icv-faq-filters::-webkit-scrollbar-thumb {
  background: rgba(0, 125, 197, 0.45);
  border-radius: 999px;
}

.icv-faq-filters__btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(0, 125, 197, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: var(--icv-faq-dark) !important;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icv-faq-filters__btn:hover,
.icv-faq-filters__btn:focus {
  border-color: var(--icv-faq-primary);
  color: var(--icv-faq-primary) !important;
  transform: translateY(-2px);
  box-shadow: none;
}

.icv-faq-filters__btn.is-active {
  background: var(--icv-faq-primary);
  border-color: var(--icv-faq-primary);
  color: #ffffff !important;
  box-shadow: none;
}

.icv-faq-page .icv-faq {
  padding: 0;
  background: transparent;
}

.icv-faq-page .icv-faq__title {
  margin-bottom: 20px;
}

.icv-faq-page__empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--icv-faq-muted);
  background: #ffffff;
  border: 1px dashed rgba(0, 125, 197, 0.25);
  border-radius: 12px;
}

.icv-faq-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.icv-faq-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(0, 125, 197, 0.28);
  border-radius: 6px;
  background: #ffffff;
  color: var(--icv-faq-dark) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
}

.icv-faq-pagination__link:hover,
.icv-faq-pagination__link:focus,
.icv-faq-pagination__link.is-active {
  border-color: var(--icv-faq-primary);
  background: var(--icv-faq-primary);
  color: #ffffff !important;
}

.icv-faq-pagination__link--nav {
  padding-right: 18px;
  padding-left: 18px;
}

@media (max-width: 575px) {
  .icv-faq-filters {
    gap: 8px;
  }

  .icv-faq-filters__btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .icv-faq-pagination__link {
    min-width: 38px;
    min-height: 38px;
    padding: 0 10px;
  }

  .icv-faq-pagination__link--nav {
    padding-right: 14px;
    padding-left: 14px;
  }
}
