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

.page-faq__title-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background: #F4F7FB;
  color: #1F2D3D;
}

.page-faq__title-content {
  flex: 1 1 50%;
  padding-right: 24px;
}

.page-faq__title-image {
  flex: 1 1 40%;
  text-align: center;
}

.page-faq__title-section .page-faq__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 40px 16px;
}

.page-faq__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1F2D3D;
  margin-bottom: 16px;
}

.page-faq__intro-text {
  font-size: 18px;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 24px;
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-faq__section-title {
  font-weight: 700;
  line-height: 1.3;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__section-title--light {
  color: #FFFFFF;
}

.page-faq__faq-list {
  padding: 60px 0;
  background: #FFFFFF;
  color: #1F2D3D;
}

.page-faq__faq-item {
  background: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 18px;
  color: #1F2D3D;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  margin-left: 16px;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  padding: 0 24px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #1F2D3D;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 2000px; /* Large enough to accommodate content */
  transition: max-height 0.5s ease-in;
}

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

.page-faq__faq-answer .page-faq__image {
  margin-top: 15px;
  margin-bottom: 15px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.page-faq__cta-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  text-align: center;
}

.page-faq__cta-text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFFFFF;
}

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

.page-faq__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-faq__btn-primary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #FFFFFF;
}

.page-faq__btn-primary:hover {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

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

.page-faq__btn-secondary:hover {
  background: #FFFFFF;
  color: #2F6BFF;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 36px;
  }

  .page-faq__intro-text {
    font-size: 16px;
  }

  .page-faq__section-title {
    font-size: 32px;
  }

  .page-faq__faq-question {
    font-size: 17px;
  }

  .page-faq__faq-answer {
    font-size: 15px;
  }

  .page-faq__cta-text {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-faq__title-section {
    padding-top: 10px !important; /* Ensure small padding on mobile */
    padding-bottom: 30px;
  }

  .page-faq__title-section .page-faq__container {
    flex-direction: column;
    padding: 30px 15px;
    gap: 15px;
  }

  .page-faq__title-content {
    padding-right: 0;
    order: 2;
  }

  .page-faq__title-image {
    order: 1;
    max-width: 100%;
  }

  .page-faq__main-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 12px;
  }

  .page-faq__intro-text {
    font-size: 15px;
    text-align: center;
    margin-bottom: 20px;
  }

  .page-faq__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

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

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

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

  /* Universal image and container styles for mobile */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-faq__container,
  .page-faq__section,
  .page-faq__card,
  .page-faq__title-section,
  .page-faq__faq-list,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button and button container styles for mobile */
  .page-faq__cta-button,
  .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: 0;
    padding-right: 0;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-faq__cta-section {
    padding: 40px 15px;
  }

  .page-faq__cta-text {
    font-size: 15px;
  }
}