/* =============== FAQ SECTION =============== */
.faq {
  padding: 100px 20px;
  background: var(--background-color); /* ✅ uses theme background */
  font-family: 'Poppins', sans-serif;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ===== FAQ Card ===== */
.faq-item {
  border-radius: 18px;
  background: var(--card-background, rgba(255, 255, 255, 0.8)); /* ✅ uses card bg */
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color, rgba(200, 200, 200, 0.25));
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* ===== Question Row ===== */
.faq-question {
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color); /* ✅ theme color */
}

/* ===== Toggle Icon ===== */
.faq-toggle {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--secondary-color); /* ✅ theme color */
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent-color); /* ✅ theme color */
}

/* ===== Answer Content ===== */
.faq-answer {
  padding: 0 26px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  line-height: 1.6;
  color: var(--text-color); /* ✅ theme text */
  font-size: 1rem;
  transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
  padding: 0 26px 22px;
  max-height: 400px;
  opacity: 1;
}

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

  .faq-toggle {
    font-size: 1.4rem;
  }
}
