/* style/faq.css */

/* Base Styles */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* 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: #FFFF00; /* Yellow for prominence */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description,
.page-faq__section-description,
.page-faq__cta-description,
.page-faq p {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-faq h2,
.page-faq h3 {
  color: #FFFF00; /* Yellow for headings */
  margin-bottom: 15px;
}

.page-faq h2 {
  font-size: 2.5em;
  text-align: center;
}

.page-faq h3 {
  font-size: 1.5em;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq a[class*="button"],
.page-faq a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-faq__btn-primary {
  background-color: #C30808; /* Register/Login red */
  color: #FFFF00; /* Register/Login font yellow */
  border: 2px solid #C30808;
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand green */
  border: 2px solid #017439;
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-color: #017439; /* Brand green background */
  text-align: center;
  overflow: hidden;
}

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
  filter: none; /* Ensure no CSS filter */
}

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

.page-faq__hero-btn {
  margin-top: 30px;
}

/* Accordion Section (FAQ List) */
.page-faq__accordion-section {
  padding: 60px 0;
  background-color: #000000; /* Dark background from body */
}

.page-faq__section-title {
  margin-bottom: 20px;
  color: #FFFF00;
}

.page-faq__section-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
  color: #f0f0f0;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

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

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

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(0deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  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; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-faq__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px 0;
  border-radius: 5px;
  filter: none; /* Ensure no CSS filter */
}

/* CTA Section */
.page-faq__cta-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.page-faq__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-faq__cta-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
  z-index: 0;
  filter: none; /* Ensure no CSS filter */
}

.page-faq__cta-title {
  position: relative;
  z-index: 1;
  color: #FFFF00;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-faq__cta-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

  .page-faq h2 {
    font-size: 2.2em;
  }
}

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

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

  .page-faq h2 {
    font-size: 1.8em;
  }

  .page-faq h3 {
    font-size: 1.3em;
  }

  .page-faq__hero-section {
    padding: 60px 15px;
  }

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

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

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

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

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-faq__hero-content {
    padding: 0 15px;
  }

  .page-faq__section-description {
    padding: 0 15px;
  }

  .page-faq__faq-item {
    margin: 0 15px;
  }
}

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

  .page-faq h2 {
    font-size: 1.6em;
  }

  .page-faq__hero-description,
  .page-faq__section-description,
  .page-faq__cta-description,
  .page-faq p {
    font-size: 1em;
  }
}