/* style/faq.css */
.page-faq {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #0a0a0a; /* Ensure hero has a background matching body or dark */
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Limit image width on large screens */
    margin-bottom: 30px; /* Space between image and content */
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

.page-faq__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-faq__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

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

.page-faq__content-section,
.page-faq__faq-list-section,
.page-faq__cta-section {
  padding: 50px 0;
}

.page-faq__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-faq__light-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-faq__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-faq__text-block a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-faq__text-block a:hover {
    color: #1e87b3;
}

/* FAQ List */
.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

/* Style for <details> tag - native behavior */
.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: "−";
}
.page-faq__faq-item:not([open]) .page-faq__faq-toggle {
  content: "+";
}

/* Hide default marker for details */
.page-faq__faq-item summary {
  list-style: none;
}
.page-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-answer {
  padding: 0 25px;
  font-size: 1.05em;
  color: #f0f0f0;
  max-height: 0; /* Hidden by default for JS fallback */
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

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

.page-faq__faq-answer ul {
    margin-left: 20px;
    list-style-type: disc;
    margin-bottom: 10px;
}

.page-faq__faq-answer li {
    margin-bottom: 5px;
}

/* For JS fallback if <details> is not used or to override native transition */
.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px; /* Large enough to accommodate content */
  padding-top: 15px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    content: "−"; /* Change to minus */
}

.page-faq__faq-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 15px;
    min-width: 200px;
    min-height: 200px;
}

/* CTA Section */
.page-faq__cta-section .page-faq__section-title {
    color: #ffffff;
}

.page-faq__cta-section .page-faq__text-block {
    text-align: center;
}

.page-faq__cta-buttons--center {
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-faq__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-faq__hero-image-wrapper {
      margin-bottom: 20px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .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__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

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

  /* All content containers for mobile */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__content-section,
  .page-faq__faq-list-section,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-faq__video-section {
      padding-top: 10px !important;
  }
}