.page-faq__hero-section {
  padding-top: 10px; /* Aligns with header offset rule */
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: 675px; /* Default height for 16:9 aspect on 1200px width */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: -100px; /* Adjust to position content below image without overlapping */
  margin-bottom: 40px;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-faq__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #FFFFFF;
}

.page-faq__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

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

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

.page-faq__faq-list {
  margin-top: 30px;
}

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

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  background-color: #f9f9f9;
}

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

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #f0f0f0;
  color: #017439;
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Default text color for questions */
}

details.page-faq__faq-item summary.page-faq__faq-question:hover .page-faq__faq-qtext {
  color: #017439; /* Change color on hover */
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #017439; /* Brand color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-faq__faq-item[open] summary.page-faq__faq-question .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'minus' effect */
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 20px 25px 25px;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
}

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

.page-faq__faq-answer h3 {
  font-size: 1.25rem;
  color: #017439;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
  color: #555555;
}

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

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

.page-faq__cta-section {
  background-color: #f0f0f0;
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-title {
  font-size: 2.5rem;
  color: #017439;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 40px;
}

.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: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

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

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

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

.page-faq__btn-download {
  margin-top: 20px;
}

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

  .page-faq__hero-image {
    height: auto !important;
    width: 100% !important;
    object-fit: contain !important; /* Ensure image fits without cropping too much */
    margin-bottom: 15px;
  }

  .page-faq__hero-content {
    padding: 15px;
    margin-top: -50px; /* Adjust for smaller screens */
    margin-bottom: 30px;
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-faq__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-faq__section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }

  .page-faq__faq-qtext {
    font-size: 16px;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 15px 20px 20px;
    font-size: 0.95rem;
  }

  .page-faq__faq-answer h3 {
    font-size: 1.1rem;
  }

  .page-faq__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

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

  .page-faq__cta-title {
    font-size: 2rem;
  }

  .page-faq__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* General image and button rules for mobile */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    box-sizing: border-box !important;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .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;
  }
}

/* --- Tablet Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-faq__hero-image {
    height: 500px; /* Adjust height for tablets */
  }
  .page-faq__main-title {
    font-size: clamp(2.5rem, 4vw, 3rem);
  }
  .page-faq__section-title {
    font-size: 2rem;
  }
  .page-faq__faq-qtext {
    font-size: 17px;
  }
  .page-faq__cta-title {
    font-size: 2.2rem;
  }
  .page-faq__cta-buttons {
    gap: 15px;
  }
}