.page-faq {
  color: #333333; /* Dark text for light body background */
}

.page-faq__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF; /* Light text for dark hero background */
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-faq__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.page-faq__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF; /* Light title for dark background */
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #E0E0E0; /* Slightly off-white for description */
}

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

.page-faq__hero-button--register {
  background-color: #FFFFFF; /* White button */
  color: #000000; /* Dark text */
  border: 2px solid #FFFFFF;
}

.page-faq__hero-button--register:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

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

.page-faq__hero-button--login:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
  z-index: 1;
}

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

.page-faq__accordion-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background for content */
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #000000; /* Dark title for light background */
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__accordion-group {
  margin-top: 30px;
}

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

.page-faq__accordion-header {
  background-color: #F8F8F8;
  color: #000000;
  padding: 20px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-faq__accordion-header[aria-expanded="true"] {
  background-color: #E0E0E0;
}

.page-faq__accordion-question {
  margin: 0;
  color: #000000;
}

.page-faq__accordion-icon {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-faq__accordion-header[aria-expanded="true"] .page-faq__accordion-icon {
  transform: rotate(45deg);
}

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

.page-faq__accordion-content p {
  margin: 0;
  padding: 20px 0;
  line-height: 1.6;
  color: #333333;
}

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

.page-faq__accordion-content p a:hover {
  text-decoration: underline;
}

.page-faq__cta-section {
  background-color: #000000; /* Dark background */
  color: #FFFFFF; /* Light text */
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

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

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

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  margin: 0 15px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

.page-faq__cta-button--join:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

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

.page-faq__cta-button--explore:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-faq__related-links-section {
  padding: 60px 0;
  background-color: #F9F9F9;
}

.page-faq__related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-faq__link-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-faq__link-card:hover {
  transform: translateY(-5px);
}

.page-faq__link-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-faq__link-card-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  color: #000000;
}

.page-faq__link-card-title a {
  color: #000000;
  text-decoration: none;
}

.page-faq__link-card-title a:hover {
  color: #FCBC45;
}

.page-faq__link-card-description {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px;
  line-height: 1.5;
}

.page-faq__link-card-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-faq__link-card-button:hover {
  background-color: #000000;
  color: #FCBC45;
}

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
  }
  .page-faq__hero-title {
    font-size: 2.5em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__hero-button {
    padding: 10px 20px;
    font-size: 1em;
    margin: 0 5px;
  }
  .page-faq__accordion-section, .page-faq__cta-section, .page-faq__related-links-section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__accordion-header {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-faq__accordion-content p {
    padding: 15px 0;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 1.1em;
    margin: 0 10px;
  }
  .page-faq__related-links-grid {
    grid-template-columns: 1fr;
  }
  .page-faq__link-card-image {
    height: 200px;
  }

  /* Critical: Prevent horizontal overflow for images */
  .page-faq img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 2em;
  }
  .page-faq__hero-button {
    display: block;
    margin: 10px auto;
  }
  .page-faq__cta-button {
    display: block;
    margin: 10px auto;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__cta-title {
    font-size: 1.5em;
  }
  .page-faq__link-card-title {
    font-size: 1.3em;
  }
}