.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Ensure consistency with shared body background */
}

.page-faq__hero-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  text-align: center;
}

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

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

.page-faq__intro-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__btn-primary {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid #26A9E0;
}

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

.page-faq__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #26A9E0;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #26A9E0;
  margin-right: 15px;
}

.page-faq__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a8cc4;
}

.page-faq__content-area {
  padding: 60px 0;
  background-color: #ffffff; /* Explicitly light background */
}

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

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

.page-faq__faq-list {
  margin-top: 30px;
}

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #e0e0e0;
}

.page-faq__faq-question:hover {
  background-color: #f0f0f0;
}

.page-faq__faq-title {
  font-size: 1.2em;
  color: #333333;
  margin: 0;
  font-weight: bold;
}

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

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
  color: #EA7C07; /* Login color for active toggle */
}

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

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

.page-faq__faq-answer p {
  margin-bottom: 1em;
}

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
}

.page-faq__faq-answer li {
  margin-bottom: 0.5em;
}

.page-faq__sub-title {
  font-size: 1.1em;
  color: #26A9E0;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-faq__cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #e0f2f7;
  border-radius: 12px;
  margin-top: 60px;
}

.page-faq__cta-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-faq__button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Image responsiveness */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-faq__main-title {
    font-size: 2em;
  }

  .page-faq__intro-description {
    font-size: 1em;
  }

  .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__faq-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__cta-section {
    padding: 40px 15px;
  }

  .page-faq__cta-title {
    font-size: 1.6em;
  }

  .page-faq__cta-description {
    font-size: 0.95em;
  }

  .page-faq__button-group {
    flex-direction: column; /* Stack buttons vertically on mobile */
    align-items: center;
    gap: 10px;
  }
  
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-right: 0; /* Remove margin for stacking */
  }
  
  /* General mobile image/video/content container rules */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__container,
  .page-faq__content-area,
  .page-faq__hero-section,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__faq-title {
    font-size: 1em;
  }
}