/* style/faq.css */

/* --- General Styles for page-faq --- */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Text Main: #F2FFF6 */
  background-color: var(--bg-primary); /* Background: #08160F */
  padding-bottom: 60px; /* Space above footer */
}

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

.page-faq__section {
  padding: 40px 0;
  border-bottom: 1px solid var(--divider-color); /* Divider: #1E3A2A */
}

.page-faq__section:last-of-type {
  border-bottom: none;
}

.page-faq__section-title {
  font-size: 2.5rem;
  color: var(--text-main); /* Text Main: #F2FFF6 */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.3); /* Glow: #57E38D */
}

.page-faq__description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-secondary); /* Text Secondary: #A7D9B8 */
}

/* --- Hero Section --- */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 40px;
  overflow: hidden;
  background-color: var(--bg-primary); /* Background: #08160F */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 1920px;
  height: 1080px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-faq__hero-content {
  position: relative; /* Ensure content is above image if z-index is used, but not overlapping */
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Flexible font size for H1 */
  color: var(--gold-color); /* Gold: #F2C14E */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-faq__intro-text {
  font-size: 1.2rem;
  color: var(--text-secondary); /* Text Secondary: #A7D9B8 */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- CTA Buttons --- */
.page-faq__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.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.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main: #F2FFF6 */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--main-color); /* Main Color: #11A84E */
  border: 2px solid var(--main-color); /* Main Color: #11A84E */
}

.page-faq__btn-secondary:hover {
  background-color: var(--main-color); /* Main Color: #11A84E */
  color: #F2FFF6; /* Text Main: #F2FFF6 */
  transform: translateY(-2px);
}

/* --- FAQ List --- */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: var(--card-bg); /* Card BG: #11271B */
  border-radius: 12px;
  border: 1px solid var(--border-color); /* Border: #2E7A4E */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  background-color: var(--deep-green); /* Deep Green: #0A4B2C */
  border-color: var(--glow-color); /* Glow: #57E38D */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-main); /* Text Main: #F2FFF6 */
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: relative;
  list-style: none; /* For details/summary */
}

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

.page-faq__faq-question:hover {
  background-color: rgba(var(--main-color-rgb), 0.1);
}

.page-faq__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-faq__faq-qtext a {
  color: var(--gold-color); /* Gold: #F2C14E */
  text-decoration: none;
}

.page-faq__faq-qtext a:hover {
  text-decoration: underline;
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--glow-color); /* Glow: #57E38D */
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary); /* Text Secondary: #A7D9B8 */
  overflow: hidden;
  transition: max-height 0.5s ease-out; /* For div-based accordion, if used */
}

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

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  padding-left: 25px;
}

.page-faq__faq-answer a {
  color: var(--glow-color); /* Glow: #57E38D */
  text-decoration: none;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-faq__section-title {
    font-size: 2rem;
  }
  .page-faq__hero-content {
    padding: 0 15px;
  }
  .page-faq__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-faq__intro-text {
    font-size: 1.1rem;
  }
  .page-faq__faq-question {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-faq__section {
    padding: 30px 0;
  }
  .page-faq__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-faq__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-faq__hero-section {
    padding: 40px 15px 30px;
    padding-top: 10px !important; /* body handles header offset */
  }
  .page-faq__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-faq__intro-text {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-faq__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    min-width: unset;
    width: 100% !important; /* Mobile button responsiveness */
    max-width: 100% !important; /* Mobile button responsiveness */
    box-sizing: border-box !important; /* Mobile button responsiveness */
    white-space: normal !important; /* Mobile button responsiveness */
    word-wrap: break-word !important; /* Mobile button responsiveness */
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-faq__faq-toggle {
    font-size: 1.5rem;
  }
  .page-faq__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }

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

  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Video responsiveness (if any) */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

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

  /* RGB for rgba usage */
  --main-color-rgb: 17, 168, 78;
}

/* Ensure text contrast on various backgrounds */
.page-faq h1, .page-faq h2, .page-faq h3, .page-faq h4, .page-faq h5, .page-faq h6 {
  color: var(--gold-color); /* Default for titles, adjust specific ones */
}

.page-faq__section-title {
  color: var(--text-main); /* Ensure main titles are visible */
}

/* Specific contrast fixes if needed */
.page-faq__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-faq__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}