/* style/faq.css */

/* Base Styles & Typography */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Body background from shared.css */
}

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

.page-faq__main-title {
  font-size: 3.2em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__intro-text,
.page-faq__description,
.page-faq__cta-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__faq-heading {
  font-size: 1.25em;
  color: #ffffff;
  margin: 0;
  padding-right: 15px; /* Space for toggle icon */
}

.page-faq p,
.page-faq li {
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-faq a {
  color: #FFFF00; /* Yellow for links */
  text-decoration: underline;
}

.page-faq a:hover {
  color: #f0f0f0;
  text-decoration: none;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #017439; /* Brand primary color */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 400px;
}

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

/* Content Area */
.page-faq__content-area {
  background-color: #1a1a1a; /* Match body background */
  padding: 60px 0;
}

/* FAQ List */
.page-faq__faq-list {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFFF00;
  transition: transform 0.3s ease;
  line-height: 1;
  width: 25px;
  text-align: center;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg); /* Change + to X-like */
}

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

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

/* Call to Action Section */
.page-faq__cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #017439;
  margin-top: 60px;
  border-radius: 8px;
}

.page-faq__cta-section .page-faq__cta-text {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__cta-button {
  display: inline-block;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-faq__btn-primary:hover,
.page-faq__cta-button:hover {
  background-color: #a00606;
  color: #ffffff;
}

/* Image Styling */
.page-faq__image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.page-faq__main-image,
.page-faq__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

@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;
  }

  .page-faq__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-faq__intro-text,
  .page-faq__description,
  .page-faq__cta-text {
    font-size: 1em;
    margin-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-faq__faq-heading {
    font-size: 1.1em;
  }

  .page-faq__btn-primary,
  .page-faq__cta-button {
    max-width: 100% !important;
    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__container {
    padding: 0 15px;
  }

  /* Image Responsive Adaptation */
  .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,
  .page-faq__image-wrapper,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Video Responsive Adaptation (if any) */
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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;
  }

  .page-faq__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-faq__faq-answer {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-faq__faq-question {
    padding-left: 15px;
    padding-right: 15px;
  }
}