/* ===== FAQ Support — Figma 30:13942 ===== */

.page-faq {
  background: #f3f4f6;
}

.faq-main {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Breadcrumb */
.faq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hanken);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 16.8px;
  color: rgba(51, 51, 51, 0.7);
  padding: 40px 0 48px;
}

.faq-breadcrumb a {
  color: rgba(51, 51, 51, 0.7);
  transition: color 0.2s;
}

.faq-breadcrumb a:hover {
  color: var(--green);
}

.faq-breadcrumb .is-current {
  color: #333;
}

/* Search — centered, max 768px */
.faq-search {
  display: flex;
  align-items: stretch;
  max-width: 768px;
  margin: 0 auto 56px;
}

.faq-search__field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d1d5db;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-height: 56px;
  padding: 0 17px 0 49px;
}

.faq-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.faq-search__field input {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-inter);
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  color: #111827;
}

.faq-search__field input::placeholder {
  color: #6b7280;
}

.faq-search__field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(17, 168, 78, 0.12);
}

.faq-search__btn {
  flex-shrink: 0;
  margin-left: 8px;
  min-width: 0;
  height: auto;
  padding: 16.5px 40px 17.5px;
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.7px;
  line-height: 20px;
  text-transform: uppercase;
  border-radius: 0;
}

/* Two-column layout */
.faq-layout {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* Sidebar filters */
.faq-sidebar {
  position: sticky;
  top: 100px;
}

.faq-filter {
  border: none;
  padding: 0;
  margin: 0;
}

.faq-filter__title {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--green);
  margin-bottom: 16px;
  padding: 0;
}

.faq-filter__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  min-height: 20px;
}

.faq-check input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.faq-check__box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.faq-check__icon {
  width: 20px;
  height: 20px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.faq-check.is-checked .faq-check__box,
.faq-check input:checked + .faq-check__box {
  width: 22px;
  height: 22px;
  background: var(--green);
  border-color: transparent;
}

.faq-check.is-checked .faq-check__icon,
.faq-check input:checked + .faq-check__box .faq-check__icon {
  opacity: 1;
}

.faq-check__label {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #374151;
}

/* Results */
.faq-results__count {
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: #6b7280;
  margin: 0 0 16px;
}

/* Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.faq-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px;
  text-align: left;
  transition: background 0.2s ease;
}

.faq-item.is-open .faq-item__head {
  padding: 21px 19px 22px 24px;
  border-bottom: 1px solid #f3f4f6;
}

.faq-item__head:hover {
  background: rgba(243, 244, 246, 0.55);
}

.faq-item__title {
  font-family: var(--font-inter);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: #111827;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__body {
  display: none;
  padding: 24px;
}

.faq-item.is-open .faq-item__body {
  display: block;
}

.faq-item__body p {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 400;
  line-height: 22.75px;
  color: #4b5563;
  margin: 0;
}

/* Pagination — match Insights / Figma */
.faq-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
}

.faq-pagination__arrow,
.faq-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 1px solid #c1c7d0;
  border-radius: 2px;
  background: #fff;
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.7px;
  color: #41474f;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq-pagination__arrow:hover,
.faq-pagination__page:hover {
  border-color: var(--green);
  color: var(--green);
}

.faq-pagination__page.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 700;
}

.faq-pagination__page.is-active:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

a.faq-pagination__arrow,
a.faq-pagination__page {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.faq-pagination__arrow.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.faq-pagination__arrow img {
  width: 7.4px;
  height: 12px;
}

.faq-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 400;
  color: #41474f;
  opacity: 0.6;
  user-select: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .faq-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .faq-main {
    padding-bottom: 56px;
  }

  .faq-breadcrumb {
    padding: 24px 0 28px;
  }

  .faq-search {
    flex-direction: column;
    margin-bottom: 36px;
  }

  .faq-search__btn {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-sidebar {
    position: static;
  }

  .faq-item__head,
  .faq-item.is-open .faq-item__head {
    padding: 20px;
  }

  .faq-item__title {
    font-size: 16px;
    line-height: 24px;
  }

  .faq-item__body {
    padding: 0 20px 20px;
  }

  .faq-pagination {
    margin-top: 40px;
    flex-wrap: wrap;
  }

  .faq-pagination__arrow,
  .faq-pagination__page,
  .faq-pagination__ellipsis {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}
