.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity */
}

.page-faq__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Applied directly as per instruction for HERO section */
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF;
}

.page-faq__hero-content-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for hero image */
}

.page-faq__hero-text-container {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative; /* Ensure text is in normal flow below image */
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.7); /* Slightly transparent background for readability over image if image has text */
  margin-top: -100px; /* Pull text up over image for visual effect, but not overlapping */
  transform: translateY(-50%); /* Adjust to center content vertically */
  border-radius: 10px;
}

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

.page-faq__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #F0F0F0;
}

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

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

.page-faq__dark-section {
  background-color: #000000;
  color: #FFFFFF;
}

.page-faq__dark-section .page-faq__section-title,
.page-faq__dark-section .page-faq__section-description,
.page-faq__dark-section .page-faq__faq-question h3,
.page-faq__dark-section .page-faq__faq-answer p,
.page-faq__dark-section .page-faq__faq-toggle {
  color: #FFFFFF;
}

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

.page-faq__section-title {
  font-size: 2.2rem;
  color: #000000; /* Default for light sections */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__section-description {
  font-size: 1.05rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555; /* Default for light sections */
}

.page-faq__faq-list-section {
  background-color: #FFFFFF;
}

.page-faq__faq-item {
  background-color: #F8F8F8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #EEEEEE;
}

.page-faq__dark-section .page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #000000;
  background-color: #FFFFFF;
  border-bottom: 1px solid #EEEEEE;
  transition: background-color 0.3s ease;
}

.page-faq__dark-section .page-faq__faq-question {
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.page-faq__faq-question:hover {
  background-color: #F0F0F0;
}

.page-faq__dark-section .page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1rem;
  color: #333333;
}

.page-faq__dark-section .page-faq__faq-answer {
  color: #F0F0F0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

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

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

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

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

.page-faq__btn-small {
  padding: 8px 15px;
  font-size: 0.9rem;
  margin-top: 10px;
}

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

.page-faq__image--center {
  margin-left: auto;
  margin-right: auto;
}

.page-faq__call-to-action {
  padding: 80px 0;
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
}

.page-faq__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-faq__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.page-faq__cta-text {
  max-width: 700px;
}

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

.page-faq__cta-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #F0F0F0;
}

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

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-faq__hero-text-container {
    transform: translateY(0); /* Reset transform for larger screens */
    margin-top: -150px; /* Pull text up over image for visual effect */
    padding: 60px 40px;
  }
  .page-faq__call-to-action .page-faq__cta-content {
    flex-direction: row;
    text-align: left;
    justify-content: center;
  }
  .page-faq__cta-text {
    text-align: left;
  }
  .page-faq__cta-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-faq__hero-title {
    font-size: 2rem;
  }
  .page-faq__hero-description {
    font-size: 1rem;
  }
  .page-faq__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    box-sizing: border-box !important;
  }
  .page-faq__section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.8rem;
  }
  .page-faq__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px;
  }
  .page-faq__image {
    margin-top: 30px;
  }
  .page-faq__call-to-action {
    padding: 50px 0;
  }
  .page-faq__cta-title {
    font-size: 2rem;
  }
  .page-faq__cta-description {
    font-size: 1rem;
  }

  /* Image responsive rules */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-content-wrapper,
  .page-faq__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__hero-text-container {
    margin-top: -50px; /* Adjust for mobile */
    transform: translateY(-25%); /* Adjust for mobile */
    padding: 30px 15px;
  }
  .page-faq__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}