.page-faq {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-faq__hero-section {
  background-color: #000000; /* Main color as background */
  color: #FFFFFF; /* White text for dark background */
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.page-faq__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-faq__hero-button {
  display: inline-block;
  padding: 15px 30px;
  margin: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.1em;
}

.page-faq__hero-button--register {
  background-color: #FCBC45; /* Login color for Register */
  color: #000000; /* Dark text for light button */
  border: 2px solid #FCBC45;
}

.page-faq__hero-button--register:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-faq__hero-button--login {
  background-color: #000000; /* Main color for Login */
  color: #FFFFFF; /* White text for dark button */
  border: 2px solid #FFFFFF;
}

.page-faq__hero-button--login:hover {
  background-color: #1a1a1a;
  transform: translateY(-3px);
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

.page-faq__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image to ensure text readability */
}

.page-faq__accordion-section {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__accordion-group {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.page-faq__accordion-item {
  border-bottom: 1px solid #e0e0e0;
}

.page-faq__accordion-item:last-child {
  border-bottom: none;
}

.page-faq__accordion-header {
  background-color: #f7f7f7;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.5em;
  color: #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-faq__accordion-header::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-faq__accordion-header.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-faq__accordion-header:hover {
  background-color: #eaeaea;
}

.page-faq__accordion-content {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background-color: #ffffff;
}

.page-faq__accordion-content.active {
  max-height: 1000px; /* Adjust based on expected content height */
  padding: 20px 25px;
}

.page-faq__qa-item {
  margin-bottom: 20px;
}

.page-faq__qa-item:last-child {
  margin-bottom: 0;
}

.page-faq__question {
  font-size: 1.2em;
  color: #000000;
  margin-bottom: 10px;
}

.page-faq__answer {
  font-size: 1em;
  color: #555555;
}

.page-faq__answer a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-faq__answer a:hover {
  text-decoration: underline;
}

.page-faq__cta-section {
  background-color: #000000; /* Main color as background */
  color: #FFFFFF; /* White text for dark background */
  padding: 60px 20px;
  text-align: center;
  margin-top: 60px;
  border-radius: 10px;
}

.page-faq__cta-title {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

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

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

.page-faq__cta-button--contact {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-faq__cta-button--contact:hover {
  background-color: #e0e0e0;
  transform: translateY(-3px);
}

.page-faq__cta-button--join {
  background-color: #FCBC45; /* Login color for Join */
  color: #000000; /* Dark text for light button */
  border: 2px solid #FCBC45;
}

.page-faq__cta-button--join:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 20px;
  }

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

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

  .page-faq__hero-button {
    width: 100%;
    margin: 10px 0;
  }

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

  .page-faq__accordion-header {
    font-size: 1.2em;
    padding: 15px 20px;
  }

  .page-faq__accordion-content.active {
    padding: 15px 20px;
  }

  .page-faq__question {
    font-size: 1.1em;
  }

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

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

  .page-faq__cta-button {
    width: 100%;
    margin: 10px 0;
  }

  /* Critical: Ensure all images within .page-faq do not cause overflow and are not too small */
  .page-faq img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px; /* Enforce minimum size for content images */
    object-fit: cover; /* Helps with different aspect ratios */
  }
  /* Hero image is covered by its own specific rule and filter, should not be affected by min-width/height */
  .page-faq__hero-image img {
    min-width: unset;
    min-height: unset;
  }
}

/* Additional rules to ensure no content overflow on small screens */
.page-faq__container {
  overflow-x: hidden;
}

/* Ensure images in the content area are not too small and do not use filters */
.page-faq__accordion-content img {
  max-width: 100%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
  border-radius: 8px;
  margin: 15px 0;
  display: block;
}