/* ============================================
   Knowledge Base Article — Content Styles
   Premium dark theme with blue accents
   ============================================ */

/* --- CSS Custom Properties --- */
.kba-content .page-content__inner {
    --kb-blue: #2563EB;
    --kb-blue-light: #3B82F6;
    --kb-blue-bright: #60A5FA;
    --kb-blue-pale: #93C5FD;
    --kb-green: #10B981;
    --kb-red: #EF4444;
    --kb-purple: #8B5CF6;
    --kb-amber: #F59E0B;
    --kb-text: #CBD5E1;
    --kb-text-bright: #F1F5F9;
    --kb-text-muted: #64748B;
    --kb-text-dim: #94A3B8;
    --kb-surface: rgba(255, 255, 255, 0.03);
    --kb-border: rgba(255, 255, 255, 0.08);
    --kb-border-light: rgba(255, 255, 255, 0.06);
}

/* Hide in-content TOC — sidebar kba-toc handles navigation */
.kba-content .page-content__inner .kb-toc {
    display: none;
}

/* Hide auto-injected inline CTA (template has its own CTA) */
.kba-content .page-content__inner .inline-cta {
    display: none;
}

/* ============================================
   0. BASE TEXT STYLES
   ============================================ */
.kba-content .page-content__inner {
    color: #CBD5E1;
    font-size: 16px;
    line-height: 1.75;
    max-width: 820px;
}

/* ============================================
   1. PARAGRAPHS — Comfortable reading
   ============================================ */

.kba-content .page-content__inner p {
    line-height: 1.8;
    margin: 0 0 20px;
    color: var(--kb-text);
}

/* ============================================
   2. HEADINGS H2 — Gradient glow accent
   ============================================ */
.kba-content .page-content__inner h2 {
    position: relative;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--kb-text-bright);
    margin: 56px 0 20px;
    padding: 20px 0 16px 20px;
    border-left: 3px solid transparent;
    background-image: linear-gradient(#0F172A, #0F172A), linear-gradient(180deg, var(--kb-blue) 0%, var(--kb-purple) 100%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: -6px 0 12px -3px rgba(37, 99, 235, 0.15);
    scroll-margin-top: 80px;
    line-height: 1.3;
    overflow: hidden;
}

/* Decorative section number */
.kba-content .page-content__inner h2[data-section-num]::before {
    content: attr(data-section-num);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, rgba(139, 92, 246, 0.04) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    pointer-events: none;
    user-select: none;
    filter: none;
    opacity: 1;
    width: auto;
    height: auto;
    border-radius: 0;
}

/* Separator line above H2 + left glow combined */
.kba-content .page-content__inner h2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--kb-border-light) 0%, transparent 80%);
}

/* First H2 — no top separator */
.kba-content .page-content__inner h2:first-of-type::after {
    display: none;
}
.kba-content .page-content__inner h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

/* ============================================
   3. HEADINGS H3 — Subtle accent
   ============================================ */
.kba-content .page-content__inner h3 {
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 600;
    color: var(--kb-text-bright);
    margin: 36px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(59, 130, 246, 0.25);
    scroll-margin-top: 80px;
    line-height: 1.4;
}

.kba-content .page-content__inner h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--kb-blue-light);
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    opacity: 0.7;
}

/* ============================================
   4. TABLE OF CONTENTS (in-content .kb-toc)
   ============================================ */
.kba-content .kb-toc {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(139, 92, 246, 0.04) 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 14px;
    padding: 24px 28px;
    margin: 0 0 36px;
    position: relative;
    overflow: hidden;
}

/* Subtle shimmer on top edge */
.kba-content .kb-toc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
}

.kba-content .kb-toc > strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--kb-text-bright);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.kba-content .kb-toc > strong::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--kb-blue-light);
    border-radius: 2px;
    margin-right: 4px;
}

.kba-content .kb-toc ol {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
    margin: 0;
}

.kba-content .kb-toc ol li {
    counter-increment: toc-counter;
    margin-bottom: 0;
    padding: 0;
}

.kba-content .kb-toc ol li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--kb-text-dim);
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.kba-content .kb-toc ol li a::before {
    content: counter(toc-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: var(--kb-blue-light);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.kba-content .kb-toc ol li a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--kb-text-bright);
}

