.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Adhering to the 8-16px top padding rule for first section */
  padding-bottom: 40px;
  background-color: #ffffff;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

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

.page-faq__description {
  font-size: 18px;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 30px;
}

.page-faq__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

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

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

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

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

details.page-faq__faq-item {
  margin-bottom: 0;
  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;
}

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: #f5f5f5;
}

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

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

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

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

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

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

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

.page-faq__faq-answer a:hover {
  color: #005a2b;
}

.page-faq__cta-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
  gap: 30px;
}

.page-faq__cta-content {
  flex: 1;
  text-align: left;
  padding-left: 20px;
}

.page-faq__cta-image-wrapper {
  flex: 1;
  max-width: 50%;
  overflow: hidden;
}

.page-faq__cta-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-faq__cta-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-faq__cta-section .page-faq__cta-buttons {
  justify-content: flex-start;
}

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

  .page-faq__hero-image-wrapper {
    padding: 0 15px;
  }

  .page-faq__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__hero-content {
    padding: 0 15px;
  }

  .page-faq__main-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

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

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

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

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

  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__section-title {
    font-size: 28px;
    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;
    margin-left: 15px;
    width: 25px;
  }

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

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

  .page-faq__cta-section {
    flex-direction: column-reverse;
    padding: 40px 0;
    gap: 20px;
  }

  .page-faq__cta-content {
    text-align: center;
    padding: 0 15px;
  }

  .page-faq__cta-image-wrapper {
    max-width: 100%;
    padding: 0 15px;
  }

  .page-faq__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__cta-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .page-faq__cta-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-faq__cta-section .page-faq__cta-buttons {
    justify-content: center;
  }

  .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;
  }
}

/* Responsive Styles for max-width: 1024px (Tablet) */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    max-width: 760px;
  }

  .page-faq__main-title {
    font-size: clamp(32px, 5vw, 42px);
  }

  .page-faq__description {
    font-size: 17px;
  }

  .page-faq__section-title {
    font-size: 32px;
  }

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

  .page-faq__cta-section {
    flex-direction: column;
    text-align: center;
  }

  .page-faq__cta-content {
    max-width: 760px;
    padding: 0 20px;
  }

  .page-faq__cta-image-wrapper {
    max-width: 80%;
    margin-top: 30px;
  }

  .page-faq__cta-section .page-faq__cta-buttons {
    justify-content: center;
  }

  .page-faq__cta-title {
    font-size: 34px;
  }

  .page-faq__cta-description {
    font-size: 17px;
  }
}