

/* faq-section */
/* Base Section Styling */
.faq-section {
  padding: 80px 20px;
  background-color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
}

.faq-header { text-align: center; margin-bottom: 50px; }
.faq-main-title { font-size: 2.5rem; color: #e10b0b; font-weight: 700; margin-bottom: 15px; }
.faq-subtitle { color: #666; }

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

/* Accordion Item */
.faq-item {
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  overflow: hidden; /* Ensures answer stays inside the rounded corners */
  transition: all 0.3s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 30px;
  cursor: pointer;
  background: #fff;
  user-select: none;
}

.faq-question span:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.faq-toggle {
  color: #0056b3;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

/* Answer Section - Hidden by default */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  background-color: #fcfdfe;
  padding: 0 30px;
}

.faq-answer p {
  padding-bottom: 22px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Active State (controlled via JS) */
.faq-item.active {
  border-color: #0056b3;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.1);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg); /* Turns "+" into "x" or just indicates open */
  color: #d93025;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Adjust based on content height */
  padding: 0 30px;
}
