/* style/faq.css */
/* 
  Body background color is var(--bg-color) which is #08160F (dark).
  Therefore, main text color should be #F2FFF6.
*/

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main color for dark background */
  background-color: #08160F; /* Background color */
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #08160F; /* Ensure section background matches body */
  overflow: hidden; /* For image */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background: rgba(17, 39, 27, 0.7); /* Card BG with transparency for overlay */
  border-radius: 10px;
}

.page-faq__hero-title {
  font-size: clamp(2em, 5vw, 3.5em);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main for button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-faq__video-section {
  padding: 80px 20px;
  padding-top: 10px; /* Small top padding */
  background-color: #08160F;
  text-align: center;
}

.page-faq__section-header {
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #F2FFF6;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: 1.1em;
  color: #A7D9B8;
}

.page-faq__video-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.page-faq__video-cta {
  margin-top: 40px;
}

.page-faq__faq-section {
  padding: 80px 20px;
  background-color: #08160F;
}

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

.page-faq__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

.page-faq__faq-item[open] {
  background-color: #11271B;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #F2FFF6; /* Text Main */
  list-style: none; /* Remove default marker for details summary */
  position: relative;
  user-select: none;
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #57E38D; /* Glow color */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  /* max-height and overflow handled by browser for <details>, for JS fallback see JS */
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-faq__cta-section {
  max-width: 900px;
  margin: 60px auto 0 auto;
  text-align: center;
  padding: 40px 20px;
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-faq__cta-title {
  font-size: 2em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-faq__cta-button--secondary {
  background: none;
  border: 2px solid #2AD16F; /* Green from button gradient */
  color: #2AD16F;
  margin-left: 15px;
}

.page-faq__cta-button--secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  color: #F2FFF6;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-faq__hero-content {
    padding: 30px 15px;
  }

  .page-faq__hero-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

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

  .page-faq__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-faq__cta-button--secondary {
    margin-left: 0;
    margin-top: 15px; /* Stack buttons on mobile */
  }

  .page-faq__video-section {
    padding: 60px 15px;
    padding-top: 10px !important;
  }

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

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

  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__faq-section {
    padding: 60px 15px;
  }

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

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

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

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

  /* All images must be responsive */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__hero-image {
    max-width: 100% !important;
    height: auto !important;
  }

  .page-faq__video-poster { /* If used */
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Ensure content area images are not smaller than 200px */
.page-faq img:not(.page-faq__hero-image):not(.page-faq__video-poster) {
  min-width: 200px;
  min-height: 200px;
}