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

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  background-color: #017439; /* Primary brand color for hero background */
  color: #FFFFFF; /* White text for dark background */
  padding: 80px 0 40px;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  overflow: hidden; /* For image positioning */
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
}

.page-faq__hero-section .page-faq__container {
  position: relative;
  z-index: 1;
}

.page-faq__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Register and Login font color for emphasis */
}

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

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

.page-faq__btn-primary, .page-faq__btn-secondary {
  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;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #C30808; /* Login/Register button color */
  color: #FFFF00; /* Login/Register font color */
  border: 2px solid #C30808;
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Login/Register font color */
  border: 2px solid #FFFF00;
}

.page-faq__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

/* Content Area */
.page-faq__content-area {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background for content */
  color: #333333;
}

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

.page-faq__sub-section-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 50px;
  margin-bottom: 30px;
  text-align: center;
}

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

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

.page-faq__faq-item[open] {
  background-color: #ffffff;
  border-color: #017439;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: #017439;
  background-color: #eaf7f0; /* Lighter shade of brand color for summary */
  user-select: none;
  list-style: none; /* Hide default marker */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

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

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

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

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

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

.page-faq__image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* CTA Section */
.page-faq__cta-section {
  background-color: #017439; /* Primary brand color */
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__sub-section-title {
    font-size: 1.5em;
  }
  .page-faq__faq-question {
    font-size: 1.05em;
    padding: 18px 20px;
  }
  .page-faq__faq-answer {
    padding: 18px 20px;
  }
  .page-faq__btn-primary, .page-faq__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__hero-section {
    padding: 60px 0 30px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-faq__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-faq__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-faq__cta-buttons, .page-faq__cta-buttons-bottom {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary, .page-faq__btn-secondary,
  .page-faq a[class*="button"], .page-faq a[class*="btn"] {
    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;
  }
  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container,
  .page-faq__cta-buttons-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-faq__content-area {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  .page-faq__sub-section-title {
    font-size: 1.3em;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 15px 20px;
  }
  .page-faq__content-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-faq__cta-section {
    padding: 60px 0;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
}

/* Ensure images within content areas are responsive and not too small */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Specific rule for content images to ensure minimum size is not violated by other styles */
.page-faq__content-area img {
  min-width: 200px;
  min-height: 200px;
  object-fit: contain; /* or cover, depending on desired behavior */
}

/* Color contrast safety */
.page-faq__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-faq__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-faq__faq-question {
  background-color: #eaf7f0; /* Lighter brand green */
  color: #017439;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #017439;
  color: #ffffff;
}

.page-faq__faq-answer {
  color: #333333;
}

/* Ensure general text in content is dark on light background */
.page-faq p, .page-faq li, .page-faq h1, .page-faq h2, .page-faq h3, .page-faq h4, .page-faq a {
  /* Default values, overridden by specific classes if needed */
  color: inherit; /* Inherit from parent, which is set to #333333 for light-bg sections */
}