.page-faq {
  color: #333333;
  background-color: #FFFFFF;
}

.page-faq__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability */
}

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

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

.page-faq__hero-description {
  font-size: 1.25em;
  margin-bottom: 40px;
  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--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-faq__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  transform: translateY(-3px);
}

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

.page-faq__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-3px);
}

.page-faq__accordion-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
}

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

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

.page-faq__accordion-group {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

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

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

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

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

.page-faq__accordion-header[aria-expanded="true"] {
  background-color: #e0e0e0;
}

.page-faq__accordion-question {
  flex-grow: 1;
}

.page-faq__accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
  margin-left: 15px;
}

.page-faq__accordion-icon::before, .page-faq__accordion-icon::after {
  content: '';
  position: absolute;
  background-color: #000000;
  transition: transform 0.3s ease;
}

.page-faq__accordion-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.page-faq__accordion-icon::after {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.page-faq__accordion-header[aria-expanded="true"] .page-faq__accordion-icon::after {
  transform: translateX(-50%) rotate(90deg); /* Hide vertical bar for expanded state */
  opacity: 0;
}

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

.page-faq__accordion-panel[aria-hidden="false"] {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px;
}

.page-faq__accordion-answer {
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
}

.page-faq__accordion-answer a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: 600;
}

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

.page-faq__cta-section {
  padding: 80px 20px;
  background-color: #000000;
  text-align: center;
  color: #FFFFFF;
}

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

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

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

.page-faq__button--contact:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 3em;
  }
  .page-faq__hero-description {
    font-size: 1.1em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-faq__accordion-header {
    font-size: 1em;
    padding: 15px;
  }
  .page-faq__accordion-panel[aria-hidden="false"] {
    padding: 15px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 0.95em;
  }
  /* Ensure all images within .page-faq are responsive and do not overflow */
  .page-faq img {
    max-width: 100%;
    height: auto;
  }
  .page-faq__hero-image {
    position: relative; /* Adjust for better mobile display, or keep absolute with max-height */
    height: 300px; /* Example fixed height for mobile hero */
  }
  .page-faq__hero-container {
    padding: 30px 15px;
  }
  .page-faq__hero-content {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__hero-description {
    font-size: 0.9em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__accordion-header {
    font-size: 0.9em;
  }
  .page-faq__cta-title {
    font-size: 1.5em;
  }
}