.page-faq__hero-section {
  background-color: #017439; /* Brand green background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  padding-top: var(--header-offset, 120px);
}

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

.page-faq__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  font-weight: bold;
}

.page-faq__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color */
  border: 2px solid #FFFF00;
}

.page-faq__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

.page-faq__content-section {
  padding: 60px 0;
  background-color: #ffffff; /* Main content background */
  color: #333333; /* Dark text on light background */
}

.page-faq__section-title {
  font-size: 2em;
  color: #017439; /* Brand green for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #f8f8f8;
  color: #333333;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  color: #017439;
  font-weight: normal;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #ffffff;
  color: #555555;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important;
  padding: 15px 25px !important;
}

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

.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__text-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-faq__text-link:hover {
  color: #005f2b;
}

.page-faq__cta-banner {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.page-faq__cta-container {
  max-width: 900px;
}

.page-faq__cta-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-faq__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-faq__btn-large {
  padding: 16px 40px;
  font-size: 1.1em;
}

/* Image specific styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

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

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

  .page-faq__cta-group {
    flex-direction: column;
    gap: 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;
    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;
  }

  .page-faq__content-section,
  .page-faq__cta-banner {
    padding: 40px 0;
  }

  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 1.5em;
    margin-bottom: 25px;
  }

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

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

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure content area images are not too small */
.page-faq__content-section img {
  min-width: 200px;
  min-height: 200px;
}

/* No CSS filter allowed for images */
.page-faq img {
  filter: none; /* Explicitly ensure no filter is applied */
}

.page-faq__faq-answer strong {
  color: #017439;
}