/* ---------------------------------------------------------------------------
   Knowledge Hub
   Follows the conventions in services-pages.css: lt- prefix, --accent-color and
   --heading-color from lavistech-brand.css, no new vendor dependencies.
   Article body typography comes from cms-content.css and is not restated here.
   --------------------------------------------------------------------------- */

.lt-kb-section {
  padding: 56px 0;
}

.lt-kb-section--alt {
  background: color-mix(in srgb, var(--accent-color), transparent 96%);
}

.lt-kb-heading {
  max-width: 760px;
  margin: 0 0 32px;
}

.lt-kb-heading h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--heading-color, #172033);
}

.lt-kb-heading p {
  color: #5b6472;
  margin: 0;
}

.lt-kb-intro {
  max-width: 860px;
}

.lt-kb-empty {
  color: #5b6472;
  margin: 0;
}

/* ---------- Search ---------- */

.lt-kb-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  padding: 8px 8px 8px 16px;
  border: 1px solid color-mix(in srgb, var(--heading-color, #172033), transparent 88%);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(23, 32, 51, .06);
}

.lt-kb-search .bi-search {
  color: var(--accent-color);
  font-size: 18px;
}

.lt-kb-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 15px;
  padding: 10px 0;
  background: transparent;
}

.lt-kb-search button {
  flex: 0 0 auto;
}

.lt-kb-result-count {
  margin: 20px 0 0;
  color: #5b6472;
  font-weight: 600;
}

/* ---------- Category cards ---------- */

.lt-kb-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lt-kb-cat-card {
  display: block;
  padding: 26px 24px;
  border: 1px solid color-mix(in srgb, var(--heading-color, #172033), transparent 90%);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lt-kb-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
  box-shadow: 0 14px 34px rgba(23, 32, 51, .1);
}

.lt-kb-cat-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  font-size: 22px;
}

.lt-kb-cat-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--heading-color, #172033);
}

.lt-kb-cat-card p {
  font-size: 14.5px;
  color: #5b6472;
  margin: 0 0 14px;
  line-height: 1.6;
}

.lt-kb-count {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--accent-color);
}

/* ---------- Article cards ---------- */

.lt-kb-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lt-kb-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--heading-color, #172033), transparent 90%);
  border-radius: 14px;
  background: #fff;
}

.lt-kb-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.lt-kb-card-cat {
  font-size: 13px;
  color: #5b6472;
  text-decoration: none;
}

.lt-kb-card-cat:hover {
  color: var(--accent-color);
}

.lt-kb-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
}

.lt-kb-card h3 a {
  color: var(--heading-color, #172033);
  text-decoration: none;
}

.lt-kb-card h3 a:hover {
  color: var(--accent-color);
}

.lt-kb-card p {
  font-size: 14.5px;
  color: #5b6472;
  line-height: 1.65;
  margin: 0 0 16px;
}

.lt-kb-card .more {
  margin-top: auto;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-color);
  text-decoration: none;
}

/* ---------- Content type badge ---------- */

.lt-kb-type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: color-mix(in srgb, var(--accent-color), #000 25%);
}

