.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background #0a0a0a is dark, so text is light */
  background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
}

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

.page-faq__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  background-color: #000080; /* Midnight Blue auxiliary color */
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold main color for emphasis */
  font-weight: bold;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.15em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

.page-faq__btn-primary {
  display: inline-block;
  background-color: #FFD700; /* Gold main color */
  color: #000080; /* Midnight Blue for text contrast */
  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: none;
  cursor: pointer;
}

.page-faq__btn-primary:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  color: #000050; /* Slightly darker blue on hover */
}

.page-faq__btn-secondary {
  display: inline-block;
  background-color: #000080; /* Midnight Blue auxiliary color */
  color: #FFD700; /* Gold main color for text contrast */
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #FFD700;
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 10px;
}

.page-faq__btn-secondary:hover {
  background-color: #FFD700; /* Gold main color on hover */
  color: #000080; /* Midnight Blue for text contrast */
}

.page-faq__content-area {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background for content sections, slightly lighter than body for subtle contrast */
  color: #f0f0f0;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold main color */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

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

.page-faq__faq-item {
  background-color: #000050; /* Darker blue for FAQ items */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #000080; /* Midnight blue for question header */
  color: #FFD700; /* Gold text for question */
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #000060; /* Slightly lighter blue on hover */
}

.page-faq__faq-question h3 {
  margin: 0;
  color: inherit; /* Inherit color from parent */
}

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

.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;
  background-color: #0a0a0a; /* Dark background for answer content */
  color: #f0f0f0;
}

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

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

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

.page-faq__cta-section {
  text-align: center;
  background-color: #000080; /* Midnight Blue auxiliary color */
  padding: 50px 20px;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-title {
  font-size: 2em;
  color: #FFD700; /* Gold main color */
  margin-bottom: 30px;
  font-weight: bold;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 300px;
  }

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

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

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

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

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

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

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

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

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__cta-section,
  .page-faq__faq-item,
  .page-faq__faq-question,
  .page-faq__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-faq__content-area {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-faq__faq-answer .page-faq__btn-secondary {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Ensure content area images are not too small */
.page-faq img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Color contrast safety */
.page-faq h1, .page-faq h2, .page-faq h3, .page-faq h4, .page-faq h5, .page-faq h6 {
    color: #FFD700; /* Gold for headings */
}

.page-faq p, .page-faq li, .page-faq span {
    color: #f0f0f0; /* Light text on dark background */
}

.page-faq__dark-bg {
  color: #ffffff;
}

.page-faq__light-bg {
  color: #f0f0f0;
  background-color: #1a1a1a;
}

.page-faq__btn-primary {
  color: #000080;
  background-color: #FFD700;
}

.page-faq__btn-secondary {
  color: #FFD700;
  background-color: #000080;
  border-color: #FFD700;
}

.page-faq__btn-secondary:hover {
  color: #000080;
  background-color: #FFD700;
}

.page-faq a:not([class*="btn"]):not([class*="button"]) {
  color: #FFD700; /* Gold for regular links */
  text-decoration: underline;
}

.page-faq a:not([class*="btn"]):not([class*="button"]):hover {
  color: #e6c200; /* Slightly darker gold on hover */
}