/* Knowledge Hub Page Styling */

.knowledge-hub-page {
    background: white;
    min-height: 100vh;
}

.knowledge-hub-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.knowledge-hub-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #7c3aed 100%);
    padding: 140px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.knowledge-hub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.knowledge-hub-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.knowledge-hub-hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.knowledge-hub-hero p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Search Bar */
.knowledge-search {
    max-width: 600px;
    margin: 0 auto 4rem;
    position: relative;
}

.knowledge-search form {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: var(--rs-glass-blur);
    -webkit-backdrop-filter: var(--rs-glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.knowledge-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 24px;
    color: #1a1a1a;
    font-size: 16px;
    outline: none;
    border-radius: 50px;
    text-align: center;
}

.knowledge-search input::placeholder {
    color: #94a3b8;
}

.knowledge-search button {
    background: linear-gradient(135deg, var(--rs-purple) 0%, #8b5cf6 100%);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(107, 76, 154, 0.2);
}

.knowledge-search button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

/* Statistics */
.knowledge-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--rs-glass-blur);
    -webkit-backdrop-filter: var(--rs-glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px 32px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: var(--rs-transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--rs-purple);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    text-transform: none;
    letter-spacing: normal;
}

/* Filters Section */
.knowledge-filters {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--rs-glass-border);
    will-change: transform, top;
}

/* Sticky state */
.knowledge-filters.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* Type Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Inline Search */
.filter-search {
    flex: 1;
    max-width: 350px;
    margin: 0 1.5rem;
    position: relative;
}

.filter-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    transition: color 0.3s ease;
}

