.kb-main-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Space between items */
    justify-content: space-between; /* Align items evenly */
}

/* Each section takes up 48% of the width on larger screens to create two columns */
.kb-section {
    background-color: var(--elevation-level-1);
    border: solid 1px var(--light-grey);
    color: var(--primary-text);
    border-radius: var(--nectar-border-radius);
    flex-basis: calc(50% - 15px)
}

/* On mobile screens (below 768px), make each section take up full width */
@media (max-width: 999px) {
    .kb-section {
        flex-basis: 100%; /* Single column on smaller screens */
    }
}

/* Additional styling for headers, items, and button */
.kb-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
}

.kb-header-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 20px;
    border-left: 3px solid var(--primary);
}

.kb-header-btn {
    background: none;
    text-decoration: none;
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: var(--nectar-border-radius);
    border: 1px solid var(--primary);
    margin-right: 20px;
    transition: all ease 0.2s;
}

.kb-header-btn:hover {
    background-color: var(--primary);
    color: white;
    transition: all ease 0.2s;
}

.kb-section-items {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.kb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: var(--nectar-border-radius);
    transition: background-color 0.2s;
    cursor: pointer;
}

.kb-item:hover {
    background-color: var(--elevation-level-2)
}

.kb-item-divider {
    height: 1px;
    background-color: var(--light-grey);
    border-radius: 50%;
    width: 90%;
    opacity: 75%;
    user-select: none;
    margin-left: 10px;
}

.kb-item-title {
    font-size: 1rem;
    color: var(--primary-text);
}

.kb-item-arrow-icon {
    color: var(--med-grey);
    font-size: 1.2rem;
    user-select: none;
}

/* Search Form CSS */
.kb-search-form {
    display: flex;
}

.kb-search-form label {
    flex: 1;
}

.kb-search-form input {
    padding: 15px 22px !important;
    border-radius: var(--nectar-border-radius) 0 0 var(--nectar-border-radius)!important;
    background-color: var(--elevation-level-2)!important;
}

.kb-search-submit {
    border-radius: 0 var(--nectar-border-radius) var(--nectar-border-radius) 0!important;
}

/* Search template CSS */
.kb-search-results-container {
    padding-bottom: 120px;
}

.kb-search-item-divider {    
    height: 1px;
    background-color: var(--light-grey);
    border-radius: 50%;
    opacity: 75%;
    user-select: none;
}

.kb-result-meta span {
    font-size: 14px;
}

.kb-result-item {
    padding: 15px 0;
}

/* Single Knowledge Item page */
.kb-article-header {
    margin-bottom: 30px;
}

.kb-article-content {
    margin-bottom: 30px;
}

.kb-article-container {
    min-height: 50dvh;
}

/* Category Knowledge base page */
.kb-category-item {
    padding: 15px 0;
}

.kb-item-meta span {
    font-size: 14px;
}

.kb-category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}