/* style/faq.css */

/* Base styles for the page, ensuring text color contrasts with a potentially dark shared body background */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default to light text for dark background */
  background-color: var(--background-color, #08160F); /* Main page background */
}

/* General section padding and max-width */
.page-faq__section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

.page-faq__dark-section {
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-faq__section-title,
.page-faq__cta-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color, #F2FFF6);
}

.page-faq__text-block,
.page-faq__description,
.page-faq p,
.page-faq li {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and content */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-faq__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-main-color, #F2FFF6);
}

.page-faq__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-secondary-color, #A7D9B8);
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for primary button */
  border: none;
}

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

.page-faq__btn-secondary {
  background: transparent;
  color: var(--text-main-color, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-faq__btn-secondary:hover {
  background-color: var(--border-color, #2E7A4E);
  color: #ffffff;
}

/* FAQ List */
.page-faq__faq-list {
  margin-top: 40px;
}

.page-faq__faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: var(--card-bg-color, #11271B); /* Card background */
  border: 1px solid var(--divider-color, #1E3A2A);
}

.page-faq__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--text-main-color, #F2FFF6);
  background-color: var(--card-bg-color, #11271B);
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  color: var(--text-main-color, #F2FFF6);
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color, #57E38D);
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: var(--text-secondary-color, #A7D9B8);
  background-color: var(--card-bg-color, #11271B);
}

.page-faq__faq-item[open] summary {
  border-bottom: 1px solid var(--deep-green-color, #0A4B2C);
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px; /* Large enough to show content */
  transition: max-height 0.5s ease-in-out;
}

.page-faq__faq-item:not(.active) .page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

/* Images within content */
.page-faq__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Bottom CTA Section */
.page-faq__cta-bottom-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--deep-green-color, #0A4B2C);
  color: var(--text-main-color, #F2FFF6);
}

.page-faq__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-faq__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 0 40px;
  }
}

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

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

  .page-faq__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 30px;
  }

  .page-faq__main-title {
    font-size: clamp(2em, 7vw, 2.5em);
  }

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__section,
  .page-faq__cta-bottom-section {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
    margin-bottom: 30px;
  }

  .page-faq__text-block,
  .page-faq p,
  .page-faq li {
    font-size: 0.95em;
  }

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

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

  .page-faq img,
  .page-faq__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__hero-image-wrapper,
  .page-faq__hero-content,
  .page-faq__faq-item,
  .page-faq__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__hero-content,
  .page-faq__cta-bottom-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific container for images/videos in content sections */
  .page-faq__image-container,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-image-wrapper {
    max-height: 200px;
  }

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

  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: clamp(1.6em, 7vw, 2em);
  }
}