/* style/faq.css */

/* --- General Styles for .page-faq scope --- */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #ffffff; /* Body background is light */
}

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

.page-faq__section {
  padding: 60px 0;
}

.page-faq__section-title,
.page-faq__cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #11A84E; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__section-description,
.page-faq__cta-description {
  font-size: 1.1rem;
  color: #333333; /* Dark text for light background */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-faq__dark-section {
  background-color: #08160F; /* Custom dark background */
  color: #F2FFF6; /* Light text for dark background */
}

.page-faq__dark-section .page-faq__section-title {
  color: #57E38D; /* Glow color for titles on dark background */
}

.page-faq__dark-section .page-faq__section-description {
  color: #A7D9B8; /* Secondary light text for dark background */
}

.page-faq__dark-section .page-faq__cta-title {
  color: #57E38D; /* Glow color for titles on dark background */
}

.page-faq__dark-section .page-faq__cta-description {
  color: #A7D9B8; /* Secondary light text for dark background */
}

.page-faq__keyword {
  font-weight: bold;
  color: #11A84E; /* Highlight keywords */
}

.page-faq__dark-section .page-faq__keyword {
  color: #F2C14E; /* Gold for keywords on dark background */
}

/* --- Hero Section --- */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px; /* Small top padding, body handles --header-offset */
  overflow: hidden; /* Ensure image doesn't overflow */
  background-color: #08160F; /* Dark background for hero section */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 500px; /* Limit height for hero image */
  filter: brightness(0.7); /* Darken image slightly for text contrast */
  margin-bottom: 30px;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 800;
  color: #F2C14E; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-faq__hero-description {
  font-size: 1.2rem;
  color: #F2FFF6; /* Main light text for dark background */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- FAQ List --- */
.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid #E0E0E0; /* Light border for contrast on light background */
  border-radius: 8px;
  overflow: hidden;
}

.page-faq__dark-section .page-faq__faq-list {
  border: 1px solid #2E7A4E; /* Border for dark sections */
}

.page-faq__faq-item {
  margin-bottom: 0; /* No margin between items for cleaner border */
  border-bottom: 1px solid #E0E0E0; /* Divider for light background */
}

.page-faq__dark-section .page-faq__faq-item {
  border-bottom: 1px solid #1E3A2A; /* Divider for dark background */
}

.page-faq__faq-item:last-child {
  border-bottom: none;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #ffffff; /* Question background on light sections */
  color: #11A84E; /* Main brand color for questions */
  transition: background-color 0.3s ease;
}

.page-faq__dark-section .page-faq__faq-question {
  background-color: #11271B; /* Card BG for questions on dark sections */
  color: #F2FFF6; /* Main light text */
}

.page-faq__faq-question:hover {
  background-color: #f5f5f5;
}

.page-faq__dark-section .page-faq__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green on hover for dark sections */
}

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  width: 25px;
  text-align: center;
  flex-shrink: 0;
  color: #22C768; /* Accent color for toggle */
}

.page-faq__dark-section .page-faq__faq-toggle {
  color: #57E38D; /* Glow color for toggle on dark background */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #333333; /* Dark text for light background */
  background-color: #fcfcfc;
  border-top: 1px solid #e0e0e0; /* Separator for answer */
}

.page-faq__dark-section .page-faq__faq-answer {
  background-color: #08160F; /* Background for answer on dark sections */
  color: #A7D9B8; /* Secondary light text */
  border-top: 1px solid #1E3A2A; /* Separator for answer on dark sections */
}

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

/* For <details> tag, we hide the default marker */
.page-faq__faq-item summary {
  list-style: none; /* Remove default marker */
}
.page-faq__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

/* --- Buttons --- */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #ffffff; /* White text for dark button */
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.page-faq__btn-secondary {
  background-color: #ffffff;
  color: #11A84E; /* Main brand color for text */
  border: 2px solid #11A84E; /* Main brand color for border */
}

.page-faq__dark-section .page-faq__btn-secondary {
  background-color: transparent;
  color: #F2FFF6; /* Light text on dark background */
  border: 2px solid #57E38D; /* Glow color for border */
}

.page-faq__btn-secondary:hover {
  background-color: #11A84E;
  color: #ffffff;
  border-color: #11A84E;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.page-faq__dark-section .page-faq__btn-secondary:hover {
  background-color: #57E38D;
  color: #08160F;
  border-color: #57E38D;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-faq__cta-buttons .page-faq__btn-primary,
.page-faq__cta-buttons .page-faq__btn-secondary {
  margin-top: 0; /* Remove extra margin if in cta-buttons group */
  min-width: 180px; /* Ensure buttons have a decent minimum width */
}


/* --- Image Specific Styles --- */
.page-faq__image-wrapper {
  text-align: center;
  margin: 40px auto;
  max-width: 800px; /* Max width for content images */
}

.page-faq__section-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: block; /* Ensure it behaves as a block element for max-width */
}

.page-faq__dark-section .page-faq__section-image {
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.page-faq__cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  background-color: #08160F; /* Dark background */
  color: #F2FFF6;
  text-align: center;
}

.page-faq__cta-content {
  max-width: 900px;
  margin-bottom: 40px;
}

.page-faq__cta-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 1200px;
  filter: brightness(0.8); /* Slightly darken for visual harmony */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 2rem;
  }
  .page-faq__hero-description {
    font-size: 1.1rem;
  }
  .page-faq__faq-question {
    font-size: 1.1rem;
    padding: 18px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px 18px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 0 40px;
  }
  .page-faq__hero-image {
    max-height: 350px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-faq__hero-description {
    font-size: 1rem;
  }
  .page-faq__section {
    padding: 40px 0;
  }
  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 1.8rem;
  }
  .page-faq__section-description,
  .page-faq__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important; /* Explicitly set width to 100% */
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container padding for all relevant sections/cards */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-content,
  .page-faq__cta-content,
  .page-faq__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific section adjustments */
  .page-faq__hero-section {
    padding-top: 10px !important; /* body already has padding-top */
  }

  /* Mobile button responsiveness */
  .page-faq__cta-button,
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    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__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important; /* Space between stacked buttons */
  }

  /* Ensure image wrappers also adhere to mobile constraints */
  .page-faq__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-faq p,
  .page-faq li {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  
  .page-faq__faq-answer {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-faq__faq-question {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}