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

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--card-bg-color, #11271B);
}

.page-faq__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.page-faq__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-faq__main-title {
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  /* No fixed large font-size, rely on responsive scaling */
}

.page-faq__hero-description {
  color: var(--text-secondary-color, #A7D9B8);
  font-size: 1.1em;
  margin-bottom: 25px;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for contrast */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-faq__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-faq__section {
  padding: 60px 20px;
  background-color: var(--background-color, #08160F);
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

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

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

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

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

.page-faq__faq-list {
  padding: 40px 20px;
}

.page-faq__faq-group {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-main-color, #F2FFF6);
}

.page-faq__faq-item details > summary {
  list-style: none;
}

.page-faq__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-weight: bold;
  font-size: 1.15em;
  cursor: pointer;
  color: var(--text-main-color, #F2FFF6);
  background-color: var(--card-bg-color, #11271B);
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(var(--primary-color-rgb, 17, 168, 78), 0.1);
}

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

.page-faq__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary-color, #A7D9B8);
  font-size: 1em;
  line-height: 1.8;
  /* For non-details fallback, JS will toggle max-height */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 1000px; /* Arbitrary large value for smooth transition */
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* For JS fallback */
}

.page-faq__faq-item.active .page-faq__faq-question {
  background-color: rgba(var(--primary-color-rgb, 17, 168, 78), 0.1);
}

.page-faq__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.5em;
  }

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

@media (max-width: 768px) {
  .page-faq__hero-section,
  .page-faq__section {
    padding: 40px 15px;
  }

  .page-faq__hero-content {
    margin-bottom: 20px;
  }

  .page-faq__main-title {
    font-size: 2em; /* Smaller on mobile, but not fixed large */
    margin-bottom: 10px;
  }

  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-faq__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important;
  }

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

  .page-faq__section-description {
    font-size: 0.95em;
  }

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

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

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow smaller images if needed for layout, but min 200px for content */
    min-height: unset !important;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    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-top: 10px !important;
  }

  /* If multiple buttons are in a group */
  .page-faq__cta-buttons,
  .page-faq__button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

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

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

  .page-faq__faq-question {
    font-size: 0.9em;
  }
}