/*
Theme Name: LinkRhinos Knowledge Base
Theme URI: https://example.com/linkrhinos-kb
Description: A modern, high-performance Knowledge Base WordPress theme with AJAX search, dark mode, and automated TOC.
Author: Antigravity
Author URI: https://example.com
Version: 1.0.0
Text Domain: linkrhinos-kb
*/

:root {
    /* Color Palette - Premium & Modern */
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;

    /* Backgrounds */
    --bg-body: #f4f7f6;
    --bg-card: #ffffff;
    --bg-header: #ffffff;

    /* Text */
    --text-main: #212529;
    --text-muted: #6c757d;
    --text-inverse: #ffffff;

    /* Border & Shadows */
    --border-color: #dee2e6;
    --shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);
    --shadow-md: 0 .5rem 1rem rgba(0, 0, 0, .15);

    /* Transitions */
    --transition-fast: all 0.2s ease-in-out;
}

[data-theme="dark"] {
    --bg-body: #1a1d21;
    --bg-card: #24282d;
    --bg-header: #24282d;
    --text-main: #e9ecef;
    --text-muted: #adb5bd;
    --border-color: #3d4248;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-md);
    z-index: 1001;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.search-results-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results-dropdown li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.search-results-dropdown li:last-child a {
    border-bottom: none;
}

.search-results-dropdown li a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.search-loading,
.no-results {
    padding: 15px;
    color: var(--text-muted);
}

/* Custom Blocks */
.kb-callout {
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
    background: var(--light-color);
}

[data-theme="dark"] .kb-callout {
    background: rgba(255, 255, 255, 0.05);
}

.kb-callout-warning {
    border-color: var(--warning-color);
}

.kb-callout-info {
    border-color: var(--info-color);
}

.kb-callout-danger {
    border-color: var(--danger-color);
}

/* Gutenberg Block Alignments */
.alignwide {
    margin-left: -100px;
    margin-right: -100px;
    max-width: calc(100% + 200px);
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

@media (max-width: 1200px) {
    .alignwide {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

/* Article Redesign Styles */
.kb-article-wrapper {
    background-color: #fff;
    min-height: 100vh;
}

[data-theme="dark"] .kb-article-wrapper {
    background-color: var(--bg-body);
}

.kb-article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 5rem;
    padding: 3rem 0;
}

/* Article Hero Header */
.entry-header {
    margin-bottom: 3.5rem;
}

.entry-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.entry-excerpt {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.updated-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.reading-info {
    color: var(--text-muted);
}

/* Sidebar Widgets */
.kb-sidebar {
    position: sticky;
    top: 2rem;
    align-self: flex-start;
}

.sidebar-widget {
    margin-bottom: 3.5rem;
}

.widget-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

.widget-toc .widget-title::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg>');
}

.widget-related .widget-title::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline></svg>');
}

/* TOC Styles Refined */
.toc-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.25rem;
}

.toc-item a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
    border-left: 2px solid transparent;
}

.toc-item a:hover {
    color: var(--primary-color);
    background: rgba(0, 123, 255, 0.03);
}

.toc-item.active a {
    color: var(--primary-color);
    font-weight: 700;
    background: rgba(0, 123, 255, 0.06);
    border-left: 3px solid var(--primary-color);
}

.toc-h3 a {
    padding-left: 2rem;
    font-size: 0.9rem;
}

/* Related Articles Widget Refined */
.related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.related-article-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

[data-theme="dark"] .related-article-item {
    background: var(--bg-card);
}

.related-article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.related-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.related-title::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 3px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.related-article-item:hover .related-title::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23007bff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline></svg>');
    opacity: 1;
}

.related-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    background: rgba(0, 123, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    align-self: flex-start;
}

/* Support Card Refined */
.support-card {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.support-card::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.support-icon {
    font-size: 2.75rem;
    background: #fff;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 18px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: rotate(-10deg);
    transition: transform 0.3s ease;
}

.support-card:hover .support-icon {
    transform: rotate(0) scale(1.1);
}

.support-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
}

