/* style/faq.css */

/* --- Color Variables from User Input --- */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button: #2AD16F; /* Button gradient start */
  --background: #08160F;
  --card-bg: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

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

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Enforce image first, then text */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--background); /* #08160F */
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and content */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for hero image */
}

.page-faq__hero-content {
  max-width: 900px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 clamp font size */
  font-weight: 700;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1rem;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
}

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

/* --- Content Area --- */
.page-faq__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--background); /* #08160F */
  box-sizing: border-box;
}

.page-faq__dark-section {
  background-color: var(--background); /* #08160F */
  color: var(--text-main); /* #F2FFF6 */
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--gold); /* #F2C14E */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

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

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

.page-faq__faq-item {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 10px;
  border: 1px solid var(--border); /* #2E7A4E */
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main); /* #F2FFF6 */
  cursor: pointer;
  list-style: none; /* Hide default marker */
  transition: color 0.3s ease;
}

.page-faq__faq-question:hover {
  color: var(--glow); /* #57E38D */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

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

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

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary); /* #A7D9B8 */
  line-height: 1.8;
}

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

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

.page-faq__faq-answer a {
  color: var(--glow); /* #57E38D */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
  color: var(--gold); /* #F2C14E */
}

/* --- CTA Bottom Section --- */
.page-faq__cta-bottom-section {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background-color: var(--background); /* #08160F */
  gap: 40px;
  box-sizing: border-box;
}

.page-faq__cta-content {
  max-width: 600px;
  text-align: center;
}

.page-faq__cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--gold); /* #F2C14E */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
}

.page-faq__cta-image-wrapper {
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  overflow: hidden;
}

.page-faq__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}


/* --- Buttons --- */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, var(--button) 0%, #13994A 100%); /* #2AD16F to #13994A */
  color: var(--text-main); /* #F2FFF6 */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 255, 100, 0.3);
}

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

.page-faq__btn-secondary {
  background: transparent;
  color: var(--glow); /* #57E38D */
  border: 2px solid var(--glow); /* #57E38D */
}

.page-faq__btn-secondary:hover {
  background: var(--glow); /* #57E38D */
  color: var(--background); /* #08160F */
  border-color: var(--glow); /* #57E38D */
  transform: translateY(-2px);
}

/* --- Image & Video Styles (Base) --- */
.page-faq img,
.page-faq video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .page-faq__section-title {
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  }

  .page-faq__cta-title {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  }

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

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__cta-bottom-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 10px !important; /* Small padding top, body handles header offset */
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__cta-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__hero-image,
  .page-faq__cta-image,
  .page-faq img,
  .page-faq video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }
  
  .page-faq__cta-bottom-section {
    flex-direction: column;
    text-align: center;
  }
  
  .page-faq__cta-content {
    order: 2; /* Content after image on mobile */
  }
  
  .page-faq__cta-image-wrapper {
    order: 1; /* Image before content on mobile */
    margin-bottom: 30px;
  }
}

/* Ensure links in dark sections are visible */
.page-faq__dark-section a {
  color: var(--glow); /* #57E38D */
  text-decoration: underline;
}

.page-faq__dark-section a:hover {
  color: var(--gold); /* #F2C14E */
}