/* style/faq.css */

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

.page-faq {
  background-color: var(--qh888-bg);
  color: var(--qh888-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body already handles --header-offset, so only small top padding here */
  overflow: hidden;
  background-color: var(--qh888-deep-green);
}

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

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-faq__hero-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  z-index: 1;
  position: relative;
  transform: translateY(-50px); /* Pull content slightly over the image */
  background-color: var(--qh888-deep-green); /* Ensure background for text */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: var(--qh888-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-faq__description {
  font-size: 1.1em;
  color: var(--qh888-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-faq__btn-primary {
  background: var(--qh888-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--qh888-gold);
  border: 2px solid var(--qh888-gold);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-faq__btn-secondary:hover {
  background-color: var(--qh888-gold);
  color: var(--qh888-bg);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

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

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

.page-faq__section-title {
  font-size: 2.5em;
  color: var(--qh888-gold);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

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

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

.page-faq__faq-item {
  background-color: var(--qh888-card-bg);
  border: 1px solid var(--qh888-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: var(--qh888-text-main);
}

.page-faq__faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15em;
  color: var(--qh888-text-main);
  background-color: rgba(17, 168, 78, 0.1);
  border-bottom: 1px solid var(--qh888-divider);
  transition: background-color 0.3s ease;
  list-style: none; /* For <details> summary */
}

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

.page-faq__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.2);
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: var(--qh888-gold);
  margin-left: 15px;
}

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

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

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

.page-faq__faq-answer a {
  color: var(--qh888-secondary);
  text-decoration: none;
  font-weight: bold;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
  color: var(--qh888-gold);
}

/* <details> specific styles for open state */
.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: rgba(17, 168, 78, 0.25);
}

.page-faq__faq-item[open] > .page-faq__faq-question .page-faq__faq-toggle {
  content: '−'; /* This is handled by JS for details as well for consistency */
}

/* CTA Bottom Section */
.page-faq__cta-bottom {
  text-align: center;
  padding: 60px 20px 40px 20px;
  background-color: var(--qh888-deep-green);
  border-radius: 12px;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-faq__cta-text {
  font-size: 1.4em;
  color: var(--qh888-text-main);
  margin-bottom: 30px;
  font-weight: bold;
}

/* General image styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure content area images are not too small */
.page-faq__faq-answer img { /* Example of content area image */
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 30px 20px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-faq__description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-faq__hero-content {
    transform: translateY(-30px);
    padding: 20px 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }
  .page-faq__description {
    font-size: 0.95em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-faq__faq-list-section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-faq__faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-faq__faq-question {
    padding: 18px 20px;
    font-size: 1.05em;
  }
  .page-faq__faq-answer {
    padding: 18px 20px;
    font-size: 0.95em;
  }
  .page-faq__cta-bottom {
    padding: 40px 15px 30px 15px;
    margin-top: 40px;
  }
  .page-faq__cta-text {
    font-size: 1.2em;
  }

  /* Mobile responsive for images and containers */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__faq-list-section,
  .page-faq__cta-bottom,
  .page-faq__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-faq__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__hero-image {
    filter: brightness(0.6) !important; /* Slightly more dim for mobile text */
  }
  .page-faq__faq-answer img { /* Ensure content area images are responsive */
    min-width: unset !important; /* Allow smaller images on mobile if needed, but still > 200px from outer rule */
    min-height: unset !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.2em, 7vw, 1.8em);
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__faq-question {
    font-size: 1em;
  }
  .page-faq__faq-answer {
    font-size: 0.9em;
  }
  .page-faq__cta-text {
    font-size: 1.1em;
  }
}