.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark #1a1a2e, so text should be white */
  background-color: #1a1a2e; /* Ensure consistency, though shared.css sets body */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  padding-bottom: 60px;
  background-color: #017439; /* Brand color as background */
  color: #ffffff;
  overflow: hidden;
}

.page-faq__hero-content {
  flex: 1;
  padding-right: 40px;
  z-index: 1;
  max-width: 60%;
}

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

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

.page-faq__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  max-width: 40%;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Section Titles */
.page-faq__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 50px;
  padding-top: 60px;
  font-weight: bold;
}

/* Accordion Section */
.page-faq__accordion-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Dark background */
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-category {
  margin-bottom: 40px;
}

.page-faq__category-title {
  font-size: 2em;
  color: #017439; /* Brand color for category titles */
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Yellow for toggle icon */
}

.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: #e0e0e0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important;
  padding: 20px !important;
  padding-top: 10px !important;
}

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

/* Call to Action Section */
.page-faq__contact-cta-section {
  padding: 80px 0;
  background-color: #017439; /* Brand color */
  text-align: center;
  color: #ffffff;
}

.page-faq__contact-cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-faq__contact-cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.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: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #C30808; /* Red for primary action */
  color: #FFFF00; /* Yellow text for primary button */
  border: 2px solid #C30808;
}

.page-faq__btn-primary:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
  color: #ffffff;
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Yellow text for secondary button */
  border: 2px solid #FFFF00;
}

.page-faq__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

/* General image responsiveness */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.8em;
  }
  .page-faq__hero-content {
    max-width: 55%;
  }
  .page-faq__hero-image-wrapper {
    max-width: 45%;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    flex-direction: column;
    text-align: center;
    padding-bottom: 40px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-faq__hero-content {
    padding-right: 0;
    max-width: 100%;
  }

  .page-faq__hero-title {
    font-size: 2.2em;
    margin-top: 20px;
  }

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

  .page-faq__hero-image-wrapper {
    max-width: 100%;
    margin-top: 30px;
  }

  .page-faq__section-title,
  .page-faq__contact-cta-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  
  .page-faq__category-title {
    font-size: 1.5em;
    text-align: left;
    padding-left: 0;
    padding-right: 0;
  }

  .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 !important;
    padding-top: 10px !important;
  }

  .page-faq__contact-cta-section {
    padding: 60px 15px !important;
  }

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-faq__container,
  .page-faq__accordion-section,
  .page-faq__contact-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }

  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Color contrast fixes - applied generally */
.page-faq h1, .page-faq h2, .page-faq h3, .page-faq h4, .page-faq h5, .page-faq h6 {
  color: #ffffff; /* Ensure titles are white on dark background */
}

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

.page-faq__btn-primary:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
  color: #ffffff;
}

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

.page-faq__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

.page-faq__hero-content p,
.page-faq__faq-answer p,
.page-faq__contact-cta-description {
  color: #e0e0e0;
}

.page-faq__question-text {
  color: #ffffff;
}