/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Ensuring the page respects the dark body background */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding: 100px 20px 60px;
  text-align: center;
  background-color: #26A9E0; /* Brand primary color for hero */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-faq__subtitle {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
}

.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;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

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

/* Content Area */
.page-faq__content-area {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for content */
  color: #ffffff;
}

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

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

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-faq__faq-item:hover {
  background-color: 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.2em;
  font-weight: bold;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question:hover {
  color: #26A9E0;
}

.page-faq__question-title {
  margin: 0;
  font-size: 1.1em; /* Adjusted for better hierarchy */
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  user-select: none; /* Prevent text selection on 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: #e0e0e0;
}

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

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 10px;
}

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

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

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

/* Support Banner */
.page-faq__support-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(38, 169, 224, 0.15); /* Light transparent brand color */
  border-radius: 10px;
  padding: 40px;
  margin-top: 60px;
  text-align: center;
}

.page-faq__support-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  object-fit: cover;
}

.page-faq__support-content {
  max-width: 700px;
}

.page-faq__support-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-faq__support-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding: 80px 15px 40px;
  }

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

  .page-faq__subtitle {
    font-size: 1em;
    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;
  }

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

  .page-faq__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }

  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
    padding: 0 15px;
  }

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

  .page-faq__question-title {
    font-size: 1em;
  }

  .page-faq__faq-toggle {
    font-size: 1.5em;
  }

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

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

  .page-faq__support-banner {
    padding: 30px 20px;
    margin-top: 40px;
  }

  .page-faq__support-image {
    margin-bottom: 20px;
  }

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

  .page-faq__support-text {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__faq-list,
  .page-faq__faq-item,
  .page-faq__support-banner,
  .page-faq__support-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__faq-item, .page-faq__support-banner {
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__faq-question, .page-faq__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__support-content {
    padding-left: 0;
    padding-right: 0;
  }
}

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