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

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

.page-faq__hero-section {
  background-color: #007BFF;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-faq__hero-content {
  max-width: 800px;
}

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFC107;
}

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

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

.page-faq__btn {
  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;
  white-space: nowrap;
}

.page-faq__btn--primary {
  background-color: #FFC107;
  color: #007BFF;
  border: 2px solid #FFC107;
}

.page-faq__btn--primary:hover {
  background-color: #e0a800;
  color: #0056b3;
  transform: translateY(-2px);
}

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

.page-faq__btn--secondary:hover {
  background-color: #FFC107;
  color: #007BFF;
  transform: translateY(-2px);
}

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

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

.page-faq__section-title {
  font-size: 2.5em;
  color: #007BFF;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

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

.page-faq__accordion {
  margin-top: 30px;
}

.page-faq__accordion-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.page-faq__accordion-header::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-faq__accordion-header.active {
  background-color: #0056b3;
}

.page-faq__accordion-header.active::after {
  content: '-';
  transform: rotate(0deg);
}

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

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

.page-faq__accordion-content p {
  margin-bottom: 15px;
  font-size: 1em;
  color: #444444;
}

.page-faq__accordion-content p:last-child {
  margin-bottom: 0;
}

.page-faq__accordion-content a {
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.page-faq__accordion-content a:hover {
  text-decoration: underline;
}

.page-faq__cta-section {
  background-color: #007BFF;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 50px;
}

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

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

.page-faq__related-links-section {
  padding: 60px 0;
}

.page-faq__related-links-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
}

.page-faq__related-links-list li {
  background-color: #f0f0f0;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-faq__related-links-list li:hover {
  background-color: #e0e0e0;
  transform: translateY(-3px);
}

.page-faq__related-links-list a {
  display: block;
  padding: 15px 25px;
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  white-space: nowrap;
}

.page-faq__related-links-list a:hover {
  color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-faq__hero-title {
    font-size: 2.8em;
  }

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

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

  .page-faq__accordion-header {
    font-size: 1.1em;
    padding: 18px 20px;
  }
}

@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-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__btn {
    width: 100%;
    max-width: 300px;
  }

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

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

  .page-faq__accordion-header {
    font-size: 1em;
    padding: 15px 18px;
  }

  .page-faq__accordion-content.open {
    padding: 15px;
  }

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

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

  .page-faq__related-links-list {
    flex-direction: column;
    align-items: center;
  }

  .page-faq__related-links-list li {
    width: 100%;
    max-width: 300px;
  }

  /* Critical: prevent content overflow on mobile */
  .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.95em;
  }

  .page-faq__btn {
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

  .page-faq__accordion-header {
    font-size: 0.95em;
    padding: 12px 15px;
  }

  .page-faq__accordion-content p {
    font-size: 0.95em;
  }

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

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

  .page-faq__related-links-list a {
    font-size: 1em;
  }
}