.page-faq {
  background: #f8fafc;
}

.hs-faq {
  padding: 24px 0 80px;
}

.hs-faq__hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f2b22 0%, #145638 45%, #22b565 100%);
  padding: 42px 44px;
  color: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.14);
  margin-bottom: 28px;
}

.hs-faq__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.2), transparent 42%),
    radial-gradient(circle at 4% 100%, rgba(255, 255, 255, 0.12), transparent 34%);
  pointer-events: none;
}

.hs-faq__hero > * {
  position: relative;
  z-index: 1;
}

.hs-faq__hero-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.hs-faq__hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hs-faq__hero-meta i {
  font-size: 13px;
}

.hs-faq__eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hs-faq__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #fff;
}

.hs-faq__lead {
  margin: 0;
  max-width: 48em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.8;
}

.hs-faq__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hs-faq__item {
  margin: 0;
}

.hs-faq__card {
  height: 100%;
  border-radius: 16px;
  border: 1px solid var(--hs-border);
  background: linear-gradient(180deg, #fff 0%, #fbfefd 100%);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  padding: 22px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hs-faq__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--hs-brand), #34d399);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hs-faq__card:hover {
  border-color: rgba(34, 181, 101, 0.36);
  box-shadow: 0 12px 28px rgba(34, 181, 101, 0.12);
  transform: translateY(-2px);
}

.hs-faq__card:hover::before {
  opacity: 1;
}

.hs-faq__q {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--hs-ink);
  font-weight: 700;
}

.hs-faq__q-tag {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--hs-brand) 0%, var(--hs-brand-dark) 100%);
}

.hs-faq__a {
  margin: 0;
  color: var(--hs-muted);
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.hs-faq__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.hs-faq__empty {
  text-align: center;
  color: var(--hs-muted);
  padding: 36px 12px;
  border: 1px dashed var(--hs-border);
  border-radius: 14px;
}

.hs-faq__pager {
  margin-top: 26px;
}

.hs-faq__pager .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hs-faq__pager .page-item,
.hs-faq__pager .pagination a,
.hs-faq__pager .pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--hs-border);
  text-decoration: none;
  color: var(--hs-muted);
  background: #fff;
  font-size: 14px;
  transition: all 0.2s ease;
}

.hs-faq__pager .page-item.active,
.hs-faq__pager .pagination .active,
.hs-faq__pager .pagination a:hover,
.hs-faq__pager .pagination span:hover {
  color: var(--hs-brand);
  border-color: rgba(34, 181, 101, 0.4);
  background: var(--hs-brand-light);
}

.hs-faq__cta {
  margin-top: 30px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(34, 181, 101, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f3fbf7 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hs-faq__cta-text {
  margin: 0;
  color: var(--hs-muted);
  font-size: 14px;
  line-height: 1.7;
}

.hs-faq__miniapp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 0;
  text-decoration: none;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hs-faq__miniapp img {
  width: 66px;
  height: 66px;
  border-radius: 8px;
  object-fit: cover;
  border: none;
  transition: transform 0.2s ease;
}

.hs-faq__miniapp span {
  font-size: 12px;
  color: var(--hs-brand-dark);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.hs-faq__miniapp:hover img {
  transform: translateY(-1px);
}

/* FAQ detail page */
.hs-faq-detail {
  padding: 0 0 80px;
}

.hs-faq-detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hs-faq-detail-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f2b22 0%, #145638 45%, #22b565 100%);
}

.hs-faq-detail-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.18), transparent 42%),
    radial-gradient(circle at 8% 90%, rgba(255, 255, 255, 0.08), transparent 35%);
}

.hs-faq-detail-hero__inner {
  position: relative;
  z-index: 1;
  padding: 30px 0 108px;
}

.hs-faq-detail-hero__crumb {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.hs-faq-detail-hero__crumb a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.hs-faq-detail-hero__crumb a:hover {
  color: #fff;
}

.hs-faq-detail-hero__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 920px;
}

.hs-faq-detail-hero__desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.hs-faq-detail-hero__meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.hs-faq-detail-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hs-faq-detail__layout {
  max-width: 900px;
  margin: -68px auto 0;
  position: relative;
  z-index: 2;
}

.hs-faq-detail__article {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #fff;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.hs-faq-detail__head {
  padding: 22px 30px 18px;
  background: linear-gradient(135deg, #f8fffb 0%, #eefaf3 100%);
  border-bottom: 1px solid var(--hs-border);
}

.hs-faq-detail__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hs-brand-dark);
  background: #fff;
  border: 1px solid rgba(34, 181, 101, 0.22);
}

.hs-faq-detail__title {
  margin: 12px 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.4;
  color: var(--hs-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hs-faq-detail__content {
  padding: 30px 30px 26px;
  font-size: 16px;
  line-height: 1.9;
  color: #475569;
}

.hs-faq-detail__content p {
  margin: 0 0 1em;
}

.hs-faq-detail__content p:last-child {
  margin-bottom: 0;
}

.hs-faq-detail__content h2,
.hs-faq-detail__content h3,
.hs-faq-detail__content h4 {
  color: #0f172a;
  margin: 1.2em 0 0.5em;
  line-height: 1.45;
}

.hs-faq-detail__content ul,
.hs-faq-detail__content ol {
  padding-left: 1.25em;
  margin: 0.8em 0;
}

.hs-faq-detail__content li {
  margin: 0.35em 0;
}

.hs-faq-detail__content blockquote {
  margin: 1em 0;
  padding: 12px 14px;
  border-left: 3px solid var(--hs-brand);
  background: #f8fafc;
  border-radius: 10px;
  color: #334155;
}

.hs-faq-detail__content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.hs-faq-detail__footer {
  padding: 0 30px 30px;
}

.hs-faq-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 14px;
  color: var(--hs-brand-dark);
  background: var(--hs-brand-light);
  border: 1px solid rgba(34, 181, 101, 0.25);
  transition: all 0.2s ease;
}

.hs-faq-detail__back:hover {
  background: #dcfce7;
  color: var(--hs-brand-dark);
}

.hs-faq-detail__more {
  margin-top: 24px;
  border-radius: 14px;
  border: 1px solid rgba(34, 181, 101, 0.18);
  background: linear-gradient(135deg, #fff 0%, #f3fbf7 100%);
  padding: 18px 16px;
}

.hs-faq-detail__more-title {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--hs-ink);
}

.hs-faq-detail__more-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.hs-faq-detail__more-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  text-decoration: none;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.4;
}

