/* FAQ Wrapper */
.faq-wrapper {
  padding: 60px 0;
  display: flex;
  width: 100%;
  height: 100vh; /* Fix height to prevent page shift */
  background: #fdf4fd;
  color: #5a2ec3;
  font-family: "Poppins", sans-serif;
  overflow: hidden; /* Prevent layout growth */
}

/* Image Section */
.faq-image {
  width: 30%;
  height: 100%; /* Fixed height */
  background-color: #e7d9fd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-image img {
  width: 90%;
  height: auto;
  border-radius: 12px;
}

/* Content Section */
.faq-content {
  width: 70%;
  padding: 60px 40px;
  overflow-y: auto; /* Scroll internally if needed */
  height: 100%;
}

.faq-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.faq-content h2 .highlight {
  color: #5a2ec3;
  font-weight: 700;
}

.faq-content p {
  color: #5a2ec3;
  font-size: 0.95rem;
  margin-bottom: 30px;
}

/* FAQ List */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Each FAQ Item */
.faq-item {
  background: #e7d9fd;
  border-left: 5px solid #5a2ec3;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s ease;
}

/* Question Button */
.faq-question {
  background: none;
  color: #5a2ec3;
  padding: 18px 20px;
  width: 100%;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* Answer Box */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: #5a2ec3;
  color: white;
  padding: 0 20px;
  font-size: 0.95rem;
  transition: max-height 0.4s ease, padding 0.3s ease;
  will-change: max-height, padding;
}

.faq-item.active .faq-answer {
  padding: 15px 20px;
  max-height: 200px; /* Expand smoothly */
  overflow-y: auto; /* Internal scroll if needed */
}

/* Icon */
.toggle-icon {
  font-size: 1.2rem;
  color: #5a2ec3;
}

/* Responsive - Mobile */
@media (max-width: 900px) {
  .faq-wrapper {
    flex-direction: column;
    height: auto;
  }

  .faq-image,
  .faq-content {
    width: 100%;
    height: auto;
  }

  .faq-content {
    padding: 40px 20px;
    overflow: visible;
  }
}
