/* =======================================================
   XaaS TECHS – KNOWLEDGE BASE (Enterprise Style)
   Clean Blue/White MSP Visual Language
======================================================= */

/* ---------- GLOBAL WRAPPER ---------- */
.xaas-kb-archive-hero {
    background: #f5f8ff;
    border-bottom: 1px solid #e3e8f2;
    padding: 60px 0 50px;
    text-align: center;
}

.xaas-kb-archive-title {
    font-size: 38px;
    font-weight: 800;
    color: #0b1a33;
    margin-bottom: 12px;
}

.xaas-kb-archive-sub {
    font-size: 18px;
    color: #445;
    max-width: 680px;
    margin: 0 auto 25px;
}

.xaas-kb-back {
    display: inline-block;
    font-size: 15px;
    color: #245bbf;
    font-weight: 600;
    margin-top: 10px;
    text-decoration: none;
}
.xaas-kb-back:hover {
    text-decoration: underline;
}


/* ---------- MAIN GRID ---------- */
.xaas-kb-archive-wrapper {
    padding: 50px 0;
}

.xaas-kb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 30px;
}


/* ---------- KB CARD ---------- */
.xaas-kb-card {
    background: #ffffff;
    border: 1px solid #e6e9f0;
    border-radius: 14px;
    padding: 24px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.xaas-kb-card:hover {
    border-color: #bcd3ff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.xaas-kb-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.xaas-kb-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0b1a33;
}

.xaas-kb-card-excerpt {
    font-size: 16px;
    color: #5a5f6d;
    margin-bottom: 18px;
    line-height: 1.55;
}


/* ---------- META ---------- */
.xaas-kb-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c7280;
    font-size: 14px;
}

.xaas-kb-card-tag {
    background: #e6f0ff;
    color: #1451b8;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.xaas-kb-card-date {
    font-size: 13px;
    color: #7b7f88;
}


/* ---------- EMPTY STATE ---------- */
.xaas-kb-empty {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #6c7280;
}


/* ---------- PAGINATION ---------- */
.xaas-kb-pagination {
    margin-top: 40px;
    text-align: center;
}

.xaas-kb-pagination a,
.xaas-kb-pagination span {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 4px;
    border-radius: 8px;
    border: 1px solid #d4d9e4;
    color: #245bbf;
    font-size: 15px;
    text-decoration: none;
    background: white;
}

.xaas-kb-pagination a:hover {
    border-color: #98b9ff;
}

.xaas-kb-pagination .current {
    background: #245bbf;
    color: #fff;
    border-color: #245bbf;
}


/* =======================================================
   SINGLE KB ARTICLE
======================================================= */

.xaas-kb-single-hero {
    background: #f4f7ff;
    padding: 60px 0 50px;
    border-bottom: 1px solid #e3e8f2;
}

.xaas-kb-single-title {
    font-size: 42px;
    font-weight: 800;
    max-width: 850px;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #0b1a33;
}

.xaas-kb-single-meta {
    font-size: 15px;
    color: #4a4f58;
}

.xaas-kb-single-meta span {
    margin-right: 16px;
}


/* ---------- CONTENT STYLING ---------- */
.xaas-kb-content-wrapper {
    padding: 50px 0;
}

.xaas-kb-content {
    max-width: 850px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.65;
    color: #2c2f36;
}

.xaas-kb-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 800;
}

.xaas-kb-content h3 {
    margin-top: 30px;
    font-size: 22px;
    font-weight: 700;
}

.xaas-kb-content p {
    margin-bottom: 20px;
}

.xaas-kb-content ul,
.xaas-kb-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.xaas-kb-content blockquote {
    border-left: 4px solid #1f5bd0;
    padding-left: 18px;
    margin: 25px 0;
    font-style: italic;
    color: #556;
}


/* =======================================================
   MOBILE
======================================================= */
@media (max-width: 768px) {
    .xaas-kb-archive-title {
        font-size: 30px;
    }

    .xaas-kb-single-title {
        font-size: 32px;
    }
}
/* =======================================================
   KB SIDEBAR LAYOUT
======================================================= */

.xaas-kb-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
}

/* Sidebar Container */
.xaas-kb-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

/* Sidebar Box */
.xaas-kb-sidebar-box {
    background: #ffffff;
    border: 1px solid #e5e9f2;
    padding: 22px 24px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.xaas-kb-sidebar-box h3 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
}

/* Related articles list */
.xaas-kb-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xaas-kb-related-list li {
    margin-bottom: 12px;
    line-height: 1.45;
}

.xaas-kb-related-list a {
    color: #1f5bd0;
    font-weight: 600;
    text-decoration: none;
}
.xaas-kb-related-list a:hover {
    text-decoration: underline;
}

/* Sidebar CTA */
.xaas-kb-sidebar-cta {
    background: linear-gradient(135deg, #0d47b5, #1a73e8);
    padding: 22px;
    color: white;
    border-radius: 12px;
}

.xaas-kb-sidebar-cta h4 {
    margin-bottom: 8px;
    font-size: 20px;
}

.xaas-kb-sidebar-cta p {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 15px;
}

/* MOBILE STACK */
@media (max-width: 900px) {
    .xaas-kb-layout {
        grid-template-columns: 1fr;
    }
    .xaas-kb-sidebar {
        position: static;
    }
}
