.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); /* Ensures content starts below fixed header */
  background-color: #FFFFFF;
}

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

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

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

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-faq__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

.page-faq__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-faq__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

.page-faq__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-faq__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-faq__accordion-section {
  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-subtitle {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-faq__accordion-wrapper {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

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

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

.page-faq__accordion-header {
  font-size: 1.4em;
  color: #000000;
  padding: 20px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #FFFFFF;
  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(0deg);
}

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

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

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

.page-faq__accordion-content p {
  margin-bottom: 15px;
  color: #444444;
}

.page-faq__accordion-content p:last-child {
  margin-bottom: 0;
}

.page-faq__sub-item {
  margin-top: 25px;
  padding-left: 20px;
  border-left: 3px solid #FCBC45;
}

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

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

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

.page-faq__cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #000000;
  color: #FFFFFF;
  margin-top: 40px;
  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;
  opacity: 0.9;
}

.page-faq__button--support {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
  margin-right: 15px;
}

.page-faq__button--support:hover {
  background-color: transparent;
  color: #FFFFFF;
}

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

.page-faq__button--join:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-faq__related-resources {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-faq__resource-card {
  display: block;
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.page-faq__resource-title {
  font-size: 1.3em;
  color: #000000;
  padding: 15px 20px 5px 20px;
}

.page-faq__resource-text {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px 20px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__accordion-header {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-title {
    font-size: 2.2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__section-subtitle {
    font-size: 0.95em;
  }
  .page-faq__accordion-header {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-faq__accordion-content {
    padding: 0 20px 15px 20px;
  }
  .page-faq__sub-item {
    padding-left: 15px;
  }
  .page-faq__sub-header {
    font-size: 1.1em;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 0.95em;
  }
  .page-faq__button--support, .page-faq__button--join {
    margin: 10px auto;
    width: 80%;
    display: block;
  }
  .page-faq__button--support {
    margin-right: 0;
  }
  .page-faq__resource-grid {
    grid-template-columns: 1fr;
  }
  .page-faq__hero-section img, .page-faq__accordion-section img, .page-faq__related-resources img {
    max-width: 100%;
    height: auto;
  }
  /* Ensure content images do not display smaller than 200px */
  .page-faq__resource-image {
    min-width: 200px; /* Enforce minimum width for content images */
    min-height: 200px; /* Enforce minimum height for content images */
    width: 100%;
    height: auto; /* Allow auto height to maintain aspect ratio */
    object-fit: cover;
  }
  .page-faq__accordion-content img {
    min-width: 200px;
    min-height: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__hero-description {
    font-size: 0.9em;
  }
  .page-faq__accordion-header {
    font-size: 1em;
  }
  .page-faq__cta-title {
    font-size: 1.5em;
  }
  .page-faq__button {
    width: 90%;
  }
  .page-faq__button--support, .page-faq__button--join {
    width: 90%;
  }
}