/* FAQ Section Styling */
.faq-section {
  margin: 40px 0;
  border-top: 1px solid #e5e5e5;
  padding-top: 30px;
}

.faq-section h2 {
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 700;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 15px 20px;
  background-color: #f9f9f9;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* Added position relative */
}

.faq-question h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  flex: 1;
  padding-right: 30px; /* Added padding to prevent text from overlapping with the toggle icon */
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #4caf50;
  transition: transform 0.3s ease;
  position: absolute; /* Changed to absolute positioning */
  right: 20px; /* Fixed position from the right */
  top: 50%; /* Center vertically */
  transform: translateY(-50%); /* Center vertically */
  width: 20px; /* Fixed width */
  height: 20px; /* Fixed height */
  text-align: center; /* Center the text */
  line-height: 20px; /* Center the text vertically */
}

.faq-question.active .faq-toggle {
  color: #e53935;
}

.faq-answer {
  padding: 0;
  max-height: 0; /* Start with 0 height when collapsed */
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question.active + .faq-answer {
  padding: 15px 20px;
  max-height: none !important; /* Use none instead of a fixed value */
  height: auto !important; /* Ensure height is auto */
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* Add schema markup for SEO */
.faq-section[itemscope] {
  margin-top: 40px;
}
