.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 10px 0 60px; /* Adjusted padding-top for header offset, using 10px as suggested */
  overflow: hidden;
  background-color: #26A9E0; /* Fallback background color */
}

.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;
  opacity: 0.3; /* Slightly dim the background image */
}

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

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Using clamp as requested, not fixed font-size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.page-faq__intro-text {
  font-size: 1.15em;
  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,
.page-faq__btn-action {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Ensure buttons don't overflow */
  word-wrap: break-word; /* Allow text to wrap */
  text-align: center;
}

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-faq__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-faq__btn-action {
  background-color: #26A9E0;
  color: #ffffff;
  border: 1px solid #26A9E0;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  margin-top: 15px;
}

.page-faq__btn-action:hover {
  background-color: #1e87bb;
  border-color: #1e87bb;
}

.page-faq__content-section {
  background-color: #ffffff; /* Light background for content */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-faq__section-spacing {
  padding-top: 40px;
  padding-bottom: 40px;
}

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

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

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

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

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);
  transition: all 0.3s ease;
}

details.page-faq__faq-item[open] {
  border-color: #26A9E0;
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.1);
}

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;
  position: relative;
  font-weight: 600;
  color: #333333;
}
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: 1.1em;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure text is dark on light background */
}
.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #26A9E0; /* Use brand color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
  line-height: 1.7;
}
.page-faq__faq-answer p {
  margin-bottom: 15px;
}
.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__sub-section-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
}

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

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

.page-faq__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-faq__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

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

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 15px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-faq__intro-text {
    font-size: 1em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__sub-section-title {
    font-size: 1.6em;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-qtext {
    font-size: 1em;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
  }
  .page-faq__cta-title {
    font-size: 2em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-action {
    padding: 12px 25px;
    font-size: 0.9em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 10px 0 40px; /* Consistent small top padding */
  }
  .page-faq__hero-image-wrapper {
    height: 100%;
  }
  .page-faq__main-title {
    font-size: clamp(1.6em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-faq__intro-text {
    font-size: 0.9em;
    margin-bottom: 25px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%; /* Ensure container takes full width */
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-action {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    font-size: 1em; /* Ensure readability */
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-qtext {
    font-size: 0.95em;
  }
  .page-faq__faq-toggle {
    font-size: 22px;
    width: 24px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }
  .page-faq__sub-section-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-faq__image-block {
    margin: 20px auto;
  }
  .page-faq__cta-section {
    padding: 60px 0;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  /* Ensure all images are responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__content-section,
  .page-faq__cta-section,
  .page-faq__hero-section,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}