.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: var(--bg-color, #FFFFFF);
}

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

.page-faq__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px; /* Fixed height for hero image wrapper */
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-faq__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  padding: 20px;
  box-sizing: border-box;
  z-index: 2;
  color: #ffffff;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-faq__content-area {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

.page-faq__section-title {
  font-size: 2.5rem;
  color: #26A9E0;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 700;
}

.page-faq__sub-title {
  font-size: 1.8rem;
  color: #333333;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-faq__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #555555;
}

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

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: #26A9E0;
  background-color: #eaf7fd; /* Lighter blue for question background */
  border-bottom: 1px solid #d0e7f7;
}

.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: #26A9E0;
  color: #ffffff;
  border-bottom: 1px solid #1e87c0;
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555555;
  background-color: #ffffff;
}

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

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__cta-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

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

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

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

.page-faq__btn-secondary:hover {
  background: transparent;
  color: #ffffff;
  border-color: #e0e0e0;
}

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

/* Dark background section for contrast */
.page-faq__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-faq__dark-section .page-faq__section-title,
.page-faq__dark-section .page-faq__sub-title {
  color: #ffffff;
}

.page-faq__dark-section .page-faq__text-block {
  color: #e0e0e0;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-faq__hero-image-wrapper {
    height: 450px;
  }

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

  .page-faq__hero-description {
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  }

  .page-faq__section-title {
    font-size: 2.2rem;
  }

  .page-faq__sub-title {
    font-size: 1.6rem;
  }

  .page-faq__faq-question {
    font-size: 1.1rem;
    padding: 18px 20px;
  }

  .page-faq__faq-answer {
    font-size: 1rem;
    padding: 18px 20px;
  }

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

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-faq__hero-section {
    padding-top: 10px !important; /* Ensure small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-faq__hero-image-wrapper {
    height: 300px;
  }

  .page-faq__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    text-align: center;
    background-color: rgba(38, 169, 224, 0.8); /* Add background for readability */
    margin-top: -100px; /* Pull content up slightly over image */
    border-radius: 0 0 10px 10px;
  }

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

  .page-faq__hero-description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    margin-bottom: 20px;
  }

  .page-faq__content-area {
    padding: 40px 15px;
  }

  .page-faq__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

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

  .page-faq__text-block {
    font-size: 1rem;
    line-height: 1.7;
  }

  .page-faq__faq-question {
    font-size: 1rem;
    padding: 15px 18px;
  }

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

  /* Universal image responsive styles */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__hero-image {
    filter: brightness(0.6); /* Further darken hero image for text contrast */
  }

  /* Ensure all content containers are responsive */
  .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;
  }

  /* Button responsive styles */
  .page-faq__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-faq__cta-section {
    padding: 40px 15px;
    margin-top: 40px;
  }

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

  .page-faq__cta-description {
    font-size: 1rem;
  }
}