.page-resources-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 */
}

.page-resources-faq__hero-section {
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources-faq__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-resources-faq__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-weight: bold;
}

.page-resources-faq__intro-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-resources-faq__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  font-size: 1em;
}

.page-resources-faq__button--register {
  background-color: #FCBC45; /* Login color for Register button */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources-faq__button--register:hover {
  background-color: #e0a030;
  border-color: #e0a030;
}

.page-resources-faq__button--login {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-resources-faq__button--login:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-resources-faq__hero-image {
  width: 100%;
  max-width: 1000px; /* Adjust max-width for visual balance */
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-resources-faq__content-area {
  max-width: 1000px; /* Content width for readability */
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF;
}

.page-resources-faq__toc {
  background-color: #f8f8f8;
  border-left: 5px solid #FCBC45;
  padding: 20px;
  margin-bottom: 40px;
  border-radius: 5px;
}

.page-resources-faq__toc-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-faq__toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-resources-faq__toc-list li {
  margin-bottom: 8px;
}

.page-resources-faq__toc-link {
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-resources-faq__toc-link:hover {
  color: #FCBC45;
  text-decoration: underline;
}

.page-resources-faq__article-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  font-weight: bold;
}

.page-resources-faq__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-faq__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources-faq__faq-answer {
  font-size: 1.05em;
  color: #555555;
  margin-bottom: 0;
}

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

.page-resources-faq__faq-answer a:hover {
  text-decoration: underline;
}

.page-resources-faq__content-image {
  width: 100%;
  max-width: 800px; /* Ensure content images are not too wide for readability */
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-faq__related-resources {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.page-resources-faq__related-title {
  font-size: 2em;
  color: #000000;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-resources-faq__related-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  max-width: 600px;
}

.page-resources-faq__related-list li {
  margin-bottom: 10px;
}

.page-resources-faq__related-link {
  color: #333333;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-resources-faq__related-link:hover {
  color: #FCBC45;
  text-decoration: underline;
}

.page-resources-faq__button--back-to-resources {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  padding: 12px 30px;
}

.page-resources-faq__button--back-to-resources:hover {
  background-color: #333333;
  border-color: #333333;
}

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

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

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

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

  .page-resources-faq__button {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .page-resources-faq__content-area {
    padding: 20px 15px;
  }

  .page-resources-faq__article-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-resources-faq__faq-question {
    font-size: 1.15em;
  }

  .page-resources-faq__faq-answer {
    font-size: 0.95em;
  }

  .page-resources-faq__toc-title, .page-resources-faq__related-title {
    font-size: 1.6em;
  }

  .page-resources-faq__content-image {
    max-width: 100%;
    height: auto;
  }
  
  /* Ensure all images within content area are responsive and not too small */
  .page-resources-faq img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources-faq__main-title {
    font-size: 1.8em;
  }

  .page-resources-faq__intro-description {
    font-size: 0.9em;
  }

  .page-resources-faq__article-title {
    font-size: 1.5em;
  }

  .page-resources-faq__faq-question {
    font-size: 1.05em;
  }

  .page-resources-faq__toc-title, .page-resources-faq__related-title {
    font-size: 1.4em;
  }
}