/**
 * KitapBölümü — Design System
 * Palette: Deep Navy (#050d1a) + Blue (#2563eb) + Amber (#f59e0b)
 */

/* ── Font ──────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
    /* Navy (hero, navbar) */
    --navy-950: #050d1a;
    --navy-900: #0a1628;
    --navy-800: #0f2040;

    /* Blue (primary interactive) */
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-100: #dbeafe;
    --blue-50:  #eff6ff;

    /* Amber (CTA accent) */
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-50:  #fffbeb;

    /* Gray scale (all text and surfaces) */
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50:  #f9fafb;
    --white:    #ffffff;

    /* Semantic */
    --success:     #059669;
    --success-bg:  #d1fae5;
    --danger:      #dc2626;
    --danger-bg:   #fee2e2;
    --warning:     #d97706;
    --warning-bg:  #fef3c7;
    --info:        #0284c7;
    --info-bg:     #e0f2fe;

    /* Spacing / Shape */
    --radius-sm:  6px;
    --radius:    10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow:    0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,.1), 0 8px 32px rgba(0,0,0,.07);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.14);

    /* Shorthand for inline styles */
    --kb-bg: #f9fafb;

    /* Bootstrap overrides */
    --bs-primary:           #2563eb;
    --bs-primary-rgb:       37, 99, 235;
    --bs-body-font-family:  'Inter', system-ui, -apple-system, sans-serif;
    --bs-body-bg:           #f9fafb;
    --bs-body-color:        #111827;
    --bs-secondary-color:   #6b7280;
    --bs-border-color:      #e5e7eb;
    --bs-link-color:        #2563eb;
    --bs-link-hover-color:  #1d4ed8;
}

