/* style/faq.css */

/* Custom color variables based on the provided palette */
:root {
  --page-faq-bg: #08160F;
  --page-faq-card-bg: #11271B;
  --page-faq-text-main: #F2FFF6;
  --page-faq-text-secondary: #A7D9B8;
  --page-faq-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-faq-border: #2E7A4E;
  --page-faq-glow: #57E38D;
  --page-faq-gold: #F2C14E;
  --page-faq-divider: #1E3A2A;
  --page-faq-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast with body background */
/* Assuming body background is dark (var(--bg)) from shared.css, so text should be light */
.page-faq {
  font-family: Arial, sans-serif;
  color: var(--page-faq-text-main); /* Light text for dark background */
  background-color: var(--page-faq-bg); /* Main background color */
  line-height: 1.6;
  padding-bottom: 60px; /* Space above footer */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 20px; /* Space between image and content */
}

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

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3rem); /* H1 font size clamp */
  font-weight: 700;
  color: var(--page-faq-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.1rem;
  color: var(--page-faq-text-secondary);
  margin-bottom: 30px;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  max-width: 100%; /* Ensure button adapts */
}

.page-faq__btn-primary {
  background: var(--page-faq-btn-gradient);
  color: #ffffff; /* White text for green gradient button */
  border: none;
  margin: 0 10px;
}

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

.page-faq__btn-secondary {
  background: transparent;
  color: var(--page-faq-glow); /* Lighter green for text */
  border: 2px solid var(--page-faq-glow);
  margin: 0 10px;
}

.page-faq__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
}

/* Section Titles */
.page-faq__section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--page-faq-text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  padding-top: 40px;
}

.page-faq__section-description {
  font-size: 1rem;
  color: var(--page-faq-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 40px 0;
  background-color: var(--page-faq-card-bg); /* Darker background for FAQ list */
}

.page-faq__faq-group {
  margin-bottom: 40px;
  background-color: var(--page-faq-card-bg);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--page-faq-border);
}

.page-faq__group-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--page-faq-gold);
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--page-faq-divider);
  border-radius: 8px;
  background-color: var(--page-faq-deep-green); /* Slightly different dark green for items */
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-faq-text-main);
  cursor: pointer;
  background-color: var(--page-faq-deep-green);
  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(var(--page-faq-deep-green), 0.8);
}

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

.page-faq__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  width: 25px;
  text-align: center;
  color: var(--page-faq-gold);
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--page-faq-text-secondary);
}

.page-faq__faq-answer p {
  margin-bottom: 10px;
}

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

.page-faq__inline-link {
  color: var(--page-faq-glow);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-faq__inline-link:hover {
  color: var(--page-faq-gold);
}

/* Images within content */
.page-faq__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* CTA Section */
.page-faq__cta-section {
  background-color: var(--page-faq-bg);
  padding: 60px 20px;
  text-align: center;
}

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

.page-faq__cta-description {
  font-size: 1.1rem;
  color: var(--page-faq-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px 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%; /* Ensure container takes full width */
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-faq__container {
    padding: 0 15px; /* Mobile padding */
  }

  .page-faq__hero-section {
    padding-bottom: 30px;
  }

  .page-faq__main-title {
    font-size: 2rem;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
    margin: 5px 0 !important; /* Adjust margin for stacked buttons */
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-faq__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically on mobile */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__section-title {
    font-size: 1.8rem;
    padding-top: 30px;
  }

  .page-faq__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-faq__faq-group {
    padding: 20px;
    margin-bottom: 30px;
  }

  .page-faq__group-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

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

  .page-faq__faq-toggle {
    font-size: 1.5rem;
    width: 20px;
  }

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

  /* Images responsive on mobile */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* All containers with images should also adapt */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__introduction-section,
  .page-faq__faq-list-section,
  .page-faq__cta-section,
  .page-faq__faq-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Adding padding to sections to prevent content from touching edges */
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding for hero/video sections to ensure small top distance */
  .page-faq__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Ensure images within specific content areas don't shrink below 200px (desktop) */
.page-faq__image-content {
  max-width: 800px; /* Example max-width for desktop content images */
  width: 100%;
  height: auto;
}

/* Placeholder for video section, if it were to exist */
.page-faq__video-section {
  padding-top: 10px; /* Small top padding */
}

.page-faq__video-container {
  width: 100%; /* Desktop width for video container */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden; /* Ensure video doesn't overflow */
}

/* Video specific styles if a video were added */
.page-faq video,
.page-faq__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}
/* No filter property on images to change color */
.page-faq img {
  filter: none;
}