.page-faq {
  color: #333333; /* Dark text for default light body background */
  line-height: 1.6;
}

.page-faq__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, #4A148C, #800080); /* Deep royal purple gradient */
  color: #ffffff;
  text-align: center;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.page-faq__hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 20px;
  font-weight: 700;
  color: #FFD700; /* Gold accent for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

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

.page-faq__button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1rem;
  text-align: center;
}

.page-faq__button--primary {
  background-color: #FFD700; /* Gold */
  color: #4A148C; /* Royal Purple */
  border: 2px solid #FFD700;
}

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

.page-faq__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
}

.page-faq__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2; /* Subtle background image */
}

.page-faq__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-faq__section-title,
.page-faq__cta-title,
.page-faq__related-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #4A148C; /* Royal Purple */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-faq__accordion-container {
  margin-bottom: 60px;
}

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

.page-faq__accordion-item:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-faq__accordion-header {
  background-color: #4A148C; /* Royal Purple */
  color: #FFD700; /* Gold */
  padding: 18px 25px;
  cursor: pointer;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

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

.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: #f9f9f9;
  color: #333333;
}

.page-faq__accordion-content.open {
  max-height: 1000px; /* Arbitrary large value for smooth transition */
  padding: 20px 25px;
}

.page-faq__accordion-content p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.7;
}

.page-faq__accordion-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min-size for content images */
  min-height: 200px;
}

.page-faq__accordion-content .page-faq__button--small {
  font-size: 0.9rem;
  padding: 8px 18px;
  margin-top: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
}

.page-faq__cta-section {
  background: #FFD700; /* Gold background */
  color: #4A148C; /* Royal Purple text */
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-faq__cta-title {
  color: #4A148C; /* Royal Purple */
  margin-bottom: 20px;
}

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

.page-faq__cta-section .page-faq__button--primary {
  background-color: #4A148C; /* Royal Purple */
  color: #FFD700; /* Gold */
  border: 2px solid #4A148C;
}

.page-faq__cta-section .page-faq__button--primary:hover {
  background-color: #330e61;
  border-color: #330e61;
}

.page-faq__cta-section .page-faq__button--secondary {
  background-color: transparent;
  color: #4A148C; /* Royal Purple */
  border: 2px solid #4A148C;
}

.page-faq__cta-section .page-faq__button--secondary:hover {
  background-color: rgba(74, 20, 140, 0.1);
}

.page-faq__related-links {
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__link-list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px 30px;
}

.page-faq__link-list li a {
  color: #4A148C; /* Royal Purple */
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-faq__link-list li a:hover {
  color: #FFD700; /* Gold */
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
  }

  .page-faq__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-faq__content-area {
    padding: 30px 15px;
  }

  .page-faq__section-title,
  .page-faq__cta-title,
  .page-faq__related-title {
    margin-bottom: 30px;
  }

  .page-faq__accordion-header {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

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

  .page-faq__accordion-content img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }

  .page-faq__cta-section {
    padding: 40px 15px;
  }

  .page-faq__link-list {
    flex-direction: column;
    gap: 10px;
  }

  .page-faq__link-list li a {
    font-size: 1rem;
  }

  /* Ensure all images under .page-faq do not overflow */
  .page-faq img {
    max-width: 100%;
    height: auto;
  }
}

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

  .page-faq__hero-description {
    font-size: 0.95rem;
  }

  .page-faq__button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .page-faq__section-title,
  .page-faq__cta-title,
  .page-faq__related-title {
    font-size: 1.6rem;
  }

  .page-faq__accordion-header {
    font-size: 1rem;
  }

  .page-faq__accordion-content p {
    font-size: 0.9rem;
  }
}