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

.page-faq__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #000000; /* Dark background for hero content readability */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Slightly dim the image for text readability */
  z-index: 1;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  padding: 20px;
  max-width: 800px;
}

.page-faq__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-faq__hero-button {
  display: inline-block;
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  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: 2px solid #FFFFFF;
}

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

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

.page-faq__section-title {
  font-size: 2.2em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

.page-faq__accordion-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-faq__accordion-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__accordion-header {
  width: 100%;
  background-color: #000000;
  color: #FFFFFF;
  padding: 20px 25px;
  text-align: left;
  font-size: 1.3em;
  font-weight: bold;
  border: none;
  cursor: pointer;
  outline: none;
  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.is-active {
  background-color: #1a1a1a;
}

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

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

.page-faq__accordion-content.is-open {
  max-height: 1000px; /* Adjust as needed for content */
  padding: 25px;
}

.page-faq__question-answer {
  margin-bottom: 20px;
}

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

.page-faq__answer-text {
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
}

.page-faq__cta-section {
  background-color: #000000;
  padding: 80px 20px;
  text-align: center;
  color: #FFFFFF;
}

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

.page-faq__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 40px;
}

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

.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, border-color 0.3s ease;
  border: 2px solid transparent; /* Default transparent border */
}

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

.page-faq__cta-button--primary:hover {
  background-color: transparent;
  color: #FCBC45;
  border-color: #FCBC45;
}

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

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

.page-faq__resources-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-faq__resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

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

.page-faq__resource-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-faq__resource-title {
  font-size: 1.4em;
  margin: 20px 15px 10px;
  color: #000000;
}

.page-faq__resource-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-faq__resource-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
  line-height: 1.5;
}

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

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

  .page-faq__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

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

  .page-faq__accordion-content.is-open {
    padding: 20px;
  }

  .page-faq__question-title {
    font-size: 1.05em;
  }

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

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

  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure content images do not overflow */
  .page-faq__hero-image,
  .page-faq__resource-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-section {
    min-height: 400px;
  }

  .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;
  }

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