/* style/faq.css */

/* General styles for the FAQ page content */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background); /* Overall page background */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--deep-green); /* Use a darker green for hero background */
  overflow: hidden; /* Ensure no image overflow */
}

.page-faq__hero-image {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px; /* Space between image and content */
}

.page-faq__hero-content {
  text-align: center;
  max-width: 900px;
  color: var(--text-main);
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold-color); /* Use gold for main title */
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-faq__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

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

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

.page-faq__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-faq__btn-secondary {
  background: var(--card-bg); /* Dark background for secondary button */
  color: var(--glow-color); /* Light green text for contrast */
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 6px 15px rgba(34, 199, 104, 0.4);
}

.page-faq__btn-text {
  background: none;
  color: var(--glow-color);
  border: 1px solid var(--border-color);
  padding: 8px 15px;
  font-size: 0.95rem;
  margin-top: 15px;
}

.page-faq__btn-text:hover {
  color: #ffffff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}


/* Content Section */
.page-faq__content-section {
  padding: 60px 20px;
  background-color: var(--background); /* Use the main background color */
  color: var(--text-main); /* Light text on dark background */
}

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--gold-color);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-faq__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__faq-category-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--glow-color);
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--divider-color);
  padding-bottom: 10px;
}

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

.page-faq__faq-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.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);
  cursor: pointer;
  background-color: transparent; /* Inherit from item */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: var(--deep-green); /* Slightly darker when open */
  color: var(--glow-color);
}

.page-faq__faq-item.active .page-faq__faq-question { /* For JS-controlled div */
  background-color: var(--deep-green);
  color: var(--glow-color);
}

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--glow-color);
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
  color: var(--gold-color);
}

.page-faq__faq-item.active .page-faq__faq-toggle { /* For JS-controlled div */
  transform: rotate(45deg);
  color: var(--gold-color);
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  max-height: 0; /* For JS-controlled div */
  overflow: hidden; /* For JS-controlled div */
  transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* For JS-controlled div */
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 2000px;
  padding-top: 10px;
}

.page-faq__faq-item.active .page-faq__faq-answer { /* For JS-controlled div */
  max-height: 2000px;
  padding-top: 10px;
}

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

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

/* Image content within FAQ answer */
.page-faq__image-content {
  width: 100%;
  height: auto;
  max-width: 600px; /* Example max-width for content images */
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Call to Action Section at the bottom */
.page-faq__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--deep-green); /* Example: use a deep green for this section */
  color: var(--text-main);
  border-top: 1px solid var(--divider-color);
}

.page-faq__cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-faq__cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-faq__cta-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 40px 15px;
  }
  .page-faq__hero-image {
    margin-bottom: 30px;
  }
  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-faq__hero-description {
    font-size: 1.05rem;
  }
  .page-faq__content-section {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
  }
  .page-faq__faq-question {
    font-size: 1.1rem;
  }
  .page-faq__faq-answer {
    font-size: 0.95rem;
  }
  .page-faq__cta-section {
    padding: 60px 15px;
  }
}

@media (max-width: 768px) {
  /* Mobile images responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image,
  .page-faq__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Containers for mobile responsiveness */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__content-section,
  .page-faq__cta-section,
  .page-faq__cta-container,
  .page-faq__faq-list,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Specific padding adjustments for sections that already have padding */
  .page-faq__hero-section,
  .page-faq__content-section,
  .page-faq__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-faq__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }

  /* Buttons responsiveness */
  .page-faq__cta-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-text {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* FAQ item padding for mobile */
  .page-faq__faq-question,
  .page-faq__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure body color is used for overall background, text contrast is handled */
.page-faq {
  color: var(--text-main); /* Light text on dark background */
  background-color: var(--background);
}

/* Specific contrast for light background sections if any (currently none, but for safety) */
.page-faq__light-bg {
  background-color: var(--text-main); /* White/light green background */
  color: var(--background); /* Dark text on light background */
}

/* Dark section, ensuring light text */
.page-faq__dark-section {
  background-color: var(--background);
  color: var(--text-main);
}
/* Ensure p and li in content sections use the appropriate text color */
.page-faq p,
.page-faq li {
  color: var(--text-secondary); /* Use secondary text color for paragraphs and lists */
}
.page-faq__faq-answer p {
  color: var(--text-secondary);
}

/* No CSS filters on images */
.page-faq img {
  filter: none;
}