.kba-content .kb-toc ol li a:hover::before {
    background: var(--kb-blue);
    color: #fff;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

/* ============================================
   5. TABLES — Premium dark style
   ============================================ */
.kba-content .page-content__inner .kb-table-wrap,
.kba-content .page-content__inner .kb-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0 28px;
    border-radius: 12px;
    border: 1px solid var(--kb-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.kba-content .page-content__inner table,
.kba-content .page-content__inner table.kb-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Auto-wrap tables that aren't already wrapped */
.kba-content .page-content__inner > table,
.kba-content .page-content__inner > table.kb-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--kb-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    margin: 20px 0 28px;
}

.kba-content .page-content__inner table caption {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--kb-text-muted);
    text-align: left;
    caption-side: top;
    letter-spacing: 0.02em;
}

.kba-content .page-content__inner table thead th {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 16px;
    text-align: left;
    border: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
    position: sticky;
    top: 0;
    z-index: 1;
}

.kba-content .page-content__inner table thead th:first-child {
    border-radius: 11px 0 0 0;
}
.kba-content .page-content__inner table thead th:last-child {
    border-radius: 0 11px 0 0;
}

/* If table is inside a wrapper, no border-radius on th */
.kb-table-wrap table thead th:first-child,
.kb-table-container table thead th:first-child,
.kb-table-wrap table thead th:last-child,
.kb-table-container table thead th:last-child {
    border-radius: 0;
}

.kba-content .page-content__inner table tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--kb-border-light);
    color: var(--kb-text);
    border-left: none;
    border-right: none;
    transition: background 0.15s ease;
}

/* Zebra striping */
.kba-content .page-content__inner table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.kba-content .page-content__inner table tbody tr:hover {
    background: rgba(37, 99, 235, 0.04);
}

/* Last row — no bottom border */
.kba-content .page-content__inner table tbody tr:last-child td {
    border-bottom: none;
}

/* Numeric cells — right-align for readability */
.kba-content .page-content__inner table td:not(:first-child) {
    font-variant-numeric: tabular-nums;
}

/* ============================================
   6. CALLOUT / NOTE BLOCKS
   ============================================ */
.kba-content .kb-note-important,
.kba-content .kb-note-info,
.kba-content .kb-note-tip,
.kba-content .kb-note-example {
    position: relative;
    padding: 18px 20px 18px 52px;
    margin: 24px 0;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.7;
}

.kba-content .kb-note-important::before,
.kba-content .kb-note-info::before,
.kba-content .kb-note-tip::before,
.kba-content .kb-note-example::before {
    position: absolute;
    left: 18px;
    top: 18px;
    font-size: 18px;
    line-height: 1;
}

/* Important */
.kba-content .kb-note-important {
    background: rgba(239, 68, 68, 0.06);
    border-left: 3px solid var(--kb-red);
    color: #FCA5A5;
}
.kba-content .kb-note-important::before {
    content: '!';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    color: var(--kb-red);
    font-size: 13px;
    font-weight: 700;
}

/* Info */
.kba-content .kb-note-info {
    background: rgba(37, 99, 235, 0.06);
    border-left: 3px solid var(--kb-blue);
    color: var(--kb-blue-pale);
}
.kba-content .kb-note-info::before {
    content: 'i';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.15);
    color: var(--kb-blue-light);
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
}

/* Tip */
.kba-content .kb-note-tip {
    background: rgba(16, 185, 129, 0.06);
    border-left: 3px solid var(--kb-green);
    color: #6EE7B7;
}
.kba-content .kb-note-tip::before {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--kb-green);
    font-size: 13px;
    font-weight: 700;
}

/* Example */
.kba-content .kb-note-example {
    background: rgba(139, 92, 246, 0.06);
    border-left: 3px solid var(--kb-purple);
    color: #C4B5FD;
}
.kba-content .kb-note-example::before {
    content: '\25B6';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    color: var(--kb-purple);
    font-size: 10px;
    font-weight: 700;
}

/* Nested paragraphs in notes */
.kba-content .kb-note-important p,
.kba-content .kb-note-info p,
.kba-content .kb-note-tip p,
.kba-content .kb-note-example p {
    color: inherit;
    margin-bottom: 8px;
}
.kba-content .kb-note-important p:last-child,
.kba-content .kb-note-info p:last-child,
.kba-content .kb-note-tip p:last-child,
.kba-content .kb-note-example p:last-child {
    margin-bottom: 0;
}

