.page-faq {
  color: #ffffff; /* Text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Main background color */
  position: relative;
  overflow: hidden;
}

.page-faq__hero-content {
  max-width: 900px;
  z-index: 1;
  margin-bottom: 40px;
}

.page-faq__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(252, 188, 69, 0.5);
}

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

.page-faq__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for CTA */
  color: #000000; /* Black text on yellow button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-faq__hero-button:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #000000; /* Main content background */
}

.page-faq__faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-faq__faq-category {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible cards on dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(252, 188, 69, 0.2);
}

.page-faq__category-title {
  font-size: 2.2em;
  color: #FCBC45;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 2px solid rgba(252, 188, 69, 0.5);
  padding-bottom: 15px;
}

.page-faq__accordion-item {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-faq__accordion-header {
  font-size: 1.3em;
  color: #FFFFFF;
  padding: 15px 20px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.page-faq__accordion-header:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.page-faq__accordion-header::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #FCBC45;
  transition: transform 0.3s ease;
}

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

.page-faq__accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  padding: 0 20px;
  color: #cccccc;
  font-size: 1.05em;
}

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

.page-faq__accordion-body p {
  margin-bottom: 15px;
}

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

.page-faq__accordion-body a {
  color: #FCBC45;
  text-decoration: none;
}

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

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

.page-faq__cta-section {
  background-color: #000000;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(252, 188, 69, 0.3);
}

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

.page-faq__cta-title {
  font-size: 2.8em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

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

.page-faq__cta-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.3s ease, color 0.3s ease;
  margin: 0 10px;
  min-width: 180px;
}

.page-faq__cta-button--login {
  background-color: #FCBC45; /* Login color */
  color: #000000;
}

.page-faq__cta-button--login:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-faq__cta-button--register {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
}

.page-faq__cta-button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

.page-faq__cta-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-faq__cta-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: brightness(0.6);
}

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

  .page-faq__category-title {
    font-size: 1.8em;
  }

  .page-faq__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
  }

  .page-faq__hero-title {
    font-size: 2.5em;
  }

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

  .page-faq__content-area {
    padding: 30px 15px;
  }

  .page-faq__category-title {
    font-size: 1.6em;
  }

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

  .page-faq__accordion-header::after {
    right: 15px;
  }

  .page-faq__accordion-body {
    font-size: 0.95em;
    padding: 0 15px;
  }

  .page-faq__cta-section {
    padding: 60px 15px;
  }

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

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

  .page-faq__cta-button {
    width: 100%;
    margin: 10px 0;
  }

  /* Ensure all content images are responsive and don't overflow */
  .page-faq__content-area img,
  .page-faq__faq-category img,
  .page-faq__accordion-body img,
  .page-faq__cta-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

  .page-faq__hero-image,
  .page-faq__cta-image {
    max-width: 100%;
    height: auto;
  }
}

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

  .page-faq__category-title {
    font-size: 1.4em;
  }

  .page-faq__accordion-header {
    font-size: 1em;
  }

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

  .page-faq__cta-button {
    padding: 12px 20px;
  }
}