.page-faq {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #121212 (dark), so text must be light */
  background-color: #121212; /* Ensure consistency with body background */
  padding-top: var(--header-offset, 120px); /* Apply header offset to main content */
}

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

.page-faq__hero-section {
  background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Gradient with brand color */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-faq__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

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

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

.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-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  min-width: 180px; /* Ensure buttons have a decent minimum width */
}

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

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-faq__video-wrapper {
  max-width: 800px;
  margin: 30px auto 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__video-link {
  display: block; /* Make the whole video clickable */
  position: relative;
  cursor: pointer;
}

.page-faq__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-faq__content-area {
  background-color: #ffffff; /* Light background for main content */
  color: #333333; /* Dark text for light background */\  padding: 60px 0;
}

.page-faq__main-heading,
.page-faq__section-title,
.page-faq__sub-heading,
.page-faq__conclusion-heading {
  color: #26A9E0; /* Brand color for headings */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-faq__main-heading {
  font-size: 2.5em;
  margin-top: 0;
}

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

.page-faq__sub-heading {
  font-size: 1.8em;
  margin-top: 40px;
}

.page-faq__intro-text,
.page-faq__section-description,
.page-faq__conclusion-intro {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
  color: #555555;
}

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

.page-faq__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333; /* Dark text for light card background */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-faq__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  background-color: #f0f0f0;
  color: #26A9E0; /* Brand color for question */
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-item summary:hover {
  background-color: #e5e5e5;
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0; /* Brand color for toggle icon */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: "−"; /* This is for CSS generated content, JS will handle textContent */
}

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

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

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

.page-faq__inline-link {
  color: #26A9E0; /* Brand color for inline links */
  text-decoration: underline;
}

.page-faq__inline-link:hover {
  color: #1a7bb0;
}

.page-faq__conclusion-section {
  padding: 50px 0;
  text-align: center;
  background-color: #f0f8ff; /* A very light blue background */
  color: #333333;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-faq__conclusion-heading {
  font-size: 2em;
  color: #26A9E0;
}

.page-faq__tips-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 30px auto;
  text-align: left;
}

.page-faq__tips-list li {
  background-color: #e6f7ff;
  border-left: 4px solid #26A9E0;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #333333;
}

.page-faq__tips-list li strong {
  color: #1a7bb0;
}

.page-faq__final-cta {
  font-size: 1.2em;
  margin-top: 40px;
  font-weight: bold;
}

.page-faq__btn-large {
  padding: 18px 40px;
  font-size: 1.1em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile for the main container */
  }

  .page-faq__container {
    padding: 0 15px;
  }

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

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

  .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-left: 15px;
    padding-right: 15px;
    min-width: unset; /* Remove min-width on mobile */
  }

  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__main-heading,
  .page-faq__section-title,
  .page-faq__sub-heading,
  .page-faq__conclusion-heading {
    font-size: 1.8em;
  }

  .page-faq__intro-text,
  .page-faq__section-description,
  .page-faq__conclusion-intro {
    font-size: 1em;
  }

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

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

  .page-faq__tips-list {
    padding: 0 15px;
  }

  /* Images responsive (global rule for page-faq img) */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Any container holding images or general content */
  .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;
  }

  /* Override the main page-faq container to not double pad its internal content areas */
  .page-faq.page-content {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }
}