/* style/faq.css */

/* Custom Colors */
:root {
  --page-faq-primary-color: #11A84E;
  --page-faq-secondary-color: #22C768;
  --page-faq-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --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 {
  font-family: 'Arial', sans-serif;
  color: var(--page-faq-text-main); /* Default text color for dark body background */
  background-color: var(--page-faq-background);
}

.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;
  justify-content: center;
  padding: 10px 0 60px 0; /* body padding-top handles header offset, only small top padding here */
  text-align: center;
  overflow: hidden;
  background-color: var(--page-faq-deep-green);
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
}

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

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

.page-faq__description {
  color: var(--page-faq-text-secondary);
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: var(--page-faq-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--page-faq-glow);
}

.page-faq__btn-secondary {
  background: #ffffff;
  color: var(--page-faq-primary-color);
  border: 2px solid var(--page-faq-primary-color);
  margin-left: 15px;
}

.page-faq__btn-secondary:hover {
  background: var(--page-faq-primary-color);
  color: #ffffff;
  box-shadow: 0 0 15px var(--page-faq-glow);
}

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

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

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

.page-faq__faq-group {
  margin-bottom: 40px;
}

.page-faq__group-title {
  color: var(--page-faq-gold);
  font-size: 1.8em;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--page-faq-divider);
  padding-bottom: 10px;
}

.page-faq__faq-item {
  background-color: var(--page-faq-card-bg);
  border: 1px solid var(--page-faq-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-faq-text-main);
}

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

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

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

.page-faq__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Ensure click on summary toggles */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-faq-gold);
  pointer-events: none; /* Ensure click on summary toggles */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: '−'; /* Changed by JS */
}

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

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

.page-faq__faq-answer a {
  color: var(--page-faq-secondary-color);
  text-decoration: underline;
}

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

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

.page-faq__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-faq__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Related Articles */
.page-faq__related-articles {
  padding: 60px 0;
  background-color: #0A1F16; /* Slightly lighter dark background for contrast */
  color: #F2FFF6; /* Main text color */
}

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

.page-faq__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-faq__article-card {
  background-color: var(--page-faq-card-bg);
  border: 1px solid var(--page-faq-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--page-faq-text-main);
}

.page-faq__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-faq__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-faq__article-heading {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-faq__article-heading a {
  color: var(--page-faq-text-main);
  text-decoration: none;
}

.page-faq__article-heading a:hover {
  color: var(--page-faq-secondary-color);
}

.page-faq__article-meta {
  font-size: 0.9em;
  color: var(--page-faq-text-secondary);
  margin-bottom: 15px;
}

.page-faq__article-excerpt {
  font-size: 1em;
  color: var(--page-faq-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-faq__read-more {
  display: inline-block;
  color: var(--page-faq-secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-faq__read-more:hover {
  text-decoration: underline;
  color: var(--page-faq-gold);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
  .page-faq__section-title, .page-faq__cta-title, .page-faq__related-title {
    font-size: 2em;
  }
  .page-faq__group-title {
    font-size: 1.6em;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
  }
  .page-faq__description, .page-faq__section-description, .page-faq__cta-description, .page-faq__faq-answer {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px !important;
  }

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

  .page-faq__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em) !important;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 15px;
  }

  .page-faq__cta-buttons {
    flex-direction: column !important;
    gap: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px !important;
  }

  .page-faq__faq-list-section, .page-faq__cta-section, .page-faq__related-articles {
    padding: 40px 0;
  }

  .page-faq__section-title, .page-faq__cta-title, .page-faq__related-title {
    font-size: 1.8em;
  }

  .page-faq__group-title {
    font-size: 1.4em;
  }

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

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

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__section, .page-faq__card, .page-faq__container, .page-faq__faq-item, .page-faq__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

@media (max-width: 480px) {
  .page-faq__hero-image {
    max-height: 300px;
  }
  .page-faq__section-title, .page-faq__cta-title, .page-faq__related-title {
    font-size: 1.6em;
  }
  .page-faq__group-title {
    font-size: 1.3em;
  }
  .page-faq__faq-question {
    font-size: 0.95em;
  }
  .page-faq__faq-answer {
    font-size: 0.9em;
  }
}