.page-faq {
  color: #ffffff; /* Dark body background #1a1a2e, so light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #1a1a2e; /* Ensure consistency with body background */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}

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

.page-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

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

.page-faq__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffc107;
}

.page-faq__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__btn-primary {
  display: inline-block;
  background-color: #007bff;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
}

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

.page-faq__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #007bff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid #007bff;
}

.page-faq__btn-secondary:hover {
  background-color: #007bff;
  color: #ffffff;
  border-color: #007bff;
}

.page-faq__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(0, 123, 255, 0.2);
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(0, 123, 255, 0.4);
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #ffc107;
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0 25px; /* Initial padding for smooth transition */
  color: #f0f0f0;
}

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

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-faq__faq-heading {
  margin: 0;
  font-size: 1.3em;
  color: #ffc107;
}

.page-faq__sub-faq-item {
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__sub-faq-item .page-faq__faq-question {
  padding: 12px 20px;
  font-size: 1.05em;
  background-color: transparent;
  color: #ffffff;
}

.page-faq__sub-faq-item .page-faq__faq-question:hover {
  background-color: rgba(0, 123, 255, 0.2);
}

.page-faq__faq-sub-heading {
  margin: 0;
  font-size: 1.1em;
  color: #ffffff;
}

.page-faq__sub-faq-item .page-faq__faq-answer {
  padding: 0 20px;
}

.page-faq__sub-faq-item.active .page-faq__faq-answer {
  padding: 20px;
}

.page-faq__link {
  color: #ffc107;
  text-decoration: underline;
}

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

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

.page-faq__contact-cta {
  background-color: rgba(0, 123, 255, 0.15);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  border: 1px solid #007bff;
}

.page-faq__contact-title {
  font-size: 2em;
  color: #ffc107;
  margin-bottom: 15px;
}

.page-faq__contact-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__contact-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* General image styling for content area */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

  .page-faq__hero-section {
    min-height: 300px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-faq__intro-text {
    font-size: 1em;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    margin-bottom: 10px;
  }
  
  .page-faq__hero-content .page-faq__btn-primary {
    margin-bottom: 0;
  }

  .page-faq__content-area {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

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

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

  .page-faq__faq-heading {
    font-size: 1.1em;
  }

  .page-faq__sub-faq-item .page-faq__faq-question {
    padding: 10px 15px;
    font-size: 0.95em;
  }

  .page-faq__faq-sub-heading {
    font-size: 1em;
  }

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

  .page-faq__contact-cta {
    padding: 30px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

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