/* style/faq.css */

:root {
  --faq-primary-color: #11A84E;
  --faq-secondary-color: #22C768;
  --faq-bg-dark: #08160F;
  --faq-card-bg: #11271B;
  --faq-text-main: #F2FFF6;
  --faq-text-secondary: #A7D9B8;
  --faq-border-color: #2E7A4E;
  --faq-glow-color: #57E38D;
  --faq-gold-color: #F2C14E;
  --faq-divider-color: #1E3A2A;
  --faq-deep-green: #0A4B2C;
}

/* Base styles for the page */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--faq-text-main); /* Default text color for the page */
  background-color: var(--faq-bg-dark);
  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 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background: linear-gradient(180deg, var(--faq-deep-green) 0%, var(--faq-bg-dark) 100%);
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit hero image height on desktop */
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  padding: 0 20px;
  max-width: 900px;
  box-sizing: border-box;
}

.page-faq__main-title {
  color: var(--faq-gold-color);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-faq__description {
  font-size: 1.15rem;
  color: var(--faq-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--faq-text-main);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts to width */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-faq__btn-secondary {
  display: inline-block;
  background: var(--faq-card-bg);
  color: var(--faq-primary-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--faq-primary-color);
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button adapts to width */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-secondary:hover {
  background: var(--faq-primary-color);
  color: var(--faq-text-main);
}

/* Intro Section */
.page-faq__intro-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--faq-bg-dark);
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--faq-primary-color);
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(87, 227, 141, 0.3);
}

.page-faq__section-title--spacing {
  margin-top: 60px;
}

.page-faq__text-block {
  font-size: 1.05rem;
  color: var(--faq-text-secondary);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 800px;
}

/* Accordion Section */
.page-faq__accordion-section {
  padding: 60px 0;
  background-color: var(--faq-card-bg);
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq__faq-item {
  background-color: var(--faq-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--faq-divider-color);
}

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

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

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

.page-faq__faq-qtext {
  flex-grow: 1;
  color: var(--faq-text-main);
}

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

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05rem;
  color: var(--faq-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

/* Styles for details/summary */
.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 2000px; /* Sufficiently large to show content */
  transition: max-height 0.5s ease-in;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: var(--faq-deep-green);
}

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

.page-faq__faq-answer .page-faq__btn-secondary {
  margin-top: 15px;
}

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

.page-faq__cta-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 1000px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__hero-content {
    margin-top: -50px;
  }

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

  .page-faq__description {
    font-size: 1rem;
  }

  .page-faq__section-title {
    font-size: 1.6rem;
  }

  .page-faq__text-block,
  .page-faq__faq-answer {
    font-size: 0.95rem;
  }

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

  .page-faq__faq-toggle {
    font-size: 1.3rem;
  }

  /* Mobile responsive for images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__intro-section .page-faq__container,
  .page-faq__accordion-section .page-faq__container,
  .page-faq__cta-section .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile responsive for buttons */
  .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__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

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

  .page-faq__section-title--spacing {
    margin-top: 40px;
  }
}