.page-faq {
  color: #333333;
  line-height: 1.6;
  font-family: Arial, sans-serif;
  padding-top: var(--header-offset, 120px);
}

.page-faq__hero-section {
  background-color: #f8f8f8;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #000000; /* Ensuring contrast against potentially lighter hero image */
}

.page-faq__hero-title {
  font-size: 3.2em;
  color: #8B0000;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #333333;
}

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

.page-faq__button {
  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, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-faq__button--primary {
  background-color: #FFD700;
  color: #8B0000;
}

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

.page-faq__button--secondary {
  background-color: #8B0000;
  color: #FFD700;
}

.page-faq__button--secondary:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
}

.page-faq__accordion-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-faq__section-subtitle {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 50px;
}

.page-faq__accordion-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq__accordion-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-faq__accordion-header {
  background-color: #FFD700;
  color: #8B0000;
  padding: 20px 25px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-faq__accordion-header:hover {
  background-color: #e6c200;
}

.page-faq__accordion-header h3 {
  margin: 0;
  color: #8B0000;
}

.page-faq__accordion-icon {
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-faq__accordion-header.active .page-faq__accordion-icon {
  transform: rotate(45deg);
}

.page-faq__accordion-content {
  padding: 0 25px;
  background-color: #fefefe;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-faq__accordion-content.active {
  max-height: 1000px; /* Adjust based on expected content height */
  padding: 25px;
}

.page-faq__faq-item {
  margin-bottom: 25px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 20px;
}

.page-faq__faq-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-faq__faq-item h4 {
  font-size: 1.2em;
  color: #8B0000;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-faq__faq-item p {
  font-size: 1em;
  color: #333333;
  margin-bottom: 10px;
}

.page-faq__faq-item p a {
  color: #8B0000;
  text-decoration: underline;
}

.page-faq__faq-item p a:hover {
  color: #FFD700;
}

.page-faq__content-image {
  display: block;
  margin: 30px auto 10px auto;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
  object-fit: cover;
}

.page-faq__cta-section {
  background-color: #8B0000;
  color: #FFD700;
  padding: 80px 20px;
  text-align: center;
}

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

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

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

.page-faq__cta-buttons .page-faq__button--primary {
  background-color: #FFD700;
  color: #8B0000;
}

.page-faq__cta-buttons .page-faq__button--primary:hover {
  background-color: #e6c200;
}

.page-faq__cta-buttons .page-faq__button--secondary {
  background-color: #fefefe;
  color: #8B0000;
}

.page-faq__cta-buttons .page-faq__button--secondary:hover {
  background-color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
  .page-faq__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
  }
  .page-faq__hero-title {
    font-size: 2.2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__button {
    width: 100%;
    max-width: 300px;
  }
  .page-faq__accordion-section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__section-subtitle {
    font-size: 0.95em;
  }
  .page-faq__accordion-header {
    font-size: 1.2em;
    padding: 15px 20px;
  }
  .page-faq__accordion-content.active {
    padding: 20px;
  }
  .page-faq__faq-item h4 {
    font-size: 1.1em;
  }
  .page-faq__faq-item p {
    font-size: 0.9em;
  }
  .page-faq__cta-section {
    padding: 60px 15px;
  }
  .page-faq__cta-title {
    font-size: 2em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  /* Ensure all images within .page-faq are responsive and do not cause overflow */
  .page-faq img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__hero-description {
    font-size: 0.9em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__accordion-header {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
}