.hs-faq-detail__more-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--hs-brand);
}

.hs-faq-detail__more-list a:hover {
  color: var(--hs-brand-dark);
}

/* QR popup (same style language as platform page) */
.hs-faq-qr-popup.mfp-bg {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
}

.hs-faq-qr-popup .mfp-content {
  max-width: 400px;
  width: calc(100% - 32px);
}

.hs-faq-qr-popup .mfp-close {
  color: var(--hs-muted);
  opacity: 1;
  font-size: 28px;
  right: 8px;
  top: 8px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  transition: color 0.2s ease;
}

.hs-faq-qr-popup .mfp-close:hover {
  color: var(--hs-brand);
}

.hs-faq-qr-modal__card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  position: relative;
  overflow: hidden;
}

.hs-faq-qr-modal__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hs-brand-dark), var(--hs-brand), #34d399);
}

.hs-faq-qr-modal__head {
  margin-bottom: 24px;
}

.hs-faq-qr-modal__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hs-brand-light);
  border-radius: 50%;
  color: var(--hs-brand);
  font-size: 26px;
}

.hs-faq-qr-modal__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--hs-ink);
  letter-spacing: -0.02em;
}

.hs-faq-qr-modal__sub {
  margin: 0;
  font-size: 14px;
  color: var(--hs-muted);
}

.hs-faq-qr-modal__qr {
  background: #f8fafc;
  border: 1px solid var(--hs-border);
  border-radius: 16px;
  padding: 16px;
  margin: 0 auto 20px;
  max-width: 240px;
}

.hs-faq-qr-modal__qr img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.hs-faq-qr-modal__hint {
  margin: 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--hs-brand-light) 0%, #ecfdf5 100%);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hs-brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hs-faq-qr-modal__hint i {
  font-size: 18px;
  color: var(--hs-brand);
}

.mfp-fade.mfp-bg {
  opacity: 0;
  transition: opacity 0.22s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
  opacity: 1;
}

.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 991px) {
  .hs-faq {
    padding: 18px 0 64px;
  }

  .hs-faq__hero {
    padding: 34px 28px;
  }

  .hs-faq__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .page-faq .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hs-faq {
    padding: 12px 0 54px;
  }

  .hs-faq__hero {
    border-radius: 18px;
    padding: 28px 18px 24px;
    margin-bottom: 18px;
  }

  .hs-faq__eyebrow {
    margin-bottom: 10px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .hs-faq__title {
    font-size: 1.375rem;
    margin-bottom: 8px;
  }

  .hs-faq__lead {
    font-size: 13px;
    line-height: 1.75;
  }

  .hs-faq__hero-meta {
    margin-top: 14px;
    gap: 8px;
  }

  .hs-faq__hero-meta span {
    font-size: 11px;
    padding: 5px 8px;
  }

  .hs-faq__card {
    padding: 18px 15px;
    border-radius: 14px;
  }

  .hs-faq__q {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .hs-faq__q-tag {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .hs-faq__a {
    font-size: 13px;
    line-height: 1.72;
  }

  .hs-faq__pager .page-item,
  .hs-faq__pager .pagination a,
  .hs-faq__pager .pagination span {
    min-width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 13px;
    padding: 0 10px;
  }

  .hs-faq__cta {
    border-radius: 14px;
    padding: 16px 14px;
  }

  .hs-faq__cta-text {
    font-size: 13px;
  }

  .hs-faq__miniapp {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .hs-faq__miniapp img {
    width: 56px;
    height: 56px;
  }

  .hs-faq-qr-modal__card {
    padding: 28px 20px 24px;
    border-radius: 18px;
  }

  .hs-faq-qr-modal__title {
    font-size: 18px;
  }

  .hs-faq-qr-modal__hint {
    font-size: 13px;
    flex-wrap: wrap;
  }

  .hs-faq-detail {
    padding: 12px 0 56px;
  }

  .hs-faq-detail-hero__inner {
    padding: 18px 0 64px;
  }

  .hs-faq-detail-hero__crumb {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .hs-faq-detail-hero__title {
    font-size: 1.1rem;
  }

  .hs-faq-detail-hero__desc {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.75;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .hs-faq-detail-hero__meta {
    margin-top: 10px;
    gap: 8px;
  }

  .hs-faq-detail-hero__meta span {
    font-size: 11px;
    padding: 5px 8px;
  }

  .hs-faq-detail__layout {
    margin-top: -40px;
  }

  .hs-faq-detail__head {
    padding: 22px 16px 18px;
  }

  .hs-faq-detail__title {
    margin-top: 12px;
    font-size: 1.2rem;
  }

  .hs-faq-detail__content {
    padding: 18px 16px;
    font-size: 14px;
    line-height: 1.8;
  }

  .hs-faq-detail__footer {
    padding: 0 16px 18px;
  }

  .hs-faq-detail__more {
    margin-top: 16px;
    padding: 16px 14px;
    border-radius: 14px;
  }

  .hs-faq-detail__more-title {
    font-size: 16px;
  }

  .hs-faq-detail__more-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
