.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 below fixed header */
  background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css defines body background */
}

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

/* Hero Section */
.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px 40px;
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF; /* Light text for dark hero background */
  position: relative;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7); /* Darken image slightly for text contrast */
}

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

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  line-height: 1.2;
}

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

.page-faq__hero-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;
  margin: 10px;
}

.page-faq__hero-button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

.page-faq__hero-button--primary:hover {
  background-color: #E0A43C;
}

.page-faq__hero-button--secondary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-faq__hero-button--secondary:hover {
  background-color: #FCBC45;
  color: #FFFFFF;
}

/* Accordion Section */
.page-faq__section--accordion {
  padding: 60px 0;
  background-color: #F8F8F8;
}

.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;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-faq__accordion {
  margin-top: 40px;
}

.page-faq__accordion-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-faq__accordion-header {
  display: block;
  width: 100%;
  padding: 20px 25px;
  text-align: left;
  font-size: 1.2em;
  font-weight: bold;
  color: #000000;
  background-color: #FFFFFF;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s ease;
  position: relative;
  padding-right: 50px;
}

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

.page-faq__accordion-header::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #FCBC45;
  transition: transform 0.3s ease;
}

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

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

.page-faq__accordion-content p {
  padding-top: 15px;
  padding-bottom: 15px;
  margin-bottom: 0;
  font-size: 1em;
  border-top: 1px solid #EAEAEA;
}

.page-faq__content-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 15px;
  margin-bottom: 20px;
  background-color: #FCBC45;
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-faq__content-button:hover {
  background-color: #E0A43C;
}

/* Call to Action Section */
.page-faq__cta-section {
  padding: 80px 20px;
  background-color: #000000; /* Main color for CTA background */
  color: #FFFFFF;
  text-align: center;
}

.page-faq__cta-container {
  max-width: 800px;
}

.page-faq__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-faq__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #E0E0E0;
}

.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;
  margin: 10px;
}

.page-faq__cta-button--primary {
  background-color: #FCBC45;
  color: #000000;
}

.page-faq__cta-button--primary:hover {
  background-color: #E0A43C;
}

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

.page-faq__cta-button--secondary:hover {
  background-color: #FCBC45;
  color: #FFFFFF;
}

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px 30px;
  }
  .page-faq__hero-title {
    font-size: 2.2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__hero-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 8px;
  }
  .page-faq__section--accordion {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-faq__accordion-header {
    font-size: 1.1em;
    padding: 18px 20px;
    padding-right: 45px;
  }
  .page-faq__accordion-header::after {
    right: 20px;
    font-size: 1.3em;
  }
  .page-faq__accordion-content p {
    font-size: 0.95em;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .page-faq__content-button {
    padding: 8px 18px;
    font-size: 0.85em;
    margin-bottom: 15px;
  }
  .page-faq__cta-section {
    padding: 60px 15px;
  }
  .page-faq__cta-title {
    font-size: 2em;
  }
  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 8px;
  }

  /* Critical: Prevent content overflow on mobile */
  .page-faq img {
    max-width: 100%;
    height: auto;
  }
  .page-faq__hero-section {
    width: 100%; /* Ensure hero section does not cause horizontal scroll */
    box-sizing: border-box;
  }
  .page-faq__container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__hero-description {
    font-size: 0.9em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__accordion-header {
    font-size: 1em;
    padding: 15px 15px;
    padding-right: 40px;
  }
  .page-faq__accordion-header::after {
    right: 15px;
    font-size: 1.2em;
  }
  .page-faq__accordion-content {
    padding: 0 15px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__hero-button, .page-faq__cta-button {
    display: block;
    width: calc(100% - 20px); /* Full width minus margin */
    margin-left: 10px;
    margin-right: 10px;
  }
}