.support-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-support {
    display: inline-block;
    background: #fff;
    color: var(--primary-color);
    padding: 0.9rem 2.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-support:hover {
    background: #f8f9fa;
    color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Feedback Section */
.kb-feedback {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.feedback-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-feedback {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 2rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-feedback:hover {
    border-color: var(--primary-color);
    background: var(--light-color);
}

[data-theme="dark"] .btn-feedback {
    background: var(--bg-card);
}

[data-theme="dark"] .btn-feedback:hover {
    background: rgba(0, 123, 255, 0.1);
}

/* Tags Styles */
.entry-tags {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 992px) {
    .kb-article-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .entry-title {
        font-size: 2.25rem;
    }
}

.entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

.entry-content h2,
.entry-content h3 {
    color: var(--text-main);
    margin-top: 3rem;
}

.kb-step-block {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
}

.kb-step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.kb-step-content h4 {
    margin-top: 0 !important;
    margin-bottom: 0.5rem;
}

/* Archive & Category List Redesign */
.kb-archive-wrapper {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 3rem 0;
}

[data-theme="dark"] .kb-archive-wrapper {
    background-color: var(--bg-body);
}

.kb-archive-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
}

/* Sidebar Categories & Search */
.kb-archive-sidebar {
    position: sticky;
    top: 2rem;
    align-self: flex-start;
}

.kb-archive-sidebar .widget-search {
    margin-bottom: 2rem;
}

.sidebar-search-form .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-search-form .search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    display: flex;
}

.sidebar-search-form .search-field {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text-main);
    transition: all 0.2s ease;
}

[data-theme="dark"] .sidebar-search-form .search-field {
    background: var(--bg-card);
}

.sidebar-search-form .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.kb-archive-sidebar .sidebar-widget.widget-categories {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .kb-archive-sidebar .sidebar-widget.widget-categories {
    background: var(--bg-card);
}

.kb-archive-sidebar .widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kb-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kb-category-list li {
    margin-bottom: 0.5rem;
}

.kb-category-list li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.25rem;
    color: var(--text-main);
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.kb-category-list li a:hover {
    background: rgba(0, 123, 255, 0.05);
    color: var(--primary-color);
}

.kb-category-list li.active a {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    font-weight: 700;
}

.kb-category-list .term-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Main Content Area */
.archive-header-inline {
    margin-bottom: 3rem;
}

.archive-header-inline .archive-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.archive-header-inline .taxonomy-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 800px;
}

/* Article Row Cards */
.article-list-rows {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kb-article-row-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

[data-theme="dark"] .kb-article-row-card {
    background: var(--bg-card);
}

.kb-article-row-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.card-icon-box {
    width: 56px;
    height: 56px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-content {
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.card-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.card-chevron {
    color: var(--border-color);
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}

.kb-article-row-card:hover .card-chevron {
    color: var(--primary-color);
    transform: translateX(4px);
}

.no-content {
    padding: 3rem;
    background: #fff;
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    text-align: center;
    color: var(--text-muted);
}

[data-theme="dark"] .no-content {
    background: var(--bg-card);
}

@media (max-width: 992px) {
    .kb-archive-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .kb-archive-sidebar {
        order: 2;
    }

    .kb-archive-main {
        order: 1;
    }
}

@media (max-width: 600px) {
    .kb-article-row-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .card-chevron {
        display: none;
    }

    .archive-header-inline .archive-title {
        font-size: 2rem;
    }
}

/* --- Search Results Page --- */
.kb-search-results-page {
    padding: 4rem 0;
    background: var(--bg-body);
}

.kb-search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Sidebar Filters */
.kb-search-sidebar {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .kb-search-sidebar {
    background: var(--bg-card);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-checkbox,
.filter-radio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    user-select: none;
}

.filter-checkbox input,
.filter-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark,
.radio-mark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

[data-theme="dark"] .checkmark,
[data-theme="dark"] .radio-mark {
    background: var(--bg-card);
}

.radio-mark {
    border-radius: 50%;
}

.filter-checkbox:hover .checkmark,
.filter-radio:hover .radio-mark {
    border-color: var(--primary-color);
}

.filter-checkbox input:checked~.checkmark,
.filter-radio input:checked~.radio-mark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    display: none;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.radio-mark:after {
    content: "";
    display: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.filter-checkbox input:checked~.checkmark:after,
.filter-radio input:checked~.radio-mark:after {
    display: block;
}

.filter-list .count {
    color: var(--text-muted);
    margin-left: auto;
    font-size: 0.85rem;
}

/* Main Search Results */
.search-results-header {
    margin-bottom: 2.5rem;
}

.search-result-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.results-count {
    color: var(--text-muted);
    font-size: 1rem;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kb-search-result-card {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

[data-theme="dark"] .kb-search-result-card {
    background: var(--bg-card);
}

.kb-search-result-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.result-icon-box {
    width: 40px;
    height: 40px;
    background: rgba(0, 123, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
}

.result-icon-box svg {
    width: 20px;
    height: 20px;
}

.result-content {
    flex-grow: 1;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-title a {
    color: var(--text-main);
    text-decoration: none;
}

.result-title a:hover {
    color: var(--primary-color);
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.result-category {
    background: var(--bg-body);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
    color: var(--text-main);
}

[data-theme="dark"] .result-category {
    background: rgba(255, 255, 255, 0.05);
}

.meta-sep {
    opacity: 0.5;
}

.result-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Highlight search term */
.highlight {
    background-color: rgba(0, 123, 255, 0.15);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0 0.15rem;
    border-radius: 3px;
}

/* Support CTA block */
.search-support-cta {
    background: var(--bg-card);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.support-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.support-cta-content .cta-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.support-cta-content .cta-text p {
    color: var(--text-muted);
    margin: 0;
}

.btn-support {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-support:hover {
    background: var(--primary-color);
    color: #fff;
}

[data-theme="dark"] .btn-support {
    background: var(--bg-body);
}

[data-theme="dark"] .btn-support:hover {
    background: var(--primary-color);
}

@media (max-width: 992px) {
    .kb-search-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .kb-search-sidebar {
        position: static;
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .filter-group {
        flex: 1;
        min-width: 200px;
    }

    .support-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}