.page-faq {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #000;
  --bg-light: #f1f3f5;
  color: var(--text-light); /* Default text color for dark body background */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 180px 20px 60px; /* Adjusted padding-top for fixed header */
  background: linear-gradient(135deg, var(--secondary-color), var(--bg-dark));
  color: var(--text-light);
}

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

.page-faq__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-faq__cta-button:hover {
  background: var(--text-light);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-faq__section {
  padding: 60px 20px;
  background: var(--bg-light);
  color: var(--text-dark);
}

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

.page-faq__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__section-title--light {
  color: var(--primary-color);
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  margin-bottom: 5px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #fdfdfd;
  color: var(--text-dark);
  line-height: 1.7;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px !important;
  opacity: 1;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-faq__faq-item.active .page-faq__faq-question {
  border-radius: 8px 8px 0 0;
  border-bottom-color: transparent;
}

.page-faq__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-faq__faq-question:active {
  background: #eeeeee;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Plus sign becomes an X or visually distinct */
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.7;
}

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

.page-faq__link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-faq__contact-section {
  padding: 80px 20px;
  background: var(--secondary-color);
  text-align: center;
  color: var(--text-light);
}

.page-faq__contact-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-faq__cta-button--secondary {
  background: var(--text-light);
  color: var(--secondary-color);
}

.page-faq__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 42px;
  }
  .page-faq__hero-description {
    font-size: 18px;
  }
  .page-faq__section-title {
    font-size: 32px;
  }
  .page-faq__faq-question h3 {
    font-size: 17px;
  }
  .page-faq__faq-answer p {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 140px 15px 40px; /* Adjusted padding-top for mobile fixed header */
  }
  .page-faq__main-title {
    font-size: 36px;
  }
  .page-faq__hero-description {
    font-size: 16px;
  }
  .page-faq__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-faq__section {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-faq__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-faq__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px !important;
  }
  .page-faq__faq-answer p {
    font-size: 14px;
  }
  .page-faq__contact-section {
    padding: 60px 15px;
  }
  .page-faq__contact-description {
    font-size: 16px;
  }
}