/* style/faq.css */
/* Custom Colors */
:root {
  --page-faq-primary-color: #11A84E;
  --page-faq-secondary-color: #22C768;
  --page-faq-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-faq-card-bg: #11271B;
  --page-faq-background: #08160F;
  --page-faq-text-main: #F2FFF6;
  --page-faq-text-secondary: #A7D9B8;
  --page-faq-border: #2E7A4E;
  --page-faq-glow: #57E38D;
  --page-faq-gold: #F2C14E;
  --page-faq-divider: #1E3A2A;
  --page-faq-deep-green: #0A4B2C;
}

.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--page-faq-text-main); /* Main text color for the page, based on dark body background */
  background-color: var(--page-faq-background); /* Ensure consistent background */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--page-faq-background);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  position: relative;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-faq__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
  width: 90%;
  z-index: 10;
  color: var(--page-faq-text-main);
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--page-faq-text-main);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-faq__description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--page-faq-text-secondary);
}

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

.page-faq__btn-primary {
  background: var(--page-faq-button-gradient);
  color: var(--page-faq-text-main);
  border: none;
  margin-right: 15px;
}

.page-faq__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--page-faq-glow);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--page-faq-primary-color);
  border: 2px solid var(--page-faq-primary-color);
}

.page-faq__btn-secondary:hover {
  background-color: var(--page-faq-primary-color);
  color: var(--page-faq-text-main);
  box-shadow: 0 0 10px rgba(var(--page-faq-primary-color), 0.5);
}

.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: var(--page-faq-background);
}

.page-faq__container {
  max-width: 1000px;
  width: 100%; /* Ensure width 100% for desktop as well */
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--page-faq-text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-faq__faq-item {
  background-color: var(--page-faq-card-bg);
  border: 1px solid var(--page-faq-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

.page-faq__faq-item[open] {
  background-color: var(--page-faq-deep-green);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-faq-text-main);
  cursor: pointer;
  background-color: var(--page-faq-card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: var(--page-faq-deep-green);
}

.page-faq__faq-question:hover {
  background-color: var(--page-faq-deep-green);
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  margin-left: 15px;
  color: var(--page-faq-primary-color);
}

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--page-faq-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 2000px; /* Large enough to accommodate content */
  padding-top: 15px;
}

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

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

.page-faq__faq-answer li {
  margin-bottom: 8px;
  color: var(--page-faq-text-secondary);
}

.page-faq__image-inline {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 20px auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-section {
  padding: 80px 0;
  background-color: var(--page-faq-background);
}

.page-faq__cta-section .page-faq__container {
  background-color: var(--page-faq-deep-green);
  border-radius: 15px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-faq__cta-title {
  font-size: clamp(1.8em, 3.5vw, 3em);
  color: var(--page-faq-text-main);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--page-faq-text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding-bottom: 40px;
  }

  .page-faq__hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly more opaque for mobile */
  }

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

  .page-faq__description {
    font-size: 1em;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 0 10px 0 !important; /* Adjust margins for stacked buttons */
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-faq__faq-list-section {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 15px;
  }

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

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

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

  .page-faq__image-inline {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image {
    filter: brightness(0.5); /* More darken for better mobile text contrast */
  }

  /* Ensure all containers with images/videos/buttons are responsive */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__faq-item,
  .page-faq__cta-section .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-faq__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-faq__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

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

  .page-faq__cta-section .page-faq__container {
    padding: 40px 20px;
  }
}

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

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

  .page-faq__faq-question {
    font-size: 1em;
  }

  .page-faq__faq-answer {
    font-size: 0.95em;
  }
}