/* style/faq.css */

/* --- General Styles --- */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--bg-color); /* #08160F from shared.css */
}

.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(--gold); /* #F2C14E */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-faq__section-title--center {
  text-align: center;
}

.page-faq__section-description {
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__section-description--center {
  text-align: center;
}

.page-faq__content-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider); /* #1E3A2A */
}

/* --- Hero Section --- */
.page-faq__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  padding-top: 10px; /* Small top padding for the first section */
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of hero image */
  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 contrast */
}

.page-faq__hero-content {
  position: relative; /* Relative to hero section, not absolutely over image */
  text-align: center;
  padding: 40px 20px 60px;
  max-width: 900px;
  z-index: 2; /* Ensure content is above image wrapper if positioned */
}

.page-faq__main-title {
  font-size: 3.2em; /* Use em/rem for relative sizing */
  font-weight: bold;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
  font-size: 1.2em;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-faq__cta-buttons--inline {
  justify-content: flex-start;
  margin-top: 20px;
}

.page-faq__cta-buttons--center {
  justify-content: center;
}

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

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--gold); /* #F2C14E */
  border: 2px solid var(--gold); /* #F2C14E */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__btn-secondary:hover {
  background-color: var(--gold); /* #F2C14E */
  color: var(--deep-green); /* #0A4B2C */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* --- FAQ Accordion --- */
.page-faq__faq-item {
  background-color: var(--card-bg); /* #11271B */
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border); /* #2E7A4E */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--deep-green); /* #0A4B2C */
  border-bottom: 1px solid var(--border); /* #2E7A4E */
  list-style: none; /* Remove default marker for details tag */
  -webkit-touch-callout: none; /* Disable text selection on iOS */
  -webkit-user-select: none; /* Disable text selection on webkit */
  -khtml-user-select: none; /* Disable text selection on Konqueror */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on Internet Explorer/Edge */
  user-select: none; /* Disable text selection */
}

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

.page-faq__faq-item summary:hover {
  background-color: var(--primary-color); /* #11A84E */
}

.page-faq__faq-qtext {
  flex-grow: 1;
  text-align: left;
  color: var(--text-main); /* #F2FFF6 */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--gold); /* #F2C14E */
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary); /* #A7D9B8 */
  background-color: var(--card-bg); /* #11271B */
  border-top: 1px solid var(--border); /* #2E7A4E */
}

.page-faq__faq-answer p {
  margin-bottom: 10px;
  color: var(--text-secondary); /* #A7D9B8 */
}

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

/* --- Image Sections --- */
.page-faq__image-section {
  padding: 40px 0;
  text-align: center;
  background-color: var(--card-bg); /* #11271B */
  border-bottom: 1px solid var(--divider); /* #1E3A2A */
}

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* --- Call to Action Section --- */
.page-faq__cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--deep-green); /* #0A4B2C */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
}

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

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

  .page-faq__main-title {
    font-size: 2.2em;
  }

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

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

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-faq__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__hero-section,
  .page-faq__content-section,
  .page-faq__image-section,
  .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;
  }

  .page-faq__hero-section {
    padding-top: 10px !important; /* body has padding-top from shared, this is just for visual spacing */
  }

  .page-faq__hero-image-wrapper {
    max-height: 300px;
  }

  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0; /* Handled by parent container */
    padding-right: 0; /* Handled by parent container */
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-faq__cta-buttons--inline {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-faq__cta-buttons--center {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__hero-image-wrapper {
    max-height: 250px;
  }
}