.filter-search input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rs-nav-text);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-search input:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.filter-search input:focus {
    outline: none;
    border-color: var(--rs-purple);
    background: white;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-search input:focus + .search-icon,
.filter-search:hover .search-icon {
    color: var(--rs-purple);
}

.filter-search input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--rs-glass-bg-light);
    border: 1px solid var(--rs-glass-border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rs-nav-text);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: var(--rs-glass-blur);
    -webkit-backdrop-filter: var(--rs-glass-blur);
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
    background: linear-gradient(135deg, var(--rs-purple) 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

.tab-label {
    font-weight: 600;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Filter Dropdowns */
.filter-dropdown {
    position: relative;
}

/* Custom Dropdown Trigger */
.custom-dropdown .dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: var(--rs-glass-bg-light);
    border: 1px solid var(--rs-glass-border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rs-nav-text);
    cursor: pointer;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: var(--rs-glass-blur);
    -webkit-backdrop-filter: var(--rs-glass-blur);
    min-width: 160px;
}

.custom-dropdown .dropdown-trigger:hover {
    border-color: var(--rs-purple);
    background: white;
    box-shadow: 0 4px 12px rgba(107, 76, 154, 0.15);
    transform: translateY(-1px);
}

.custom-dropdown.active .dropdown-trigger {
    border-color: var(--rs-purple);
    box-shadow: 0 0 0 3px rgba(107, 76, 154, 0.1);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: var(--rs-purple);
    flex-shrink: 0;
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Custom Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--rs-glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.custom-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items */
.dropdown-item {
    padding: 12px 16px;
    color: var(--rs-nav-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(107, 76, 154, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    color: var(--rs-purple);
    padding-left: 20px;
}

.dropdown-item.active {
    background: linear-gradient(135deg, rgba(107, 76, 154, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    color: var(--rs-purple);
    font-weight: 700;
}

/* Scrollbar Styling */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(107, 76, 154, 0.2);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 76, 154, 0.4);
}

/* Legacy select fallback - hide it */
.filter-select {
    display: none;
}

.results-count {
    padding: 8px 16px;
    background: var(--rs-glass-bg);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rs-purple);
    white-space: nowrap;
}

/* Featured Hero Slider */
.featured-hero-slider {
    background: white;
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--rs-glass-border);
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.featured-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recommendation-badge {
    font-size: 0.875rem;
    font-weight: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    animation: subtle-pulse 2s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.slider-controls {
    display: flex;
    gap: 0.5rem;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rs-glass-bg-light);
    border: 1px solid var(--rs-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: var(--rs-glass-blur);
    -webkit-backdrop-filter: var(--rs-glass-blur);
}

.slider-arrow:hover {
    background: linear-gradient(135deg, var(--rs-purple) 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    transform: scale(1.05);
}

.slider-arrow svg {
    color: inherit;
}

.featured-slider-wrapper {
    overflow: hidden;
    margin: 0 -0.5rem;
}

.featured-slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0.5rem;
}

.featured-slide {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
    cursor: pointer;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}

.featured-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(107, 76, 154, 0.25);
}

.featured-slide-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.featured-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.featured-slide:hover .featured-slide-image img {
    transform: scale(1.08);
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(240, 237, 246, 0.8) 0%,
        rgba(233, 227, 240, 0.8) 100%
    );
}

.featured-icon {
    font-size: 4rem;
    opacity: 0.4;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.featured-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
    z-index: 2;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.featured-type {
    background: var(--rs-purple);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.featured-separator {
    opacity: 0.7;
}

.featured-category {
    opacity: 0.9;
    font-weight: 500;
}

.featured-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem 0;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    opacity: 0.95;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

.featured-time,
.featured-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-time svg,
.featured-views svg {
    opacity: 0.8;
}

.no-featured {
    text-align: center;
    padding: 3rem;
    color: var(--rs-gray-600);
}

/* Content Library - Unified Grid */
.content-library {
    padding: 4rem 0;
    padding-top: 180px;
    background: #fafbfc;
    min-height: 60vh;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
    grid-auto-flow: dense;
}

/* Empty State */
.no-content-message {
    grid-column: 1 / -1;
    padding: 4rem 0;
}

.empty-state {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1rem;
    color: var(--rs-gray-600);
    line-height: 1.6;
}

/* Knowledge Cards */
.knowledge-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.knowledge-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(107, 76, 154, 0.2);
    border-color: rgba(107, 76, 154, 0.2);
}

/* Featured Bento Cards - Larger */
.knowledge-card.featured-bento {
    grid-column: span 2;
    grid-row: span 2;
}

.knowledge-card.featured-bento .card-image {
    height: 240px;
}

.knowledge-card.featured-bento .card-content {
    padding: 1.5rem;
}

.knowledge-card.featured-bento .card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    -webkit-line-clamp: 3;
}

.knowledge-card.featured-bento .card-excerpt {
    font-size: 0.95rem;
    -webkit-line-clamp: 4;
    margin-bottom: 1rem;
}

.knowledge-card.featured-bento .card-meta {
    margin-bottom: 1rem;
}

.knowledge-card.featured-bento .content-type {
    padding: 4px 14px;
    font-size: 12px;
}

.knowledge-card.featured-bento .category {
    padding: 4px 14px;
    font-size: 12px;
}

.knowledge-card.featured-bento .card-footer {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.knowledge-card.featured-bento .card-link {
    font-size: 0.95rem;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.sponsored-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(45deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.card-image {
    height: 140px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.knowledge-card:hover .card-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #94a3b8;
}

.content-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.content-type {
    background: var(--rs-purple);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category {
    background: #f1f5f9;
    color: #64748b;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: var(--rs-purple);
}

.card-excerpt {
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    flex: 1;
}

.difficulty-indicator {
    margin-bottom: 1rem;
}

.difficulty-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-badge.beginner {
    background: #dcfce7;
    color: #166534;
}

.difficulty-badge.intermediate {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-badge.advanced {
    background: #fecaca;
    color: #991b1b;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.card-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-footer svg {
    width: 14px;
    height: 14px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--rs-purple);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    margin-top: auto;
}

.card-link:hover {
    color: #8b5cf6;
    transform: translateX(2px);
}

.card-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.card-link:hover svg {
    transform: translateX(2px);
}

/* Load More Button */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    background: linear-gradient(135deg, var(--rs-purple) 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(107, 76, 154, 0.25);
}

.btn-load-more:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .knowledge-hub-page .container {
        padding: 0 1.5rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .knowledge-card.featured-bento {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .knowledge-card.featured-bento .card-image {
        height: 200px;
    }
    
    .featured-slide {
        flex: 0 0 calc(50% - 0.75rem);
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs {
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .filter-controls {
        justify-content: space-between;
    }
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Search Overlay - Hide on Desktop only */
@media (min-width: 769px) {
    .mobile-search-overlay {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .knowledge-hub-page .container {
        padding: 0 1rem;
    }
    .knowledge-hub-hero {
        padding: 100px 0 40px;
    }
    
    .knowledge-hub-hero h1 {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .knowledge-hub-hero p {
        font-size: 16px;
    }
    
    .knowledge-search input {
        font-size: 15px;
        padding: 14px 18px;
    }
    
    .knowledge-search button {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .knowledge-stats {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    /* Featured Slider Mobile */
    .featured-hero-slider {
        padding: 2.5rem 0 2rem;
    }
    
    .featured-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .featured-header h2 {
        font-size: 1.5rem;
    }
    
    .recommendation-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .slider-controls {
        display: none;
    }
    
    .featured-slide {
        flex: 0 0 85%;
        max-width: 85%;
    }
    
    .featured-slider-wrapper {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .featured-slider-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .featured-slide-image {
        height: 200px;
    }
    
    .featured-title {
        font-size: 1.1rem;
    }
    
    .featured-excerpt {
        font-size: 0.9rem;
    }
    
    /* Sticky Filter Bar Mobile */
    .knowledge-filters {
        padding: 1.25rem 0;
        overflow: visible !important;
    }
    
    .knowledge-filters .container {
        overflow: visible !important;
    }
    
    .knowledge-filters.is-sticky {
        padding: 1rem 0;
    }
    
    /* Filter Bar: Tabs + Search Icon in einer Zeile */
    .filter-bar {
        display: flex !important;
        gap: 0.5rem !important;
        overflow: visible !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.25rem 0 !important;
    }
    
    /* Tabs: Natürliche Breite, scrollbar */
    .filter-tabs {
        width: auto !important;
        flex: 0 1 auto !important;
        flex-shrink: 1 !important;
        flex-grow: 0 !important;
        flex-basis: auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 60px) !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        flex-wrap: nowrap !important;
        gap: 0.4rem !important;
        display: flex !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: touch;
        padding: 0.125rem 0 !important;
        margin: 0 !important;
        order: 1 !important;
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    /* Tab-Buttons kompakter */
    .tab-btn {
        padding: 10px 14px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
    }
    
    /* Search Icon: Fixiert rechts */
    .filter-search {
        flex: 0 0 44px !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        flex-basis: 44px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        margin: 0 0 0 0.5rem !important;
        padding: 0 !important;
        order: 2 !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, var(--rs-purple) 0%, #8b5cf6 100%) !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3) !important;
    }
    
    .filter-search input {
        display: none !important;
    }
    
    .filter-search .search-icon {
        position: static !important;
        transform: none !important;
        width: 18px !important;
        height: 18px !important;
        color: white !important;
        pointer-events: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .filter-search .search-icon:active {
        transform: scale(0.95) !important;
        box-shadow: 0 1px 4px rgba(139, 92, 246, 0.4);
    }
    
    /* Second Row: Filter Controls - Komplett ausblenden auf Mobile */
    .filter-controls {
        display: none !important;
    }
    
    /* Mobile Search Overlay */
    .mobile-search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 10000;
        display: none;
        align-items: flex-start;
        justify-content: center;
        padding: 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-search-overlay.active {
        display: flex;
        opacity: 1;
    }
    
    .mobile-search-content {
        background: white;
        width: 100%;
        max-height: 100vh;
        overflow-y: auto;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            transform: translateY(-100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    .mobile-search-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 1rem 1rem;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .mobile-search-header h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--rs-nav-text);
        margin: 0;
    }
    
    .mobile-search-close {
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        color: #64748b;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s;
    }
    
    .mobile-search-close:active {
        color: var(--rs-purple);
    }
    
    .mobile-search-input-wrapper {
        padding: 1rem;
        position: relative;
    }
    
    .mobile-search-icon {
        position: absolute;
        left: 1.75rem;
        top: 1.875rem;
        color: #64748b;
        pointer-events: none;
        z-index: 1;
    }
    
    .mobile-search-input-wrapper input {
        width: 100%;
        padding: 14px 16px 14px 48px;
        background: #f8fafc;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 16px;
        color: var(--rs-nav-text);
        outline: none;
        transition: all 0.3s ease;
    }
    
    .mobile-search-input-wrapper input:focus {
        background: white;
        border-color: var(--rs-purple);
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    }
    
    .mobile-search-btn {
        width: 100%;
        padding: 14px 24px;
        margin-top: 0.75rem;
        background: linear-gradient(135deg, var(--rs-purple) 0%, #8b5cf6 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    }
    
    .mobile-search-btn:active {
        transform: translateY(1px);
        box-shadow: 0 2px 6px rgba(139, 92, 246, 0.4);
    }
    
    .dropdown-trigger {
        font-size: 13px;
        padding: 10px 14px;
        padding-right: 34px;
    }
    
    .dropdown-label {
        font-size: 13px;
    }
    
    .results-count {
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* Content Grid Mobile */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .knowledge-card.featured-bento {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .knowledge-card.featured-bento .card-image {
        height: 200px;
    }
    
    .knowledge-card.featured-bento .card-content {
        padding: 1.25rem;
    }
    
    .knowledge-card.featured-bento .card-title {
        font-size: 1.15rem;
    }
    
    .knowledge-card.featured-bento .card-excerpt {
        font-size: 0.9rem;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .content-type {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .category {
        font-size: 11px;
    }
    
    .card-footer {
        flex-wrap: wrap;
        gap: 0.75rem;
        font-size: 12px;
    }
    
    .content-library {
        padding: 2.5rem 0;
        padding-top: 180px;
    }
    
    .load-more-section {
        margin-top: 2.5rem;
    }
    
    .btn-load-more {
        font-size: 15px;
        padding: 14px 32px;
    }
}

@media (max-width: 480px) {
    .knowledge-hub-hero {
        padding: 90px 0 30px;
    }
    
    .knowledge-hub-hero h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .knowledge-hub-hero p {
        font-size: 15px;
    }
    
    .knowledge-search {
        margin-top: 1.5rem;
        padding: 0 !important;
    }
    
    .knowledge-search form {
        flex-direction: column;
        gap: 10px;
        padding: 6px;
        box-sizing: border-box;
    }
    
    .knowledge-search input {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
        box-sizing: border-box;
        border-radius: 12px;
    }
    
    .knowledge-search button {
        width: auto;
        min-width: 140px;
        max-width: fit-content;
        align-self: center;
        border-radius: 12px;
        padding: 12px 32px;
        box-sizing: border-box;
        white-space: nowrap;
    }
    
    .knowledge-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
        flex: 1 1 100%;
        padding: 1rem;
    }
    
    /* Featured Slider Extra Small */
    .featured-hero-slider {
        padding: 2rem 0 1.5rem;
    }
    
    .featured-header h2 {
        font-size: 1.25rem;
    }
    
    .recommendation-badge {
        font-size: 0.7rem;
    }
    
    .featured-slide {
        flex: 0 0 90%;
        max-width: 90%;
    }
    
    .featured-slide-image {
        height: 180px;
    }
    
    .featured-slide-content {
        padding: 1rem;
    }
    
    .featured-title {
        font-size: 1rem;
    }
    
    .featured-excerpt {
        font-size: 0.85rem;
    }
    
    /* Filter Bar Extra Small */
    .knowledge-filters {
        padding: 1rem 0;
    }
    
    .filter-search input {
        font-size: 14px;
        padding: 10px 14px 10px 36px;
    }
    
    .filter-search .search-icon {
        width: 16px;
        height: 16px;
        left: 12px;
    }
    
    .filter-dropdown {
        min-width: 0;
    }
    
    .dropdown-trigger {
        font-size: 12px;
        padding: 9px 12px;
        padding-right: 30px;
    }
    
    .dropdown-label {
        font-size: 12px;
    }
    
    .dropdown-arrow {
        width: 12px;
        height: 7px;
    }
    
    .results-count {
        font-size: 12px;
        padding: 0;
    }
    
    #results-number {
        font-weight: 600;
    }
    
    /* Content Cards Extra Small */
    .content-grid {
        gap: 1.25rem;
    }
    
    .knowledge-card {
        border-radius: 10px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .knowledge-card.featured-bento .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .knowledge-card.featured-bento .card-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .knowledge-card.featured-bento .card-title {
        font-size: 1.05rem;
    }
    
    .card-meta {
        gap: 0.4rem;
        margin-bottom: 0.5rem;
    }
    
    .content-type {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .category {
        font-size: 10px;
    }
    
    .card-excerpt {
        font-size: 0.85rem;
    }
    
    .card-footer {
        gap: 0.6rem;
        font-size: 11px;
    }
    
    .card-footer svg {
        width: 14px;
        height: 14px;
    }
    
    .difficulty-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .featured-badge,
    .sponsored-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    /* Load More Button */
    .content-library {
        padding: 2rem 0;
    }
    
    .load-more-section {
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .btn-load-more {
        width: 100%;
        font-size: 14px;
        padding: 12px 24px;
    }
    
    /* Container Padding */
    .knowledge-hub-page .container {
        padding: 0 1rem;
    }
}
        font-size: 12px;
        padding: 8px 14px;
    }
}