/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #121212, so use light text */
}

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-faq__hero-section {
  position: relative;
  padding: 80px 0 60px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #017439; /* Brand primary color */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

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

.page-faq__intro-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-faq__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

.page-faq__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

.page-faq__content-area {
  background-color: #1a1a1a; /* Slightly lighter dark background for content */
  padding: 60px 0;
  color: #ffffff; /* Ensure light text on dark background */
}

.page-faq__section-title {
  font-size: 2.2em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__section-description {
  font-size: 1.05em;
  color: #e0e0e0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

.page-faq__accordion {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

.page-faq__faq-item[open] .page-faq__faq-question,
.page-faq__faq-item.active .page-faq__faq-question {
  background-color: #017439; /* Brand primary for active question */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #e0e0e0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 2000px; /* Sufficiently large to reveal content */
  transition: max-height 0.7s ease-in;
}

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

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

.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
}

.page-faq__cta-bottom {
  text-align: center;
  margin-top: 80px;
  padding: 40px;
  background-color: rgba(1, 116, 57, 0.15); /* Lighter brand color tint */
  border-radius: 10px;
  border: 1px solid rgba(1, 116, 57, 0.3);
}

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

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.5em;
  }
  .page-faq__hero-section {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    min-height: 300px;
  }
  .page-faq__main-title {
    font-size: 2em;
  }
  .page-faq__intro-description {
    font-size: 1em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    padding: 12px 15px;
  }
  .page-faq__content-area {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px 15px;
  }
  .page-faq__cta-bottom {
    margin-top: 60px;
    padding: 30px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }

  /* Mobile image, video, button responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper,
  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-faq__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-faq__cta-button,
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__hero-section {
    min-height: 250px;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__faq-question {
    font-size: 1em;
  }
  .page-faq__cta-title {
    font-size: 1.6em;
  }
}