/* ============================================
   7. LISTS — Custom markers
   ============================================ */
.kba-content .page-content__inner ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 20px;
}

.kba-content .page-content__inner ul > li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--kb-text);
}

/* Blue diamond marker */
.kba-content .page-content__inner ul > li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--kb-blue-light);
    border-radius: 1.5px;
    transform: rotate(45deg);
    opacity: 0.8;
}

/* Nested ul — different marker */
.kba-content .page-content__inner ul ul > li::before {
    background: transparent;
    border: 1.5px solid var(--kb-blue-light);
    width: 5px;
    height: 5px;
    opacity: 0.5;
}

/* Ordered lists — gradient numbered circles */
.kba-content .page-content__inner ol {
    list-style: none;
    counter-reset: ol-counter;
    padding-left: 0;
    margin: 0 0 20px;
}

.kba-content .page-content__inner ol > li {
    counter-increment: ol-counter;
    position: relative;
    padding-left: 36px;
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--kb-text);
}

.kba-content .page-content__inner ol > li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 0;
    top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--kb-blue-bright);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* Reset counter for nested ol inside toc */
.kba-content .kb-toc ol > li::before {
    display: none;
}
.kba-content .kb-toc ol > li {
    padding-left: 0;
}

/* ============================================
   8. CTA BLOCKS — Inline CTAs
   ============================================ */

/* --- kb-inline-cta --- */
.kba-content .kb-inline-cta {
    position: relative;
    padding: 20px 24px;
    margin: 28px 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 12px;
    overflow: hidden;
}

/* Animated shimmer border */
.kba-content .kb-inline-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
    animation: kb-shimmer 4s ease-in-out infinite;
}

@keyframes kb-shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.kba-content .kb-inline-cta p {
    margin: 0;
    font-size: 15px;
    color: var(--kb-text-dim);
}

.kba-content .kb-inline-cta a.kb-cta-link {
    color: var(--kb-blue-bright);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(96, 165, 250, 0.3);
    transition: all 0.2s ease;
}

.kba-content .kb-inline-cta a.kb-cta-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* --- kb-calc-banner — Main conversion block --- */
.kba-content .kb-calc-banner {
    position: relative;
    padding: 36px 32px;
    margin: 40px 0;
    background: linear-gradient(135deg, #0F2847 0%, #0C1D3A 50%, #1A1040 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Decorative gradient orbs */
.kba-content .kb-calc-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.kba-content .kb-calc-banner::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.kba-content .kb-calc-banner h3 {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    border: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.kba-content .kb-calc-banner h3::before {
    display: none;
}

.kba-content .kb-calc-banner p {
    font-size: 15px;
    color: var(--kb-text-dim);
    margin: 0 0 24px;
    position: relative;
    z-index: 1;
}

.kba-content .kb-calc-banner .kb-calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--kb-blue) 0%, #1D4ED8 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.kba-content .kb-calc-banner .kb-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #3B82F6 0%, var(--kb-blue) 100%);
    color: #fff;
}

/* --- kb-cta — Generic CTA block (used in post_content) --- */
.kba-content .kb-cta {
    position: relative;
    padding: 36px 32px;
    margin: 40px 0;
    background: linear-gradient(135deg, #0F2847 0%, #0C1D3A 50%, #1A1040 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.kba-content .kb-cta::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.kba-content .kb-cta::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.kba-content .kb-cta h3 {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    border: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.kba-content .kb-cta h3::before {
    display: none;
}

.kba-content .kb-cta p {
    font-size: 15px;
    color: var(--kb-text-dim);
    margin: 0 0 24px;
    position: relative;
    z-index: 1;
}

.kba-content .kb-cta p a {
    color: var(--kb-blue-bright);
    border-bottom-color: rgba(96, 165, 250, 0.3);
}

.kba-content .kb-cta .kb-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--kb-blue) 0%, #1D4ED8 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    position: relative;
    z-index: 1;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.kba-content .kb-cta .kb-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #3B82F6 0%, var(--kb-blue) 100%);
    color: #fff;
    border-bottom: none;
}

