/* style/faq.css */

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

/* Base styles for the FAQ page, ensuring light text on dark background */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for the page */
  background-color: var(--background-color-page, #08160F); /* Custom background color for the page main content */
  line-height: 1.6;
  padding-bottom: 40px; /* Space above footer */
}

/* Fixed header spacing - body padding-top is handled by shared.css */
/* First section (hero) should have a small top padding, not --header-offset */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Ensure no overflow */
  padding: 10px 0 40px 0; /* Small top padding, more bottom padding */
  box-sizing: border-box;
  text-align: center;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and content */
}

.page-faq__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Section styling */
.page-faq__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
}

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

.page-faq__faq-section {
  padding: 60px 0;
  background-color: var(--background-color-card, #11271B); /* Card background for FAQ section */
}

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

.page-faq__faq-item {
  background-color: var(--background-color-page, #08160F); /* Slightly darker background for individual FAQ items */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--text-main, #F2FFF6);
  background-color: var(--background-color-card, #11271B); /* Same as section background for summary */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker */
}

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

.page-faq__faq-question:hover {
  background-color: var(--deep-green, #0A4B2C); /* Slightly darker on hover */
}

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

.page-faq__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  border-top: 1px solid var(--divider-color, #1E3A2A);
}

.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: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

/* CTA Section */
.page-faq__cta-section {
  background-color: var(--background-color-page, #08160F);
  padding: 80px 0;
  text-align: center;
}

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

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

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 15px; /* Add padding to prevent overflow */
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  min-width: 180px;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-faq__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 255, 100, 0.3);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 255, 100, 0.4);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--glow-color, #57E38D);
  border: 2px solid var(--glow-color, #57E38D);
}

.page-faq__btn-secondary:hover {
  background: var(--glow-color, #57E38D);
  color: var(--background-color-page, #08160F);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.3);
}

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

  .page-faq__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }

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

  .page-faq__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-faq__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

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

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

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

  /* Image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all image containers are responsive */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Video responsiveness (if any, though not explicitly in HTML for FAQ) */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-faq__video-section {
    padding-top: 10px !important;
  }
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button responsiveness */
  .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;
  }
  
  .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;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

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

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

/* Ensure contrast for text on various backgrounds */
/* The main page background is dark, so text is light by default */
/* For card-like elements or sections that might have different backgrounds */
.page-faq__card,
.page-faq__section,
.page-faq__box {
  /* Inherits from .page-faq or specific background set above */
  color: var(--text-main, #F2FFF6); 
}

/* Specific dark background sections (like .page-faq__faq-section) */
.page-faq__faq-section {
  background: var(--background-color-card, #11271B);
  color: var(--text-main, #F2FFF6);
}

/* Button text contrast is handled by their specific styles */
/* Primary button has white text on green gradient */
/* Secondary button has green text on transparent/white background (on hover) */