/* Custom InstantSearch styling */
.faqBlock .ais-SearchBox-input {
  width: 100% !important;
  padding: 1rem 1.5rem !important;
}
.faqBlock .ais-Hits-list {
  padding: 0;
}
.faqBlock .ais-SearchBox-input:focus {
  border-color: #6366f1 !important;
}

.faqBlock .ais-SearchBox-submit, .ais-SearchBox-reset {
  display: none !important;
}

.faqBlock .ais-RefinementList-item {
  margin-bottom: 0.5rem !important;
}

.faq-category-button {
  display: flex !important;
  align-items: center !important;
  padding: 0.75rem 1.5rem !important;
  background: white !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 9999px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  gap: 0.3rem;
}


.faq-category-button:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.faqBlock .ais-RefinementList-checkbox {
  display: none !important;
}

.faqBlock .ais-RefinementList-checkbox:checked + .ais-RefinementList-labelText {
  color: white !important;
}

.faqBlock .ais-RefinementList-item--selected .faq-category-button, .faq-category-button.ais-ClearRefinements-button--disabled {
  background-color: var(--primary) !important;
  color: white !important;
  border-color: transparent !important;
}

.faqBlock .ais-Hits-item {
  margin-bottom: 1rem !important;
}

.faqBlock .faq-item {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faqBlock .faq-item:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.faqBlock .faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: larger;
}

.faqBlock .faq-question:hover {
  background-color: #f9fafb;
}

.faqBlock .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faqBlock .faq-answer.open {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

.faqBlock .faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #6b7280;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.faqBlock .faq-icon.rotated {
  transform: rotate(180deg);
}

.faqBlock .ais-Stats {
  color: #6b7280 !important;
  font-size: 0.875rem !important;
  margin-bottom: 1rem !important;
}

.faqBlock mark {
  background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
  padding: 0.125rem 0.25rem !important;
  border-radius: 0.25rem !important;
  font-weight: 600 !important;
}

.faqBlock #all-categories {
  transition: all 0.3s ease;
}

.faqBlock #all-categories.active {
  background-color: var(--primary) !important;
  color: white !important;
  border-color: transparent !important;
}

.faqBlock .filterByCategoryContainer {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.faqBlock #category-list .ais-RefinementList-list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  flex-wrap: wrap;
}
.faqBlock .banner {
  background-color: #eceef061;
}
