.page-faq {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg); /* Inherit from shared.css */
}

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

.page-faq__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #26A9E0, #1a7bb5);
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.page-faq__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-faq__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

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

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

.page-faq__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-faq__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

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

.page-faq__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-faq__content-area {
  padding: 60px 0;
  background-color: #1a1a1a; /* Darker background for content contrast */
  color: #f0f0f0;
}

.page-faq__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
  font-weight: bold;
}

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

.page-faq__faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-faq__faq-category {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__category-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 25px;
  border-bottom: 2px solid rgba(38, 169, 224, 0.3);
  padding-bottom: 15px;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  background-color: #333333;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-faq__faq-item details > summary {
  list-style: none;
}

.page-faq__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: #3d3d3d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #4a4a4a;
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #cccccc;
  background-color: #333333;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
}

.page-faq__faq-answer ul {
  list-style: disc inside;
  margin-top: 10px;
  padding-left: 20px;
}

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

.page-faq__link {
  color: #26A9E0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-faq__link:hover {
  color: #3dbeff;
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__conclusion-cta {
  text-align: center;
  padding: 50px 0;
  margin-top: 50px;
  background-color: #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__conclusion-cta .page-faq__section-title {
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-faq__conclusion-cta .page-faq__section-description {
  color: #cccccc;
  margin-bottom: 40px;
}

.page-faq__cta-buttons--bottom {
  margin-top: 0;
}

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

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

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
  }

  .page-faq__main-title {
    font-size: 2.2em;
  }

  .page-faq__intro-text {
    font-size: 1em;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: center;
  }

  .page-faq__content-area {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

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

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

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

  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-faq__faq-answer {
    font-size: 0.95em;
    padding: 15px 20px;
  }

  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__faq-category,
  .page-faq__conclusion-cta {
    padding: 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }

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

  .page-faq__category-title {
    font-size: 1.3em;
  }

  .page-faq__faq-question {
    font-size: 1em;
  }
}