/* style/faq.css */

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

.page-faq {
  background-color: var(--page-faq-background); /* Dark background */
  color: var(--page-faq-text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

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

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Subtle overlay */
  filter: none; /* Ensure no filter applied */
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text readability */
  border-radius: 10px;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--page-faq-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* General Section Styles */
.page-faq__section-spacing {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-faq__section-title {
  font-size: 2.2em;
  font-weight: 600;
  color: var(--page-faq-text-main);
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__section-title--light {
  color: var(--page-faq-text-main); /* Already light, but explicit */
}

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

.page-faq__faq-list--light .page-faq__faq-item {
  background-color: var(--page-faq-deep-green); /* Use a slightly different dark green for contrast */
}

.page-faq__faq-item {
  background-color: var(--page-faq-card-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--page-faq-border);
}

.page-faq__faq-item details {
  background-color: transparent; /* details element itself should not have background */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-faq-text-main);
  cursor: pointer;
  background-color: var(--page-faq-card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker */
}

.page-faq__faq-question:hover {
  background-color: var(--page-faq-deep-green);
}

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

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

.page-faq__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--page-faq-text-secondary);
  line-height: 1.8;
}

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

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-faq__btn-primary {
  background: var(--page-faq-button-gradient);
  color: var(--page-faq-text-main); /* Light text on dark button */
  border: 2px solid transparent;
  margin: 0 10px 10px 0;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4); /* Glow effect */
}

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

.page-faq__btn-secondary:hover {
  background: var(--page-faq-glow);
  color: var(--page-faq-background); /* Dark text on light green button */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4); /* Glow effect */
}

/* Image content within FAQ answer */
.page-faq__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  filter: none; /* Ensure no filter applied */
}

/* Dark Section */
.page-faq__dark-section {
  background-color: var(--page-faq-deep-green);
  color: var(--page-faq-text-main);
  padding: 60px 20px;
  max-width: 100%; /* Ensure full width for dark section */
}

.page-faq__dark-section .page-faq__faq-item {
  background-color: var(--page-faq-card-bg); /* Card BG for items within dark section */
}

.page-faq__dark-section .page-faq__faq-question {
  background-color: var(--page-faq-card-bg);
}

.page-faq__dark-section .page-faq__faq-question:hover {
  background-color: var(--page-faq-background);
}

/* CTA Section */
.page-faq__cta-section {
  padding: 80px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.page-faq__cta-card {
  background: var(--page-faq-card-bg);
  border-radius: 12px;
  padding: 50px;
  border: 1px solid var(--page-faq-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-title {
  font-size: 2.5em;
  color: var(--page-faq-text-main);
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: var(--page-faq-text-secondary);
  margin-bottom: 40px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
  }

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

  .page-faq__main-title {
    font-size: 2em; /* Adjusted for mobile */
  }

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

  .page-faq__section-spacing {
    padding: 40px 15px;
  }

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

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 0 10px 0 !important; /* Stack buttons */
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-faq__cta-card {
    padding: 30px;
  }

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

  /* Image responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers for images/videos/buttons */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-faq__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
}