/*
 * FAQ - Accordion-style FAQ sections
 */

.faq-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 18px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq-item {
  border-bottom: 1px solid var(--slate-200);
}

.faq-item:first-child {
  border-top: 1px solid var(--slate-200);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--slate-800);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question svg {
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  color: var(--slate-600);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Dark background variants */
.section.alt-bg .faq-item {
  border-color: rgba(255, 255, 255, 0.2);
}

.section.alt-bg .faq-question {
  color: #ffffff;
}

.section.alt-bg .faq-question:hover {
  color: rgba(255, 255, 255, 0.8);
}

.section.alt-bg .faq-question svg {
  stroke: #ffffff;
}

.section.alt-bg .faq-answer {
  color: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 768px) {
  .faq-question {
    font-size: 1rem;
  }
}
