.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF;
}

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

.page-faq__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #017439, #005f2f);
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

.page-faq__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFFF00; /* Register and Login font color */
}

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-faq__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register and Login 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; /* Register and Login font color */
  border: 2px solid #FFFF00;
}

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

.page-faq__content-area {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

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

.page-faq__sub-title {
  font-size: 1.6em;
  margin-top: 40px;
  margin-bottom: 25px;
  color: #017439;
  font-weight: bold;
}

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

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

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

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

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

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px;
}

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

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

.page-faq__cta-section {
  padding: 60px 0;
  text-align: center;
  background: #017439; /* Main color as background */
  color: #ffffff;
}

.page-faq__image-wrapper {
  margin: 30px auto;
  text-align: center;
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto;
}

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

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

  .page-faq__sub-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-faq__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .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: 0.9em;
  }

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

  .page-faq__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  .page-faq__sub-title {
    font-size: 1.2em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .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: 10px 20px;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__section, 
  .page-faq__card, 
  .page-faq__container, 
  .page-faq__image-wrapper,
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.5em;
  }

  .page-faq__description {
    font-size: 0.9em;
  }

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