.page-faq__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-faq__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-faq__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff; /* Ensures contrast on dark background */
}

.page-faq__hero-description {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Slightly off-white for readability */
}

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

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

.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: #a00606;
  border-color: #a00606;
}

.page-faq__btn-secondary {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #017439;
}

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

.page-faq__content-area {
  padding: 60px 0;
}

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

.page-faq__section-intro {
  font-size: 1.05em;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: #f0f0f0;
}

.page-faq__faq-question:hover {
  background-color: #f5f5f5;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: '−';
}

.page-faq__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  background-color: #f9f9f9;
}

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

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

/* Details element native styles reset */
.page-faq__faq-item summary {
  list-style: none;
}
.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faq__contact-promo {
  text-align: center;
  padding: 60px 20px;
  background-color: #f0f8f0; /* Light green background */
  border-radius: 12px;
  margin-top: 60px;
}

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

.page-faq__contact-text {
  font-size: 1.1em;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__btn-contact {
  margin-bottom: 30px;
}

.page-faq__contact-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-faq__main-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.05em;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 12px 20px 15px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }
  .page-faq__main-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%;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__content-area {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 12px 18px;
  }
  .page-faq__faq-toggle {
    font-size: 1.3em;
  }
  .page-faq__faq-answer {
    font-size: 0.95em;
    padding: 10px 18px 12px;
  }
  .page-faq__contact-promo {
    padding: 40px 15px;
  }
  .page-faq__contact-title {
    font-size: 1.8em;
  }
  .page-faq__contact-text {
    font-size: 1em;
  }
  
  /* Mobile image and container responsive rules */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__contact-promo {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-faq__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}