/* Загальні відступи сторінки */
.faq-page-container {
 
  padding-bottom: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Контейнер для заголовка з іконкою */
.header-row {
  display: flex;
  align-items: center;
  gap: 15px; /* Відступ між іконкою та текстом */
  margin-bottom: 30px; /* Відступ перед контентом */
}

/* Стилі для іконок */
.footer-icon {
  vertical-align: middle;
}

/* Меню категорій FAQ */
.faq-categories-panel {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  max-height: none;
  overflow-y: visible;
}

/* Заголовок меню допомоги */
.faq-categories-panel h2 {
  font-weight: 600;
  font-size: 1.125rem; /* 18px */
  margin: 0; /* Прибрано дефолтний margin */
  color: #1f2937;
}

/* Список категорій */
.faq-categories-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Пункти меню */
.faq-categories-panel li {
  padding: 8px 16px;
  margin-bottom: 0; /* Прибрано відступи між категоріями */
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem; /* 14px */
  color: #374151;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-bottom: 1px solid #e5e7eb;
}

/* Останній пункт без лінії */
.faq-categories-panel li:last-child {
  border-bottom: none;
}

/* При наведенні */
.faq-categories-panel li:hover {
  color: #2563eb;
  background-color: #f3f4f6;
}

/* Активний пункт */
.faq-categories-panel li.active {
  color: #2563eb;
  background-color: #eff6ff;
  font-weight: 600;
}

/* Питання FAQ */
.faq-question-item {
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

/* Перший і останній елемент */
.faq-question-item:first-child {
  padding-top: 0;
}

.faq-question-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Заголовок питання */
.faq-question-title {
  font-weight: 600;
  font-size: 0.875rem; /* 14px */
  cursor: pointer;
  color: #1f2937;
  position: relative;
  padding: 12px 40px 12px 16px;
  background-color: #f9fafb;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

/* Активний заголовок */
.faq-question-title.active {
  background-color: #eff6ff;
}

/* Стрілка */
.faq-question-title::after {
  content: "▶";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  color: #85888d;
  ;
}

.faq-question-title.active::after {
  transform: translateY(-50%) rotate(90deg);
}

/* Відповідь FAQ */
.faq-answer-text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: #374151;
  font-size: 0.875rem; /* 14px */
  line-height: 1.5;
  padding-left: 16px;
  margin-top: 0;
}

/* Відкрита відповідь */
.faq-answer-text.open {
  max-height: 2000px;
  padding: 16px;
  margin-top: 8px;
}

/* Заголовок сторінки */
.title {
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  color: #1f2937;
  margin: 0; /* Прибрано дефолтний margin */
}
.header-row {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.header-row::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #f7f7f7, #f6f6f6);
  border-radius: 4px;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
  .faq-page-container {
    padding-top: 40px;
    padding-bottom: 20px;
  }

  .faq-categories-panel {
    position: static;
    margin-bottom: 20px;
    border-radius: 8px;
    padding: 16px;
    max-height: none;
    overflow-y: visible;
  }

  .faq-categories-panel h2 {
    font-size: 1rem; /* 16px */
    margin: 0;
  }

  .faq-categories-panel li {
    font-size: 0.875rem; /* 14px */
    padding: 10px 12px;
    margin-bottom: 0;
  }

  .faq-question-title {
    font-size: 0.875rem; /* 14px */
    padding: 10px 30px 10px 12px;
  }

  .faq-answer-text {
    font-size: 0.875rem; /* 14px */
    padding: 12px;
  }

  .header-row {
    gap: 10px; /* Менший відступ на мобільних */
  }

  .title {
    font-size: 1.25rem; /* 20px на мобільних */
  }
}