.page-faq__hero-section {
  background: linear-gradient(135deg, #4A148C 0%, #6A1B9A 100%);
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset is applied */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  box-sizing: border-box;
}

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

.page-faq__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #FFD700; /* Gold for emphasis */
}

.page-faq__description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-faq__btn-primary:hover {
  background-color: #FFC107;
  border-color: #FFC107;
  transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
  background-color: #FFD700;
  color: #4A148C; /* Royal Purple */
  transform: translateY(-2px);
}

.page-faq__btn-tertiary {
  background-color: #4A148C;
  color: #ffffff;
  border: 2px solid #4A148C;
  margin-top: 20px;
}

.page-faq__btn-tertiary:hover {
  background-color: #6A1B9A;
  border-color: #6A1B9A;
  transform: translateY(-2px);
}

.page-faq__content-area {
  background-color: #1a1a2e; /* Dark background from body */
  color: #ffffff; /* Light text for contrast */
  padding: 60px 0;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-faq__section-title--light {
  color: #FFD700;
}

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

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  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.2);
}

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: #FFD700; /* Gold for question titles */
  font-weight: 600;
  line-height: 1.4;
}

.page-faq__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px 25px;
}

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  margin-bottom: 15px;
  padding-left: 25px;
  list-style-type: disc;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-faq__faq-answer h4 {
  font-size: 1.2em;
  color: #FFD700;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  display: block;
  object-fit: cover;
}

.page-faq__image--full-width {
  width: 100%;
}

.page-faq__related-articles {
  background-color: #4A148C; /* Royal Purple */
  color: #ffffff;
  padding: 60px 0;
}

.page-faq__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.page-faq__article-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-faq__article-card:hover {
  transform: translateY(-5px);
}

.page-faq__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-faq__article-card h3 {
  font-size: 1.3em;
  color: #FFD700;
  margin: 20px 20px 10px;
  font-weight: 600;
  line-height: 1.4;
}

.page-faq__article-card h3 a {
  color: #FFD700;
  text-decoration: none;
}

.page-faq__article-card h3 a:hover {
  text-decoration: underline;
}

.page-faq__article-excerpt {
  font-size: 0.95em;
  color: #f0f0f0;
  margin: 0 20px 20px;
  flex-grow: 1;
  line-height: 1.6;
}

.page-faq__read-more {
  display: inline-block;
  background-color: #FFD700;
  color: #4A148C;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
}

.page-faq__read-more:hover {
  background-color: #FFC107;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__description {
    font-size: 1.1em;
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
  .page-faq__faq-question h3 {
    font-size: 1.2em;
  }
  .page-faq__faq-answer p {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__description {
    font-size: 1em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-tertiary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__content-area,
  .page-faq__related-articles {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-question h3 {
    font-size: 1.1em;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px;
  }
  .page-faq__articles-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__section, .page-faq__card, .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__faq-answer img {
    min-width: 200px;
    min-height: 200px;
  }
  .page-faq__article-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__description {
    font-size: 0.95em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__faq-question h3 {
    font-size: 1em;
  }
}