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

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

.page-faq__hero-section {
  background: linear-gradient(135deg, #26A9E0, #1a7bb5); /* Primary brand color gradient */
  color: #ffffff;
  padding: 80px 0 60px;
  text-align: center;
  padding-top: var(--header-offset, 120px);
}

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

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.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;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-faq__content-area {
  padding: 60px 0;
  background: var(--dark-bg-1); /* Inherit from shared.css, likely dark */
  color: #ffffff; /* Light text for dark background */
}

.page-faq__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
  font-weight: bold;
}

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

.page-faq__intro-text a {
  color: #26A9E0;
  text-decoration: none;
}

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

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

.page-faq__faq-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-faq__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question h3 {
  margin: 0;
  flex-grow: 1;
  text-align: left;
  color: #ffffff; /* Ensure title is white */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #26A9E0; /* Brand color for toggle */
}

.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 contain content */
  padding: 15px 25px;
}

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

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

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

.page-faq__contact-cta {
  background: #ffffff; /* Light background for contact section */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
  text-align: center;
}

.page-faq__contact-cta .page-faq__section-title {
  color: #26A9E0;
}

.page-faq__contact-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-faq__contact-description a {
  color: #26A9E0;
  text-decoration: none;
}

.page-faq__contact-description a:hover {
  text-decoration: underline;
}

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

.page-faq__contact-cta .page-faq__btn-primary:hover {
  background: #1a7bb5;
  border-color: #1a7bb5;
}

.page-faq__contact-cta .page-faq__btn-secondary {
  background: transparent;
  border-color: #26A9E0;
  color: #26A9E0;
}

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

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

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

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

  .page-faq__faq-question {
    font-size: 1.05em;
    padding: 18px 20px;
  }

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

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 0 40px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .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;
  }

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

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

  .page-faq__intro-text,
  .page-faq__contact-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

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

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

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

  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !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;
  }
}

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

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

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