/* 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: #0a0a0a; /* Ensure consistency with 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: 80px 0;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-faq__hero-section .page-faq__container {
  position: relative;
  z-index: 1;
}

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

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

/* Call to Action Buttons */
.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-faq__cta-buttons--inline {
  margin-top: 20px;
  justify-content: flex-start;
}

.page-faq__cta-buttons--center {
  justify-content: center;
}

.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;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-faq__btn-primary {
  background-color: #C30808; /* Red for primary action like download/register */
  color: #FFFF00; /* Yellow font for register/login */
  border: 2px solid #C30808;
}

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

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

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

/* Content Area */
.page-faq__content-area {
  padding: 60px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff; /* Light text */
}

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

.page-faq__section-title--white {
  color: #ffffff;
}

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

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  background-color: #017439; /* Brand primary color for question header */
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #028e4a;
}

.page-faq__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.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;
  background-color: rgba(255, 255, 255, 0.02);
}

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

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

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

.page-faq__faq-answer a {
  color: #C30808; /* Link color */
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: #e02020;
}

/* Image within content */
.page-faq__image-wrapper {
  margin: 20px 0;
  text-align: center;
}

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it doesn't have inline spacing issues */
  margin: 0 auto; /* Center the image */
  min-width: 200px;
  min-height: 200px;
}

/* Video Section */
.page-faq__video-section {
  padding: 60px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  text-align: center;
  margin-top: 40px;
}

.page-faq__video-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 20px auto 40px auto;
  color: #f0f0f0;
}

.page-faq__video-wrapper {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

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

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

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

  .page-faq__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

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

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-faq__cta-buttons--inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0 15px;
  }

  .page-faq__cta-buttons--center {
    flex-direction: column;
    align-items: center;
  }

  .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__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

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

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

  .page-faq__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-faq__video-section {
    padding: 40px 0;
  }

  .page-faq__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

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

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