/**
 * FAQ Support Hub styles.
 */

/* Hide theme default page-title breadcrumb; hub provides its own. */
body.tax-bf-help-category .hero-7-area.breadcrumb_default,
body.single-bf-help .hero-7-area.breadcrumb_default,
body.post-type-archive-bf-help .hero-7-area.breadcrumb_default {
  display: none !important;
}

.fb-faq-hub,
.fb-faq-single,
.fb-faq-cta {
  --fb-faq-hero-bg: #0a2c4c;
  --fb-faq-link: #1f70c9;
  --fb-faq-text: #1f2937;
  --fb-faq-muted: #4b5563;
  --fb-faq-active-bg: #e8eef5;
  --fb-faq-border: #e5e7eb;
  --fb-faq-max: 1100px;
}

.fb-faq-hub {
  color: var(--fb-faq-text);
}

.fb-faq-hub__hero {
  background: var(--fb-faq-hero-bg);
  padding: 56px 20px 64px;
  text-align: center;
}

.fb-faq-hub__hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.fb-faq-hub__hero-title {
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.fb-faq-hub__search {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.fb-faq-hub__search-input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 16px 18px;
  font-size: 1rem;
  color: var(--fb-faq-text);
  background: transparent;
}

.fb-faq-hub__search-input::placeholder {
  color: #9ca3af;
}

.fb-faq-hub__search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.fb-faq-hub__search-submit:hover {
  color: var(--fb-faq-hero-bg);
}

.fb-faq-hub__body {
  max-width: var(--fb-faq-max);
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.fb-faq-hub__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 28px;
  font-size: 0.95rem;
  color: var(--fb-faq-link);
}

.fb-faq-hub__breadcrumbs a {
  color: var(--fb-faq-link);
  text-decoration: none;
}

.fb-faq-hub__breadcrumbs a:hover {
  text-decoration: underline;
}

.fb-faq-hub__breadcrumbs-sep {
  color: var(--fb-faq-link);
  opacity: 0.7;
}

.fb-faq-hub__breadcrumbs-current {
  color: var(--fb-faq-link);
  font-weight: 600;
}

.fb-faq-hub__layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 40px 48px;
  align-items: start;
}

.fb-faq-hub__cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fb-faq-hub__cat-item {
  margin: 0 0 4px;
  border-radius: 6px;
}

.fb-faq-hub__cat-item.is-active {
  background: var(--fb-faq-active-bg);
}

.fb-faq-hub__cat-link {
  display: block;
  padding: 10px 14px;
  color: #3d6b8f;
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1.35;
}

.fb-faq-hub__cat-item.is-active .fb-faq-hub__cat-link {
  color: #1e3a5f;
  font-weight: 600;
}

.fb-faq-hub__cat-link:hover {
  color: var(--fb-faq-hero-bg);
}

.fb-faq-hub__term-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.fb-faq-hub__term-desc {
  margin: 0 0 28px;
  color: var(--fb-faq-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 52ch;
}

.fb-faq-hub__term-desc p {
  margin: 0 0 0.75em;
}

.fb-faq-hub__term-desc p:last-child {
  margin-bottom: 0;
}

.fb-faq-hub__faq-list {
  list-style: none;
  margin: 0;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--fb-faq-border);
}

.fb-faq-hub__faq-item {
  margin: 0 0 14px;
}

.fb-faq-hub__faq-item.is-search-hidden {
  display: none !important;
}

.fb-faq-hub__faq-link {
  color: var(--fb-faq-link);
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 500;
}

.fb-faq-hub__faq-link:hover {
  text-decoration: underline;
}

.fb-faq-hub__see-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fb-faq-link);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.fb-faq-hub__see-more-icon {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.fb-faq-hub__see-more[aria-expanded="true"] .fb-faq-hub__see-more-icon {
  transform: rotate(180deg);
}

.fb-faq-hub__empty {
  color: var(--fb-faq-muted);
}

.fb-faq-cta {
  margin-top: 48px;
  padding: 36px 28px;
  background: #f4f8fb;
  border-radius: 12px;
  text-align: center;
}

.fb-faq-cta__title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.fb-faq-cta__text {
  margin: 0 auto 20px;
  max-width: 42ch;
  color: var(--fb-faq-muted);
  line-height: 1.55;
}

.fb-faq-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: 8px;
  background-color: #0a2c4c;
  background-color: var(--fb-faq-hero-bg, #0a2c4c);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.fb-faq-cta__button:hover,
.fb-faq-cta__button:focus {
  opacity: 0.92;
  color: #fff !important;
  background-color: #0a2c4c;
  background-color: var(--fb-faq-hero-bg, #0a2c4c);
  text-decoration: none !important;
}

.fb-faq-cta__button:visited {
  color: #fff !important;
}

.fb-faq-single-main,
.fb-faq-archive-main {
  width: 100%;
}

.fb-faq-single__shell {
  max-width: var(--fb-faq-max, 1100px);
  margin: 0 auto;
  padding: 36px 20px 24px;
}

.fb-faq-single__layout {
  margin-top: 8px;
}

.fb-faq-single__title {
  margin: 0 0 20px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
}

.fb-faq-single__content {
  color: var(--fb-faq-muted, #4b5563);
  font-size: 1.05rem;
  line-height: 1.7;
}

.fb-faq-single__back {
  margin-top: 32px;
}

.fb-faq-single__back a {
  color: var(--fb-faq-link, #1f70c9);
  text-decoration: none;
  font-weight: 600;
}

.fb-faq-single__back a:hover {
  text-decoration: underline;
}

.fb-faq-single .fb-faq-cta {
  margin-top: 48px;
  margin-bottom: 40px;
}

.fb-faq-search-main {
  width: 100%;
}

.fb-faq-search__item {
  margin-bottom: 22px;
}

.fb-faq-search__cat {
  display: inline-block;
  margin-top: 4px;
  margin-left: 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--fb-faq-active-bg, #e8eef5);
  color: #3d6b8f;
  font-size: 0.8rem;
  font-weight: 600;
}

.fb-faq-search__excerpt {
  margin: 6px 0 0;
  color: var(--fb-faq-muted, #4b5563);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 60ch;
}

.fb-faq-search__pagination {
  margin-top: 28px;
}

.fb-faq-search__pagination .page-numbers {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fb-faq-search__pagination .page-numbers li {
  margin: 0;
}

.fb-faq-search__pagination a,
.fb-faq-search__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--fb-faq-link, #1f70c9);
  text-decoration: none;
  font-weight: 600;
}

.fb-faq-search__pagination .current {
  background: var(--fb-faq-hero-bg, #0a2c4c);
  color: #fff;
}

/* Hide theme default page-title breadcrumb on FAQ search. */
body.fb-faq-search-results .hero-7-area.breadcrumb_default {
  display: none !important;
}

@media (max-width: 768px) {
  .fb-faq-hub__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fb-faq-hub__sidebar {
    border-bottom: 1px solid var(--fb-faq-border);
    padding-bottom: 12px;
  }

  .fb-faq-hub__cat-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .fb-faq-hub__cat-item {
    flex: 0 0 auto;
    margin: 0;
  }

  .fb-faq-hub__hero {
    padding: 40px 16px 48px;
  }
}
