.page-faq {
  color: #333333; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content starts below fixed header */
}

.page-faq__hero-section {
  background-color: #000000; /* Dark background for hero */
  color: #ffffff; /* Light text on dark background */
  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;
  z-index: 1;
  opacity: 0.4;
}

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

.page-faq__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-button {
  display: inline-block;
  padding: 12px 25px;
  margin: 0 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 150px;
  text-align: center;
}

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

.page-faq__hero-button--register:hover {
  background-color: #f0f0f0;
}

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

.page-faq__hero-button--login:hover {
  background-color: #e0a53b;
}

.page-faq__section {
  padding: 60px 20px;
}

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

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

.page-faq__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-faq__accordion {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 60px;
}

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

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

.page-faq__accordion-header {
  background-color: #f9f9f9;
  padding: 20px 25px;
  font-size: 1.3em;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.page-faq__accordion-header::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

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

.page-faq__accordion-content {
  display: none;
  padding: 25px;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
}

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

.page-faq__question-answer:last-child {
  margin-bottom: 0;
}

.page-faq__question {
  font-size: 1.1em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-faq__answer {
  color: #555555;
}

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

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

.page-faq__contact-cta {
  background-color: #000000;
  color: #ffffff;
  padding: 50px;
  text-align: center;
  border-radius: 8px;
}

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

.page-faq__contact-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-faq__contact-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid #FCBC45;
}

.page-faq__contact-button:hover {
  background-color: #e0a53b;
  color: #000000;
}

.page-faq__related-resources {
  background-color: #f5f5f5;
}

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

.page-faq__resource-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 8px 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 12px rgba(0, 0, 0, 0.1);
}

.page-faq__resource-icon {
  width: 250px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-faq__resource-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-faq__resource-title a {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
}

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

.page-faq__resource-text {
  color: #555555;
}

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

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

  .page-faq__hero-button {
    margin: 10px 5px;
    padding: 10px 20px;
    min-width: unset;
  }

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

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

  .page-faq__question {
    font-size: 1em;
  }

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

  .page-faq__contact-cta {
    padding: 30px 20px;
  }

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

  .page-faq__contact-button {
    padding: 12px 25px;
  }

  .page-faq__resources-grid {
    grid-template-columns: 1fr;
  }

  .page-faq__resource-icon {
    width: 200px;
    height: 150px;
  }
  
  .page-faq img {
    max-width: 100%;
    height: auto;
  }
  
  .page-faq__hero-image {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-button {
    display: block;
    margin: 10px auto;
  }
}

/* Ensure content area images are not too small */
.page-faq__accordion-content img,
.page-faq__question-answer img,
.page-faq__resource-card img {
  min-width: 200px;
  min-height: 200px;
  width: auto;
  height: auto;
}

/* Specific override for resource icons to allow their intended display sizes but still enforce minimum */
.page-faq__resource-icon {
  width: 250px;
  height: 200px;
  min-width: 200px; /* Enforce minimum */
  min-height: 200px; /* Enforce minimum */
  object-fit: contain;
}