/* ── Base & Typography ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: .9375rem;
    line-height: 1.65;
    color: #111827;
    background-color: #f9fafb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, h3, h4, h5, h6 {
    color: #111827;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.018em;
}

p { color: #374151; margin-bottom: 1rem; }

a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; }

/* ── Bootstrap Primary Override ────────────────────────────────────────────── */
.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
    font-weight: 600;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active { background-color: #1d4ed8; border-color: #1d4ed8; color: #fff; }

.btn-outline-primary { color: #2563eb; border-color: #2563eb; font-weight: 600; }
.btn-outline-primary:hover { background-color: #2563eb; border-color: #2563eb; color: #fff; }

.text-primary   { color: #2563eb !important; }
.bg-primary     { background-color: #2563eb !important; }
.border-primary { border-color: #2563eb !important; }
.badge.bg-primary { background-color: #2563eb !important; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
    font-weight: 600;
    border-radius: 8px;
    font-size: .875rem;
    letter-spacing: -.005em;
    transition: all .15s ease;
}
.btn-lg { font-size: .9375rem; padding: .625rem 1.375rem; }
.btn-sm { font-size: .8125rem; }

/* Amber / accent CTA */
.btn-accent {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #1c1400;
    font-weight: 700;
}
.btn-accent:hover { background-color: #d97706; border-color: #d97706; color: #1c1400; }

/* ── App Navbar (logged-in) ────────────────────────────────────────────────── */
.kb-navbar {
    background-color: #0a1628 !important;
    border-bottom: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.kb-navbar .navbar-brand {
    color: #fff !important;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -.02em;
}
.kb-navbar .nav-link {
    color: rgba(255,255,255,.72) !important;
    font-size: .875rem;
    font-weight: 500;
    padding: .375rem .65rem;
    border-radius: 6px;
    transition: color .12s, background .12s;
}
.kb-navbar .nav-link:hover,
.kb-navbar .nav-link:focus { color: #fff !important; background: rgba(255,255,255,.09); }
.kb-navbar .nav-link.active { color: #fff !important; }
.kb-navbar .dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    margin-top: 6px;
    padding: .375rem;
}
.kb-navbar .dropdown-item {
    border-radius: 7px;
    font-size: .875rem;
    color: #374151;
    padding: .5rem .75rem;
    transition: background .1s;
}
.kb-navbar .dropdown-item:hover { background: #f3f4f6; color: #111827; }
.kb-navbar .badge { font-size: .6rem; }

/* Editor / Admin color variants */
.navbar-editor-link { color: #fcd34d !important; }
.navbar-editor-link:hover { color: #fde68a !important; background: rgba(251,191,36,.1) !important; }

.navbar-admin-link {
    color: #fca5a5 !important;
    background: rgba(220,38,38,.2) !important;
    border-radius: 6px;
}
.navbar-admin-link:hover,
.navbar-admin-item.show .navbar-admin-link { color: #fff !important; background: rgba(220,38,38,.38) !important; }

.dropdown-menu-admin { border-top: 2px solid #dc2626; }
.dropdown-menu-admin .dropdown-item:hover { background: #fee2e2; color: #991b1b; }

/* ── Public Navbar (landing, blog) ─────────────────────────────────────────── */
.kb-public-nav {
    background: rgba(10,22,40,.97) !important;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.kb-public-nav .navbar-brand {
    color: #fff !important;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -.02em;
}
.kb-public-nav .nav-link {
    color: rgba(255,255,255,.75) !important;
    font-size: .875rem;
    font-weight: 500;
    padding: .4rem .65rem;
    border-radius: 6px;
    transition: color .12s, background .12s;
}
.kb-public-nav .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.09); }
.kb-public-nav .nav-link.active { color: #fff !important; }
.kb-public-nav .dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    margin-top: 6px;
}
.kb-public-nav .dropdown-item { color: #374151; font-size: .875rem; }
.kb-public-nav .dropdown-item:hover { background: #f3f4f6; color: #111827; }
.kb-public-nav .input-group-text { border-color: #d1d5db; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    background: #fff;
}
.card-title { color: #111827; }
.card-text  { color: #374151; }

/* Stat cards */
.stat-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    background: #fff;
    transition: transform .18s, box-shadow .18s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37,99,235,.1), 0 2px 8px rgba(0,0,0,.05);
}
.stat-card .card-body   { padding: 1.375rem; }
.stat-card .stat-number { font-size: 1.875rem; font-weight: 800; color: #111827; letter-spacing: -.03em; }
.stat-card .stat-label  { font-size: .73rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .06em; }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.badge {
    font-size: .7rem;
    font-weight: 600;
    padding: .3em .65em;
    border-radius: 5px;
    letter-spacing: .01em;
}

/* ── Tables ────────────────────────────────────────────────────────────────── */
.table { color: #374151; border-color: #e5e7eb; }
.table th {
    font-weight: 600;
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
    padding: .75rem 1rem;
    background: #f9fafb;
}
.table td {
    vertical-align: middle;
    font-size: .875rem;
    color: #374151;
    padding: .75rem 1rem;
    border-color: #f3f4f6;
}
.table-hover tbody tr { cursor: pointer; transition: background .1s; }
.table-hover tbody tr:hover { background: #eff6ff; }

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.sidebar { min-height: calc(100vh - 120px); }
.sidebar .list-group-item {
    border: none;
    padding: .5rem .875rem;
    font-size: .875rem;
    color: #374151;
    border-radius: 8px;
    margin-bottom: 1px;
    transition: background .12s, color .12s;
}
.sidebar .list-group-item:hover { background: #eff6ff; color: #1d4ed8; }
.sidebar .list-group-item.active { background: #2563eb; color: #fff; }

.sidebar .sidebar-admin-label {
    background: #fee2e2;
    color: #991b1b;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: .4rem .875rem;
    border-left: 3px solid #dc2626;
    border-radius: 4px;
}
.sidebar .sidebar-admin-item {
    background: #fffafa;
    border-left: 3px solid #dc2626 !important;
}
.sidebar .sidebar-admin-item:hover  { background: #fee2e2; color: #991b1b; }
.sidebar .sidebar-admin-item.active { background: #dc2626; color: #fff; border-left-color: #b91c1c !important; }

/* ── Timeline ──────────────────────────────────────────────────────────────── */
.timeline { position: relative; padding: 0; list-style: none; }
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 20px;
    width: 2px;
    background: #e5e7eb;
}
.timeline-item { position: relative; padding-left: 50px; margin-bottom: 1.5rem; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: 14px; top: 4px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #2563eb;
}
.timeline-item.completed::before { background: #059669; box-shadow: 0 0 0 2px #059669; }
.timeline-item.current::before   { background: #f59e0b; box-shadow: 0 0 0 2px #f59e0b; animation: kb-pulse 2s infinite; }
@keyframes kb-pulse {
    0%, 100% { box-shadow: 0 0 0 2px #f59e0b; }
    50%       { box-shadow: 0 0 0 6px rgba(245,158,11,.25); }
}
.timeline-date    { font-size: .78rem; color: #6b7280; }
.timeline-content { font-size: .875rem; color: #374151; }

/* ── File Drop Zone ────────────────────────────────────────────────────────── */
.file-drop-zone {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #f9fafb;
}
.file-drop-zone:hover,
.file-drop-zone.dragover { border-color: #2563eb; background: #eff6ff; }
.file-drop-zone .icon { font-size: 2.5rem; color: #9ca3af; margin-bottom: .5rem; }
.file-drop-zone.dragover .icon { color: #2563eb; }

/* ── Notifications ─────────────────────────────────────────────────────────── */
.notification-item {
    border-bottom: 1px solid #f3f4f6;
    padding: .75rem 1rem;
    transition: background .1s;
}
.notification-item:hover { background: #f9fafb; }
.notification-item.unread { background: #eff6ff; border-left: 3px solid #2563eb; }
.notification-item .time  { font-size: .72rem; color: #9ca3af; }

/* ── Messages ──────────────────────────────────────────────────────────────── */
.message-bubble {
    max-width: 75%;
    padding: .65rem .95rem;
    border-radius: 14px;
    margin-bottom: .5rem;
    font-size: .875rem;
    line-height: 1.5;
}
.message-bubble.sent {
    background: #2563eb;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.message-bubble.received {
    background: #f3f4f6;
    color: #374151;
    border-bottom-left-radius: 4px;
}
.message-bubble .time { font-size: .68rem; opacity: .65; }

/* ── Loading ───────────────────────────────────────────────────────────────── */
.loading-overlay {
    position: fixed; inset: 0;
    background: rgba(255,255,255,.85);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}

/* ── Auth Pages ────────────────────────────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at 72% 42%, rgba(37,99,235,.18) 0%, transparent 55%),
        radial-gradient(ellipse at 18% 78%, rgba(10,22,40,.4)   0%, transparent 52%),
        linear-gradient(145deg, #050d1a 0%, #0a1628 50%, #0f2040 100%);
    position: relative; overflow: hidden;
}
.auth-row { min-height: 100vh; position: relative; z-index: 1; }
.auth-card {
    width: 100%; max-width: 440px;
    border: none; border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.2);
    margin: 0 auto; background: #fff;
}
.auth-card .card-header {
    background: none; border-bottom: none;
    text-align: center; padding: 2rem 2rem 0;
}
.auth-card .card-header p { display: none; }
@media (max-width: 991.98px) {
    .auth-card .card-header p { display: block; color: #374151; }
}
.auth-card .card-body  { padding: 1.5rem 2rem 2rem; }
.auth-card .card-footer {
    background: #f9fafb; border-top: 1px solid #e5e7eb;
    text-align: center; padding: 1rem;
    border-radius: 0 0 18px 18px;
}

/* Auth promo panel */
.auth-promo       { color: #fff; padding: 2rem 1rem 2rem 0; }
.auth-brand       { display: inline-block; color: #fff !important; font-size: 1.4rem; font-weight: 800; text-decoration: none !important; margin-bottom: 2rem; }
.auth-brand-mobile { display: inline-block; color: #fff !important; font-size: 1.2rem; font-weight: 800; text-decoration: none !important; }
.auth-promo-title { font-size: 1.75rem; font-weight: 800; line-height: 1.25; margin-bottom: 1rem; color: #fff; }
.auth-promo-desc  { font-size: .9rem; line-height: 1.7; margin-bottom: 2rem; color: rgba(255,255,255,.78); }
.auth-features    { display: flex; flex-direction: column; gap: 1.25rem; }
.auth-feature     { display: flex; align-items: flex-start; gap: .75rem; }
.auth-feature-icon {
    width: 40px; height: 40px; min-width: 40px;
    background: rgba(255,255,255,.1); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #93c5fd;
}
.auth-feature strong { display: block; font-size: .875rem; margin-bottom: .1rem; color: #fff; }
.auth-feature p      { font-size: .8rem; opacity: .72; margin: 0; line-height: 1.45; color: rgba(255,255,255,.72); }

.auth-lang-switch { display: inline-flex; gap: .5rem; align-items: center; }
.auth-lang-switch .lang-switch {
    color: rgba(255,255,255,.45);
    text-decoration: none !important;
    font-size: .8rem; font-weight: 600;
    transition: color .15s;
}
.auth-lang-switch .lang-switch:hover,
.auth-lang-switch .lang-switch.active { color: #fff; }

/* ── Hero Sections ─────────────────────────────────────────────────────────── */
.kb-hero {
    background:
        radial-gradient(ellipse at 68% 42%, rgba(59,130,246,.2) 0%, transparent 52%),
        radial-gradient(ellipse at 14% 84%, rgba(10,22,40,.45)  0%, transparent 50%),
        linear-gradient(145deg, #050d1a 0%, #0a1628 55%, #0f2040 100%);
    color: #fff;
    padding: 90px 0 80px;
    overflow: hidden;
}
/* Explicit white text for everything inside hero */
.kb-hero,
.kb-hero h1,
.kb-hero h2,
.kb-hero h3,
.kb-hero h4,
.kb-hero p,
.kb-hero span { color: #fff; }
.kb-hero .lead { color: rgba(255,255,255,.82); font-size: 1.075rem; }
.kb-hero h1    { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }

.kb-blog-hero {
    background:
        radial-gradient(ellipse at 72% 40%, rgba(59,130,246,.18) 0%, transparent 52%),
        linear-gradient(145deg, #050d1a 0%, #0a1628 55%, #0f2040 100%);
    color: #fff;
    padding: 56px 0 48px;
}
.kb-blog-hero,
.kb-blog-hero h1,
.kb-blog-hero h2,
.kb-blog-hero p,
.kb-blog-hero span { color: #fff; }
.kb-blog-hero h1   { font-size: 2rem; font-weight: 800; }
.kb-blog-hero .text-white-50 { color: rgba(255,255,255,.5) !important; }
.kb-blog-hero .opacity-75    { opacity: .75; }

/* Breadcrumb in dark hero */
.kb-blog-hero .breadcrumb-item a { color: rgba(255,255,255,.55); }
.kb-blog-hero .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.kb-blog-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

/* ── Audience Cards (hero) ─────────────────────────────────────────────────── */
.audience-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px;
    padding: 1.75rem;
    transition: background .2s, transform .2s, border-color .2s;
    text-decoration: none !important;
    display: block;
    height: 100%;
}
.audience-card:hover {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.28);
    transform: translateY(-4px);
}
.audience-card,
.audience-card h4,
.audience-card p,
.audience-card span { color: #fff !important; }
.audience-card .icon-wrap {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: .875rem;
}
.audience-card h4 { font-weight: 700; font-size: 1.05rem; margin-bottom: .375rem; }
.audience-card p  { opacity: .78; font-size: .875rem; margin-bottom: .875rem; }
.audience-card .arrow-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    font-weight: 600; font-size: .875rem;
}

/* Trust strip */
.kb-trust-strip { color: rgba(255,255,255,.55) !important; font-size: .82rem; }
.kb-trust-strip span,
.kb-trust-strip a { color: rgba(255,255,255,.55) !important; }
.kb-trust-strip a:hover { color: rgba(255,255,255,.8) !important; }

/* ── Feature Cards ─────────────────────────────────────────────────────────── */
.kb-feature-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    padding: 1.75rem;
    height: 100%;
    background: #fff;
    transition: transform .18s, box-shadow .18s;
}
.kb-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37,99,235,.09), 0 2px 8px rgba(0,0,0,.06);
}
.kb-feature-card h5 { color: #111827; font-weight: 700; margin-bottom: .375rem; }
.kb-feature-card p  { color: #6b7280; font-size: .875rem; margin-bottom: 0; }
.kb-feature-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.375rem;
    margin-bottom: .875rem;
}

/* ── Pricing Cards ─────────────────────────────────────────────────────────── */
.kb-pricing-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    transition: box-shadow .18s;
}
.kb-pricing-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.kb-pricing-card.featured {
    border: 2px solid #2563eb;
    box-shadow: 0 4px 16px rgba(37,99,235,.15), 0 8px 32px rgba(37,99,235,.07);
}
.kb-pricing-card h5 { color: #111827; font-weight: 700; }
.kb-pricing-card p  { color: #6b7280; }
.kb-pricing-card li { color: #374151; }
.pricing-price { font-size: 2rem; font-weight: 800; color: #111827; letter-spacing: -.03em; }

/* ── CTA Section ───────────────────────────────────────────────────────────── */
.kb-cta {
    background:
        radial-gradient(ellipse at 80% 50%, rgba(37,99,235,.18) 0%, transparent 55%),
        linear-gradient(145deg, #050d1a 0%, #0a1628 60%, #0f2040 100%);
    padding: 60px 0;
}
.kb-cta,
.kb-cta h2,
.kb-cta h3,
.kb-cta p { color: #fff; }
.kb-cta .opacity-75 { color: rgba(255,255,255,.75) !important; }

/* ── Blog Post Cards ───────────────────────────────────────────────────────── */
.kb-post-card {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    background: #fff;
    transition: transform .18s, box-shadow .18s;
    height: 100%;
    overflow: hidden;
}
.kb-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37,99,235,.08), 0 2px 8px rgba(0,0,0,.06);
}
.kb-post-card .card-body { display: flex; flex-direction: column; padding: 1.375rem; }
.kb-post-card .card-text { flex-grow: 1; }
.kb-post-card h5 a { color: #111827 !important; text-decoration: none; }
.kb-post-card h5 a:hover { color: #2563eb !important; }
.kb-post-card .card-text { color: #6b7280 !important; font-size: .875rem; }
.kb-post-card .text-muted { color: #9ca3af !important; font-size: .78rem; }
.kb-post-card .border-top { border-color: #f3f4f6 !important; }

/* ── Article Body ──────────────────────────────────────────────────────────── */
.article-body { color: #374151; }
.article-body h2 {
    font-size: 1.35rem; font-weight: 700; color: #111827;
    margin-top: 2rem; margin-bottom: .65rem; letter-spacing: -.015em;
}
.article-body h3 {
    font-size: 1.1rem; font-weight: 600; color: #111827;
    margin-top: 1.5rem; margin-bottom: .5rem;
}
.article-body p      { line-height: 1.85; color: #374151; }
.article-body ul,
.article-body ol     { margin-bottom: 1rem; padding-left: 1.5rem; }
.article-body li     { line-height: 1.75; margin-bottom: .3rem; color: #374151; }
.article-body strong { color: #111827; }
.article-body em     { color: #374151; }
.article-body table  { font-size: .875rem; color: #374151; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.kb-footer {
    background: #050d1a;
    padding: 2rem 0;
    font-size: .825rem;
}
.kb-footer,
.kb-footer p { color: rgba(255,255,255,.45); margin-bottom: .375rem; }
.kb-footer a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .15s; }
.kb-footer a:hover { color: rgba(255,255,255,.9); }
.kb-footer .fw-semibold { color: rgba(255,255,255,.78) !important; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar { min-height: auto; }
    .stat-card .stat-number { font-size: 1.5rem; }
    .timeline::before      { left: 15px; }
    .timeline-item         { padding-left: 40px; }
    .timeline-item::before { left: 9px; }
    .kb-hero { padding: 60px 0 50px; }
    .kb-hero h1 { font-size: 1.9rem; }
}
