.page-faq {
  color: #ffffff; /* Default text color for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: var(--dark-background-1); /* Assuming shared.css defines a dark background */
}

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1E90FF, #0056b3); /* Using auxiliary color for hero background */
  color: #ffffff;
  text-align: center;
  gap: 40px;
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #FFD700;
  color: #1E90FF;
  border: 2px solid #FFD700;
}

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

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

.page-faq__btn-secondary:hover {
  background-color: #FFD700;
  color: #1E90FF;
  transform: translateY(-2px);
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for content */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__section-title {
  font-size: 2.2em;
  color: #FFD700; /* Gold for section titles */
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 15px;
  position: relative;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #1E90FF;
  border-radius: 2px;
}

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

.page-faq__faq-category {
  background-color: #222222;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-faq__category-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-item:last-child {
  border-bottom: none;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #f0f0f0;
  transition: color 0.3s ease;
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: lighter;
  transition: transform 0.3s ease;
  color: #FFD700;
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
  line-height: 1.6;
}

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

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-faq__faq-answer li {
  margin-bottom: 5px;
  color: #cccccc;
}

.page-faq__btn-link {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background-color: #1E90FF;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-faq__btn-link:hover {
  background-color: #007bff;
}

.page-faq__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-faq__cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #1E90FF; /* Auxiliary color for CTA background */
  border-radius: 12px;
  margin-top: 50px;
  color: #ffffff;
}

.page-faq__cta-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for CTA title */
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-faq__cta-section .page-faq__btn-primary {
  background-color: #FFD700;
  color: #1E90FF;
  border: 2px solid #FFD700;
}

.page-faq__cta-section .page-faq__btn-primary:hover {
  background-color: #e6c200;
  color: #1565c0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-section {
    padding: 40px 15px;
  }

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

  .page-faq__description {
    font-size: 1em;
  }

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

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

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

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

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

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

  .page-faq__hero-content {
    padding: 0 15px;
  }

  .page-faq__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-faq__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-faq__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
  }

  .page-faq__hero-image-wrapper {
    margin-top: 30px;
  }

  .page-faq__content-area {
    padding: 30px 15px;
    border-radius: 0;
  }

  .page-faq__section-title {
    font-size: 1.6em;
    margin-bottom: 40px;
  }

  .page-faq__category-title {
    font-size: 1.3em;
  }

  .page-faq__faq-question {
    font-size: 0.95em;
    padding: 12px 0;
  }

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

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

  .page-faq__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__faq-category,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

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

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.6em;
  }

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

  .page-faq__category-title {
    font-size: 1.2em;
  }

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