.faq-page {
  color: #1b1b1b;
  background: #fff;
}

.faq-hero {
  position: relative;
  width: 100%;
  height: 26.04vw;
  padding-top: 7.917vw;
  overflow: hidden;
  color: #fff;
  background-image: url('/static/images/banners/aboutus.png');
  background-position: center;
  background-size: cover;
  text-align: center;
}

.faq-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.faq-hero h1 {
  margin: 0;
  color: #fff;
  font-family: PingFangSC, PingFangSC-Semibold, sans-serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.25;
}

.faq-hero p {
  margin: 40px 0 0;
  color: #fff;
  font-family: PingFangSC, PingFangSC-Light, sans-serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 60px;
}

.faq-section {
  padding: 7rem 0 9rem;
  background: #fff;
}

.faq-container {
  width: 66%;
  max-width: 1280px;
  min-width: 960px;
  margin: 0 auto;
}

.faq-intro {
  margin-bottom: 4rem;
  text-align: center;
}

.faq-intro h2 {
  margin: 0;
  color: #000;
  font-family: PingFangSC, PingFangSC-Medium, sans-serif;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.5;
}

.faq-subtitle {
  margin: 0.75rem 0 0;
  color: #666;
  font-size: 1.125rem;
  line-height: 1.8;
}

.faq-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 5rem;
}

.faq-categories {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgb(0 0 0 / 14%);
}

.faq-category-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 5rem;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  border: 0;
  border-bottom: 1px solid rgb(0 0 0 / 14%);
  color: rgba(0, 0, 0, 0.84);
  background: transparent;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
  text-align: left;
  cursor: pointer;
  transition: padding-left 0.2s ease;
}

.faq-category-button::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: 0;
  background: #f919ca;
  content: '';
  transform: translateY(-50%);
  transition: height 0.2s ease;
}

.faq-category-button:hover,
.faq-category-button:focus-visible,
.faq-category-button.is-active {
  padding-left: 1.25rem;
  outline: none;
}

.faq-category-button.is-active {
  font-weight: 500;
}

.faq-category-button.is-active::before {
  height: 1.75rem;
}

.faq-category-count {
  flex: 0 0 auto;
  margin-left: 0.75rem;
  color: rgba(0, 0, 0, 0.5525);
  font-size: 16px;
  font-weight: 400;
}

.faq-content {
  min-width: 0;
}

.faq-category-panel {
  display: none;
}

.faq-category-panel.is-active {
  display: block;
}

.faq-category-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.faq-item {
  border-bottom: 1px solid rgb(0 0 0 / 14%);
}

.faq-question-heading {
  margin: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  min-height: 5rem;
  padding: 1.25rem 0;
  border: 0;
  color: rgba(0, 0, 0, 0.84);
  background: transparent;
  font-family: inherit;
  font-size: 28px;
  font-weight: 500;
  line-height: 32px;
  text-align: left;
  cursor: pointer;
}

.faq-toggle {
  position: relative;
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
}

.faq-toggle::before,
.faq-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.9rem;
  height: 1px;
  background: #393939;
  content: '';
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-toggle::after {
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-toggle::before,
.faq-item.is-open .faq-toggle::after {
  background: #393939;
}

.faq-answer {
  padding: 0 2rem 2rem 0;
}

.faq-answer-content {
  /* News summaries use 0.85 text alpha with 0.65 opacity. */
  color: rgba(0, 0, 0, 0.5525);
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
  text-align: justify;
  overflow-wrap: anywhere;
}

.faq-answer-content img,
.faq-answer-content video {
  max-width: 100%;
  height: auto;
}

.faq-answer-content p {
  margin: 0 0 0.75rem;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
}

.faq-answer-content li + li {
  margin-top: 0.35rem;
}

.faq-show-all {
  display: block;
  min-width: 12rem;
  height: 3rem;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  border: 1px solid #1b1b1b;
  border-radius: 0;
  color: #1b1b1b;
  background: #fff;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.faq-show-all:hover,
.faq-show-all:focus-visible {
  color: #fff;
  background: #1b1b1b;
  outline: none;
}

.faq-empty {
  padding: 5rem 1.5rem;
  border-top: 1px solid #1b1b1b;
  border-bottom: 1px solid rgb(0 0 0 / 14%);
  color: #666;
  font-size: 1rem;
  text-align: center;
}

@media screen and (max-width: 1100px) {
  .faq-hero h1 {
    font-size: 40px;
  }

  .faq-hero p {
    margin-top: 16px;
    font-size: 28px;
    line-height: 40px;
  }

  .faq-container {
    width: calc(100% - 4rem);
    min-width: 0;
  }

  .faq-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 3rem;
  }

  .faq-category-button {
    font-size: 16px;
  }
}

@media screen and (max-width: 768px) {
  .faq-hero {
    height: 40vh;
    padding-top: 10vh;
    background-image: url('/static/images/banners/m-aboutus.png');
    background-position: center 75%;
    text-align: left;
  }

  .faq-hero-content {
    padding: 0 24px 0 55px;
    text-align: left;
  }

  .faq-hero h1 {
    font-size: 1.52rem;
    line-height: 2.778rem;
  }

  .faq-hero p {
    margin-top: 0;
    font-size: 0.889rem;
    font-weight: 400;
    line-height: 2.222rem;
  }

  .faq-section {
    padding: 4rem 0 5rem;
  }

  .faq-container {
    width: calc(100% - 2rem);
  }

  .faq-intro {
    margin-bottom: 2.5rem;
  }

  .faq-intro h2 {
    font-size: 1.75rem;
  }

  .faq-subtitle {
    font-size: 0.875rem;
  }

  .faq-layout {
    display: block;
  }

  .faq-categories {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    border-top: 0;
    border-bottom: 1px solid rgb(0 0 0 / 14%);
    scrollbar-width: none;
  }

  .faq-categories::-webkit-scrollbar {
    display: none;
  }

  .faq-category-button {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    padding: 0.5rem 0;
    border-bottom: 0;
    white-space: nowrap;
    color: rgba(0, 0, 0, 0.85);
    font-size: 16px;
    line-height: 26px;
  }

  .faq-category-button::before {
    top: auto;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    transform: none;
    transition: width 0.2s ease;
  }

  .faq-category-button:hover,
  .faq-category-button:focus-visible,
  .faq-category-button.is-active {
    padding-left: 0;
  }

  .faq-category-button.is-active::before {
    width: 100%;
    height: 2px;
  }

  .faq-category-count {
    display: none;
  }

  .faq-question {
    min-height: 4.25rem;
    gap: 12px;
    padding: 1rem 0;
    color: rgba(0, 0, 0, 0.85);
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
  }

  .faq-question > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .faq-answer {
    padding: 0 0 1.5rem;
  }

  .faq-show-all {
    width: 100%;
    margin-top: 2rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-category-button,
  .faq-category-button::before,
  .faq-question,
  .faq-toggle::before,
  .faq-toggle::after,
  .faq-show-all {
    transition: none;
  }
}
