/* style/faq.css */

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

.page-faq__hero-section {
  background-color: #000000; /* Dark background for hero */
  padding-top: var(--header-offset, 120px);
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-faq__hero-container {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  color: #FFFFFF; /* Light text on dark background */
}

.page-faq__main-title {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login color for emphasis */
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #FFFFFF;
}

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

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

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

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

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

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

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF; /* White background for content */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-top: -60px;
  position: relative;
  z-index: 5;
}

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

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq__faq-item {
  background-color: #F8F8F8;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E0E0E0;
}

.page-faq__faq-question {
  font-size: 1.3em;
  font-weight: 600;
  color: #000000;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  background-color: #EFEFEF;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-faq__faq-question:hover {
  background-color: #E0E0E0;
}

.page-faq__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background-color: #FFFFFF;
  color: #333333;
}

.page-faq__faq-answer.open {
  max-height: 1000px; /* Adjust as needed for content */
  padding: 20px 25px;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__faq-answer a {
  color: #000000;
  text-decoration: underline;
  font-weight: 500;
}

.page-faq__faq-answer a:hover {
  color: #FCBC45;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-faq__cta-button:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FCBC45;
  transform: translateY(-2px);
}

.page-faq__section-image {
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto; /* Ensures image scales proportionally */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

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

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-faq__cta-button--contact {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-right: 15px;
}

.page-faq__cta-button--contact:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px);
    padding-bottom: 40px;
  }

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

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

  .page-faq__hero-button {
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 5px 15px;
    min-width: 140px;
  }

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

  .page-faq__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-faq__faq-answer {
    padding: 0 20px;
  }

  .page-faq__faq-answer.open {
    padding: 15px 20px;
  }

  .page-faq__section-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure mobile images are not too small */
    min-height: 200px;
  }

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

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

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

  .page-faq__cta-button--contact,
  .page-faq__cta-button--register {
    margin: 10px 0;
    display: block;
    width: 100%;
  }
  .page-faq img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}