/* 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: transparent; /* Inherit from body */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  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: -2;
}

.page-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%;
}

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

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

.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__faq-list-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Darker background for contrast */
  color: #ffffff;
}

.page-faq__dark-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

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

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

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

.page-faq__faq-items {
  margin-top: 40px;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #333333;
  color: #ffffff;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.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: 0;
  padding-bottom: 10px; /* Add some space at the bottom of the paragraph */
}

.page-faq__content-image {
  display: block;
  margin: 50px auto 0 auto;
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-faq__support-cta-section {
  background-color: #26A9E0;
  padding: 80px 0;
  color: #ffffff;
}

.page-faq__support-container {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-faq__support-content {
  flex: 1;
}

.page-faq__support-content .page-faq__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 30px;
}

.page-faq__support-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq__support-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-faq__btn-primary--light {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-faq__btn-primary--light:hover {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
  color: #26A9E0;
}

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

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    height: auto;
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-faq__hero-title {
    font-size: 2em;
  }

  .page-faq__hero-description {
    font-size: 1em;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__faq-list-section,
  .page-faq__support-cta-section {
    padding: 40px 0;
  }

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

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

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

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

  .page-faq__support-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .page-faq__support-content .page-faq__section-description {
    text-align: center;
  }

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__faq-list-section,
  .page-faq__support-cta-section,
  .page-faq__support-container,
  .page-faq__hero-actions {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
}

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

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

  .page-faq__hero-section {
    min-height: 400px;
  }
  
  .page-faq__faq-question {
    font-size: 0.95em;
  }
}