/* =========================================================
   Dewandaru — FAQ page (page-scoped)
   Loaded ONLY on /faq. All selectors scoped under .ab-faq.
   Uses existing brand tokens from ab-theme.css.
   ========================================================= */

.ab-faq {
  padding-bottom: 80px;
}

/* ---------- Category tabs (left col) ---------- */
.ab-faq__cats {
  flex-direction: column;
  margin: 0;
  border: 0;
  padding: 0;
}

.ab-faq__cats li {
  display: block;
  width: 100%;
  margin-bottom: 4px;
}

.ab-faq__cats a {
  display: block;
  padding: 12px 16px;
  font-family: var(--ab-font-heading);
  font-weight: var(--ab-font-heading-weight);
  font-size: 17px;
  color: var(--ab-text-body);
  text-decoration: none;
  border: 0;
  border-radius: var(--ab-radius-sm);
  transition: background var(--ab-transition-fast), color var(--ab-transition-fast);
}

.ab-faq__cats a:hover {
  color: var(--ab-accent);
  background: transparent;
}

/* Bootstrap tab plugin toggles .active on the <a> itself */
.ab-faq__cats a.active {
  background: #EAE3D2;
  color: var(--ab-accent);
}

/* ---------- Question list (right col) ---------- */
.ab-faq__list {
  width: 100%;
}

.ab-faq__item {
  border-bottom: 1px solid var(--ab-border);
}

.ab-faq__item:last-child {
  border-bottom: 0;
}

.ab-faq__q {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.ab-faq__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-right: 16px;
  border-radius: var(--ab-radius-round);
  background: var(--ab-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ab-transition-fast);
}

.ab-faq__chevron {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--ab-white);
  transition: transform var(--ab-transition);
}

.ab-faq__q:not(.collapsed) .ab-faq__chevron {
  transform: rotate(180deg);
}

.ab-faq__text {
  font-family: var(--ab-font-heading);
  font-weight: var(--ab-font-heading-weight);
  font-size: 18px;
  line-height: var(--ab-line-height-heading);
  color: var(--ab-primary);
  letter-spacing: var(--ab-letter-spacing-heading);
}

.ab-faq__a {
  padding: 0 0 20px 50px;
  font-family: var(--ab-font-body);
  font-size: 15px;
  line-height: var(--ab-line-height-body);
  color: var(--ab-text-muted);
}

/* ---------- Mobile: categories stack above accordion ---------- */
@media (max-width: 991px) {
  .ab-faq__cats {
    margin-bottom: 16px;
  }

  .ab-faq__cats a {
    padding: 10px 14px;
  }
}