.page-faq {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --login-color: #EA7C07;
  --background-white: #FFFFFF;
  --black-color-custom: #000000;

  color: var(--text-light); /* Default text color for the page, assuming body is dark */
  background-color: var(--black-color); /* Inherited from shared.css, which is dark */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-faq__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: var(--text-light);
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  opacity: 0.3;
}

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

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--background-white);
  color: var(--text-dark);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-50px);
  position: relative;
  z-index: 2;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__list-title {
  font-size: 1.8em;
  color: var(--text-dark);
  margin-top: 50px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.page-faq__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 25px;
  color: var(--text-dark);
}

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

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--secondary-color);
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
  background-color: #f0f8ff;
}

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

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
  line-height: 1.6;
}

.page-faq__faq-answer .page-faq__image {
  margin-top: 15px;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-faq__contact-section {
  text-align: center;
  margin-top: 80px;
  padding: 40px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 10px;
}

.page-faq__contact-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-faq__contact-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-faq__contact-subtext {
  margin-top: 20px;
  font-size: 0.95em;
  color: var(--text-light);
}

.page-faq__link {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-faq__link:hover {
  color: #e6f7ff;
}

/* Buttons */
.page-faq__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--login-color); /* Using login color for primary action */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Image specific styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-faq__hero-title {
    font-size: 2.5em;
  }

  .page-faq__hero-description {
    font-size: 1em;
  }

  .page-faq__content-area {
    padding: 30px 15px;
    transform: translateY(-30px);
  }

  .page-faq__section-title {
    font-size: 2em;
  }

  .page-faq__list-title {
    font-size: 1.5em;
  }

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

  .page-faq__faq-answer {
    padding: 0 15px;
  }

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px;
  }

  .page-faq__contact-section {
    padding: 30px 15px;
  }

  .page-faq__contact-title {
    font-size: 1.8em;
  }

  .page-faq__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__image--full-width {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__hero-image-wrapper, .page-faq__hero-image {
    filter: brightness(0.5); /* More darken on mobile for better text visibility */
  }

  /* Ensure all content containers are responsive */
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__faq-list,
  .page-faq__faq-item,
  .page-faq__contact-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Global image rules for content area - minimum size enforcement */
.page-faq p img, .page-faq div img, .page-faq li img, .page-faq .page-faq__image {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Prevent filter usage on images */
.page-faq img:not(.page-faq__hero-image) {
  filter: none !important;
}

/* Ensure contrast for text blocks */
.page-faq__text-block, .page-faq p, .page-faq li {
  color: var(--text-dark);
}

/* Adjust hero image filter for better contrast */
.page-faq__hero-image {
  filter: brightness(0.6); /* Slightly darker to ensure text contrast */
}