/* style/faq.css */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
}

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

.page-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: -1;
}

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

.page-faq__main-title {
  font-size: 3.2em;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-faq__content-area {
  max-width: 1000px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: #1a1a1a; /* Match body background */
  color: #ffffff; /* Ensure light text on dark background */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #cccccc;
}

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

.page-faq__faq-item {
  background-color: #2a2a2a; /* Slightly lighter dark for contrast */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #017439; /* Brand color for question header */
  color: #FFFFFF;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #2a2a2a;
  color: #cccccc;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-faq__faq-answer p {
  margin-bottom: 1em;
  color: #cccccc;
}

.page-faq__faq-answer h4 {
  color: #017439;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 1em;
}

.page-faq__faq-answer li {
  margin-bottom: 0.5em;
}

.page-faq__image-answer {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  display: block;
}

.page-faq__link-inline {
  color: #88cc88; /* Lighter green for links */
  text-decoration: underline;
}

.page-faq__link-inline:hover {
  color: #aaffaa;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-faq__btn-primary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
  margin-right: 15px;
}

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

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

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

.page-faq__cta-section {
  background-color: #017439; /* Brand color for CTA background */
  padding: 60px 20px;
  text-align: center;
  color: #FFFFFF;
  margin-top: 40px;
}

.page-faq__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

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

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

.page-faq__cta-button {
  margin: 0 10px;
  margin-bottom: 15px; /* For stacking on mobile */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    height: 500px;
  }
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__intro-text {
    font-size: 1.1em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
  }
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__intro-text {
    font-size: 1em;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    display: block;
    width: 100%;
    margin: 10px 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-faq__cta-button {
    margin: 10px 0 !important;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px;
  }
  .page-faq__content-area,
  .page-faq__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__image-answer {
    margin-left: 0;
    margin-right: 0;
  }

  .page-faq__section, .page-faq__card, .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-section {
    height: 400px;
  }
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__intro-text {
    font-size: 0.9em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
}