/* FAQ accordion: tertutup secara default dan hanya satu item terbuka. */
.seo-faq .section-heading {
  margin-bottom: 36px;
}

.faq-accordion {
  display: grid;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(55, 66, 84, 0.14);
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(25, 31, 42, 0.07);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.is-open {
  border-color: rgba(55, 66, 84, 0.35);
  box-shadow: 0 10px 28px rgba(25, 31, 42, 0.11);
}

.faq-question {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: #1e1e1e;
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.faq-toggle:hover,
.faq-toggle:focus-visible {
  color: #374254;
}

.faq-toggle:focus-visible {
  outline: 3px solid rgba(55, 66, 84, 0.25);
  outline-offset: -3px;
}

.faq-icon {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #374254;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.faq-item.is-open .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 22px 22px;
}

.faq-answer p {
  margin: 0;
  color: #4a4a4a;
  font-size: 18px;
  line-height: 1.65;
}

@media (max-width: 767px) {
  .seo-faq .section-heading {
    margin-bottom: 26px;
  }

  .faq-accordion {
    gap: 10px;
  }

  .faq-toggle {
    gap: 12px;
    padding: 16px;
    font-size: 19px;
    line-height: 1.3;
  }

  .faq-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .faq-answer-inner {
    padding: 0 16px 17px;
  }

  .faq-answer p {
    font-size: 16px;
    line-height: 1.55;
  }
}

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

/* Beberapa artikel di dalam satu panel accordion */
.faq-answer-inner {
  display: grid;
  gap: 0;
}

.faq-article {
  padding: 18px 0;
  border-top: 1px solid rgba(55, 66, 84, 0.12);
}

.faq-article:first-child {
  padding-top: 2px;
  border-top: 0;
}

.faq-article:last-child {
  padding-bottom: 0;
}

.faq-article h4 {
  margin: 0 0 8px;
  color: #1e1e1e;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.faq-article p {
  margin: 0;
}

@media (max-width: 767px) {
  .faq-article {
    padding: 15px 0;
  }

  .faq-article h4 {
    font-size: 18px;
    line-height: 1.35;
  }
}

/* Menjaga posisi viewport tetap stabil saat tinggi accordion berubah. */
.faq-accordion,
.faq-item,
.faq-answer {
  overflow-anchor: none;
}

.faq-toggle {
  scroll-margin-top: 96px;
}

@media (max-width: 767px) {
  .faq-toggle {
    scroll-margin-top: 88px;
  }
}
