/* Help & FAQ Page – same overall layout as My Wishlist, two-column main content */

.help-faq-page {
  padding: 140px 5% 60px;
  background-color: var(--floral-white);
  min-height: 80vh;
}

.help-faq-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Breadcrumb – optional pipe style for this page */
.breadcrumb-help .breadcrumb-current {
  color: var(--text-saddle-brown);
  font-weight: 600;
}

.breadcrumb-help a {
  color: var(--text-dark-brown);
}

/* —— Left: Sticky Sidebar —— */
.help-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid rgba(139, 69, 19, 0.1);
  border-radius: 12px;
  padding: 24px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 140px;
}

.help-sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-dark-brown);
  padding: 0 24px 20px;
  margin: 0;
  border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.help-categories {
  display: flex;
  flex-direction: column;
}

.help-category-btn {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-bottom: 1px solid rgba(139, 69, 19, 0.08);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark-brown);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.help-category-btn:last-child {
  border-bottom: none;
}

.help-category-btn:hover {
  background: rgba(139, 69, 19, 0.04);
  color: var(--text-saddle-brown);
}

.help-category-btn.active {
  background: rgba(139, 41, 66, 0.08);
  color: #8b2942;
  font-weight: 600;
}

/* —— Right: Dynamic FAQ Content —— */
.help-content {
  flex: 1;
  min-width: 0;
}

.help-content-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-dark-brown);
  margin-bottom: 24px;
  font-weight: 600;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(139, 69, 19, 0.12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.faq-question-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question-row:hover {
  background: rgba(139, 69, 19, 0.03);
}

.faq-question-text {
  font-size: 1rem;
  color: var(--text-saddle-brown);
  font-weight: 500;
  flex: 1;
  line-height: 1.4;
}

.faq-toggle {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--text-saddle-brown);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}

.faq-toggle:hover {
  color: #8b2942;
}

.faq-item.expanded .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
}

.faq-item.expanded .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 0 18px;
  font-size: 0.95rem;
  color: var(--text-dark-brown);
  line-height: 1.6;
  border-top: 1px solid rgba(139, 69, 19, 0.08);
  padding-top: 14px;
  margin-top: -1px;
}

@media (max-width: 900px) {
  .help-faq-layout {
    flex-direction: column;
  }

  .help-sidebar {
    width: 100%;
    position: static;
  }

  .help-categories {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 16px 16px;
  }

  .help-category-btn {
    flex: 1 1 auto;
    min-width: 180px;
    border-bottom: none;
    border: 1px solid rgba(139, 69, 19, 0.12);
    border-radius: 8px;
    margin: 4px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .help-faq-page {
    padding-top: 120px;
  }
}
