/* style/faq.css */

/* Base styles for the FAQ page, ensuring text color contrast with body background */
.page-faq {
  color: #F2FFF6; /* Main text color for dark background */
  background-color: #08160F; /* Main background color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Sections with light background */
.page-faq__light-bg {
  background-color: #11271B; /* Card BG color for content areas */
  color: #F2FFF6;
}

/* Sections with dark background */
.page-faq__dark-bg {
  background-color: #08160F; /* Background color for hero/cta */
  color: #F2FFF6;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  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 */
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability, not color change */
  display: block;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #F2FFF6;
}

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

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

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #11271B; /* Card BG color */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__section-title {
  font-size: 2.2rem;
  color: #F2C14E; /* Gold color for section titles */
  margin-top: 40px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #11A84E, #22C768);
}

/* FAQ Items */
.page-faq__faq-item {
  background-color: #0A4B2C; /* Deep Green for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #11A84E; /* Main color for question header */
  color: #F2FFF6;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-faq__faq-question:hover {
  background-color: #22C768; /* Auxiliary color on hover */
}

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-faq__faq-answer {
  padding: 20px;
  background-color: #0A4B2C; /* Deep Green for answer background */
  color: #A7D9B8; /* Secondary text color */
  font-size: 1rem;
}

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

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-faq__faq-answer ol {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #22C768;
}

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

/* Call to Action Section */
.page-faq__cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #08160F; /* Background color */
  margin-top: 40px;
}

.page-faq__cta-title {
  font-size: 2.5rem;
  color: #F2C14E; /* Gold color */
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Secondary text color */
  max-width: 700px;
  margin: 0 auto 30px auto;
}

/* Buttons */
.page-faq__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Links within content */
.page-faq a {
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq a:hover {
  color: #2AD16F;
  text-decoration: underline;
}

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

  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

  .page-faq__description {
    font-size: 1rem;
  }

  .page-faq__content-area {
    padding: 20px 15px;
  }

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

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

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

  .page-faq__cta-section {
    padding: 40px 15px;
  }

  .page-faq__cta-title {
    font-size: 2rem;
  }

  .page-faq__cta-description {
    font-size: 1rem;
  }

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

  .page-faq__hero-image-wrapper,
  .page-faq__content-image,
  .page-faq__cta-section,
  .page-faq__content-area,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__btn-primary {
    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;
  }
}