/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #0A2463;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #E5A007;
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-faq__btn-primary {
  background-color: #E5A007;
  color: #0A2463;
  border: 2px solid #E5A007;
}

.page-faq__btn-primary:hover {
  background-color: #ffb72b;
  border-color: #ffb72b;
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #E5A007;
  border: 2px solid #E5A007;
}

.page-faq__btn-secondary:hover {
  background-color: #E5A007;
  color: #0A2463;
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--dark-bg);
  color: #ffffff;
}

.page-faq__section-title {
  font-size: 2.2em;
  color: #E5A007;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-faq__question-title {
  font-size: 1.3em;
  margin: 0;
  color: #ffffff;
  font-weight: 600;
}

.page-faq__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #E5A007;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(0deg); /* Explicitly set for consistency, default is + */
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 20px 25px;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
}

.page-faq__text-link {
  color: #E5A007;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-faq__text-link:hover {
  color: #ffb72b;
}

.page-faq__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-faq__final-cta {
  background-color: #0A2463;
  color: #ffffff;
  text-align: center;
  padding: 50px 20px;
  border-radius: 10px;
  margin-top: 60px;
}

.page-faq__final-cta-title {
  font-size: 2em;
  color: #E5A007;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__final-cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.4em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__question-title {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-faq__hero-title {
    font-size: 2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__content-area {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__section-intro {
    font-size: 0.95em;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__question-title {
    font-size: 1.1em;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px;
  }
  .page-faq__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__final-cta {
    padding: 40px 15px;
  }
  .page-faq__final-cta-title {
    font-size: 1.8em;
  }
  .page-faq__final-cta-description {
    font-size: 1em;
  }
  /* Ensure all containers handle overflow */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px;
    padding-right: 0px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__question-title {
    font-size: 1em;
  }
  .page-faq__final-cta-title {
    font-size: 1.6em;
  }
}