.page-faq {
  color: var(--text-main, #F2FFF6); /* Default text color for the page content */
  background-color: var(--background, #08160F); /* Ensure page background matches body if not already set by shared */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding for content */
  overflow: hidden;
  background-color: var(--background, #08160F); /* Ensure hero has a dark background */
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.2; /* Slightly dimmed to make text more readable */
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-main, #F2FFF6);
  padding: 20px;
}

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

.page-faq__intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

/* Buttons */
.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 15px;
  justify-content: center;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-faq__btn-secondary:hover {
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(46, 122, 78, 0.4);
}

/* General Section Styling */
.page-faq__section {
  padding: 60px 0;
  background-color: var(--background, #08160F);
}

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

.page-faq__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gold, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
}

/* FAQ List Styling */
.page-faq__faq-list {
  background-color: var(--background, #08160F);
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--card-bg, #11271B); /* Dark card background */
  color: var(--text-main, #F2FFF6); /* Light text on dark card */
}

.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: var(--deep-green, #0A4B2C); /* Darker green for question header */
  color: var(--text-main, #F2FFF6);
  border-bottom: 1px solid transparent; /* No border initially */
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: var(--deep-green, #0A4B2C); /* Keep dark green when open */
  border-bottom: 1px solid var(--divider, #1E3A2A); /* Divider when open */
}

.page-faq__faq-question:hover {
  background-color: var(--deep-green, #0A4B2C); /* Slight hover effect */
}

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: var(--gold, #F2C14E); /* Gold for the toggle icon */
}

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

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary, #A7D9B8); /* Secondary text color for answer */
}

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

.page-faq__faq-answer h3.page-faq__faq-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-faq__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 15px;
  display: block; /* Ensure no extra space below image */
  object-fit: cover;
}

.page-faq__text-link {
  color: var(--glow, #57E38D); /* Green glow for links */
  text-decoration: none;
  font-weight: 500;
}

.page-faq__text-link:hover {
  text-decoration: underline;
  color: var(--glow, #57E38D);
}

/* Conclusion Section */
.page-faq__conclusion-section {
  text-align: center;
  background-color: var(--deep-green, #0A4B2C); /* Darker green for conclusion */
  padding: 80px 0;
}

.page-faq__conclusion-section .page-faq__section-title {
  color: var(--gold, #F2C14E);
  margin-bottom: 30px;
}

.page-faq__conclusion-text {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-main, #F2FFF6);
}

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

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

  .page-faq__hero-content {
    padding: 15px;
  }

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

  .page-faq__intro-text {
    font-size: 1rem;
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 20px;
    font-size: 0.95rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
    margin-bottom: 30px;
  }

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

  .page-faq__faq-toggle {
    font-size: 1.3rem;
  }

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

  .page-faq__faq-answer h3.page-faq__faq-subtitle {
    font-size: 1.05rem;
  }

  /* Image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure containers with images don't overflow */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__hero-content,
  .page-faq__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__conclusion-section {
    padding: 50px 0;
  }
}