/* style/faq.css */

/* Variables */
:root {
  --page-faq-primary-color: #017439;
  --page-faq-secondary-color: #FFFFFF;
  --page-faq-register-color: #C30808;
  --page-faq-login-color: #C30808;
  --page-faq-register-login-font-color: #FFFF00;
  --page-faq-dark-background: #0a0a0a; /* Matches body background */
  --page-faq-light-text: #ffffff;
  --page-faq-dark-text: #333333;
  --page-faq-border-color: rgba(255, 255, 255, 0.1);
}

.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-faq-light-text); /* Default text color for dark body background */
  background-color: var(--page-faq-dark-background); /* Ensures consistent dark background */
}

.page-faq a {
  color: var(--page-faq-secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq a:hover {
  color: var(--page-faq-primary-color);
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--page-faq-light-text);
}

.page-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for better text contrast */
  z-index: 1;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--page-faq-secondary-color);
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--page-faq-light-text);
}

.page-faq__hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}

.page-faq__hero-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    cursor: pointer;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-faq__btn-primary {
  background-color: var(--page-faq-register-color); /* Use register color for primary CTA */
  color: var(--page-faq-register-login-font-color);
  border: 2px solid var(--page-faq-register-color);
}

.page-faq__btn-primary:hover {
  background-color: #d82d2d; /* Slightly darker red on hover */
  transform: translateY(-2px);
}

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--page-faq-dark-background);
  color: var(--page-faq-light-text);
}

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

.page-faq__section-title {
  font-size: 2.5em;
  color: var(--page-faq-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

/* FAQ List */
.page-faq__faq-list {
  margin-bottom: 60px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
  border: 1px solid var(--page-faq-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08); /* Darker shade for question background */
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--page-faq-secondary-color);
}

.page-faq__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--page-faq-primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
  color: var(--page-faq-secondary-color);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: var(--page-faq-light-text);
}

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

.page-faq__image-content {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

/* Conclusion Section */
.page-faq__conclusion {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--page-faq-border-color);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
}

.page-faq__conclusion p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--page-faq-light-text);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 3em;
  }
  .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 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

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

  .page-faq__content-area {
    padding: 30px 15px;
  }

  .page-faq__container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

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

  .page-faq__faq-question {
    padding: 15px 20px;
  }

  .page-faq__faq-question h3 {
    font-size: 1.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: 15px 20px;
  }

  .page-faq__conclusion {
    padding: 20px;
  }
  
  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 2em;
  }
  .page-faq__hero-description {
    font-size: 0.9em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__faq-question h3 {
    font-size: 1em;
  }
}