.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Light body background #f5f5f5, so dark text */
  background-color: #f5f5f5; /* Explicitly set to match body background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

/* Hero Section */
.page-faq__hero-section {
  background-image: url('[GALLERY:hero_faq:1920x1080:win678,faq,support,customer_service,green_theme]');
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden; /* Ensure no overflow from background */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px; /* Minimum height for hero section */
}

.page-faq__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(1, 116, 57, 0.7); /* Overlay with brand color for readability */
  z-index: 1;
}

.page-faq__hero-section .page-faq__container {
  position: relative;
  z-index: 2;
}

.page-faq__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFFFFF;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  white-space: normal; /* For mobile responsiveness */
  word-wrap: break-word; /* For mobile responsiveness */
}

.page-faq__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-faq__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-faq__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Main brand color */
  border: 2px solid #017439;
}

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

/* Content Area */
.page-faq__content-area {
  padding: 60px 0;
  background-color: #f5f5f5; /* Light background */
  color: #333333; /* Dark text */
}

.page-faq__section-title {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* FAQ List */
.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-faq__faq-question:hover {
  background-color: #e6f7ed; /* Lighter green on hover */
}

/* For details tag, remove default marker */
.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: #e6f7ed;
  color: #005a2e;
}

.page-faq__faq-item > summary {
  list-style: none; /* Remove default marker */
}

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  width: 20px;
  text-align: center;
}

.page-faq__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.05em;
  color: #555555;
  border-top: 1px solid #eee;
  padding-top: 15px;
  /* For details tag, the browser handles animation. For div structure, JS would control max-height */
}

.page-faq__faq-answer p {
  margin-bottom: 1em;
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 1em;
}

.page-faq__faq-answer li {
  margin-bottom: 0.5em;
}

.page-faq__faq-answer h3 {
  font-size: 1.3em;
  color: #017439;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

.page-faq__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #005a2e;
}

/* Images within FAQ answers */
.page-faq__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Call to Action Bottom */
.page-faq__cta-bottom {
  text-align: center;
  padding: 60px 20px 20px;
  background-color: #FFFFFF;
  border-radius: 8px;
  margin-top: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-faq__cta-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 15px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-bottom .page-faq__btn-primary,
.page-faq__cta-bottom .page-faq__btn-secondary {
  margin: 10px;
}

/* Specific button for download app (inherits from primary/secondary) */
.page-faq__download-app-btn {
  background-color: #C30808; /* Use custom color for register/login type buttons */
  border-color: #C30808;
  color: #FFFF00; /* Custom font color */
}

.page-faq__download-app-btn:hover {
  background-color: #a30606;
  border-color: #a30606;
  color: #ffcc00;
}


/* Responsive Design */
@media (max-width: 992px) {
  .page-faq__hero-title {
    font-size: 2.2em;
  }

  .page-faq__hero-description {
    font-size: 1em;
  }

  .page-faq__section-title {
    font-size: 1.8em;
  }

  .page-faq__faq-question {
    font-size: 1.1em;
  }
}

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

  .page-faq__hero-section {
    padding: 80px 20px;
    min-height: 350px;
  }

  .page-faq__hero-title {
    font-size: 1.8em;
  }

  .page-faq__hero-description {
    font-size: 0.95em;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-faq__section-title {
    font-size: 1.6em;
  }

  .page-faq__section-description {
    font-size: 1em;
  }

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

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

  .page-faq__cta-bottom {
    padding: 40px 15px 15px;
  }

  .page-faq__cta-title {
    font-size: 1.6em;
  }

  .page-faq__cta-description {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Ensure minimum size is still respected */
    min-height: 200px; /* Ensure minimum size is still respected */
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__cta-buttons,
  .page-faq__cta-bottom,
  .page-faq__faq-list,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Adjust padding for main content area on mobile to avoid overflow */
  .page-faq__content-area .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}