/* Knowledge Base List Page Styles */

/* Hero Search Section */
.knowledge-search-hero {
    max-width: 700px;
    margin: 0 auto;
}

.knowledge-search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:focus-within {
    border-color: #E95440;
    box-shadow: 0 0 0 4px rgba(233, 84, 64, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    font-size: 1.25rem;
    color: #999;
    z-index: 1;
    pointer-events: none;
}

.search-input-large {
    flex: 1;
    border: none;
    padding: 12px 100px 12px 50px;
    font-size: 15px;
    background: transparent;
    outline: none;
    color: #333;
    line-height: 1.5;
    min-width: 0;
    border-radius: 50px;
}

.search-input-large::placeholder {
    color: #999;
}

.knowledge-search-btn {
    position: absolute;
    right: 4px;
    padding: 8px 18px;
    border-radius: 50px !important;
    font-weight: 500;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.5;
    border: none;
    transition: all 0.3s ease;
    height: calc(100% - 8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn-large:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* Category Cards */
.knowledge-category-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.knowledge-category-card {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
}

.knowledge-category-card:hover {
    border-color: #E95440;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.knowledge-category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 12px;
    flex-shrink: 0;
}

.knowledge-category-icon i {
    font-size: 1.5rem;
    color: #E95440;
}

/* Article Cards */
.knowledge-article-link {
    text-decoration: none;
    display: block;
}

.knowledge-article-card {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fff;
}

.knowledge-article-card:hover {
    border-color: #E95440;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.knowledge-article-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 12px;
    flex-shrink: 0;
}

.knowledge-article-icon i {
    font-size: 1.5rem;
    color: #E95440;
}

/* Contact Section */
.knowledge-contact-section {
    margin-top: 60px;
}

.knowledge-contact-card {
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(233, 84, 64, 0.05) 0%, rgba(233, 84, 64, 0.02) 100%);
}

.knowledge-contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
}

.knowledge-contact-icon i {
    font-size: 2rem;
    color: #E95440;
}

/* Responsive */
@media (max-width: 768px) {
    .search-input-wrapper {
        flex-direction: column;
        border-radius: 12px;
        padding: 0;
    }
    
    .search-input-large {
        border-radius: 12px 12px 0 0;
        padding: 15px 20px;
    }
    
    .knowledge-search-btn {
        position: relative;
        width: 100%;
        border-radius: 0 0 12px 12px !important;
        padding: 15px;
        height: auto;
        right: auto;
    }
    
    .search-icon {
        left: 15px;
    }
}

/* Load More Button */
.btn-load-more {
    min-width: 200px;
    padding: 12px 30px;
    font-weight: 500;
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-load-more .btn-loading {
    display: inline-block;
}

.btn-load-more .btn-loading.d-none {
    display: none;
}

.btn-load-more .btn-text.d-none {
    display: none;
}

