.page-faq {
  background-color: #ffffff; /* Default light background for content area */
  color: #333333; /* Dark text on light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 40px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
  background-color: #26A9E0; /* Brand primary color for hero background */
  color: #ffffff;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 400px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-faq__hero-content {
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

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

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

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

.page-faq__content-area {
  padding: 40px 0;
}

.page-faq__section-title {
  font-size: 2.2em;
  font-weight: 600;
  color: #26A9E0; /* Brand primary color */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

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

.page-faq__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #eaf6fc; /* Lighter shade of brand primary */
  color: #26A9E0;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-faq__faq-question:hover {
  background-color: #dbeff9;
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  width: 20px;
  text-align: center;
}

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

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px; /* Sufficiently large to show content */
  transition: max-height 0.5s ease-in;
}

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

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

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

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

.page-faq__btn-register,
.page-faq__btn-login,
.page-faq__btn-download {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 15px;
  margin-right: 10px;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

.page-faq__btn-register:hover {
  background-color: #1a8cc4;
}

.page-faq__btn-login {
  background-color: #EA7C07;
  color: #ffffff;
}

.page-faq__btn-login:hover {
  background-color: #cc6a06;
}

.page-faq__btn-download {
  background-color: #333333;
  color: #ffffff;
}

.page-faq__btn-download:hover {
  background-color: #555555;
}

/* Details tag specific styles */
details.page-faq__faq-item > summary {
  list-style: none;
}

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

details.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 2000px; /* To show content when open */
  transition: max-height 0.5s ease-in;
}


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

  .page-faq__hero-section {
    padding: 10px 0 20px 0;
  }

  .page-faq__hero-image-wrapper {
    max-height: 250px;
  }

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

  .page-faq__description {
    font-size: 1em;
  }

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

  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

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

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

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

  .page-faq__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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;
  }

  .page-faq__btn-register,
  .page-faq__btn-login,
  .page-faq__btn-download {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .page-faq__hero-content {
    padding: 0 15px;
  }

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

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }

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

  .page-faq__faq-question {
    padding: 12px 15px;
  }

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