/* Page: FAQ Archive */

/* Anchor Navigation */
.faq-anchor-nav {
  padding: 24px 0;
}

.faq-anchor-nav__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-anchor-nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.25s ease;
  background: #fff;
  color: var(--color-primary, #e60012);
  border: 1px solid var(--color-primary, #e60012);
  min-width: 240px;
  height: 44px;
  white-space: nowrap;
}

.faq-anchor-nav__item .btn__spacer {
  display: none;
}

.faq-anchor-nav__item .btn__circle-arrow {
  background: var(--color-primary, #e60012);
  color: #fff;
  border-color: var(--color-primary, #e60012);
  width: 16px;
  height: 16px;
}

.faq-anchor-nav__item .btn__circle-arrow::before {
  border-top: 6px solid currentColor;
  border-bottom: none;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  transform: translateY(1px);
}

.faq-anchor-nav__item:hover {
  background: var(--color-primary, #e60012);
  color: #fff;
  transform: translateY(-2px);
  opacity: 1;
}

.faq-anchor-nav__item:hover .btn__circle-arrow {
  background: #fff;
  color: var(--color-primary, #e60012);
  border-color: #fff;
}

/* FAQ Body */
.faq-body {
  padding: 0 0 60px;
}

/* Category Section */
.faq-category {
  margin-bottom: 48px;
}

.faq-category__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary, #e60012);
  padding-left: 0;
  border-left: none;
  margin: 8px 0 24px;
  scroll-margin-top: 80px;
}

/* FAQ Item */
.faq-item {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  padding: 0 20px;
  margin-bottom: 16px;
}

.faq-item__question {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-item.is-open .faq-item__question {
  border-bottom: 1px solid #e7e7e7;
}

.faq-item__q {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary, #e60012);
  flex-shrink: 0;
}

.faq-item__text {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  flex: 1;
}

.faq-item__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  background: var(--color-primary, #e60012);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-align: center;
  transition: transform 0.2s;
}

/* Answer */
.faq-item__answer {
  display: flex;
  padding: 0;
  gap: 16px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease,
    padding 0.3s ease;
}

.faq-item.is-open .faq-item__answer {
  max-height: 500px;
  opacity: 1;
  padding: 16px 0 20px 0;
}

.faq-item__a {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary, #e60012);
  flex-shrink: 0;
}

.faq-item__answer-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  margin-top: 7px;
}

.faq-item__answer-text p {
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .faq-category__title {
    scroll-margin-top: 80px;
  }
  .faq-archive .page-header {
    padding-bottom: 0px;
  }

  .faq-anchor-nav {
    padding-bottom: 12px;
  }

  .faq-anchor-nav__inner {
    grid-template-columns: repeat(2, auto);
    gap: 5px;
    justify-content: center;
  }

  .faq-anchor-nav__item {
    min-width: auto;
    width: 156px;
    height: 28.6px;
    font-size: 9.75px;
    padding: 0 10.4px;
  }

  .faq-anchor-nav__item .btn__circle-arrow {
    width: 10.4px;
    height: 10.4px;
  }

  .faq-anchor-nav__item .btn__circle-arrow::before {
    border-top: 5.2px solid currentColor;
    border-left: 2.6px solid transparent;
    border-right: 2.6px solid transparent;
  }

  .faq-body {
    padding: 0 0 40px;
  }
  .faq-category {
    margin-bottom: 32px;
  }
  .faq-category__title {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .faq-item__question {
    padding: 14px 0;
    gap: 12px;
  }
  .faq-item__q,
  .faq-item__a {
    font-size: 20px;
  }
  .faq-item__text {
    font-size: 16px;
  }
  .faq-item__toggle {
    font-size: 20px;
    width: 24px;
  }
  .faq-item__answer {
    /* padding: 0 0 16px 0; */
    gap: 12px;
  }
  .faq-item__answer-text {
    font-size: 14px;
    margin-top: 3px;
  }
}
