.knowledgeBasePage {
    --kb-blue: #2563eb;
    --kb-blue-dark: #1d4ed8;
    --kb-blue-soft: #eff6ff;
    --kb-green: #16a34a;
    --kb-ink: #0f172a;
    --kb-muted: #64748b;
    --kb-line: #e2e8f0;
    --kb-bg: #f8fafc;
    --kb-surface: #ffffff;
    --kb-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
    color: var(--kb-ink);
    flex: 1;
    padding: 30px 0 42px;
}

.knowledgeBasePage * {
    box-sizing: border-box;
}

.kbShell,
.kbArticleShell {
    width: min(100% - 40px, var(--app-content-width, 1320px));
    max-width: var(--app-content-width, 1320px);
    padding-right: 0;
    padding-left: 0;
    margin: 0 auto;
}

.kbHero,
.kbArticleHero {
    padding: 0 0 18px;
}

.kbHero .kbShell,
.kbArticleHeaderInner {
    display: grid;
    gap: 16px;
}

.kbHero h1,
.kbArticleHero h1 {
    max-width: 880px;
    margin: 0;
    color: var(--kb-ink);
    font-size: clamp(2.35rem, 6vw, 4.25rem);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: 0;
}

.kbHero p,
.kbArticleHero p {
    max-width: 720px;
    margin: 0;
    color: #334155;
    font-size: 1.15rem;
    line-height: 1.7;
}

.kbArticleTitleGroup {
    display: grid;
    gap: 12px;
}

.kbKicker {
    display: inline-flex;
    width: fit-content;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: var(--kb-blue-soft);
    color: var(--kb-blue-dark);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 9px 12px;
    text-transform: uppercase;
}

.kbSection,
.kbArticleSection {
    padding: 18px 0;
}

.kbSectionHeader {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.kbSectionHeader h2 {
    margin: 12px 0 0;
    color: var(--kb-ink);
    font-size: clamp(1.65rem, 4vw, 2.45rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.1;
}

.kbCount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #ffffff;
    color: var(--kb-blue);
    font-weight: 850;
    box-shadow: inset 0 0 0 1px var(--kb-line);
}

.kbGrid {
    display: grid;
    gap: 16px;
}

.kbCard {
    min-height: 250px;
    border: 1px solid var(--kb-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--kb-shadow);
    overflow: hidden;
}

.kbCard a {
    display: grid;
    align-content: start;
    min-height: 100%;
    padding: 24px;
    color: inherit;
    text-decoration: none;
}

.kbCardMeta,
.kbArticleMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--kb-blue-dark);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.4;
}

.kbCard h3 {
    margin: 18px 0 0;
    color: var(--kb-ink);
    font-size: 1.2rem;
    font-weight: 850;
    line-height: 1.25;
}

.kbCard p {
    margin: 12px 0 0;
    color: var(--kb-muted);
    line-height: 1.7;
}

.kbReadMore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--kb-blue);
    font-weight: 850;
}

.kbCard:hover .kbReadMore i {
    transform: translateX(3px);
}

.kbReadMore i {
    transition: transform 0.18s ease;
}

.kbEmpty {
    padding: 28px;
    border: 1px solid var(--kb-line);
    border-radius: 22px;
    background: #ffffff;
    color: var(--kb-muted);
}

.kbCta,
.kbArticleCta {
    display: grid;
    gap: 20px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.96));
    box-shadow: var(--kb-shadow);
}

.kbCta h2,
.kbArticleCta h2 {
    margin: 12px 0 0;
    color: var(--kb-ink);
    font-size: clamp(1.55rem, 4vw, 2.25rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.12;
}

.kbCta p,
.kbArticleCta p {
    max-width: 650px;
    margin: 12px 0 0;
    color: var(--kb-muted);
    line-height: 1.7;
}

.kbButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    width: fit-content;
    border-radius: 999px;
    padding: 14px 22px;
    background: var(--kb-blue);
    color: #ffffff;
    font-weight: 850;
    line-height: 1.15;
    text-decoration: none;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
}

.kbButton:hover {
    background: var(--kb-blue-dark);
    color: #ffffff;
}

.kbBackLink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--kb-blue);
    font-weight: 850;
    text-decoration: none;
}

.kbArticleContent {
    padding: 34px;
    border: 1px solid var(--kb-line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--kb-shadow);
}

.kbArticleContent h2,
.kbArticleContent h3,
.kbArticleContent h4 {
    margin: 34px 0 14px;
    color: var(--kb-ink);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.18;
}

.kbArticleContent h2:first-child,
.kbArticleContent h3:first-child {
    margin-top: 0;
}

.kbArticleContent h2 {
    font-size: 1.75rem;
}

.kbArticleContent h3 {
    font-size: 1.32rem;
}

.kbArticleContent p,
.kbArticleContent li {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.8;
}

.kbArticleContent p {
    margin: 0 0 18px;
}

.kbArticleContent ul {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding-left: 1.25rem;
}

.kbArticleContent a {
    color: var(--kb-blue);
    font-weight: 750;
}

.kbArticleContent strong {
    color: var(--kb-ink);
}

.kbArticleCta,
.kbRelated {
    margin-top: 28px;
}

.kbCtaSection {
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .kbGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kbCta {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (min-width: 1100px) {
    .kbGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .kbShell,
    .kbArticleShell {
        max-width: 1140px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .kbShell,
    .kbArticleShell {
        max-width: 960px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .kbShell,
    .kbArticleShell {
        max-width: 720px;
    }
}

@media (max-width: 575.98px) {
    .knowledgeBasePage {
        padding: 14px 0 28px;
    }

    .kbShell,
    .kbArticleShell {
        width: min(100% - 24px, var(--app-content-width, 1320px));
    }

    .kbHero,
    .kbArticleHero {
        padding: 0 0 14px;
    }

    .kbSection,
    .kbArticleSection {
        padding: 14px 0;
    }

    .kbSectionHeader {
        align-items: start;
    }

    .kbCard a,
    .kbArticleContent,
    .kbCta,
    .kbArticleCta {
        padding: 22px;
    }

    .kbButton {
        width: 100%;
    }
}
