/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  color: #ffffff; /* Light text for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  background-color: #0A2239;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

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

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

.page-faq__btn-primary {
  display: inline-block;
  background-color: #FFD700;
  color: #0A2239;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
}

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

.page-faq__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFD700;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid #FFD700;
}

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

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(0.7);
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

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

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

.page-faq__faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.page-faq__faq-item.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.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;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  color: inherit;
  flex-grow: 1;
  text-align: left;
}

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

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
  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: #e0e0e0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it overrides other styles */
  padding: 15px 25px 25px;
}

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

.page-faq__answer-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 15px;
  display: block;
}

/* CTA Section */
.page-faq__cta-section {
  padding: 80px 20px;
  background-color: #0A2239;
  text-align: center;
  color: #ffffff;
}

.page-faq__cta-content {
  max-width: 800px;
}

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

.page-faq__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

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

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

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

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

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

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

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

  .page-faq__faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

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

  .page-faq__cta-section {
    padding: 50px 15px;
  }

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

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

  /* Mobile image and video responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}

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

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

  .page-faq__cta-title {
    font-size: 1.6em;
  }
  
  .page-faq__faq-question h3 {
    font-size: 0.95em;
  }
}