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

.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--page-faq-text-main); /* Default text color for the page */
  background-color: var(--page-faq-background); /* Body background from shared is var(--background), this is for page content areas that might have specific backgrounds */
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure space above footer */
}

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: none;
}

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 15px;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 */
  font-weight: 700;
  color: var(--page-faq-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__description {
  font-size: 1.1em;
  color: var(--page-faq-text-secondary);
  margin-bottom: 30px;
}

/* CTA Button */
.page-faq__cta-button {
  display: inline-block;
  background: var(--page-faq-button-gradient);
  color: #ffffff; /* White text for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button--secondary {
  background: none;
  border: 2px solid var(--page-faq-primary-color);
  color: var(--page-faq-primary-color);
  box-shadow: none;
}

.page-faq__cta-button--secondary:hover {
  background: rgba(var(--page-faq-primary-color), 0.1);
  transform: translateY(-2px);
  box-shadow: none;
}


/* General Section Styles */
.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-faq__faq-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--page-faq-divider);
}

.page-faq__faq-section:last-of-type {
  border-bottom: none;
}

.page-faq__section-title {
  font-size: 2.2em;
  color: var(--page-faq-text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-faq__faq-item {
  background-color: var(--page-faq-card-bg); /* Dark card background */
  border: 1px solid var(--page-faq-border);
  border-radius: 10px;
  overflow: hidden;
  color: var(--page-faq-text-main); /* Light text for dark background */
}

.page-faq__faq-item summary {
  display: block; /* For details tag */
  list-style: none; /* Hide default marker */
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  background-color: var(--page-faq-card-bg); /* Ensure question background is dark */
  color: var(--page-faq-text-main); /* Light text for question */
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: var(--page-faq-deep-green); /* Slightly lighter dark green on hover */
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-faq-primary-color); /* Green toggle icon */
}

.page-faq__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--page-faq-text-secondary); /* Slightly dimmer light text for answer */
  max-height: 0; /* For JS based toggle if not using <details> */
  overflow: hidden; /* For JS based toggle if not using <details> */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* For JS based toggle if not using <details> */
  padding-top: 0;
}

/* For <details> tag, the answer content is shown by default when open */
.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 2000px; /* Arbitrary large value for smooth transition */
  padding-top: 15px;
}

/* Images within content */
.page-faq__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  object-fit: cover;
  filter: none;
}

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

.page-faq__faq-answer a {
  color: var(--page-faq-primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
  color: var(--page-faq-secondary-color);
}

/* Call to Action Section */
.page-faq__cta-section {
  padding: 60px 0;
  text-align: center;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
}

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

  .page-faq__hero-section {
    padding-bottom: 30px;
  }

  .page-faq__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em) !important;
    margin-bottom: 15px;
  }

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

  .page-faq__cta-button,
  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }

  .page-faq__faq-section {
    padding: 40px 0;
  }

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

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

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

  /* Mobile image and container responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure image takes full width of its container */
    height: auto !important;
    display: block !important;
    filter: none !important;
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__container,
  .page-faq__faq-section,
  .page-faq__cta-section,
  .page-faq__faq-list,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Specific override for .page-faq__container to ensure it keeps its padding */
  .page-faq__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Video section top padding, body handles --header-offset */
  .page-faq__video-section {
    padding-top: 10px !important;
  }

  /* Ensure no filter on images */
  .page-faq img {
    filter: none !important;
  }
}

/* Color contrast enforcement */
.page-faq {
  color: var(--page-faq-text-main); /* Light text on dark body background */
}

.page-faq__card,
.page-faq__faq-item {
  background-color: var(--page-faq-card-bg); /* Dark background */
  color: var(--page-faq-text-main); /* Light text */
}

.page-faq__faq-question {
  background-color: var(--page-faq-card-bg);
  color: var(--page-faq-text-main);
}

.page-faq__faq-answer {
  color: var(--page-faq-text-secondary); /* Slightly muted light text */
}

.page-faq__section-title,
.page-faq__main-title {
  color: var(--page-faq-text-main);
}

.page-faq__cta-button {
  color: #ffffff; /* White text on gradient button */
}

.page-faq__cta-button--secondary {
  color: var(--page-faq-primary-color); /* Primary color text on light/transparent button */
}