/* 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: #000000; /* Ensuring content area has a background to contrast with header/footer */
}

/* Fixed header spacing */
.page-faq {
  padding-top: var(--header-offset, 120px);
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background-color: #0A1931;
  color: #ffffff;
  overflow: hidden;
}

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

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

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

/* Section Title */
.page-faq__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* FAQ List */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-faq__faq-question h3 {
  margin: 0;
  color: #FFD700;
  font-size: 1em; /* Adjust to fit parent font size */
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-faq__faq-answer p {
  margin-bottom: 1em;
  line-height: 1.7;
  font-size: 1.05em;
}

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 1em;
}

.page-faq__faq-answer li {
  margin-bottom: 0.5em;
}

/* Active state for FAQ item */
.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px;
}

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

/* Call to Action Section */
.page-faq__cta-section {
  background-color: #0A1931;
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__cta-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  margin: 10px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #FFD700;
  color: #0A1931;
  border: 2px solid #FFD700;
}

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

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

.page-faq__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A1931;
}

/* Links within text */
.page-faq a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq a:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Image styles (general) */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-faq__hero-section {
    padding: 60px 15px;
  }
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__intro-text {
    font-size: 1em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 15px 20px;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image responsive rules */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-faq__faq-answer p {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-faq__faq-toggle {
    font-size: 1.5em;
  }
  .page-faq__faq-answer {
    padding: 12px 15px;
  }
  .page-faq__cta-title {
    font-size: 1.6em;
  }
}