.kb-pill { display:block; border-radius:16px; transition:transform .12s ease, box-shadow .12s ease; padding:0; }
.kb-pill__inner{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:16px; padding:22px; }
.kb-pill__icon{ width:48px; height:48px; border-radius:12px; display:grid; place-items:center; background:rgba(16,185,129,.12); color:#10b981; }
.kb-pill__title{ font-size:20px; font-weight:700; line-height:1.2; }
.kb-pill__meta{ font-size:14px; opacity:.7; margin-top:2px; }
.kb-pill__cta{ display:inline-flex; align-items:center; gap:8px; font-weight:600; opacity:.9; }
.kb-pill__arrow{ transition:transform .12s ease; }
.kb-pill:hover .kb-pill__arrow{ transform:translateX(2px); }
.kb-pill-row .col-md-4{ margin-bottom:18px; }

/* --- Searchbox container --- */
.kb-search-wrapper {
    display: flex;
    justify-content: center;
    margin: 50px;
}

.kb-searchbox {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
    padding: 10px 14px;
    width: 100%;
    max-width: 620px;
    transition: box-shadow .2s ease;
}

.kb-searchbox:focus-within {
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}

/* --- Icon --- */
.kb-searchbox__icon {
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

/* --- Input --- */
.kb-searchbox input[type="search"] {
    flex: 1;
    border: none;
    font-size: 16px;
    padding: 10px 8px;
    outline: none;
    color: #111;
}

.kb-searchbox input::placeholder {
    color: #999;
}

/* ====== Knowledge: layout ====== */
.kb-layout {
    row-gap: 24px;
}

/* Sidebar links: sticky + scrollbaar binnen viewport */
.kb-sidebar {
    position: sticky;
    top: 90px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding-right: 8px;
}

/* ====== Tree: basis ====== */
.kb-tree {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    line-height: 1.45;
}

.kb-tree-cat {
    margin-bottom: 14px;
}

.kb-tree-cat__title {
    display: block;
    font-weight: 700;
    color: var(--theme-dark, #111);
    text-decoration: none;
    padding: 6px 0;
    border-radius: 8px;
}

.kb-tree-cat.open .kb-tree-cat__title {
    color: var(--theme-primary-color, #0a58ca);
}

/* Subitems */
.kb-tree-list {
    list-style: none;
    margin: 6px 0 0 0;
    padding: 0;
    border-left: 2px solid rgba(0,0,0,.06);
}

.kb-tree-list li {
    margin: 0;
    padding: 2px 0 2px 10px;
}

.kb-tree-list a {
    display: inline-block;
    text-decoration: none;
    color: var(--theme-dark, #222);
    padding: 6px 8px;
    border-radius: 8px;
}

.kb-tree-list a:hover {
    background: rgba(0,0,0,.04);
}

.kb-tree-list a.active {
    background: var(--theme-primary-color, #0a58ca);
    color: var(--theme-light, #fff);
    font-weight: 600;
}

/* ====== Detail card: top alignment ====== */
.kb-detail {
    margin-top: 0;            /* uitlijnen met sidebar */
}

/* Optioneel: zelfde visuele starthoogte als breadcrumb-blok */
.breadcrumb-wrapper + .container .kb-layout {
    margin-top: 8px;
}

/* Optioneel: nette scrollbar in sidebar (webkit) */
.kb-sidebar::-webkit-scrollbar {
    width: 8px;
}
.kb-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 8px;
}
.kb-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
