.page-faq {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
}

.page-faq__hero-section {
  background-color: #017439; /* Main brand color */
  padding: 10px 0 50px;
  text-align: center;
  color: #ffffff;
}

.page-faq__hero-content {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__main-title {
  font-size: 2.8em;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-faq__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #C30808; /* Custom Register/Login button color */
  color: #FFFFFF; /* Ensures WCAG AA contrast with #C30808 */
  border: 2px solid #C30808;
}

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

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

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2f;
  border-color: #005f2f;
}

.page-faq__content-area {
  background-color: #ffffff; /* Auxiliary brand color */
  padding: 50px 0;
}

.page-faq__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__section-title {
  font-size: 2em;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f1f1f1;
  transition: background-color 0.3s ease;
  list-style: none;
  user-select: none;
}

.page-faq__faq-question::-webkit-details-marker, 
.page-faq__faq-question::marker {
  display: none;
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: "-";
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
  background-color: #ffffff;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
}

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #005f2f;
}

.page-faq__img-inline {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-faq__contact-promo {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

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

.page-faq__promo-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.5em;
  }

  .page-faq__hero-description,
  .page-faq__promo-description {
    font-size: 1em;
  }

  .page-faq__section-title {
    font-size: 1.8em;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-faq__faq-answer {
    padding: 15px 20px;
  }

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

@media (max-width: 768px) {
  /* 1. Top Section (Hero) */
  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-faq__hero-content {
    padding: 0 15px;
  }

  .page-faq__hero-image {
    margin-bottom: 20px;
  }

  .page-faq__main-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 0.95em !important;
    margin-bottom: 20px;
  }

  .page-faq__hero-cta {
    flex-direction: column !important;
    gap: 10px;
    padding: 0 15px;
  }

  .page-faq__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 2. Single Column Long Text Container */
  .page-faq__content-area {
    padding: 30px 0;
  }

  .page-faq__article-wrap {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section-title {
    font-size: 1.5em !important;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-faq__faq-item {
    margin-bottom: 10px;
  }

  .page-faq__faq-question {
    padding: 15px 15px !important;
    font-size: 1em !important;
  }

  .page-faq__faq-answer {
    padding: 15px 15px !important;
    font-size: 0.95em;
  }

  /* 3. General Images and Figure */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    min-width: 200px !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
  }

  .page-faq__img-inline {
    margin: 15px 0;
  }

  /* 4. Buttons and Button Containers */
  .page-faq__hero-cta {
    padding: 0;
  }

  .page-faq__contact-promo .page-faq__btn {
    width: auto !important;
    max-width: 100% !important;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* 5. FAQ Blocks */
  /* Handled by .page-faq__faq-item, .page-faq__faq-question, .page-faq__faq-answer above */

  .page-faq__contact-promo {
    padding: 40px 15px;
  }

  .page-faq__promo-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }

  .page-faq__promo-description {
    font-size: 0.95em !important;
    margin-bottom: 25px;
  }
}