/* --- kb-download-cta --- */
.kba-content .kb-download-cta {
    position: relative;
    padding: 28px 28px 28px 28px;
    margin: 36px 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(37, 99, 235, 0.04) 100%);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 14px;
    text-align: center;
    overflow: hidden;
}

.kba-content .kb-download-cta h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--kb-text-bright);
    margin: 0 0 6px;
    border: none;
    border-bottom: none;
    padding: 0;
}

.kba-content .kb-download-cta h3::before {
    display: none;
}

.kba-content .kb-download-cta p {
    font-size: 14px;
    color: var(--kb-text-dim);
    margin: 0 0 20px;
}

.kba-content .kb-download-cta .kb-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--kb-green) 0%, #059669 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.kba-content .kb-download-cta .kb-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
    color: #fff;
}

/* ============================================
   9. FAQ ACCORDION
   Supports both .kb-faq-item and .kb-faq__item
   ============================================ */
.kba-content .kb-faq {
    margin: 28px 0;
    border: 1px solid var(--kb-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--kb-surface);
}

.kba-content .kb-faq .kb-faq-item,
.kba-content .kb-faq .kb-faq__item {
    border-bottom: 1px solid var(--kb-border-light);
}

.kba-content .kb-faq .kb-faq-item:last-child,
.kba-content .kb-faq .kb-faq__item:last-child {
    border-bottom: none;
}

.kba-content .kb-faq .kb-faq-item h3,
.kba-content .kb-faq .kb-faq__item h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--kb-text-bright);
    cursor: pointer;
    user-select: none;
    border: none;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1.5;
}

.kba-content .kb-faq .kb-faq-item h3::before,
.kba-content .kb-faq .kb-faq__item h3::before {
    display: none;
}

.kba-content .kb-faq .kb-faq-item h3::after,
.kba-content .kb-faq .kb-faq__item h3::after {
    content: '+';
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: var(--kb-blue-light);
    font-size: 18px;
    font-weight: 400;
    flex-shrink: 0;
    transition: all 0.3s ease;
    line-height: 1;
}

.kba-content .kb-faq .kb-faq-item h3:hover,
.kba-content .kb-faq .kb-faq__item h3:hover {
    background: rgba(37, 99, 235, 0.04);
}

.kba-content .kb-faq .kb-faq-item h3:hover::after,
.kba-content .kb-faq .kb-faq__item h3:hover::after {
    background: rgba(37, 99, 235, 0.2);
}

/* Open state */
.kba-content .kb-faq .kb-faq-item.is-open h3,
.kba-content .kb-faq .kb-faq__item.is-open h3 {
    color: var(--kb-blue-bright);
}

.kba-content .kb-faq .kb-faq-item.is-open h3::after,
.kba-content .kb-faq .kb-faq__item.is-open h3::after {
    content: '\2212';
    background: var(--kb-blue);
    color: #fff;
    transform: rotate(180deg);
}

/* Answer — CSS grid animation trick (0fr -> 1fr) */
.kba-content .kb-faq .kb-faq-item .kb-faq-answer,
.kba-content .kb-faq .kb-faq__item [itemprop="acceptedAnswer"] {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.kba-content .kb-faq .kb-faq-item.is-open .kb-faq-answer,
.kba-content .kb-faq .kb-faq__item.is-open [itemprop="acceptedAnswer"] {
    grid-template-rows: 1fr;
}

.kba-content .kb-faq .kb-faq-item .kb-faq-answer > div,
.kba-content .kb-faq .kb-faq__item [itemprop="acceptedAnswer"] > div {
    overflow: hidden;
}

.kba-content .kb-faq .kb-faq-item .kb-faq-answer p,
.kba-content .kb-faq .kb-faq__item [itemprop="text"] p {
    padding: 0 22px 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--kb-text);
    margin: 0;
}

/* Direct p in faq-item (before JS wraps it) — hidden by default */
.kba-content .kb-faq .kb-faq-item > p,
.kba-content .kb-faq .kb-faq__item > p {
    padding: 0 22px 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--kb-text);
    margin: 0;
    display: none;
}

.kba-content .kb-faq .kb-faq-item.is-open > p,
.kba-content .kb-faq .kb-faq__item.is-open > p {
    display: block;
}

/* ============================================
   10. READ ALSO / RELATED ARTICLES
       (inside content, class kb-read-also)
   ============================================ */
.kba-content .kb-read-also {
    margin: 36px 0;
}

