.page-faq {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for default light body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-faq__hero-section {
  background-color: #f8f8f8;
  text-align: center;
  padding: 60px 0 0; /* Adjusted padding as image is below content */
  position: relative;
  overflow: hidden;
}

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

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -80px; /* Overlap with hero text for visual flow */
  position: relative;
  z-index: 0;
  min-width: 200px;
  min-height: 200px;
}

.page-faq__main-title {
  font-size: 2.8em;
  color: #8B0000; /* Auxiliary color for emphasis */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-faq__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 120px;
  text-align: center;
}

.page-faq__button--register {
  background-color: #FFD700; /* Main color */
  color: #8B0000; /* Auxiliary color for contrast */
  border: 2px solid #FFD700;
}

.page-faq__button--register:hover {
  background-color: #e6c200;
  color: #6a0000;
}

.page-faq__button--login {
  background-color: #8B0000; /* Auxiliary color */
  color: #FFD700; /* Main color for contrast */
  border: 2px solid #8B0000;
}

.page-faq__button--login:hover {
  background-color: #6a0000;
  color: #e6c200;
}

.page-faq__questions-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-faq__section-title {
  font-size: 2.2em;
  color: #8B0000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__accordion-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__question-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-faq__question-summary {
  display: flex;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  position: relative;
  background-color: #fdfdfd;
  border-bottom: 1px solid transparent; /* Placeholder for active state */
  transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.page-faq__question-summary:hover {
  background-color: #fffbe6;
}

.page-faq__question-item[open] .page-faq__question-summary {
  background-color: #fffbe6;
  border-bottom-color: #eee;
  color: #8B0000;
}

.page-faq__question-summary::-webkit-details-marker {
  display: none;
}

.page-faq__question-summary::after {
  content: '+';
  font-size: 1.5em;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFD700; /* Main color for indicator */
  transition: transform 0.3s ease;
}

.page-faq__question-item[open] .page-faq__question-summary::after {
  content: '-';
  transform: translateY(-50%) rotate(0deg);
}

.page-faq__answer-content {
  padding: 20px 25px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #eee;
}

.page-faq__answer-content p {
  margin-bottom: 15px;
}

.page-faq__button--inline {
  background-color: #FFD700;
  color: #8B0000;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.9em;
  margin-top: 10px;
  border: none;
}

.page-faq__button--inline:hover {
  background-color: #e6c200;
}

.page-faq__cta-section {
  background-color: #8B0000; /* Auxiliary color */
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-faq__cta-section--bottom {
  padding: 80px 0 0; /* Adjusted padding for image below */
}

.page-faq__cta-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.page-faq__cta-title {
  font-size: 2.5em;
  color: #FFD700; /* Main color */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-faq__cta-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -80px; /* Overlap with CTA content */
  position: relative;
  z-index: 0;
  min-width: 200px;
  min-height: 200px;
}

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

.page-faq__resources-title {
  font-size: 2.2em;
  color: #8B0000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.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: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333333;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-faq__resource-card-title {
  font-size: 1.3em;
  color: #8B0000;
  padding: 15px 20px 10px;
  font-weight: bold;
}

.page-faq__resource-card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 40px;
    padding-bottom: 20px;
  }

  .page-faq__hero-image,
  .page-faq__cta-image,
  .page-faq__resource-image,
  .page-faq__questions-section img,
  .page-faq__cta-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

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

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

  .page-faq__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

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

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

  .page-faq__question-summary {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-faq__question-summary::after {
    right: 15px;
  }

  .page-faq__answer-content {
    padding: 15px 20px;
  }

  .page-faq__cta-section {
    padding: 50px 0;
  }

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

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

  .page-faq__resource-image {
    height: 180px;
  }
}

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

  .page-faq__section-title,
  .page-faq__cta-title,
  .page-faq__resources-title {
    font-size: 1.5em;
  }

  .page-faq__hero-image,
  .page-faq__cta-image {
    margin-top: -50px;
  }
}