/* style/faq.css */

/* Base Styles for FAQ Page */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark background */
  background-color: var(--primary-bg); /* Inherit from shared.css, assumed dark */
}

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

/* Fixed Header Spacing */
.page-faq__hero-spacing {
  padding-top: 120px; /* Desktop spacing for fixed header */
}

/* Intro Section */
.page-faq__intro-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-faq__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-faq__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent for main title */
  font-weight: 700;
}

.page-faq__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__intro-text a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

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

.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: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
}

.page-faq__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #0A192F; /* Dark blue */
  border: 2px solid #FFD700;
}

.page-faq__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
}

.page-faq__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  color: #0A192F; /* Dark text on light background */
  font-weight: 700;
}

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

/* FAQ Item Styles */
.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #0A192F; /* Dark blue question background */
  color: #ffffff;
  border: 1px solid #1a2b47;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-item.active .page-faq__faq-question {
  border-radius: 8px 8px 0 0;
}

.page-faq__faq-question:hover {
  background: #1a2b47;
  border-color: #2a3c58;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #FFD700; /* Gold text for question */
}

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9; /* Light background for answer */
  color: #333333; /* Dark text on light background */
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-faq__faq-answer p {
  margin: 0 0 10px 0;
  color: #333333;
}

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__faq-answer a {
  color: #0A192F;
  text-decoration: none;
  font-weight: bold;
}

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

.page-faq__image-illustration {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-faq__app-download-cta {
  text-align: center;
  margin-top: 20px;
}

/* Contact CTA Section */
.page-faq__contact-cta-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-faq__contact-text {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__contact-text a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.5em;
  }
  .page-faq__section-title,
  .page-faq__contact-title {
    font-size: 2em;
  }
  .page-faq__faq-question h3 {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-spacing {
    padding-top: 100px; /* Mobile spacing for fixed header */
  }
  .page-faq__intro-section,
  .page-faq__faq-section,
  .page-faq__contact-cta-section {
    padding: 40px 0;
  }
  .page-faq__main-title {
    font-size: 2em;
  }
  .page-faq__intro-text {
    font-size: 1em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-faq__section-title,
  .page-faq__contact-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-question h3 {
    font-size: 1em;
  }
  .page-faq__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }
  
  /* Mobile image adaptation */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__intro-section,
  .page-faq__faq-section,
  .page-faq__contact-cta-section,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}