/* General */

body {
    background: #F5F6F7;
}

.container {
    color: #212529;
}

.clear {
    clear: both;
}

.breadcrumb {
    background-color: #E2E2E2;
    border-radius: 0.375rem;
    padding: 10px;
    margin-bottom: 20px;
}

header {
    margin-bottom: 20px;
}

header h1 {
    font-size: 1.6em;
}

button.dropdown-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
}

.kb-logo {
    max-height: 32px;
    width: auto;
}

/* Navigation */

.navbar {
    margin-bottom: 20px;
}

/* Footer */

footer {
    background-color: #F5F6F7;
    width: 100%;
    margin-top: 30px;
}

footer p {
    padding-top: 0px;
    padding-bottom: 10px;
    text-align: center;
}

/* Category List */

.category-item {
    border-radius: 0.375em;
    border: 1px solid #E2E2E2;
    margin-bottom: 15px;
}

.category-item:hover {
    background: #E2E2E2;
}

.category-item a {
    text-decoration: none;
    color: #212529;
}

.category-item h6 {
    margin: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 1.1em;
    font-weight: bold;
}

.category-item .num-articles {
    font-weight: normal;
}

.category-item p {
    margin: 0;
    padding-top: 0;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.category-icon i {
    font-size: 3em;
    padding: 10px;
}

.category-inner {
    display: flex;
}



/* Article List */

.article-item {
    border-radius: 0.375em;
    border: 1px solid #E2E2E2;
    margin-bottom: 15px;
}

.article-item:hover {
    background: #E2E2E2;
}

.article-item a {
    text-decoration: none;
    color: #212529;
}

.article-item h6 {
    margin: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 1.1em;
    font-weight: normal;
}

.article-item .num-articles {
    font-weight: normal;
}

.article-item p {
    margin: 0;
    padding-top: 0;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

/* Search Styles */

.search-result-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef !important;
}

.search-result-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border-color: #dee2e6 !important;
}

.search-result-card a {
    color: inherit;
}

.search-result-card a:hover {
    color: inherit;
}

.input-group-lg .form-control {
    font-size: 1.1rem;
}

/* Category Styles */

.category-result-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef !important;
}

.category-result-card:hover {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15) !important;
    border-color: #dee2e6 !important;
}

.category-result-card a {
    color: inherit;
}

.category-result-card a:hover {
    color: inherit;
}

.category-result-card .card-body {
    min-height: 120px;
}

/* Badge Styles for Bootstrap 5.3+ */
.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.text-primary {
    color: #0d6efd !important;
}

.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.text-warning-emphasis {
    color: #664d03 !important;
}

.bg-info-subtle {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.text-info {
    color: #0dcaf0 !important;
}

/* Article Styles */

.article-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef !important;
}

.article-content {
    line-height: 1.2;
    font-size: 1rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #212529;
}

.article-content h1:first-child,
.article-content h2:first-child,
.article-content h3:first-child,
.article-content h4:first-child,
.article-content h5:first-child,
.article-content h6:first-child {
    margin-top: 0;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content li:first-child {
    margin-top: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
}

.article-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.article-content code {
    background-color: #f8f9fa;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Token colors match the TinyMCE editor skin so a saved code sample looks the same in public. */
.article-content pre[class*="language-"] {
    line-height: 1.5;
    tab-size: 4;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.875rem;
}

.article-content pre[class*="language-"] code,
.article-content code[class*="language-"] {
    font-family: inherit;
    font-size: inherit;
    color: #000;
    white-space: pre;
}

.article-content .token.cdata,
.article-content .token.comment,
.article-content .token.doctype,
.article-content .token.prolog {
    color: #708090;
}

.article-content .token.punctuation {
    color: #999;
}

.article-content .token.namespace {
    opacity: 0.7;
}

.article-content .token.boolean,
.article-content .token.constant,
.article-content .token.deleted,
.article-content .token.number,
.article-content .token.property,
.article-content .token.symbol,
.article-content .token.tag {
    color: #905;
}

.article-content .token.attr-name,
.article-content .token.builtin,
.article-content .token.char,
.article-content .token.inserted,
.article-content .token.selector,
.article-content .token.string {
    color: #690;
}

.article-content .language-css .token.string,
.article-content .style .token.string,
.article-content .token.entity,
.article-content .token.operator,
.article-content .token.url {
    color: #9a6e3a;
    background: hsla(0, 0%, 100%, 0.5);
}

.article-content .token.atrule,
.article-content .token.attr-value,
.article-content .token.keyword {
    color: #07a;
}

.article-content .token.class-name,
.article-content .token.function {
    color: #dd4a68;
}

.article-content .token.important,
.article-content .token.regex,
.article-content .token.variable {
    color: #e90;
}

.article-content .token.bold,
.article-content .token.important {
    font-weight: 700;
}

.article-content .token.italic {
    font-style: italic;
}

.article-content .token.entity {
    cursor: help;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 1.5rem 0;
}

.article-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.article-content table th,
.article-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.article-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}
