/* style/faq.css */
.page-faq {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px);
  background-color: #FFFFFF; /* Assuming a light body background for readability */
}

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

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

.page-faq__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45;
  font-weight: bold;
}

.page-faq__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 10px;
}

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

.page-faq__cta-button--register:hover {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-faq__cta-button--login:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.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__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-faq__section-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 15px;
}

.page-faq__section-description {
  font-size: 1.1em;
  color: #555555;
  max-width: 700px;
  margin: 0 auto;
}

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

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

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

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

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

.page-faq__accordion-header h3 {
  margin: 0;
  color: #000000;
}

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

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

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

.page-faq__accordion-content p {
  padding: 15px 0;
  margin: 0;
  color: #333333;
}

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

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

.page-faq__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

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

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

.page-faq__cta-button--support {
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-faq__cta-button--support:hover {
  background-color: #FFFFFF;
  color: #000000;
}

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

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

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

  .page-faq__intro-text {
    font-size: 1em;
  }

  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 5px;
  }

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

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

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

  .page-faq__accordion-content p {
    padding: 10px 0;
  }

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

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

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

  .page-faq__cta-button--support {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-faq img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure content images are not too small */
.page-faq img:not(.page-faq__hero-image):not(.page-faq__cta-image) {
  min-width: 200px;
  min-height: 200px;
}