/* Blog Hub (Knowledge base listing) */

/* === HERO (Command Center) === */
.hub-hero {
    background-color: var(--dark-bg);
    padding: 10rem 0 6rem 0;
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hub-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    pointer-events: none;
}
.hero-title { font-size: 3.5rem; margin-bottom: 2.5rem; line-height: 1.1; color: #fff !important; }
.hub-hero .search-wrapper { max-width: 600px; margin: 0 auto; position: relative; z-index: 2; }
.hub-hero input#kbSearch.main-search-input {
    width: 100% !important;
    display: block !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 4px !important;
    color: #333 !important;
    padding: 18px 25px 18px 55px !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
    -webkit-appearance: none;
    appearance: none;
}
.hub-hero input#kbSearch.main-search-input::placeholder { color: rgba(0,0,0,0.45) !important; }
.hub-hero input#kbSearch.main-search-input:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.3), 0 10px 40px rgba(0,0,0,0.4) !important;
}
.hub-hero .search-wrapper .search-icon,
.hub-hero .search-wrapper svg.search-icon {
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--primary-color) !important;
    pointer-events: none;
}

/* === TABS === */
.categories-nav-section {
    background: white; border-bottom: 1px solid #eee; padding: 2rem 0;
    position: sticky; top: 80px; z-index: 900;
}
.knowledge-tabs-container {
    display: inline-flex;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    flex-wrap: wrap;
    justify-content: center;
    background: white;
}
.knowledge-tab {
    padding: 1rem 2rem;
    border-right: 1px solid #eee;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.knowledge-tab:last-child { border-right: none; }
.knowledge-tab:hover, .knowledge-tab.active {
    background: var(--dark-bg);
    color: white;
    border-color: var(--dark-bg);
}
.knowledge-tab.active { border-color: var(--dark-bg); }
.knowledge-tab i, .knowledge-tab svg { margin-right: 8px; width: 18px; height: 18px; vertical-align: text-bottom; flex-shrink: 0; }

/* === CONTENT === */
.resources-section { padding: 4rem 0 6rem; background: #fff; }
.resource-card {
    background: white; border: 1px solid #eee; border-radius: 4px;
    display: flex; flex-direction: column; height: 100%; overflow: hidden;
    transition: all 0.2s; position: relative;
}
.resource-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}
.rc-img-container { height: 220px; overflow: hidden; position: relative; background: #0b0f19; }
.rc-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.resource-card:hover .rc-img { transform: scale(1.05); }
.rc-type {
    position: absolute; top: 12px; left: 12px;
    background: rgba(11, 15, 25, 0.9); color: white;
    padding: 4px 10px; border-radius: 2px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 5px;
}
.rc-type svg { width: 12px; height: 12px; }
.rc-body { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.rc-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: #999; margin-bottom: 1rem;
}
.rc-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.8rem; line-height: 1.4; color: #1a1a1a; }
.rc-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.rc-title a:hover { color: var(--primary-color); }
.rc-desc { font-size: 0.95rem; color: #666; margin-bottom: 1.5rem; flex-grow: 1; line-height: 1.6; }
.rc-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid #f9f9f9; display: flex; align-items: center; justify-content: space-between; }
.read-link { color: var(--primary-color); font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.read-link:hover { text-decoration: underline; }
.read-link svg { width: 14px; height: 14px; }

/* === NEWSLETTER STRIP (match home.php) === */
.nl-strip {
    background: #050505; color: white; border-radius: 4px; padding: 3rem;
    display: flex; align-items: center; justify-content: space-between;
    margin: 3rem 0; position: relative; overflow: hidden;
    border-left: 4px solid var(--warning-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.nl-strip::before {
    content: ''; position: absolute; right: 0; top: 0; width: 300px; height: 100%;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px);
}
.nl-content { position: relative; z-index: 2; max-width: 500px; }
.nl-head { color: white; font-weight: 700; font-size: 1.5rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }
.nl-head svg { color: var(--warning-color); width: 24px; height: 24px; }
.nl-text { color: rgba(255,255,255,0.6); margin-bottom: 0; }
.nl-form-wrap { position: relative; z-index: 2; width: 100%; max-width: 420px; }
.nl-strip #eshield-newsletter-form { width: 100%; max-width: 420px; margin: 0; }
.nl-strip #eshield-newsletter-form .d-flex.gap-2 { width: 100%; display: flex; gap: 10px; }
.nl-strip #eshield-newsletter-form .newsletter-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.92) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.92);
    padding: 12px 15px;
    border-radius: 2px;
    width: 100%;
}
.nl-strip #eshield-newsletter-form .newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.nl-strip #eshield-newsletter-form .newsletter-input:focus { outline: none; border-color: var(--primary-color); }
.nl-strip #eshield-newsletter-form .btn-newsletter {
    background: var(--warning-color);
    color: white;
    border: none;
    padding: 0 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 2px;
    white-space: nowrap;
    cursor: pointer;
    letter-spacing: 1px;
}
.nl-strip #eshield-newsletter-form .btn-newsletter:hover { background: #e64100; }
.nl-strip #eshield-newsletter-form label { color: rgba(255,255,255,0.75) !important; }

.pagination-area { text-align: center; margin-top: 4rem; }
.pagination-area .nav-links { display: inline-flex; gap: 8px; }
.pagination-area .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 16px;
    background: white; border: 1px solid #1a1a1a; color: #1a1a1a;
    font-weight: 700; font-size: 0.9rem; text-decoration: none;
    transition: all 0.2s;
}
.pagination-area .page-numbers:hover,
.pagination-area .page-numbers.current {
    background: #1a1a1a; color: white;
}

@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .hub-hero { padding: 8rem 0 4rem; }
    .knowledge-tabs-container { display: flex; flex-direction: column; width: 100%; border-radius: 0; }
    .knowledge-tab { border-right: none; border-bottom: 1px solid #eee; width: 100%; justify-content: center; }
    .categories-nav-section { top: 60px; }
    .nl-strip { flex-direction: column; text-align: center; gap: 2rem; }
    .nl-form-wrap { width: 100%; max-width: 100%; }
    .nl-strip #eshield-newsletter-form { max-width: 100%; }
    .nl-strip #eshield-newsletter-form .d-flex.gap-2 { flex-direction: column; }
    .nl-strip #eshield-newsletter-form .btn-newsletter { padding: 12px 25px; width: 100%; }
}

