/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  color: var(--text-main-color, #F2FFF6); /* Default light text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color, #08160F); /* Ensure background is dark */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden; /* Prevent content overflow */
}

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

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
  min-width: 200px;
  min-height: 200px;
}

.page-faq__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 90%;
  max-width: 800px;
  color: #ffffff; /* Ensure white text on darkened hero image */
  padding: 20px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6;
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  width: auto; /* Allow button to size to content on desktop */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--text-main-color, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-faq__btn-secondary:hover {
  background: var(--border-color, #2E7A4E);
  color: #ffffff;
}

/* General Section Styles */
.page-faq__section {
  padding: 60px 0;
  background-color: var(--card-bg-color, #11271B); /* Use card background for sections */
  margin-bottom: 20px;
}

.page-faq__section--intro {
  background-color: var(--background-color, #08160F); /* Intro section can use main background */
}

.page-faq__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color, #F2FFF6);
}

.page-faq__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--gold-color, #F2C14E);
}

.page-faq__content-block p {
  margin-bottom: 15px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-faq__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-faq__list-item {
  margin-bottom: 8px;
}

/* FAQ Accordion Styles */
.page-faq__faq-items {
  max-width: 900px;
  margin: 0 auto;
}

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

details.page-faq__faq-item > summary {
  list-style: none; /* Hide default marker */
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main-color, #F2FFF6);
  background-color: var(--deep-green-color, #0A4B2C); /* Deep Green for question background */
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: var(--glow-color, #57E38D);
}

.page-faq__faq-answer {
  padding: 20px;
  padding-top: 0;
  line-height: 1.7;
  color: var(--text-secondary-color, #A7D9B8);
}

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

.page-faq__faq-answer .page-faq__list {
  margin-top: 10px;
  margin-bottom: 15px;
}

.page-faq__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
  min-width: 200px; /* Min size for all images */
  min-height: 200px;
  object-fit: cover;
}

.page-faq__btn-faq {
  margin-top: 15px;
  display: inline-block; /* Allow spacing for multiple buttons if needed */
}

/* CTA Section */
.page-faq__section--cta {
  background-color: var(--background-color, #08160F);
  text-align: center;
  padding: 80px 0;
}

.page-faq__container--cta {
  max-width: 800px;
}

.page-faq__btn-large {
  font-size: 1.2rem;
  padding: 15px 35px;
  width: auto;
}

.page-faq__copyright {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary-color, #A7D9B8);
  background-color: var(--background-color, #08160F);
  margin-top: 20px;
}

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

  .page-faq__hero-content {
    padding: 15px;
    width: 95%;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-faq__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-faq,
  .page-faq__btn-large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__section,
  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-faq__sub-title {
    font-size: 1.5rem;
  }

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

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

  /* Image responsive rules */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Ensure minimum size is maintained */
    min-height: 200px;
  }

  /* Video responsive rules - if any video elements are added */
  .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;
  }

  .page-faq__video-section {
    padding-top: 10px !important;
  }
}

/* Color Contrast Enforcement - Based on dark background of body */
/* Assuming body background is dark (#08160F), so default text is light */
.page-faq {
  color: var(--text-main-color, #F2FFF6); /* Main text light */
}

.page-faq p,
.page-faq li {
  color: var(--text-secondary-color, #A7D9B8); /* Secondary text slightly less bright */
}

.page-faq__card, /* Using page-faq__faq-item as card */
.page-faq__faq-item {
  background: var(--card-bg-color, #11271B);
  color: var(--text-secondary-color, #A7D9B8);
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-faq__faq-question {
  background: var(--deep-green-color, #0A4B2C); /* Deep green for question background */
  color: var(--text-main-color, #F2FFF6);
}

/* Ensure minimal image size for content images */
.page-faq__image {
  min-width: 200px;
  min-height: 200px;
}