/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0d1117; /* Inherited from shared, but for clarity */
}

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

.page-faq__dark-bg {
  background-color: #0d1117;
  color: #ffffff;
}

.page-faq__hero-section {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px);
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

.page-faq__main-title {
  font-size: 3.2em;
  color: #ffc107; /* Highlight with auxiliary color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-faq__btn-primary {
  background-color: #007bff;
  color: #ffffff;
}

.page-faq__btn-primary:hover {
  background-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: #0d1117;
  transform: translateY(-2px);
}

.page-faq__accordion-section {
  padding: 60px 0;
  background-color: #1a1f26; /* Slightly lighter dark background */
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #ffc107;
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-faq__faq-category {
  margin-bottom: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__category-title {
  font-size: 2em;
  color: #007bff;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid #007bff;
  padding-bottom: 15px;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #ffc107;
}

.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: #e0e0e0;
  background-color: rgba(0, 0, 0, 0.15);
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

.page-faq__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

.page-faq__faq-answer a {
  color: #ffc107;
  text-decoration: none;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
}

.page-faq__category-image {
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #007bff;
  color: #ffffff;
}

.page-faq__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

/* Responsive Styles */
@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 {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-faq__hero-section {
    min-height: 400px;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-faq__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-faq__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-faq__cta-button {
    padding: 10px 20px;
    font-size: 1em;
  }

  .page-faq__accordion-section {
    padding: 40px 0;
  }

  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-faq__category-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

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

  .page-faq__faq-answer {
    padding: 0 20px;
  }

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 10px 20px;
  }

  .page-faq__cta-section {
    padding: 50px 0;
  }

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-faq__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Ensure all images are responsive */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__faq-category {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__faq-item {
    padding-left: 0;
    padding-right: 0;
  }

  .page-faq__faq-question {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}