.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, header offset handled by body in shared.css */
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Desktop: cover the area */
  opacity: 0.15;
  display: block;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  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;
  min-width: 180px;
}

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

.page-faq__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
  transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  transform: translateY(-2px);
}

.page-faq__section {
  padding: 80px 0;
  background-color: #ffffff; /* Default light background */
  color: #333333;
}

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

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

.page-faq__section-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

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

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px 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;
  background-color: #f8f8f8;
  color: #333333;
  font-weight: 600;
}

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

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

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  color: #C30808;
}

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

.page-faq__additional-info {
  margin-top: 60px;
  text-align: center;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
}

.page-faq__sub-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 20px;
}

.page-faq__additional-info p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
}

.page-faq__additional-info p a {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
}

.page-faq__additional-info p a:hover {
  text-decoration: underline;
}

.page-faq__support-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.page-faq__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-faq__cta-description {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

/* General image responsiveness */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 0;
  }

  .page-faq__hero-image-wrapper {
    position: relative; /* Make image wrapper part of flow for smaller screens */
    height: 250px; /* Fixed height for mobile hero image */
  }

  .page-faq__hero-image {
    object-fit: contain !important; /* Mobile: ensure full image is visible */
    aspect-ratio: unset !important;
    height: 100%;
    width: 100%;
    opacity: 0.25; /* Slightly more visible on mobile */
  }

  .page-faq__hero-content {
    padding: 30px 15px;
    margin-top: -250px; /* Overlap content on top of the image */
    position: relative; /* Ensure content is above image */
    z-index: 2;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    min-width: unset;
  }

  .page-faq__section {
    padding: 40px 0;
  }

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

  .page-faq__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 15px;
  }

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

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

  .page-faq__faq-qtext {
    font-size: 1rem;
  }

  .page-faq__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

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

  .page-faq__additional-info {
    margin-top: 40px;
    padding: 25px;
  }

  .page-faq__sub-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .page-faq__additional-info p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-faq__cta-bottom {
    padding: 50px 15px;
  }

  .page-faq__cta-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  /* Ensure all images are responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all containers are responsive and prevent overflow */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__additional-info,
  .page-faq__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-faq__faq-list {
    padding-left: 0;
    padding-right: 0;
  }
}

/* @media for tablets/larger phones if needed, though 768px covers most mobile */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-faq__hero-content {
    padding: 50px 30px;
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
  }

  .page-faq__hero-description {
    font-size: 1.1rem;
  }

  .page-faq__section {
    padding: 60px 0;
  }

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

  .page-faq__section-title {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 16px 22px;
  }

  .page-faq__faq-qtext {
    font-size: 1.05rem;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 22px 22px;
  }

  .page-faq__cta-bottom {
    padding: 60px 30px;
  }
}