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

.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: #ffffff;
  color: #333333;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #017439;
}

.page-faq__description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-faq__content-area {
  padding: 40px 0;
  background-color: #f8f8f8;
  color: #333333;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.page-faq__faq-item[open] {
  background-color: #f0fdf5; /* Light green background when open */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  list-style: none;
  user-select: none;
  position: relative;
}

.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

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

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

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

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

.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px 0;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-faq__cta-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-faq__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px;
}

.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: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-faq__btn-secondary {
  background-color: #ffffff;
  color: #C30808;
  border: 2px solid #C30808;
}

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

/* Universal image and container responsive styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-faq__section,
.page-faq__card,
.page-faq__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile Responsive Styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-faq__main-title {
    font-size: 2em; /* Adjusted for smaller screens */
    margin-bottom: 15px;
  }

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

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

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

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

  .page-faq__faq-image {
    margin: 10px 0;
  }

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

  .page-faq__cta-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

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

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__cta-section,
  .page-faq__faq-list,
  .page-faq__faq-item,
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Remove padding for the inner container if it's already handled by section/list */
  .page-faq__container {
    padding: 0;
  }
}

/* Ensure contrast for general text on default white body background */
.page-faq {
  color: #333333;
}

/* Ensure contrast for dark background sections */
.page-faq__dark-bg {
  background: #017439;
  color: #ffffff;
}