.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Body background from shared.css */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  overflow: hidden;
}

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Dim image to make text readable */
}

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

.page-faq__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FF0000; /* Brand color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-faq__hero-button {
  display: inline-block;
  background-color: #FF0000;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FF0000;
}

.page-faq__hero-button:hover {
  background-color: #e60000;
  transform: translateY(-3px);
}

/* Introduction Section */
.page-faq__introduction-section {
  background-color: #000000; /* Auxiliary color for contrast */
  padding: 60px 0;
  text-align: center;
  color: #ffffff;
}

.page-faq__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FF0000; /* Brand color for section titles */
}

.page-faq__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  color: #f0f0f0;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-faq__faq-item {
  background-color: #000000;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #333333; /* Darker background for questions */
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  color: #FF0000; /* Brand color for FAQ questions */
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FF0000;
  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;
  color: #f0f0f0;
  background-color: #000000;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it overrides */
  padding: 20px 25px;
}

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

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

.page-faq__faq-answer li {
  margin-bottom: 8px;
}

.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

/* CTA Section */
.page-faq__cta-section {
  background-color: #000000;
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

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

.page-faq__cta-description {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-faq__btn-primary:hover {
  background-color: #e60000;
  border-color: #e60000;
  transform: translateY(-3px);
}

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

.page-faq__btn-secondary:hover {
  background-color: #FF0000;
  color: #ffffff;
  transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 3em;
  }

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

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

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

  .page-faq__hero-section {
    min-height: 450px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .page-faq__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-faq__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-faq__introduction-section,
  .page-faq__faq-list-section,
  .page-faq__cta-section {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 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: 0.95em;
  }

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

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

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

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

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

  .page-faq__cta-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile image and video responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image-wrapper,
  .page-faq__faq-image,
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper,
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

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

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

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