/* ═══════════════════════════════════════════════════════════════
   Knowledge Hub — Frontend Styles
   Matches the blue/white design from the reference screenshot
═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
.kh-wrap * { box-sizing: border-box; }
.kh-wrap { font-family: inherit; color: #1E293B; }

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.kh-hero {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 50%, #EFF6FF 100%);
    border-radius: 16px;
    padding: 48px 32px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kh-hero__deco {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: .8;
}
.kh-hero__deco--left  { left:  24px; width: 100px; }
.kh-hero__deco--right { right: 24px; width: 110px; }
@media (max-width: 600px) {
    .kh-hero__deco { display: none; }
}

.kh-hero__content { position: relative; z-index: 2; max-width: 680px; }

.kh-hero__badge {
    display: inline-block;
    background: #2563EB;
    color: #fff;
    
    font-weight: 700;
    letter-spacing: .12em;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.kh-hero__title {
    
    font-weight: 800;
    color: #0F172A;
    line-height: 1.15;
    margin: 0 0 12px;
}
.kh-hero__sub {
    color: #475569;
    
    line-height: 1.6;
    margin: 0 0 28px;
}

/* ── Search ─────────────────────────────────────────────────────────────────── */
.kh-search-form { width: 100%; }
.kh-search-inner {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    padding: 6px 6px 6px 14px;
    max-width: 620px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(37,99,235,.08);
}
.kh-search-icon { display: flex; align-items: center; margin-right: 8px; flex-shrink: 0; }
.kh-search-input {
    flex: 1;
    border: none;
    outline: none;
    
    color: #374151;
    background: transparent;
    padding: 4px 0;
}
.kh-search-input::placeholder { color: #94A3B8; }
.kh-search-btn {
    background: #2563EB;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 7px;
    
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}
.kh-search-btn:hover { background: #1D4ED8; }

/* ── Filter Tabs ─────────────────────────────────────────────────────────────── */
.kh-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 28px;
}
.kh-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 8px;
    
    font-weight: 500;
    color: #475569;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    text-decoration: none;
    transition: all .2s;
}
.kh-filter-btn:hover { border-color: #2563EB; color: #2563EB; background: #EFF6FF; }
.kh-filter-btn.active { background: #2563EB; color: #fff; border-color: #2563EB; }

/* ── Grid ─────────────────────────────────────────────────────────────────────── */
.kh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

/* ── Card ─────────────────────────────────────────────────────────────────────── */
.kh-card {
    background: #fff;
    border: 1.5px solid #E9F0FB;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(37,99,235,.06);
    transition: box-shadow .2s, transform .2s;
}
.kh-card:hover {
    box-shadow: 0 8px 28px rgba(37,99,235,.13);
    transform: translateY(-2px);
}

.kh-card__thumb {
    width: 100%;
    height: 180px;
    background: #F1F5F9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.kh-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.kh-card__no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.kh-card__body {
    padding: 16px 18px 8px;
    flex: 1;
}
.kh-badge {
    display: inline-block;
    
    font-weight: 700;
    letter-spacing: .1em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.kh-badge--ebook { background: #EFF6FF; color: #2563EB; }
.kh-badge--case  { background: #F5F3FF; color: #7C3AED; }

.kh-card__title {
    
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 8px;
    line-height: 1.3;
}
.kh-card__desc {
    
    color: #64748B;
    line-height: 1.55;
    margin: 0;
}

.kh-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 16px;
    border-top: 1px solid #F1F5F9;
    margin-top: 12px;
    gap: 10px;
    flex-wrap: wrap;
}
.kh-card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    
    color: #94A3B8;
    font-weight: 500;
}

/* ── Download Button ─────────────────────────────────────────────────────────── */
.kh-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #2563EB;
    border: 1.5px solid #2563EB;
    padding: 8px 16px;
    border-radius: 8px;
    
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.kh-download-btn:hover { background: #2563EB; color: #fff; }
.kh-download-btn--disabled { border-color: #CBD5E1; color: #94A3B8; cursor: default; }

/* ── Pagination ──────────────────────────────────────────────────────────────── */
.kh-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 44px;
}
.kh-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    
    font-weight: 500;
    text-decoration: none;
    color: #475569;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    transition: all .2s;
}
.kh-page-btn:hover, .kh-page-btn.active {
    background: #2563EB;
    color: #fff;
    border-color: #2563EB;
}
.kh-page-btn--nav {  }
.kh-page-ellipsis { color: #94A3B8; padding: 0 4px; line-height: 38px; }

/* ── Empty State ─────────────────────────────────────────────────────────────── */
.kh-empty {
    text-align: center;
    padding: 64px 24px;
    color: #94A3B8;
}
.kh-empty p { margin-top: 16px;  }

/* ── Features Bar ─────────────────────────────────────────────────────────────── */
.kh-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 32px 24px;
    background: #F8FAFC;
    border-radius: 14px;
    margin-top: 8px;
}
.kh-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.kh-feature__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kh-feature__icon--blue   { background: #EFF6FF; }
.kh-feature__icon--green  { background: #F0FDF4; }
.kh-feature__icon--purple { background: #F5F3FF; }
.kh-feature__icon--yellow { background: #FFFBEB; }
.kh-feature strong { display: block;  font-weight: 700; color: #1E293B; margin-bottom: 3px; }
.kh-feature p { margin: 0;  color: #64748B; line-height: 1.4; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .kh-hero { padding: 36px 20px 32px; }
    .kh-grid { grid-template-columns: 1fr; }
    .kh-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .kh-features { grid-template-columns: 1fr; }
    .kh-filter-btn {  padding: 8px 16px; }
}

.kh-features{display:none!important;}
.kh-pdf-icon-wrap{display:flex;justify-content:center;align-items:center;padding:20px;}
.kh-pdf-icon{width:100px;height:100px;}
