/* Knowledge Base - Vuexy Style */
.knowledge-base-bg {
    background-size: cover;
    background-color: rgba(91, 80, 214, 0.12) !important;
}

.knowledge-base-bg .kb-search-input .input-group:focus-within {
    box-shadow: none;
}

.kb-search-content-info .kb-search-content .card-img-top {
    background-color: #fcfcfc;
    height: 180px;
    object-fit: contain;
    padding: 1.5rem 2rem;
}

.kb-search-content-info .no-result.no-items {
    display: none;
}

.kb-title {
    display: flex;
    align-items: center;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.kb-title i,
.kb-title svg {
    margin-right: 0.65rem;
    flex-shrink: 0;
}

.list-group-circle .list-group-item {
    border: 0;
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
    background-color: transparent;
}

.list-group-circle .list-group-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #5b50d6;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.list-group-circle .list-group-item:hover {
    color: #5b50d6 !important;
}

/* KB Admin buttons */
.kb-admin-actions {
    margin-bottom: 1rem;
}

/* Breadcrumb for KB pages */
.kb-breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.kb-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '>';
}

/* Article view styling */
#kb-article-content img {
    border-radius: 0.428rem;
    max-width: 100%;
    height: auto;
    margin: 0.5rem 0;
}

#kb-article-content h5 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Feedback section */
.kb-feedback-section {
    border-top: 1px solid #ebe9f1;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* Search input override for KB */
.kb-search-input .input-group {
    border-radius: 0.357rem;
    overflow: hidden;
}

.kb-search-input .input-group .form-control {
    border: none;
}

.kb-search-input .input-group .input-group-text {
    background-color: #fff;
    border: none;
}

/* Category card hover */
.kb-search-content .card {
    transition: all 0.3s ease;
}

.kb-search-content .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 25px 0 rgba(34, 41, 47, 0.25);
}

.kb-search-content .card a {
    text-decoration: none;
}

/* No results */
.no-result.no-items {
    display: none;
}

/* Dark mode support */
html.dark .knowledge-base-bg {
    background-color: rgba(91, 80, 214, 0.2) !important;
}

html.dark .kb-search-content .card-img-top {
    background-color: #283046;
}

html.dark .list-group-circle .list-group-item {
    background-color: transparent;
}

html.dark .kb-feedback-section {
    border-top-color: #3b4253;
}

@media (min-width: 768px) {
    .knowledge-base-bg .kb-search-input .input-group {
        width: 576px;
        margin: 0 auto;
    }
}

@media (min-width: 992px) {
    .knowledge-base-bg .card-body {
        padding: 5rem 8rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .knowledge-base-bg .card-body {
        padding: 4rem 6rem;
    }
}
