:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color: #333333;
  --dark-text-color: #000000;
  --light-text-color: #FFFFFF;
  --login-color: #EA7C07;
}

/* Base styles for the page-faq scope */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color); /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  overflow: hidden;
}

.page-faq__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--light-text-color);
}

.page-faq__subtitle {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--light-text-color);
}

.page-faq__cta-buttons {
  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: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-faq__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background-color: darken(var(--secondary-color), 5%);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--light-text-color);
  border: 2px solid var(--light-text-color);
}

.page-faq__btn-secondary:hover {
  background-color: var(--light-text-color);
  color: var(--primary-color);
}

/* Section Styling */
.page-faq__introduction,
.page-faq__faq-category,
.page-faq__conclusion {
  padding: 80px 0;
}

.page-faq__introduction {
  text-align: center;
}

.page-faq__section-title,
.page-faq__category-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__introduction p {
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--text-color);
}

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

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

.page-faq__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-faq__faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-weight: 600;
  color: var(--dark-text-color);
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.page-faq__faq-item summary::-webkit-details-marker,
.page-faq__faq-item summary::marker {
  display: none;
}

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

.page-faq__faq-qtext {
  font-size: 1.1em;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-faq__faq-item[open] .page-faq__faq-question {
  border-bottom: none;
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-color);
  line-height: 1.6;
}

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 10px;
}

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

/* Conclusion Section */
.page-faq__conclusion {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  text-align: center;
}

.page-faq__conclusion .page-faq__section-title {
  color: var(--light-text-color);
}

.page-faq__conclusion p {
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--light-text-color);
}

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

  .page-faq__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-bottom: 40px;
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em) !important;
  }

  .page-faq__subtitle {
    font-size: 1em !important;
  }

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

  .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__introduction,
  .page-faq__faq-category,
  .page-faq__conclusion {
    padding: 40px 0;
  }

  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-faq__introduction p,
  .page-faq__conclusion p {
    font-size: 1em !important;
  }

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

  .page-faq__faq-qtext {
    font-size: 1em;
  }

  /* Image and Video Responsiveness */
  .page-faq img,
  .page-faq video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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__hero-image,
  .page-faq__image-content {
    border-radius: 4px;
  }
}