/* 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;
}

.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;
}

.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;
}
