.page-resources-faq {
  color: #333333; /* Assuming var(--secondary-color) is light, using dark text */
}

.page-resources-faq__hero-section {
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF; /* White text for dark background */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

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

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

.page-resources-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1200px;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-resources-faq__button--register:hover {
  background-color: #F0F0F0;
  color: #000000;
}

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

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

.page-resources-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF;
}

.page-resources-faq__table-of-contents {
  background-color: #F8F8F8;
  border-left: 5px solid #000000;
  padding: 25px;
  margin-bottom: 40px;
  border-radius: 4px;
}

.page-resources-faq__toc-title {
  font-size: 1.8em;
  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: 10px;
}

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

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

.page-resources-faq__faq-list {
  display: grid;
  gap: 30px;
}

.page-resources-faq__faq-section {
  background-color: #FDFDFD;
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources-faq__section-title {
  font-size: 2.2em;
  color: #000000;
  margin-bottom: 25px;
  border-bottom: 2px solid #EEEEEE;
  padding-bottom: 15px;
  font-weight: bold;
}

.page-resources-faq__section-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-faq__accordion-item {
  border-bottom: 1px solid #EEEEEE;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.page-resources-faq__accordion-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-resources-faq__accordion-header {
  font-size: 1.4em;
  color: #000000;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  transition: color 0.3s ease;
}

.page-resources-faq__accordion-header:hover {
  color: #FCBC45;
}

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

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

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

.page-resources-faq__accordion-content p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #555555;
}

.page-resources-faq__action-footer {
  text-align: center;
  padding: 50px 20px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 8px;
  margin-top: 60px;
}

.page-resources-faq__action-text {
  font-size: 1.5em;
  margin-bottom: 25px;
  line-height: 1.4;
  color: #F0F0F0;
}

.page-resources-faq__button--contact {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-bottom: 20px;
}

.page-resources-faq__button--contact:hover {
  background-color: #E0A83A;
  color: #000000;
}

.page-resources-faq__return-link {
  display: block;
  margin-top: 20px;
  font-size: 1.1em;
  color: #FFFFFF;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-resources-faq__return-link:hover {
  color: #FCBC45;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources-faq__hero-title {
    font-size: 2.5em;
  }
  .page-resources-faq__section-title {
    font-size: 1.8em;
  }
  .page-resources-faq__accordion-header {
    font-size: 1.2em;
  }
  .page-resources-faq__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-faq__button {
    width: 80%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-resources-faq {
    padding-top: var(--header-offset, 120px);
  }
  .page-resources-faq__hero-section {
    padding-top: var(--header-offset, 120px);
    padding: 40px 15px;
  }
  .page-resources-faq__hero-title {
    font-size: 2em;
  }
  .page-resources-faq__hero-description {
    font-size: 1em;
  }
  .page-resources-faq__content-area {
    padding: 30px 15px;
  }
  .page-resources-faq__table-of-contents {
    padding: 20px;
  }
  .page-resources-faq__toc-title {
    font-size: 1.5em;
  }
  .page-resources-faq__section-title {
    font-size: 1.6em;
  }
  .page-resources-faq__accordion-header {
    font-size: 1.1em;
    padding: 10px 0;
  }
  .page-resources-faq__accordion-content p {
    font-size: 0.95em;
  }
  .page-resources-faq__action-text {
    font-size: 1.2em;
  }
  .page-resources-faq__hero-image img,
  .page-resources-faq__section-image img,
  .page-resources-faq__accordion-content img {
    max-width: 100%;
    height: auto;
  }
  .page-resources-faq__hero-image,
  .page-resources-faq__section-image {
    width: 100%;
    height: auto;
    min-width: 200px; /* Ensure content images are not too small */
    min-height: 200px;
  }
  .page-resources-faq__accordion-content img {
    min-width: 200px;
    min-height: 200px;
  }
  /* Enforce content area images to be responsive and not cause horizontal scroll */
  .page-resources-faq img {
    max-width: 100% !important;
    height: auto !important;
  }
}