/* style/faq.css */

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

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--header-offset, 120px) 20px 60px;
  background-color: #000000;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

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

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45;
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 0 10px;
}

.page-faq__hero-button--primary {
  background-color: #FCBC45;
  color: #000000; /* Dark text for login button */
  border: 2px solid #FCBC45;
}

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

.page-faq__hero-button--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-faq__hero-button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

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

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

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

.page-faq__accordion-item {
  background-color: #F8F8F8;
  border: 1px solid #E0E0E0;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__accordion-header {
  padding: 20px 25px;
  font-size: 1.3em;
  color: #000000;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #FFFFFF;
  transition: background-color 0.3s ease;
}

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

.page-faq__accordion-header::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-faq__accordion-item.active .page-faq__accordion-header::after {
  content: '-';
  transform: rotate(0deg); /* No rotation for +/- */
}

.page-faq__accordion-content {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background-color: #F8F8F8;
  color: #555555;
  font-size: 1.1em;
  line-height: 1.6;
}

.page-faq__accordion-item.active .page-faq__accordion-content {
  max-height: 500px; /* Adjust as needed */
  padding: 20px 25px;
}

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

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

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

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

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

.page-faq__cta-section .page-faq__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-faq__cta-content {
  max-width: 700px;
}

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

.page-faq__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
}

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

.page-faq__cta-button--support {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-faq__cta-button--support:hover {
  background-color: #F0F0F0;
  transform: translateY(-2px);
}

.page-faq__cta-button--register {
  background-color: #FCBC45;
  color: #000000; /* Dark text for register button */
  border: 2px solid #FCBC45;
}

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

.page-faq__cta-image-wrapper {
  width: 100%;
  max-width: 600px;
}

.page-faq__cta-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-faq__cta-section .page-faq__container {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .page-faq__cta-content {
    text-align: left;
  }

  .page-faq__cta-image-wrapper {
    order: 2;
  }
}

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

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

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

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

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

  .page-faq__accordion-content {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure header offset is applied */
    padding-bottom: 40px;
  }

  .page-faq__accordion-section,
  .page-faq__cta-section {
    padding: 40px 15px;
  }

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

  /* Ensure images are responsive and don't overflow */
  .page-faq__hero-image,
  .page-faq__cta-image,
  .page-faq img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
  }
}

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

  .page-faq__hero-button {
    display: block;
    margin: 10px auto;
    width: calc(100% - 20px);
    max-width: 300px;
  }

  .page-faq__cta-button {
    display: block;
    margin: 10px auto;
    width: calc(100% - 30px);
    max-width: 300px;
  }

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

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