.page-faq {
  color: #333333; /* Dark text for default light body background */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #0d0d0d; /* Dark background for hero content readability */
}

.page-faq__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 900px;
}

.page-faq__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-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, transform 0.2s ease;
  white-space: nowrap;
}

.page-faq__button--primary {
  background-color: #FFD700; /* Gold primary button */
  color: #8B0000; /* Dark red text for contrast */
  border: 2px solid #FFD700;
}

.page-faq__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-faq__button--secondary {
  background-color: #8B0000; /* Dark red secondary button */
  color: #FFD700; /* Gold text for contrast */
  border: 2px solid #8B0000;
}

.page-faq__button--secondary:hover {
  background-color: #6b0000;
  transform: translateY(-2px);
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  margin-top: -80px; /* Overlap with hero for visual flow */
  position: relative;
  z-index: 2;
}

.page-faq__section-title {
  font-size: 2.8em;
  color: #8B0000; /* Dark red for section titles */
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-faq__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 20px auto 0;
  border-radius: 2px;
}

.page-faq__accordion-container {
  margin-top: 30px;
}

.page-faq__accordion-item {
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-faq__accordion-header {
  background-color: #f9f9f9;
  color: #333333;
  padding: 20px 25px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-faq__accordion-header[aria-expanded="true"] {
  background-color: #FFD700; /* Gold when expanded */
  color: #8B0000;
}

.page-faq__accordion-title {
  margin: 0;
  color: inherit;
}

.page-faq__accordion-icon {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-faq__accordion-header[aria-expanded="true"] .page-faq__accordion-icon {
  transform: rotate(45deg);
}

.page-faq__accordion-panel {
  padding: 0 25px;
  background-color: #ffffff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-faq__accordion-panel.page-faq__accordion-panel--active {
  max-height: 1000px; /* Large enough to accommodate content */
  padding: 20px 25px;
}

.page-faq__question {
  margin-bottom: 20px;
}

.page-faq__question h4 {
  font-size: 1.2em;
  color: #8B0000; /* Dark red for question titles */
  margin-bottom: 10px;
}

.page-faq__question p {
  line-height: 1.7;
  font-size: 1.05em;
  color: #555555;
}

.page-faq__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__image--inline {
  max-width: 600px;
  margin: 20px auto; /* Center align for inline images */
}

.page-faq__cta-section {
  background-color: #8B0000; /* Dark red for CTA background */
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 60px;
}

.page-faq__cta-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for CTA title */
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

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

.page-faq__resources-title {
  font-size: 2.2em;
  color: #8B0000; /* Dark red for resources title */
  margin-bottom: 30px;
}

.page-faq__resources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-faq__resource-link {
  display: block;
  background-color: #f0f0f0;
  color: #333333;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-faq__resource-link:hover {
  background-color: #FFD700;
  color: #8B0000;
  border-color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 3em;
  }
  .page-faq__section-title {
    font-size: 2.5em;
  }
  .page-faq__cta-title {
    font-size: 2.2em;
  }
  .page-faq__resources-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px);
    padding: 30px 15px;
  }
  .page-faq__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-faq__hero-buttons,
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-faq__content-area {
    padding: 30px 15px;
    margin-top: -50px;
  }
  .page-faq__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-faq__accordion-header {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-faq__accordion-panel.page-faq__accordion-panel--active {
    padding: 15px 20px;
  }
  .page-faq__question h4 {
    font-size: 1.1em;
  }
  .page-faq__question p {
    font-size: 0.95em;
  }
  .page-faq__image {
    max-width: 100%;
    height: auto;
  }
  .page-faq__image--inline {
    max-width: 100%; /* Ensure images don't overflow */
  }
  .page-faq__cta-section {
    padding: 40px 15px;
    margin-top: 40px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
  .page-faq__related-resources {
    margin-top: 40px;
    padding-top: 30px;
  }
  .page-faq__resources-title {
    font-size: 1.8em;
  }
  .page-faq__resources-list {
    flex-direction: column;
    gap: 10px;
  }
}