/* 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); /* Body background from shared.css */
}

.page-faq__hero-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

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

.page-faq__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

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

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

.page-faq__video-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f9f9f9;
}

.page-faq__section-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #26A9E0;
  font-weight: bold;
}

.page-faq__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 30px auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-faq__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__video-caption {
  font-style: italic;
  color: #555555;
  margin-top: 10px;
}

.page-faq__content-area {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background for content */
  color: #333333;
}

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

.page-faq__faq-item {
  background-color: #f0f8ff; /* Light blue background for FAQ items */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #26A9E0; /* Brand primary color for question */
  color: #ffffff;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: #ffffff;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

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

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

.page-faq__faq-answer p {
  margin-bottom: 1em;
  color: #333333;
}

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

.page-faq__cta-section {
  background-color: #f0f8ff;
  padding: 50px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__cta-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__description {
    font-size: 1em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
  }
  .page-faq__video-section,
  .page-faq__content-area {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__faq-question h3 {
    font-size: 1em;
  }
  .page-faq__faq-answer {
    padding: 0 15px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px;
  }
  .page-faq__video-wrapper,
  .page-faq__container,
  .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;
  }
  .page-faq img,
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Content area image CSS dimensions lower bound (by scope, not class name) */
  /* This is handled by max-width: 100% and height: auto to ensure it's not smaller than 200px if original is larger */
  .page-faq__content-area img {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.5em;
  }
  .page-faq__section-title {
    font-size: 1.3em;
  }
  .page-faq__hero-section {
    padding: 40px 10px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
}