/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light background */
  background-color: #f8f9fa; /* Light background for content area */
}

.page-faq__article-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 40px;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

.page-faq__hero-section img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

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

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

.page-faq__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555555;
}

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

.page-faq__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

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

.page-faq__btn--small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-faq__faq-section {
  padding: 40px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.page-faq__faq-section:last-of-type {
  border-bottom: none;
}

.page-faq__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin-bottom: 25px;
}

.page-faq__section-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #555555;
}

.page-faq__faq-list {
  margin-top: 30px;
}

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

.page-faq__faq-item[open] {
  background-color: #e0f2f7;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  position: relative;
  list-style: none; /* For <details> summary */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit */
}

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #26A9E0;
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

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

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

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

.page-faq__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-faq__image-wrapper {
  margin: 25px 0;
  text-align: center;
}

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

.page-faq__image-caption {
  font-size: 0.9rem;
  color: #777777;
  margin-top: 10px;
}

.page-faq__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-faq__list li {
  margin-bottom: 10px;
}

.page-faq__final-cta {
  padding: 50px 0 80px;
  text-align: center;
}

.page-faq__final-cta .page-faq__description {
  margin-bottom: 40px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

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

  .page-faq__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    line-height: 1.3;
  }

  .page-faq__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-faq__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__faq-section {
    padding: 30px 0;
  }

  .page-faq__article-wrap {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-faq__section-intro {
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.05rem;
  }

  .page-faq__faq-toggle {
    font-size: 1.3rem;
  }

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

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

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

  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__image-wrapper {
    margin: 20px 0;
  }

  .page-faq__final-cta {
    padding: 30px 15px 50px;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

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

  .page-faq__btn {
    font-size: 0.95rem;
    padding: 10px 15px;
  }

  .page-faq__faq-question {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .page-faq__faq-answer {
    font-size: 0.9rem;
    padding: 0 15px 12px;
  }
}