/* style/faq.css */
.page-faq {
  color: #ffffff; /* Body background #1a1a1a is dark, so text is white */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* inherited from body */
}

.page-faq__hero-section {
  position: relative;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 450px;
  background-color: #26A9E0; /* Using brand color for hero background */
  color: #ffffff;
  overflow: hidden;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 30px;
}

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-faq__main-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

.page-faq__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

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

.page-faq__accordion-section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Inherited from body, explicit for clarity */
  color: #ffffff;
}

.page-faq__dark-section {
  background-color: #1a1a1a; /* Explicitly dark background for sections */
  color: #ffffff;
}

.page-faq__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__section-title {
  font-size: 2.2em;
  color: #26A9E0; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  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;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker, /* For Webkit browsers */
.page-faq__faq-question::marker { /* Standard marker */
  display: none;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
}

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

.page-faq__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #26A9E0; /* Brand color for secondary action */
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 15px;
  font-size: 0.95em;
}

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

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

.page-faq__cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #1a1a1a;
}

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

.page-faq__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

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

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

.page-faq__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 30px auto;
  max-width: 1000px; /* Max width for video */
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

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

.page-faq__video-cta {
  margin-top: 30px;
}

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-faq__main-title {
    font-size: 2em;
  }
  .page-faq__intro-description {
    font-size: 1em;
  }
  .page-faq__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-faq__accordion-section, .page-faq__cta-section, .page-faq__video-section {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__section-description {
    font-size: 0.95em;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-faq__faq-answer {
    padding: 15px 20px;
    font-size: 0.9em;
  }
  .page-faq__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* Ensure video fills wrapper */
    object-fit: cover !important;
  }
  .page-faq__cta-buttons {
    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-left: 15px;
    padding-right: 15px;
  }
  .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;
  }
}

@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;
  }
  .page-faq__faq-question {
    font-size: 1em;
  }
  .page-faq__btn-primary, .page-faq__btn-secondary {
    font-size: 0.9em;
  }
}