/* style/faq.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-faq {
  color: var(--text-main-color, #F2FFF6); /* Default text color for the page */
  background-color: var(--background-color, #08160F); /* Ensure consistency with body bg */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  position: relative;
  background-color: var(--background-color, #08160F);
}

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

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

.page-faq__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

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

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

/* CTA Buttons */
.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  gap: 20px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: 2px solid transparent;
}

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

.page-faq__btn-secondary {
  background-color: 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: var(--text-main-color, #F2FFF6);
  transform: translateY(-2px);
}

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

.page-faq__section-title {
  color: var(--text-main-color, #F2FFF6);
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  margin-bottom: 15px;
}

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

.page-faq__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  width: 100%; /* Ensure desktop width is 100% */
  background: #000;
  border-radius: 12px;
  margin-bottom: 30px;
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer; /* Indicate clickable */
}

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

/* Accordion Section (FAQ) */
.page-faq__accordion-section {
  padding: 80px 0;
  background-color: var(--card-bg-color, #11271B); /* Darker background for FAQ section */
}

.page-faq__faq-list {
  margin-top: 40px;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--divider-color, #1E3A2A);
  border-radius: 8px;
  background-color: var(--card-bg-color, #11271B);
  box-sizing: border-box;
}

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

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

.page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
  text-align: left;
}

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

.page-faq__faq-answer a {
  color: var(--glow-color, #57E38D); /* Link color */
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: var(--gold-color, #F2C14E);
}


/* CTA Section at the bottom */
.page-faq__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-green-color, #0A4B2C); /* Use a deeper green from custom colors */
}

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 0 40px 0;
  }

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

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

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important; /* Allow button text to wrap */
    word-wrap: break-word !important;
  }

  .page-faq__intro-video-section,
  .page-faq__accordion-section,
  .page-faq__cta-section {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 15px; /* Add horizontal padding to containers */
  }

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

  .page-faq__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

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

  .page-faq__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

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

  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video container responsiveness */
  .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;
  }

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

/* Custom Color Variables - ensure these are defined, maybe from shared.css or here if not */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Applying custom colors to relevant elements for contrast */
/* Main content area text color is set in .page-faq */
/* Section titles and descriptions use variables defined above */
/* FAQ item backgrounds and text colors are set using variables */
/* Buttons use gradient and specific text color */

/* Ensure all links have appropriate color and hover states for dark background */
.page-faq a {
  color: var(--glow-color, #57E38D);
  text-decoration: none;
}
.page-faq a:hover {
  color: var(--gold-color, #F2C14E);
  text-decoration: underline;
}