.kba-content .kb-read-also h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--kb-text-bright);
    margin: 0 0 16px;
    padding: 0;
    border: none;
}

.kba-content .kb-read-also h3::before {
    display: none;
}

.kba-content .kb-read-also .kb-read-also__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.kba-content .kb-read-also .kb-read-also__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--kb-surface);
    border: 1px solid var(--kb-border);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--kb-text-dim);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.kba-content .kb-read-also .kb-read-also__card:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--kb-text-bright);
    transform: translateY(-1px);
}

.kba-content .kb-read-also .kb-read-also__card::after {
    content: '\2192';
    margin-left: auto;
    flex-shrink: 0;
    color: var(--kb-blue-light);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.kba-content .kb-read-also .kb-read-also__card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   11. RELATED SERVICES (in template)
   ============================================ */
/* Already styled in template inline CSS, these are overrides */

/* ============================================
   12. BREADCRUMBS — Already in template
   ============================================ */

/* ============================================
   13. BLOCKQUOTES — Enhanced
   ============================================ */
.kba-content .page-content__inner blockquote {
    position: relative;
    border-left: 3px solid var(--kb-blue);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(37, 99, 235, 0.04);
    border-radius: 0 10px 10px 0;
    color: var(--kb-text-dim);
    font-style: italic;
}

.kba-content .page-content__inner blockquote p {
    color: inherit;
}

/* ============================================
   14. CODE / FORMULAS
   ============================================ */
.kba-content .page-content__inner code {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--kb-border);
    border-radius: 5px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875em;
    color: var(--kb-blue-pale);
}

.kba-content .page-content__inner pre {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--kb-border);
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.kba-content .page-content__inner pre code {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.6;
}

/* ============================================
   15. LINKS — Subtle blue with underline
   ============================================ */
.kba-content .page-content__inner a {
    color: var(--kb-blue-bright);
    text-decoration: none;
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.2s ease;
}

.kba-content .page-content__inner a:hover {
    color: var(--kb-blue-pale);
    border-bottom-color: var(--kb-blue-pale);
}

/* ============================================
   16. IMAGES
   ============================================ */
.kba-content .page-content__inner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid var(--kb-border);
}

/* ============================================
   17. INLINE CTA (injected by functions.php)
   ============================================ */
.kba-content .inline-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 24px;
    margin: 32px 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(139, 92, 246, 0.04) 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
}

.kba-content .inline-cta p {
    margin: 0;
    font-size: 15px;
    color: var(--kb-text-dim);
    flex: 1;
    min-width: 200px;
}

/* ============================================
   18. H2 SECTION NUMBER — Responsive
   ============================================ */
@media (max-width: 768px) {
    .kba-content .page-content__inner h2[data-section-num]::before {
        font-size: 48px;
    }
}

/* ============================================
   19. STRONG / BOLD text accent
   ============================================ */
.kba-content .page-content__inner strong {
    color: var(--kb-text-bright);
    font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .kba-content .kb-read-also .kb-read-also__grid {
        grid-template-columns: 1fr;
    }

    .kba-content .kb-calc-banner {
        padding: 28px 20px;
    }

    .kba-content .kb-calc-banner .kb-calc-btn {
        width: 100%;
        justify-content: center;
    }

    .kba-content .page-content__inner h2 {
        font-size: 20px;
        margin-top: 40px;
        padding-left: 16px;
    }

    .kba-content .page-content__inner ol > li {
        padding-left: 32px;
    }

    .kba-content .inline-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* Scrollbar for tables on mobile */
.kba-content .page-content__inner table::-webkit-scrollbar {
    height: 4px;
}
.kba-content .page-content__inner table::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.kba-content .page-content__inner table::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .kba-content .page-content__inner {
        color: #000;
        max-width: 100%;
    }
    .kba-content .page-content__inner h2,
    .kba-content .page-content__inner h3 {
        color: #000;
    }
    .kba-content .page-content__inner h2 {
        border-left-color: #333;
        background: none;
    }
    .kba-content .kb-calc-banner,
    .kba-content .kb-inline-cta,
    .kba-content .kb-download-cta,
    .kba-content .inline-cta {
        display: none;
    }
    .kba-content .kb-faq .kb-faq-item .kb-faq-answer {
        grid-template-rows: 1fr;
    }
}
