/* style/faq.css */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared, fallback to white */
}

.page-faq__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
  overflow: hidden;
}

.page-faq__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-faq__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F8FF;
}

.page-faq__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login/Action color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
  background-color: #D36A00;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__btn-secondary:hover {
  background-color: #E0F2F7;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-image-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%; /* Adjust as needed */
  height: auto;
  opacity: 0.2;
  z-index: 0;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: grayscale(100%); /* Example of non-color changing filter for background effect */
  opacity: 0.6;
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  margin-top: -40px; /* Overlap with hero for visual flow */
  position: relative;
  z-index: 2;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-faq__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: #EA7C07;
  border-radius: 2px;
}

.page-faq__text-block {
  margin-bottom: 40px;
}

.page-faq__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-faq p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-faq__unordered-list,
.page-faq__ordered-list {
  margin-bottom: 15px;
  padding-left: 25px;
  color: #333333;
}

.page-faq__unordered-list li,
.page-faq__ordered-list li {
  margin-bottom: 8px;
  font-size: 1.05em;
}

.page-faq__link {
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
}

.page-faq__link:hover {
  text-decoration: underline;
}

.page-faq__highlight {
  color: #EA7C07;
  font-weight: bold;
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-faq__faq-list {
  margin-top: 40px;
}

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

.page-faq__faq-item.active {
  background-color: #E0F2F7;
  border-color: #26A9E0;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #FFFFFF;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-question {
  background-color: #26A9E0;
  color: #FFFFFF;
  border-bottom-color: transparent;
}

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

.page-faq__faq-item.active .page-faq__faq-question:hover {
  background-color: #1a8fbd;
}

.page-faq__faq-title {
  font-size: 1.2em;
  color: #333333;
  margin: 0;
  flex-grow: 1;
}

.page-faq__faq-item.active .page-faq__faq-title {
  color: #FFFFFF;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
  color: #FFFFFF;
}

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

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

.page-faq__cta-section {
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  margin-top: 60px;
}

.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: 40px;
  color: #F0F8FF;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

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

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

  .page-faq__hero-image-wrapper {
    width: 60%;
  }
}

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

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

  .page-faq__hero-content {
    margin-bottom: 30px;
  }

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

  .page-faq__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-faq__hero-actions {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-faq__hero-image-wrapper {
    position: relative;
    width: 100%;
    margin-top: 30px;
    opacity: 1;
    filter: none;
  }

  .page-faq__hero-image {
    filter: none;
    opacity: 1;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__content-area {
    padding: 30px 15px;
    margin-top: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

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

  .page-faq__sub-title {
    font-size: 1.3em;
  }

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

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

  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Enforce min size even on mobile */
    min-height: 200px; /* Enforce min size even on mobile */
  }

  .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__video-section {
    padding-top: var(--header-offset, 120px) !important; /* With !important for mobile */
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-answer {
    padding: 15px;
  }
  .page-faq__faq-title {
    font-size: 1.1em;
  }
}