/* style/faq.css */
/*
  Body background is #08160F (dark) from shared.css, so text color should be light.
  Custom colors:
  Buttons: linear-gradient(180deg, #2AD16F 0%, #13994A 100%)
  Card BG: #11271B
  Background: #08160F
  Text Main: #F2FFF6
  Text Secondary: #A7D9B8
  Border: #2E7A4E
  Glow: #57E38D
  Gold: #F2C14E
  Divider: #1E3A2A
  Deep Green: #0A4B2C
*/

.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for the page content */
  background-color: var(--background, #08160F); /* Ensure consistency if not inherited */
}

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

.page-faq__hero-video-container {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Max width for the video display */
  margin-bottom: 30px; /* Space between video and content */
  cursor: pointer; /* Indicate clickability */
}

.page-faq__hero-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  filter: none; /* Ensure no filter is applied */
  object-fit: cover; /* Ensure video covers the area */
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

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

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

/* General Section Styling */
.page-faq__section {
  padding: 80px 20px;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

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

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

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

.page-faq__faq-intro-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 600px;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  filter: none; /* Ensure no filter is applied */
}

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

.page-faq__faq-item {
  background-color: var(--card-bg, #11271B); /* Card BG */
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #2E7A4E); /* Border color */
  overflow: hidden;
}

.page-faq__faq-details {
  /* For native details tag */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--card-bg, #11271B);
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(34, 199, 104, 0.1); /* Lighter hover effect */
}

.page-faq__faq-details[open] > .page-faq__faq-question {
  background-color: rgba(34, 199, 104, 0.15);
}

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

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

/* Hide default marker for details summary */
.page-faq__faq-details summary {
  list-style: none;
}
.page-faq__faq-details summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-answer {
  padding: 15px 25px 25px 25px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  background-color: rgba(17, 39, 27, 0.8); /* Slightly lighter background for answer */
  border-top: 1px solid var(--divider, #1E3A2A); /* Divider color */
}

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

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

.page-faq__faq-answer li {
  margin-bottom: 8px;
  color: inherit;
}

.page-faq__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  filter: none; /* Ensure no filter is applied */
}

/* Call to Action Section */
.page-faq__call-to-action {
  text-align: center;
  padding: 80px 20px;
}

.page-faq__dark-bg {
  background-color: var(--deep-green, #0A4B2C); /* Use Deep Green for a darker card */
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border, #2E7A4E);
}

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

.page-faq__cta-buttons--inline {
  margin-top: 20px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: var(--glow, #57E38D);
  color: #08160F; /* Dark text on glow background */
  transform: translateY(-2px);
}

.page-faq__btn-text-link {
  color: var(--glow, #57E38D); /* Glow color for text links */
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 10px;
}

.page-faq__btn-text-link:hover {
  color: #F2C14E; /* Gold color on hover */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-faq__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-faq__faq-question {
    font-size: 1.1rem;
    padding: 18px 20px;
  }
  .page-faq__faq-answer {
    padding: 12px 20px 20px 20px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, small top margin for section */
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-faq__description {
    font-size: 1rem;
  }

  .page-faq__section {
    padding: 50px 15px;
  }

  .page-faq__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 15px;
  }
  .page-faq__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  /* Images responsiveness for content area */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-video-container,
  .page-faq__faq-intro-image,
  .page-faq__content-image,
  .page-faq__dark-bg { /* Added dark-bg here */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Buttons responsiveness */
  .page-faq__cta-button,
  .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; /* Add padding to prevent text from touching edges */
    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-wrap: wrap !important; /* Allow buttons to wrap */
    gap: 10px; /* Space between wrapped buttons */
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-faq__dark-bg {
    padding: 30px 15px !important;
  }

  .page-faq__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-faq__faq-answer {
    padding: 10px 15px 15px 15px;
  }
  /* Video responsiveness */
  .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;
  }
  
  /* Video section specific padding for mobile */
  .page-faq__video-section {
    padding-top: 10px !important;
  }
}