: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: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;

  /* For intelligent contrast system, convert primary color to RGB */
  --primary-color-rgb: 17, 168, 78; /* RGB for #11A84E */
}

/* Global styles for page-faq scope */
.page-faq {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page, will be #F2FFF6 on dark body */
  background-color: var(--background); /* This will be #08160F */
}

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

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and content */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  max-width: 1200px; /* Limit image width on larger screens */
  margin: 0 auto;
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-main); /* Light text on dark background */
}

.page-faq__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-main); /* Main text color */
  /* No fixed font-size for H1 */
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
}

.page-faq__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary); /* Secondary text color */
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 80px 20px;
  background-color: var(--background); /* Dark background */
  color: var(--text-main); /* Light text */
}

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

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

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

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq__faq-item {
  background-color: var(--card-bg); /* Darker card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border); /* Border color */
  color: var(--text-main);
}

.page-faq__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--text-main);
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-item summary:hover {
  background-color: rgba(var(--primary-color-rgb), 0.1); /* Light hover effect */
}

.page-faq__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 30px;
  text-align: center;
  color: var(--glow); /* Green gold glow color */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  animation: fadein 0.3s ease-out;
}

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

.page-faq__faq-answer img.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
  object-fit: cover;
}

.page-faq__faq-answer .page-faq__btn-secondary {
  margin-top: 15px;
  margin-right: 10px;
}

/* Call to Action Section within FAQ */
.page-faq__cta-section {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--divider); /* Divider color */
}

.page-faq__cta-text {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: var(--text-main);
}

/* Info Section */
.page-faq__info-section {
  padding: 80px 20px;
  background-color: var(--deep-green); /* Use deep green background */
  text-align: center;
  color: var(--text-main);
}

.page-faq__info-section .page-faq__section-title {
  color: var(--text-main);
}

.page-faq__info-section .page-faq__section-description {
  color: var(--text-secondary);
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-faq__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--glow); /* Use glow color for border */
  margin-left: 15px;
}

.page-faq__btn-secondary:hover {
  background: var(--glow);
  color: var(--deep-green); /* Dark text on glow background */
  transform: translateY(-2px);
}

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

/* Images */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  /* No filter on images */
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-faq__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

@media (max-width: 768px) {
  .page-faq__hero-section,
  .page-faq__faq-section,
  .page-faq__info-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }

  .page-faq__hero-image-wrapper,
  .page-faq__hero-image,
  .page-faq__container,
  .page-faq__faq-image,
  .page-faq__faq-item,
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-faq__hero-image {
    width: 100% !important;
    height: auto !important;
  }

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__faq-item summary {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

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

  .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;
    margin-left: 0 !important; /* Remove margin-left for secondary button */
    margin-bottom: 10px; /* Add vertical spacing between stacked buttons */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}