.lt-kb-type--pillar {
  background: color-mix(in srgb, #7c4dff, transparent 88%);
  color: #5a32c4;
}

.lt-kb-type--comparison {
  background: color-mix(in srgb, #ff8f00, transparent 86%);
  color: #a35c00;
}

.lt-kb-type--glossary {
  background: color-mix(in srgb, #00a06a, transparent 88%);
  color: #007a51;
}

.lt-kb-type--question {
  background: color-mix(in srgb, #e0457b, transparent 88%);
  color: #b02d5e;
}

/* ---------- Pillar list ---------- */

.lt-kb-pillar-list {
  display: grid;
  gap: 16px;
}

.lt-kb-pillar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
  background: #fff;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.lt-kb-pillar:hover {
  border-color: var(--accent-color);
  box-shadow: 0 14px 34px rgba(23, 32, 51, .08);
}

.lt-kb-pillar h3 {
  font-size: 21px;
  font-weight: 800;
  margin: 10px 0 8px;
  color: var(--heading-color, #172033);
}

.lt-kb-pillar p {
  margin: 0;
  color: #5b6472;
  font-size: 15px;
  line-height: 1.65;
}

.lt-kb-pillar .bi-arrow-right {
  flex: 0 0 auto;
  font-size: 24px;
  color: var(--accent-color);
}

/* ---------- Article layout ---------- */

.lt-kb-article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.lt-kb-article-layout--full {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
  margin: 0 auto;
}

.lt-kb-toc {
  position: sticky;
  top: 100px;
  padding: 22px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-color), transparent 96%);
  border: 1px solid color-mix(in srgb, var(--heading-color, #172033), transparent 92%);
}

.lt-kb-toc h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #5b6472;
  margin: 0 0 14px;
}

.lt-kb-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lt-kb-toc li {
  margin-bottom: 9px;
  line-height: 1.45;
}

.lt-kb-toc li.lt-kb-toc-l3 {
  padding-left: 14px;
}

.lt-kb-toc a {
  font-size: 14px;
  color: var(--heading-color, #172033);
  text-decoration: none;
}

.lt-kb-toc a:hover {
  color: var(--accent-color);
}

.lt-kb-article {
  max-width: 820px;
}

/* Anchor targets must clear the fixed header, or clicking the TOC hides the heading. */
.lt-kb-article :is(h2, h3)[id] {
  scroll-margin-top: 110px;
}

.lt-kb-quick-answer {
  padding: 22px 26px;
  margin-bottom: 28px;
  border-radius: 14px;
  border-left: 4px solid var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 93%);
}

.lt-kb-quick-answer h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent-color), #000 25%);
  margin: 0 0 10px;
}

.lt-kb-quick-answer p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--heading-color, #172033);
}

.lt-kb-featured {
  margin: 0 0 28px;
}

.lt-kb-parent {
  font-size: 14.5px;
  color: #5b6472;
  margin: 0 0 24px;
}

.lt-kb-parent a {
  font-weight: 700;
  color: var(--accent-color);
}

/* ---------- Article footer blocks ---------- */

.lt-kb-block {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--heading-color, #172033), transparent 90%);
}

.lt-kb-block h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--heading-color, #172033);
}

.lt-kb-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lt-kb-link-list li {
  padding: 12px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--heading-color, #172033), transparent 90%);
}

.lt-kb-link-list li:last-child {
  border-bottom: 0;
}

.lt-kb-link-list a {
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
}

.lt-kb-link-list a:hover {
  text-decoration: underline;
}

.lt-kb-link-list span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #5b6472;
}

.lt-kb-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lt-kb-service {
  display: block;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 82%);
  background: color-mix(in srgb, var(--accent-color), transparent 97%);
  text-decoration: none;
  transition: border-color .18s ease;
}

.lt-kb-service:hover {
  border-color: var(--accent-color);
}

.lt-kb-service h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--heading-color, #172033);
}

.lt-kb-service p {
  font-size: 14px;
  color: #5b6472;
  line-height: 1.6;
  margin: 0 0 12px;
}

.lt-kb-service .more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-color);
}

.lt-kb-back {
  margin: 40px 0 0;
}

.lt-kb-back a {
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
}

/* ---------- Glossary ---------- */

.lt-kb-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 36px;
}

.lt-kb-alpha a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--heading-color, #172033), transparent 88%);
  font-weight: 700;
  font-size: 14px;
  color: var(--heading-color, #172033);
  text-decoration: none;
}

.lt-kb-alpha a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.lt-kb-alpha-group {
  margin-bottom: 36px;
  scroll-margin-top: 110px;
}

.lt-kb-alpha-group h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-color);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.lt-kb-terms {
  margin: 0;
}

.lt-kb-terms dt {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 700;
}

.lt-kb-terms dt a {
  color: var(--heading-color, #172033);
  text-decoration: none;
}

.lt-kb-terms dt a:hover {
  color: var(--accent-color);
}

.lt-kb-terms dd {
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #5b6472;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .lt-kb-article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .lt-kb-toc {
    position: static;
  }
}

@media (max-width: 992px) {
  .lt-kb-cat-grid,
  .lt-kb-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lt-kb-cat-grid,
  .lt-kb-card-grid,
  .lt-kb-service-grid {
    grid-template-columns: 1fr;
  }

  .lt-kb-search {
    flex-wrap: wrap;
    border-radius: 14px;
    padding: 12px;
  }

  .lt-kb-search button {
    width: 100%;
    justify-content: center;
  }

  .lt-kb-pillar {
    flex-direction: column;
    align-items: flex-start;
  }
}
