/* style/faq.css */

/* Base styles for the page content */
.page-faq {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* inherited from body's var(--black-color) */
}

/* Fixed header spacing for main content */
.page-faq__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Dark background sections (e.g., hero, CTA) */
.page-faq__dark-section {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  padding: 80px 0;
}

/* Hero Section */
.page-faq__hero-section {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 80px; /* Adjust padding for image */
}

.page-faq__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  z-index: 1;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7); /* Slightly dim the background image for text contrast, allowed as it's not changing color */
}

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

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

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

.page-faq__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  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;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

/* FAQ Section */
.page-faq__faq-section {
  background-color: #ffffff; /* Light background for FAQ content */
  color: #333333; /* Dark text for light background */
  padding: 80px 0;
  text-align: center;
}

.page-faq__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0; /* Primary brand color for titles */
}

.page-faq__section-description {
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto 50px auto;
  text-align: left;
}

.page-faq__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #f9f9f9;
}

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

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

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1em; /* Adjust h3 size within question to prevent being too large */
  color: #26A9E0; /* Primary brand color for question text */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.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-out, padding 0.3s ease-out;
  color: #555555;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Use !important as required */
  padding: 15px 25px 25px 25px; /* Adjust padding for better look when open */
}

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

.page-faq__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
}

.page-faq__section-image {
  margin-top: 50px;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* CTA Download Section */
.page-faq__cta-download-section {
  padding: 100px 0;
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
}

.page-faq__cta-download-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.page-faq__text-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-faq__image-content {
  flex: 1;
  min-width: 250px;
  text-align: right;
}

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

.page-faq__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-faq__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-faq__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__main-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__container {
    padding: 0 15px !important; /* Ensure padding is applied */
  }

  /* Fixed header spacing for hero section */
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }

  .page-faq__dark-section,
  .page-faq__faq-section,
  .page-faq__cta-download-section {
    padding: 60px 0;
  }

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

  .page-faq__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-faq__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .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: 15px 20px;
  }

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

  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

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

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

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

  .page-faq__section-image {
    margin-top: 30px;
  }

  .page-faq__cta-download-content {
    flex-direction: column-reverse; /* Image above text on mobile */
    text-align: center;
  }

  .page-faq__text-content {
    text-align: center;
    min-width: unset;
  }

  .page-faq__image-content {
    text-align: center;
    margin-bottom: 30px;
    min-width: unset;
  }

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

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

  /* Image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers containing images/content */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__cta-download-content,
  .page-faq__text-content,
  .page-faq__image-content,
  .page-faq__cta-group,
  .page-faq__faq-list,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}

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