.faq-hero {
  position: relative;
}

.faq-hero .fixed_bg {
  background-position: center 42%;
}

.faq-hero > .container,
.faq-intro > .container {
  position: relative;
  z-index: 1;
}

.faq-intro {
  position: relative;
  background: transparent;
}

@media (min-width: 768px) {
  body[data-motion-page="faq"] .service-gallery-bridge {
    --service-gallery-bridge-height: clamp(64px, 6vh, 88px);
  }
}

.faq-index {
  scroll-margin-top: 2rem;
  padding-top: 6rem;
}

/* Match the full-width FAQ column used on the year-end-party page. */
.faq-index .col-lg-9 {
  flex: 0 0 100%;
  max-width: 100%;
}

.faq-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  padding-bottom: 2.2rem;
}

.faq-filter__button {
  flex: 0 0 auto;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, .26);
  background: transparent;
  color: #fff;
  padding: .65rem 1.05rem;
  font: 700 .75rem 'Catamaran', 'Noto Sans TC', sans-serif;
  letter-spacing: .14em;
  white-space: normal;
  transition: background-color .3s, color .3s, border-color .3s;
}

.faq-filter__button:hover,
.faq-filter__button:focus-visible,
.faq-filter__button[aria-pressed="true"] {
  border-color: var(--color-1);
  background: var(--color-1);
  color: #fff;
  outline: none;
}

.faq-list {
  border-top: 1px solid rgba(255, 255, 255, .32);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, .32);
}

.faq-item[hidden] {
  display: none !important;
}

.faq-question {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 3rem 1.35rem 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  font: 300 1.25rem/1.6 'Noto Sans TC', sans-serif;
  letter-spacing: .05em;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq-question:focus,
.faq-question:focus-visible,
.faq-question:active {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.faq-question:focus-visible {
  color: var(--color-1);
}

.faq-question__mark {
  position: absolute;
  top: 50%;
  right: .25rem;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-1);
  font-style: normal;
  transform: translateY(-50%);
}

.faq-question__mark::before {
  position: absolute;
  top: 50%;
  left: 50%;
  content: '＋';
  font: 100 1.5rem/1 'Noto Sans TC', sans-serif;
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}

.faq-question[aria-expanded="true"] .faq-question__mark::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s ease;
}

.faq-answer[aria-hidden="false"] {
  grid-template-rows: 1fr;
}

.faq-answer__inner {
  min-height: 0;
  overflow: hidden;
}

.faq-answer__content {
  padding: 0 3rem 1.5rem 0;
}

.faq-answer p,
.faq-answer li {
  color: rgba(255, 255, 255, .82);
  font-size: 1rem;
  font-weight: 300;
  line-height: 2;
}

.faq-answer a {
  color: inherit !important;
}

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

.faq-process {
  margin: 1.65rem 0 1.5rem;
}

.faq-process__title {
  margin: 0 0 .9rem;
  color: var(--color-1);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.faq-process__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-process__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
  padding: .85rem .7rem;
  border-top: 1px solid rgba(255, 255, 255, .3);
}

.faq-process__item:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: -.45rem;
  right: -.78rem;
  width: .5rem;
  height: .5rem;
  border-top: 1px solid var(--color-1);
  border-right: 1px solid var(--color-1);
  content: '';
  transform: rotate(45deg);
}

.faq-process__number {
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.faq-process__label {
  color: rgba(255, 255, 255, .9);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.6;
}

.faq-related {
  letter-spacing: .1em;
}

.faq-related a {
  color: var(--color-1) !important;
  display: inline;
  font-size: .875em;
  font-weight: 300;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s ease;
}

.faq-related a:hover,
.faq-related a:focus {
  color: #fff !important;
  text-decoration: underline;
}

.faq-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, .2);
}

.faq-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.faq-table th,
.faq-table td {
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  overflow-wrap: anywhere;
  font-size: .9rem;
  line-height: 1.7;
  letter-spacing: .06em;
}

.faq-table th {
  font-weight: 700;
  color: var(--color-1);
}

.faq-table th:first-child,
.faq-table td:first-child {
  width: 46%;
}

.faq-table th:nth-child(2),
.faq-table td:nth-child(2) {
  width: 18%;
}

.faq-table td strong,
.faq-table td span {
  display: block;
}

.faq-table td strong {
  margin-bottom: .35rem;
  color: #fff;
  font-weight: 700;
}

.faq-table tr:last-child td {
  border-bottom: 0;
}

/* Match the contact heading width used by the year-end-party page. */
body[data-motion-page="faq"] #Contact .col-lg-7 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}

@media (max-width: 991.98px) {
  body[data-motion-page="faq"] #Contact .col-lg-7 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .faq-hero .fixed_bg {
    background-position: center;
  }

  .faq-index {
    padding-top: 5rem;
  }

  .faq-filter {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
  }

  .faq-question {
    gap: 1rem;
    padding: 1.1rem 2.25rem 1.1rem 0;
    font-size: 1.1rem;
  }

  .faq-answer__content {
    padding: 0 .5rem 1.25rem 0;
  }

  .faq-answer p,
  .faq-answer li {
    font-size: .9375rem;
    line-height: 1.9;
  }

  .faq-table th,
  .faq-table td {
    padding: .75rem .6rem;
    font-size: .82rem;
    letter-spacing: .02em;
  }

  .faq-table th:first-child,
  .faq-table td:first-child {
    width: 48%;
  }

  .faq-table th:nth-child(2),
  .faq-table td:nth-child(2) {
    width: 20%;
  }

}

@media (min-width: 768px) and (max-width: 1100px) {
  .faq-process__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.35rem;
  }

  .faq-process__item:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .faq-process {
    margin: 1.45rem 0 1.3rem;
  }

  .faq-process__list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .faq-process__item {
    min-height: 3.5rem;
    padding: .72rem 2.1rem .72rem 0;
    border-top: 0;
    justify-content: center;
  }

  .faq-process__item:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -.15rem;
    left: .15rem;
    transform: rotate(135deg);
  }

  .faq-process__item:nth-child(3)::after {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-filter__button,
  .faq-question__mark::before,
  .faq-answer {
    transition: none;
  }
}
