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

/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
:root {
    /* Brand Colors */
    --primary-orange: #f67214;
    --primary-orange-hover: #e0620f;
    --primary-orange-light: #fef1e8;
    --text-main: #0a0a0a;
    --text-secondary: #666666;
    
    /* Backgrounds */
    --bg-main: #ffffff;
    --bg-secondary: #fafafa;
    --bg-badge: #f5f5f5;
    
    /* Borders & Structural Details */
    --border-color: #ececec;
    --border-radius: 8px; /* Sharper borders to match AEC.Base style */
    --border-radius-pill: 4px; /* Rectangular chips */
    
    /* Shadows */
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.015);
    --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.04);
    --shadow-focus: 0 0 0 3px rgba(246, 114, 20, 0.1);
    
    /* Animations */
    --transition-speed: 250ms;
    --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Document Defaults
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

input {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   Layout Wrappers
   ========================================================================== */
.kb-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================================================
   Site Header & Mobile Menu (from termsofservice.html — exact match)
   ========================================================================== */
.site-header,
.site-header *,
.mobile-menu,
.mobile-menu * {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 74.6px;
    padding: 12px 3vw;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.site-header.is-scrolled,
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-container img {
    display: block;
    width: auto;
}

.site-logo {
    display: block;
    height: 40px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    position: relative;
    color: #1f2a3b;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #ea6d13;
}

.nav-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #ea6d13;
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a.active {
    color: #ea6d13;
}

.login-btn {
    background: #ea6d13;
    color: #fff;
    border: none;
    padding: 11px 50px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(234, 109, 19, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 109, 19, 0.35);
    color: #fff;
    filter: brightness(1.05);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #172033;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
    position: absolute;
}

.hamburger span:nth-child(1) { top: 10px; }
.hamburger span:nth-child(2) { top: 18px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.active span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 74.6px;
    left: 0;
    width: 100%;
    height: calc(100vh - 74.6px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 32px 20px;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu ul li a {
    display: block;
    padding: 16px 0;
    color: #172033;
    font-weight: 600;
    font-size: 18px;
    border-bottom: none;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
    color: #ea6d13;
    text-decoration: none;
}

.mobile-menu .login-btn {
    width: 100% !important;
    margin-top: 48px !important;
    display: block !important;
    padding: 16px 32px !important;
    background: #f67214 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(246, 114, 20, 0.2) !important;
    transition: all 0.3s ease !important;
}

.mobile-menu .login-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(246, 114, 20, 0.3) !important;
    background: #ea6d13 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Site Footer (from termsofservice.html — exact match)
   ========================================================================== */
.site-footer {
    background: #f8fafc !important;
    padding: 20px 0 0 !important;
    border-top: 1px solid #eaeaea !important;
    position: relative !important;
    z-index: 10 !important;
    font-family: 'Inter', sans-serif !important;
    color: #334155 !important;
}

.site-footer a {
    text-decoration: none !important;
}

.footer-container {
    width: 90% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr !important;
    gap: 28px !important;
    align-items: start !important;
}

.footer-column {
    display: flex !important;
    flex-direction: column !important;
}

.brand-column .footer-logo {
    margin-bottom: 8px !important;
}

.brand-column .footer-logo img {
    height: 100px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: none !important;
    margin: 0 !important;
}

.brand-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #1e293b !important;
    margin: 8px 0 16px !important;
    text-align: left !important;
}

.social-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 15px !important;
}

.social-icon-circle {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.social-icon-circle svg {
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.3s ease !important;
}

.social-icon-circle:hover {
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

.linkedin-circle:hover { background: #0077b5 !important; border-color: #0077b5 !important; box-shadow: 0 4px 12px rgba(0, 119, 181, 0.2) !important; }
.youtube-circle:hover { background: #ff0000 !important; border-color: #ff0000 !important; box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2) !important; }
.x-circle:hover { background: #0f1419 !important; border-color: #0f1419 !important; box-shadow: 0 4px 12px rgba(15, 20, 25, 0.15) !important; }
.instagram-circle:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important; border-color: transparent !important; box-shadow: 0 4px 12px rgba(220, 39, 67, 0.2) !important; }
.facebook-circle:hover { background: #1877f2 !important; border-color: #1877f2 !important; box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2) !important; }

.column-header,
.column-header-static {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #f67214 !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 24px !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: left !important;
}

.accordion-icon {
    display: none !important;
}

.column-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.column-links li {
    display: flex !important;
    align-items: center !important;
}

.column-links a {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #0f172a !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    padding-left: 18px !important;
    display: inline-block !important;
    text-align: left !important;
}

.column-links a::before {
    content: ">" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 11px !important;
    color: #64748b !important;
    transition: all 0.25s ease !important;
    font-family: monospace !important;
}

.column-links a:hover {
    color: #f67214 !important;
    padding-left: 22px !important;
}

.column-links a:hover::before {
    color: #f67214 !important;
    left: 4px !important;
}

.newsletter-column {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

.newsletter-col-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
    margin: -12px 0 16px 0 !important;
    font-family: 'Inter', sans-serif !important;
}

.newsletter-col-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
}

.newsletter-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 0 40px 0 42px !important;
    height: 46px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
}

.newsletter-input-wrapper:hover { border-color: #94a3b8 !important; }
.newsletter-input-wrapper:focus-within { border-color: #f67214 !important; box-shadow: 0 0 0 3.5px rgba(246, 114, 20, 0.12) !important; }

.newsletter-input-wrapper .input-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.newsletter-input-wrapper:focus-within .input-icon { color: #f67214 !important; }

.newsletter-col-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    font-family: 'Inter', sans-serif !important;
    padding: 0 !important;
}

.newsletter-col-input::placeholder { color: #94a3b8 !important; }

.newsletter-submit-btn {
    height: 46px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #f67214 0%, #ff832b 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(246, 114, 20, 0.15) !important;
    width: 100% !important;
}

.newsletter-submit-btn:hover:not(:disabled) {
    box-shadow: 0 6px 18px rgba(246, 114, 20, 0.25) !important;
    transform: translateY(-1.5px) !important;
}

.newsletter-submit-btn.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.20) !important;
}

.mobile-social-section {
    display: none !important;
    margin-top: 24px !important;
    text-align: center !important;
    width: 100% !important;
}

.mobile-social-header {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #f67214 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
    font-family: 'Inter', sans-serif !important;
    text-align: center !important;
}

.footer-bottom-bar {
    margin-top: 20px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    border-top: 1px solid #eaeaea !important;
    text-align: center !important;
}

.copyright-text {
    font-size: 15.5px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    text-align: center !important;
}

.copyright-link {
    color: #f67214 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: opacity 0.25s ease !important;
}

.copyright-link:hover {
    opacity: 0.85 !important;
    text-decoration: underline !important;
}

/* Body offset for fixed header */
body {
    padding-top: 74.6px;
}


/* ==========================================================================
   Hero Header / Large Title
   ========================================================================== */
.kb-hero-section {
    padding: 40px 0 44px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, #fffcfa 100%), url('images/herobg.webp');
    background-size: auto 115%; /* Grounded, slightly larger background graphic detail */
    background-position: right bottom -85px; /* Pushes the graphic down further to bleed off the bottom border */
    background-repeat: no-repeat;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

.kb-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    width: 100%;
}

.kb-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 5;
    width: 100%;
}

.kb-hero-breadcrumb {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #64748b;
    margin-bottom: 12px;
    display: block;
}

.kb-hero-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kb-hero-breadcrumb a:hover {
    color: var(--primary-orange, #f67214);
}

.kb-hero-breadcrumb .active-crumb {
    color: var(--primary-orange, #f67214);
}

.kb-hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: #0f172a;
    margin: 0 0 14px 0;
    font-family: 'Outfit', sans-serif;
}

.kb-hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #475569;
    max-width: 680px;
    margin: 0 0 28px 0;
    letter-spacing: -0.1px;
}

.kb-search-wrapper {
    width: 100%;
    max-width: 600px;
    margin-bottom: 32px;
}

.kb-search-container {
    width: 100%;
    position: relative;
}

.kb-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #86868b;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.kb-search-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.kb-search-input {
    width: 100%;
    height: 52px;
    padding: 12px 20px 12px 56px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.02), 0 1px 3px rgba(15, 23, 42, 0.01);
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.kb-search-input::placeholder {
    color: #86868b;
}

.kb-search-input:focus {
    border-color: var(--primary-orange, #f67214);
    box-shadow: 0 12px 40px rgba(246, 114, 20, 0.08), 0 1px 3px rgba(246, 114, 20, 0.01);
}

.kb-hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    min-height: 350px;
}

.kb-hero-blueprint {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    opacity: 0.15;
    pointer-events: none;
    filter: contrast(1.05);
}

/* Stats Strip Styling */
.kb-stats-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 940px;
    margin-bottom: 0;
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.kb-stat-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
    border-right: 1px solid #e2e8f0;
    box-shadow: none;
    transition: transform 0.25s ease;
}

.kb-stat-card:last-child {
    border-right: none;
}

.kb-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: none;
}

.kb-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(246, 114, 20, 0.08);
    color: var(--primary-orange, #f67214);
    flex-shrink: 0;
}

.kb-stat-icon svg {
    width: 16px;
    height: 16px;
}

.kb-stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.kb-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.kb-stat-label {
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    line-height: 1.2;
    white-space: nowrap;
}

/* ==========================================================================
   Popular Knowledge Domains (Section 3)
   ========================================================================== */
.kb-popular-domains-section {
    padding: 40px 0 20px;
    background-color: #ffffff;
}

.kb-section-header {
    margin-bottom: 12px;
    text-align: left;
}

.kb-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif;
}

.kb-domains-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on 2 rows for comfortable spacing */
    gap: 16px;
    margin-top: 24px;
    width: 100%;
}

.kb-domain-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 10px; /* Slim modern corner rounding */
    padding: 12px 18px; /* Shorter padding for compact layout */
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02), 0 1px 2px rgba(15, 23, 42, 0.01);
    min-height: 62px; /* Very compact and sleek */
    height: auto;
    box-sizing: border-box;
    position: relative;
}

.kb-dropdown-item-icon-wrap img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.kb-domain-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    align-items: flex-start;
    overflow: hidden;
}

.kb-domain-name {
    font-size: 14.5px;
    font-weight: 700; /* Bold title for clear visual hierarchy */
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    text-align: left;
}

.kb-domain-count {
    font-size: 11px;
    font-weight: 600; /* Medium-bold count for better visibility */
    color: #475569; /* Darker slate gray for solid text contrast */
    transition: color 0.2s ease;
}

.kb-domain-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: transform 0.22s ease, color 0.22s ease;
    flex-shrink: 0;
    margin-left: auto; /* Push to far right edge */
}

.kb-domain-arrow svg {
    width: 14px;
    height: 14px;
}

.kb-domain-card:hover {
    border-color: var(--primary-orange, #f67214);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(246, 114, 20, 0.04), 0 2px 4px rgba(0, 0, 0, 0.01);
}

.kb-domain-card:hover .kb-domain-count {
    color: var(--primary-orange, #f67214);
}

.kb-domain-card:hover .kb-domain-arrow {
    transform: translateX(2px);
    color: var(--primary-orange, #f67214);
}

@media (max-width: 1024px) {
    .kb-domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Recently Updated Section */
.kb-recent-section {
    padding: 60px 0 70px;
    background-color: #ffffff;
    border-top: none;
    margin-top: 0;
}

.kb-recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
}

.kb-recent-title {
    font-size: 22px;
    font-weight: 800;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.4px;
    font-family: 'Outfit', sans-serif;
}

.kb-recent-view-all {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-orange, #f67214);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease, opacity 0.2s ease;
}

.kb-recent-view-all:hover {
    opacity: 0.8;
    gap: 8px;
}

.kb-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1199px) {
    .kb-recent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.kb-recent-item {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Stretch children to fill card height */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px; /* Symmetrical clean modern corner rounding */
    padding: 38px 24px 20px; /* Increased top padding to accommodate flush corner label */
    text-decoration: none;
    position: relative;
    overflow: hidden; /* Changed back to hidden since label is now flush inside boundaries */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.01);
    min-height: 116px; /* Ensures consistent minimum height */
}

.kb-recent-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-orange, #f67214);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 16px -6px rgba(246, 114, 20, 0.04);
}

.kb-recent-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between; /* Push title to top and date to bottom */
}

.kb-recent-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.45;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    word-break: break-word;
    transition: color 0.2s ease;
}

.kb-recent-item:hover .kb-recent-name {
    color: var(--primary-orange, #f67214);
}

.kb-recent-badge {
    position: absolute;
    top: -39px;
    left: -25px;
    transform: none;
    font-size: 8px;
    font-weight: 700;
    padding: 4px 12px;
    border-top-left-radius: 12px; /* Sits flush inside the card's rounded top-left corner */
    border-bottom-right-radius: 12px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-block;
    color: #ffffff;
    background-color: #f9a376;
    z-index: 10;
    transition: all 0.3s ease;
}

.kb-recent-item:hover .kb-recent-badge {
    background-color: #0f172a;
}

.kb-recent-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.kb-recent-date {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.kb-recent-arrow {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
}

.kb-recent-item:hover .kb-recent-arrow {
    color: var(--primary-orange, #f67214);
    transform: translateX(4px);
}

.kb-recent-accent-image {
    position: absolute;
    bottom: -5px;
    right: -3px;
    width: 215px;
    height: auto;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

/* Recently Updated — Mobile Layout */
@media (max-width: 768px) {
    .kb-recent-section {
        padding: 36px 0 40px;
    }

    .kb-recent-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .kb-recent-item {
        padding: 22px 14px 14px;
        flex-direction: row;
        align-items: center;
    }

    .kb-recent-left {
        gap: 11px;
        flex: 1;
        min-width: 0;
    }

    .kb-recent-icon-wrap {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .kb-recent-details {
        flex: 1;
        min-width: 0;
    }

    .kb-recent-name {
        font-size: 13px;
        line-height: 1.35;
        margin-bottom: 3px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .kb-recent-badge {
        font-size: 8px;
        padding: 2px 5px;
        letter-spacing: 0.4px;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }

    .kb-recent-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
        flex-shrink: 0;
        padding-top: 0;
        min-width: 65px;
    }

    .kb-recent-date {
        font-size: 10px;
        color: #a0a0a8;
        white-space: nowrap;
        text-align: right;
        line-height: 1.2;
    }

    .kb-recent-arrow {
        width: 14px;
        height: 14px;
    }

    .kb-recent-header {
        margin-bottom: 20px;
    }

    .kb-recent-title {
        font-size: 18px;
    }
}


/* Mobile Custom Dropdown Component (Hidden on Desktop) */
.kb-custom-dropdown-wrap {
    display: none;
    position: relative;
    width: 100%;
    margin-top: 12px;
    z-index: 90;
}

.kb-dropdown-btn {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.kb-dropdown-btn:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(246, 114, 20, 0.08);
}

.kb-dropdown-btn-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.kb-dropdown-funnel {
    width: 18px;
    height: 18px;
    color: var(--primary-orange);
    flex-shrink: 0;
}

.kb-dropdown-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.kb-dropdown-arrow {
    width: 17px;
    height: 17px;
    color: #64748b;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.kb-custom-dropdown-wrap.is-open .kb-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary-orange);
}

.kb-custom-dropdown-wrap.is-open .kb-dropdown-btn {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(246, 114, 20, 0.12);
}

/* Floating Popover Panel */
.kb-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
    display: none;
    flex-direction: column;
    max-height: 340px;
    overflow-y: auto;
    z-index: 200;
    padding: 8px;
    box-sizing: border-box;
}

.kb-custom-dropdown-wrap.is-open .kb-dropdown-menu {
    display: flex;
    animation: kbDropdownFadeIn 0.2s ease-out;
}

@keyframes kbDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kb-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    margin-bottom: 4px;
    text-decoration: none;
}

.kb-dropdown-item:last-child {
    margin-bottom: 0;
}

.kb-dropdown-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.kb-dropdown-item-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #f8fafc;
    color: #475569;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.kb-dropdown-item-icon-wrap svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

.kb-dropdown-item-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.kb-dropdown-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.kb-dropdown-item-count {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.kb-dropdown-item:hover {
    background-color: #fef1e8;
}

.kb-dropdown-item:hover .kb-dropdown-item-icon-wrap {
    background-color: #ffe6d5;
    color: var(--primary-orange);
}

.kb-dropdown-item:hover .kb-dropdown-item-title {
    color: var(--primary-orange);
}

.kb-dropdown-item:hover .kb-dropdown-item-count {
    color: #c2410c;
}

.kb-dropdown-item.is-active {
    background-color: var(--primary-orange);
}

.kb-dropdown-item.is-active .kb-dropdown-item-icon-wrap {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.kb-dropdown-item.is-active .kb-dropdown-item-title {
    color: #ffffff;
}

.kb-dropdown-item.is-active .kb-dropdown-item-count {
    color: rgba(255, 255, 255, 0.8);
}

.kb-check-icon {
    width: 15px;
    height: 15px;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.kb-dropdown-item.is-active .kb-check-icon {
    opacity: 1;
}

/* ==========================================================================
   Combined Layout Grid (Featured Guide & Regular Grid Cards)
   ========================================================================== */
/* Full-width tinted band wrapping the cards grid */
.kb-cards-band {
    background-color: #ffffff;
    padding: 4px 0 0;
}

.kb-grid-section {
    margin-bottom: 0;
}

.kb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Base Card Design */
.kb-card {
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px 22px 37px 22px; /* Custom asymmetrical corner rounding to match home page */
    padding: 24px 26px; /* Reduced padding for a more compact design */
    display: flex;
    flex-direction: column;
    min-height: 250px; /* Reduced card height */
    height: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.01);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.kb-card:hover {
    border-color: var(--primary-orange, #f67214);
    box-shadow: 0 0 0 4px rgba(246, 114, 20, 0.15), 0 12px 30px rgba(15, 23, 42, 0.08); /* Halo focus ring glow highlight */
}

/* Abstract Card Watermark Icon */
.kb-card-watermark {
    position: absolute;
    bottom: -35px;
    right: -35px;
    width: 200px;
    height: 200px;
    opacity: 0.08;
    pointer-events: none;
    color: #64748b; /* Soft slate color */
    transition: opacity 0.3s ease;
    transform: rotate(-15deg);
    -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,0) 15%, rgba(0,0,0,1) 90%);
    mask-image: linear-gradient(135deg, rgba(0,0,0,0) 15%, rgba(0,0,0,1) 90%);
    z-index: 0;
}

.kb-card-watermark svg,
.kb-card-watermark .kb-card-watermark-img {
    width: 100%;
    height: 100%;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1px !important; /* Ultra-fine stroke width */
    object-fit: contain;
}

.kb-card:hover .kb-card-watermark {
    opacity: 0.14;
    color: var(--primary-orange, #f67214);
}

/* Position text above absolute overlays */
.kb-card-meta,
.kb-card-title,
.kb-card-excerpt,
.kb-card-footer {
    position: relative;
    z-index: 2;
}

/* Card Header Meta spacing */
.kb-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    margin-bottom: 14px;
}

.kb-card-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-orange, #f67214);
    background: rgba(246, 114, 20, 0.06);
    border: 1px solid rgba(246, 114, 20, 0.12);
    border-radius: 100px; /* Redesigned as capsule badge to match home page */
    padding: 3px 10px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.kb-card:hover .kb-card-badge {
    background: var(--primary-orange, #f67214);
    color: #ffffff;
    border-color: var(--primary-orange, #f67214);
}

.kb-card-readtime {
    font-size: 12px;
    color: #64748b;
}

.kb-card-meta-dot {
    width: 3.5px;
    height: 3.5px;
    background-color: #cbd5e1;
    border-radius: 50%;
}

.kb-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.kb-card:hover .kb-card-title {
    color: var(--primary-orange, #f67214);
}

.kb-card-excerpt {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 14px;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kb-card-footer {
    border-top: 1px solid #f0f0f5;
    padding-top: 12px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kb-card-date {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.kb-card-link {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--primary-orange, #f67214);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    align-self: flex-start;
    padding: 0;
    background: transparent;
    border: none;
}

.kb-card-link .arrow {
    transition: transform 0.2s ease;
    font-size: 14px;
}

.kb-card:hover .kb-card-link {
    color: var(--primary-orange-hover, #e0620f);
    background: transparent;
    border: none;
    box-shadow: none;
}

.kb-card:hover .kb-card-link .arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   Featured Card Custom Grid Rules (NO Image)
   ========================================================================== */
.kb-featured-card {
    grid-column: span 2;
}

.kb-card.is-filtered {
    display: none;
}

/* ==========================================================================
   Pagination (Section 6)
   ========================================================================== */
.kb-pagination-section {
    padding: 24px 0 14px;
    border-top: 1px solid var(--border-color);
}

.kb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.kb-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    transition: all var(--transition-speed) var(--transition-ease);
}

.kb-page-btn:hover:not(.is-disabled) {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.kb-page-btn.is-active {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.kb-page-btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   Global Footer
   ========================================================================== */
.kb-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
}

.kb-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.kb-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kb-footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.kb-footer-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    margin-bottom: 20px;
}

.kb-footer-links {
    list-style: none;
}

.kb-footer-links li {
    margin-bottom: 12px;
}

.kb-footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color var(--transition-speed) var(--transition-ease);
}

.kb-footer-links a:hover {
    color: var(--primary-orange);
}

.kb-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    font-size: 13px;
    color: var(--text-secondary);
}

.kb-footer-social {
    display: flex;
    gap: 16px;
}

.kb-footer-social a:hover {
    color: var(--primary-orange);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .kb-hero-title {
        font-size: 38px;
    }
    
    .kb-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .kb-featured-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .kb-hero-section {
        padding: 48px 0 24px;
    }
    
    .kb-hero-title {
        font-size: 32px;
    }
    
    .kb-search-input {
        height: 48px;
    }
    
    .kb-filters-container {
        display: none !important;
    }

    .kb-custom-dropdown-wrap {
        display: block !important;
    }
    
    .kb-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 560px) {
    .kb-grid {
        grid-template-columns: 1fr;
    }
    
    .kb-featured-card {
        grid-column: span 1;
        padding: 32px;
    }
    
    .kb-footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Knowledge Base Article Inner Page Styles
   ========================================================================== */

/* Reading Progress Bar */
.kb-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary-orange);
    z-index: 1000;
    width: 0%;
    transition: width 80ms linear;
}

/* Article Header Section */
.kb-article-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, #fffcfa 100%);
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Align header content with TOC column start */
.kb-article-header .kb-container {
    max-width: 100%;
    padding-left: 200px;
    padding-right: 145px;
}

.kb-article-breadcrumbs {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    word-wrap: break-word;
    display: block !important;
    text-align: left !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}



.kb-article-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease);
}

.kb-article-breadcrumbs a:hover {
    color: var(--primary-orange);
}

#kb-breadcrumb-active-article {
    color: var(--primary-orange, #f67214);
    font-weight: 600;
}

.kb-breadcrumb-sep {
    margin: 0 4px;
    opacity: 0.5;
}

/* Hide active article name in breadcrumbs on mobile viewports to prevent long multi-line wrapping */
@media (max-width: 768px) {
    #kb-breadcrumb-active-article,
    .kb-breadcrumb-sep-active {
        display: none !important;
    }
}

.kb-article-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--text-main);
    margin-bottom: 24px;
}

.kb-article-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.kb-article-badge {
    background-color: var(--primary-orange);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.kb-article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    line-height: 1;
}

.kb-article-meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    stroke-width: 2.5;
}


/* Three-Column Layout Grid */
.kb-article-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 40px;
    padding: 48px 145px;
    align-items: start;
    max-width: 100%;
}

/* Sticky Sidebar Navigation TOC */
.kb-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 140px);
    overflow: visible;
    display: flex;
    flex-direction: column;
}

/* TOC list scrolls independently */
.kb-toc-list {
    /* Card Container Styling */
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 24px 16px 24px 24px; /* Slightly less right padding for the scrollbar */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100vh - 320px);
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.kb-toc-list::-webkit-scrollbar {
    width: 3px;
}

.kb-toc-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* Sticky Related Articles Sidebar (Right Side) */
.kb-related-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
}

.kb-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 19px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.kb-sidebar-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kb-sidebar-categories-list li {
    position: relative;
    padding-left: 16px;
    line-height: 1.4;
}

.kb-sidebar-categories-list li::before {
    content: "•";
    position: absolute;
    left: 2px;
    top: 0;
    color: var(--primary-orange, #f67214);
    font-size: 14px;
    font-weight: 700;
}

.kb-sidebar-categories-list a {
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.kb-sidebar-categories-list a:hover {
    color: var(--primary-orange, #f67214);
    transform: translateX(4px);
}

.kb-related-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.kb-related-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kb-sidebar-related-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.kb-sidebar-related-item:last-child {
    border-bottom: none;
}

.kb-sidebar-related-item:hover {
    background: transparent;
    transform: translateX(4px);
}

.kb-sidebar-related-item:hover .kb-sidebar-related-item-title {
    color: var(--primary-orange);
}

.kb-sidebar-related-item-icon-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    color: var(--primary-orange);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.kb-sidebar-related-item:hover .kb-sidebar-related-item-icon-wrap {
    background-color: var(--primary-orange-light);
    border-color: rgba(246, 114, 20, 0.2);
}

.kb-sidebar-related-item-icon-wrap svg {
    width: 17px;
    height: 17px;
}

.kb-sidebar-related-item-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.kb-sidebar-related-item-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 2px;
}

.kb-sidebar-related-item-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-main);
    margin: 0;
    word-break: break-word;
    transition: color 0.2s ease;
}

.kb-sidebar-related-item-meta {
    font-size: 11px;
    color: var(--text-secondary);
}

.kb-sidebar::-webkit-scrollbar {
    width: 4px;
}

.kb-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.kb-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    margin-bottom: 16px;
}

.kb-toc-list {
    list-style: none;
}

.kb-toc-item {
    margin-bottom: 12px;
}

.kb-toc-link {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-secondary);
    display: block;
    padding: 6px 0 6px 16px;
    border-left: 2px solid var(--border-color);
    transition: all var(--transition-speed) var(--transition-ease);
}

.kb-toc-link:hover {
    color: var(--text-main);
    border-left-color: var(--text-secondary);
}

.kb-toc-link.is-active {
    color: var(--primary-orange);
    border-left-color: var(--primary-orange);
    font-weight: 600;
}

.kb-toc-item--h3 .kb-toc-link {
    padding-left: 28px;
}

/* Article Body & Rich Typography */
.kb-article-body {
    max-width: 100%;
    min-width: 0; /* prevent grid cell overflow */
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
}

.kb-article-body a,
.kb-inline-link {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.kb-article-body a:hover,
.kb-inline-link:hover {
    color: #e0620f;
    opacity: 0.85;
}

.kb-article-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 48px 0 20px;
    letter-spacing: -0.5px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.kb-heading-number {
    color: var(--primary-orange);
    margin-right: 12px;
    font-weight: 600;
    font-family: inherit;
}

.kb-article-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 16px;
    letter-spacing: -0.3px;
    position: relative;
}

.kb-article-body p {
    margin-bottom: 24px;
}

.kb-article-body ul, .kb-article-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.kb-article-body li {
    margin-bottom: 10px;
}

.kb-article-body strong {
    font-weight: 600;
}

/* Copy Link Anchor Icon for Headings */
.kb-heading-anchor {
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    color: var(--primary-orange);
    padding-right: 8px;
    transition: opacity var(--transition-speed) var(--transition-ease);
    display: inline-flex;
    align-items: center;
}

.kb-article-body h2:hover .kb-heading-anchor,
.kb-article-body h3:hover .kb-heading-anchor {
    opacity: 1;
}

.kb-heading-anchor svg {
    width: 14px;
    height: 14px;
}

/* Clean Callout Boxes */
.kb-callout {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--border-color);
    border-radius: 4px;
    padding: 20px 24px;
    margin: 32px 0;
}

.kb-callout-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.kb-callout-header svg {
    width: 14px;
    height: 14px;
}

.kb-callout-content {
    font-size: 15px;
    line-height: 1.6;
    color: #2d3748;
}

.kb-callout--tip {
    background-color: #f0fdf4;
    border-color: #e6f4ea;
    border-left-color: #10b981;
}

.kb-callout--tip .kb-callout-header {
    color: #047857;
}

.kb-callout--important {
    background-color: #eff6ff;
    border-color: #e0f2fe;
    border-left-color: #3b82f6;
}

.kb-callout--important .kb-callout-header {
    color: #1d4ed8;
}

.kb-callout--warning {
    background-color: #fffbeb;
    border-color: #fef3c7;
    border-left-color: #f59e0b;
}

.kb-callout--warning .kb-callout-header {
    color: #b45309;
}

.kb-callout--ai-insight {
    background-color: var(--primary-orange-light);
    border-color: #fde4d2;
    border-left-color: var(--primary-orange);
}

.kb-callout--ai-insight .kb-callout-header {
    color: var(--primary-orange);
}

/* Tables Formatting */
.kb-table-wrap {
    overflow-x: auto;
    margin: 32px 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    
    /* Force horizontal scrollbar to remain visible on mobile and desktop */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Custom Webkit scrollbar for tables (prevents mobile auto-hiding) */
.kb-table-wrap::-webkit-scrollbar {
    height: 6px; /* Horizontal scrollbar thickness */
    display: block !important;
}

.kb-table-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.kb-table-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.kb-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.kb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    text-align: left;
}

.kb-table th {
    background-color: var(--bg-secondary);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.kb-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: #2d3748;
}

.kb-table tr:last-child td {
    border-bottom: none;
}

/* Table Scroll Hint */
.kb-table-hint {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-orange, #f67214);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.kb-table-hint svg {
    width: 14px;
    height: 14px;
    animation: bounceArrows 1.8s infinite ease-in-out;
}

@keyframes bounceArrows {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* Image Zoom and Modal Overlay */
.kb-article-img-wrap {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.kb-article-img-wrap svg {
    max-width: 100%;
    height: auto;
}

.kb-article-img-caption {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: left;
}

.kb-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-speed) var(--transition-ease);
    cursor: zoom-out;
}

.kb-zoom-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.kb-zoom-image {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    transform: scale(0.95);
    transition: transform var(--transition-speed) var(--transition-ease);
}

.kb-zoom-overlay.is-active .kb-zoom-image {
    transform: scale(1);
}

.kb-article-img-wrap .kb-zoomable-img {
    cursor: zoom-in;
    width: 100%;
    max-width: 650px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}

.kb-article-img-wrap .kb-zoomable-img:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.kb-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 28px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: block;
}

.kb-article-body img.kb-zoomable-img {
    cursor: zoom-in;
}

/* FAQ Accordion */
.kb-faq-section {
    margin-top: 56px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.kb-faq-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

.kb-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
    background-color: var(--bg-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kb-faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.kb-faq-item.is-open {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.08);
}

.kb-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.kb-faq-question:hover {
    color: var(--primary-orange);
}

.kb-faq-item.is-open .kb-faq-question {
    color: var(--primary-orange);
    background-color: #fffaf5;
}

.kb-faq-question svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-left: 16px;
    color: var(--text-secondary);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.kb-faq-item.is-open .kb-faq-question svg {
    transform: rotate(180deg);
    color: var(--primary-orange);
}

.kb-faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    background-color: var(--bg-main);
}

.kb-faq-item.is-open .kb-faq-answer {
    opacity: 1;
    border-top: 1px solid #fed7aa;
}

.kb-faq-answer-inner {
    padding: 20px 24px 24px;
    font-size: 15px;
    color: #334155;
    line-height: 1.65;
}

.kb-faq-answer-inner p {
    margin-bottom: 12px;
}

.kb-faq-answer-inner p:last-child {
    margin-bottom: 0;
}

/* Floating Back to Top Button */
.kb-back-to-top {
    position: fixed;
    bottom: 74px; /* Stacked right above the floating audio mini player */
    right: 24px; /* Aligned vertically on the right edge with the audio wrapper */
    width: 40px;
    height: 40px;
    background-color: #fff2e8; /* Soft light orange background tint */
    border: 1px solid rgba(246, 114, 20, 0.15); /* Light orange border tint */
    border-radius: 6px; /* Smooth corners */
    box-shadow: 0 4px 12px rgba(246, 114, 20, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange, #f67214); /* Orange chevron icon */
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-speed) var(--transition-ease);
    z-index: 90;
}

.kb-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.kb-back-to-top:hover {
    color: #ffffff; /* White icon on hover */
    background-color: var(--primary-orange, #f67214); /* Full brand orange background */
    border-color: var(--primary-orange, #f67214);
    box-shadow: 0 4px 16px rgba(246, 114, 20, 0.25);
    transform: translateY(-2px);
}

.kb-back-to-top svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

@media (max-width: 768px) {
    .kb-back-to-top {
        bottom: 66px; /* Aligned for mobile stacking */
        right: 16px;
    }
}

/* Related Guides Section */
.kb-related-section {
    border-top: 1px solid var(--border-color);
    padding: 21px 0;
}

.kb-related-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    margin-bottom: 32px;
}

/* Responsive Styles for Article Layout */
@media (max-width: 1280px) {
    .kb-article-layout {
        grid-template-columns: 200px 1fr 220px;
        gap: 28px;
        padding: 48px 80px;
    }
}

@media (max-width: 1024px) {
    .kb-container {
        padding: 0 20px;
    }

    .kb-article-header .kb-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .kb-article-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px;
    }
    
    .kb-sidebar {
        position: static;
        max-height: none;
        padding-right: 0;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 24px;
        margin-bottom: 16px;
    }
    
    .kb-toc-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .kb-toc-item {
        margin-bottom: 0;
    }
    
    .kb-toc-link {
        border-left: none;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        padding: 6px 12px;
    }
    
    .kb-toc-link.is-active {
        background-color: var(--primary-orange-light);
        border-color: var(--primary-orange);
    }
    
    .kb-toc-item--h3 {
        display: none; /* Hide H3 headings inside mobile/tablet TOC for space */
    }

    .kb-related-sidebar {
        position: static;
        max-height: none;
        padding: 0 !important;
        margin-top: 48px;
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .kb-sidebar-card {
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .kb-sidebar-card + .kb-sidebar-card {
        border-top: 1px solid var(--border-color) !important;
        padding-top: 32px !important;
    }

    .kb-related-sidebar-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .kb-sidebar-categories-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ==========================================================================
   Site Header & Footer Responsive Breakpoints (from termsofservice.html)
   ========================================================================== */
@media (max-width: 900px) {
    .site-header {
        min-height: 66px !important;
        padding: 10px 16px !important;
    }

    .site-logo {
        height: 35px !important;
    }

    .mobile-menu {
        top: 66px !important;
        height: calc(100vh - 66px) !important;
    }

    .header-nav {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .accordion-icon {
        display: inline-block !important;
        width: 8px;
        height: 8px;
        border-right: 2px solid #f67214;
        border-bottom: 2px solid #f67214;
        transform: rotate(45deg);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        margin-right: 12px;
        margin-top: -4px;
    }

    .column-header.active .accordion-icon {
        transform: rotate(-135deg);
        margin-top: 2px;
    }

    .brand-column {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .brand-desc {
        text-align: center !important;
    }

    .mobile-social-section {
        display: block !important;
    }

    .brand-column .social-row {
        display: none !important;
    }

    .mobile-social-section .social-row {
        justify-content: center !important;
    }
}

/* ==========================================================================
   Waitlist Modal Styles (from termsofservice.html)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 70px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    width: 95%;
    max-width: 650px;
    margin: 0 auto 50px auto;
    transform: translateY(-20px) scale(0.96);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-content-premium {
    border-radius: 24px;
    border: none;
    padding: 40px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    text-align: left;
    box-sizing: border-box;
}

.modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.modal-title-container {
    flex: 1;
}

.modal-title {
    font-family: "Inter", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    text-align: left;
}

.text-orange {
    color: var(--primary-orange, #f67214);
}

.modal-subtitle {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    padding: 4px;
    margin-left: 16px;
}

.btn-close:hover {
    opacity: 1;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 8px;
    display: block;
    text-align: left;
}

.premium-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
    outline: none;
}

.premium-input:focus {
    border-color: var(--primary-orange, #f67214);
    box-shadow: 0 0 0 4px rgba(246, 114, 20, 0.1);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.btn-waitlist {
    background: linear-gradient(135deg, var(--primary-orange, #f67214), #ff8c42);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(246, 114, 20, 0.25);
    width: 100%;
    cursor: pointer;
}

.btn-waitlist:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(246, 114, 20, 0.35);
}

.waitlist-modal-message {
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    text-align: center;
}

.modal-footer-text {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin-top: 24px;
}

@media (max-width: 480px) {
    .modal-content-premium {
        padding: 24px 20px;
    }
    .modal-title {
        font-size: 22px;
    }
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Home Page Dashboard Responsive Layouts */
@media (max-width: 991px) {
    .kb-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .kb-hero-visual {
        display: none !important; /* Hide visual on smaller viewports */
    }
    
    .kb-stats-strip {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .kb-stats-strip {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .kb-hero-section {
        padding: 30px 0 40px;
        background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, #fffcfa 100%) !important;
    }

    .kb-hero-title {
        font-size: 32px !important;
    }
    
    .kb-hero-subtitle {
        font-size: 15px !important;
        margin-bottom: 24px !important;
    }

    .kb-domains-grid {
        display: none !important;
    }

    .kb-section-header {
        display: none !important;
    }

    .kb-custom-dropdown-wrap {
        display: block !important;
    }

    .kb-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .kb-featured-card {
        grid-column: span 1 !important;
    }

    .kb-stat-number {
        font-size: 22px;
    }

    .kb-stat-label {
        font-size: 10px;
        letter-spacing: 0.6px;
    }
    
    .kb-recent-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Skill Cards Directories Grid (Homepage Overhaul)
   ========================================================================== */
.kb-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* Increased gap to naturally narrow the cards slightly */
    margin-top: 40px;
}

.kb-skill-card {
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px 22px 37px 22px;
    padding: 26px 28px; /* Slightly reduced padding to match smaller card scale */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.02);
    transition: border-color 0.25s ease, box-shadow 0.25s ease; /* Transition only borders and shadows */
    min-height: 380px; /* Reduced from 410px for a more compact height */
    height: auto;
    position: relative;
    overflow: hidden;
}

.kb-skill-card:hover {
    border-color: var(--primary-orange, #f67214); /* Full brand orange border */
    box-shadow: 0 0 0 4px rgba(246, 114, 20, 0.15), 0 12px 30px rgba(15, 23, 42, 0.08); /* Sophisticated orange halo glow + soft drop shadow */
}

.kb-card-accent-image {
    position: absolute;
    bottom: -9px;
    right: -2px;
    width: 288px;
    height: auto;
    pointer-events: none;
    z-index: 1;
}

.kb-skill-watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 155px;
    height: 155px;
    opacity: 0.12;
    pointer-events: none;
    color: var(--primary-orange, #f67214); /* Orange watermark outline */
    transition: opacity 0.3s ease;
    transform: rotate(-10deg);
    -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,0) 15%, rgba(0,0,0,1) 90%);
    mask-image: linear-gradient(135deg, rgba(0,0,0,0) 15%, rgba(0,0,0,1) 90%);
    z-index: 2; /* Sit above the white card body (z-index: 1) but behind text links */
}

.kb-skill-watermark svg {
    width: 100%;
    height: 100%;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1px !important; /* Ultra-fine stroke width */
}

.kb-skill-watermark-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast; /* Sharpens line graphics in webkit browsers */
    image-rendering: crisp-edges; /* Modern sharp image rendering standard */
}

.kb-skill-card:hover .kb-skill-watermark {
    opacity: 0.2;
}

.kb-skill-card-header {
    margin-bottom: 7px; /* Applied user adjustment */
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
    z-index: 2; /* Sit above white background body */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.kb-skill-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.kb-skill-explore-prefix {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b; /* Soft slate gray */
    margin-bottom: 4px;
    display: block;
    transition: color 0.3s ease;
}

.kb-skill-card:hover .kb-skill-explore-prefix {
    color: var(--primary-orange, #f67214);
}

.kb-skill-articles-badge {
    font-family: 'Outfit', sans-serif;
    background: rgba(246, 114, 20, 0.08);
    border: 1px solid rgba(246, 114, 20, 0.15);
    border-radius: 100px;
    padding: 4px 12px 4px 4px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2; /* Sit above white background body */
}

.kb-skill-articles-badge .badge-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(246, 114, 20, 0.15);
    border-radius: 50%;
    color: var(--primary-orange, #f67214);
    transition: all 0.2s ease;
}

.kb-skill-articles-badge .badge-icon-wrap svg,
.kb-skill-articles-badge .badge-icon-wrap .badge-icon-img {
    width: 10px;
    height: 10px;
    stroke-width: 2.5px;
    object-fit: contain;
    display: block;
}

.kb-skill-articles-badge .badge-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-orange, #f67214);
    letter-spacing: 0.5px;
    margin-left: 8px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.kb-skill-card:hover .kb-skill-articles-badge {
    background: var(--primary-orange, #f67214);
    border-color: var(--primary-orange, #f67214);
}

.kb-skill-card:hover .kb-skill-articles-badge .badge-icon-wrap {
    background: #ffffff;
    color: var(--primary-orange, #f67214);
}

.kb-skill-card:hover .kb-skill-articles-badge .badge-text {
    color: #ffffff;
}

.kb-skill-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px; /* Increased back to 28px as requested */
    font-weight: 700;
    margin: 0 0 12px 0; /* Add bottom margin to create breathing room before links */
    letter-spacing: -0.02em; /* Sleek geometric tracking */
    line-height: 1.25;
}

.kb-skill-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kb-skill-card:hover .kb-skill-title a {
    color: var(--primary-orange, #f67214);
}

.kb-skill-links {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex-grow: 1;
    position: relative;
    z-index: 2; /* Sit above white background body */
}

.kb-skill-links li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
    box-sizing: border-box;
}

.kb-skill-links li::before {
    content: "›";
    position: absolute;
    left: 4px;
    color: var(--primary-orange, #f67214);
    font-size: 16px;
    font-weight: 700;
    top: -2px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.kb-skill-card:hover .kb-skill-links li::before {
    transform: translateX(3px); /* Elegant slide in sync on hover */
}

.kb-skill-links a {
    font-size: 13px;
    font-weight: 420;
    color: #52525b;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.kb-skill-links a:hover {
    color: var(--primary-orange, #f67214);
    transform: translateX(4px);
}

.kb-skill-footer {
    border-top: none;
    padding-top: 0;
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 2; /* Sit above white background body */
}

.kb-view-all-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-orange, #f67214);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.kb-view-all-link .arrow {
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.kb-skill-card:hover .kb-view-all-link {
    color: var(--primary-orange-hover, #e0620f);
}

.kb-skill-card:hover .kb-view-all-link .arrow {
    transform: translateX(4px);
}

.kb-view-all-link:hover .arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   Category View Layout & Subpage Components
   ========================================================================== */
.kb-category-hero {
    padding: 27px 0 40px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, #fffcfa 100%);
    border-bottom: 1px solid #e2e8f0;
}

.kb-category-hero-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

/* Category Specific Watermark */
.kb-category-hero-watermark {
    position: absolute;
    left: -70px;
    top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    width: 330px;
    height: 330px;
    color: var(--primary-orange, #f67214);
    opacity: 0.08;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    /* Double-sided gradient mask to blend watermark smoothly */
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 90%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 90%);
}

.kb-category-hero-watermark svg,
.kb-category-hero-watermark .kb-category-hero-watermark-img {
    width: 100%;
    height: 100%;
    stroke-width: 1.2px;
    object-fit: contain;
}



.kb-category-breadcrumb {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
}

.kb-category-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease);
}

.kb-category-breadcrumb a:hover {
    color: var(--primary-orange, #f67214);
}

.kb-category-breadcrumb .sep {
    margin: 0 8px;
    color: #cbd5e1;
}

#category-breadcrumb-active {
    color: var(--primary-orange, #f67214);
    font-weight: 700;
}

.kb-category-header-main {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 28px;
    box-sizing: border-box;
    width: 100%;
}

.kb-category-icon-large {
    width: 72px;
    height: 72px;
    background: #ffffff;
    border: 2px solid var(--primary-orange, #f67214);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange, #f67214);
    box-shadow: 0 8px 24px rgba(246, 114, 20, 0.06);
    flex-shrink: 0;
    margin-bottom: 20px;
}

.kb-category-icon-large svg {
    width: 36px;
    height: 36px;
}

.kb-category-header-text {
    flex-grow: 1;
}

.kb-category-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin: 0 0 18px 0;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kb-category-parent {
    display: none;
}

.kb-category-description {
    font-size: 17px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    max-width: 700px;
    font-family: 'Inter', sans-serif;
    font-weight: 450;
}

.kb-category-search-wrapper {
    width: 100%;
    max-width: 480px;
    margin-top: 8px;
}

.kb-category-search-wrapper .kb-search-container {
    position: relative;
    width: 100%;
}

.kb-category-search-wrapper .kb-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.kb-category-search-wrapper .kb-search-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.kb-category-search-wrapper .kb-search-input {
    width: 100%;
    height: 56px;
    padding: 12px 24px 12px 54px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.kb-category-search-wrapper .kb-search-input::placeholder {
    color: #94a3b8;
}

.kb-category-search-wrapper .kb-search-input:focus {
    border-color: var(--primary-orange, #f67214);
    box-shadow: 0 0 0 4px rgba(246, 114, 20, 0.12);
}

.kb-category-body-band {
    padding: 50px 0 80px;
    background: #ffffff;
}

.kb-category-articles-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.kb-category-article-card {
    background: #ffffff;
    border: 1px solid #d3d2d2;
    border-radius: 4px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

.kb-category-article-card:hover {
    border-color: var(--primary-orange, #f67214);
    transform: translate(-6px, -6px);
    box-shadow: 8px 8px 0px var(--primary-orange, #f67214);
}

.kb-category-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.kb-category-article-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f5f5f7;
    color: #48484a;
    padding: 4px 8px;
    border-radius: 6px;
}

.kb-category-article-date {
    font-size: 12px;
    color: #86868b;
}

.kb-category-article-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.kb-category-article-title a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kb-category-article-title a:hover {
    color: var(--primary-orange, #f67214);
}

.kb-category-article-excerpt {
    font-size: 14px;
    color: #48484a;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.kb-category-article-footer {
    display: flex;
    justify-content: flex-start;
}

.kb-category-article-link {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main, #1d1d1f);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.kb-category-article-link .arrow {
    transition: transform 0.3s ease;
}

.kb-category-article-card:hover .kb-category-article-link {
    color: var(--primary-orange, #f67214);
}

.kb-category-article-card:hover .kb-category-article-link .arrow {
    transform: translateX(4px);
}

.kb-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: #f5f5f7;
    border-radius: 16px;
    border: 1px dashed #d1d1d6;
    max-width: 800px;
    margin-top: 10px;
    box-sizing: border-box;
}

.kb-no-results h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 6px 0;
}

.kb-no-results p {
    font-size: 14px;
    color: #86868b;
    margin: 0;
}

/* ==========================================================================
   Media Overrides for directory blocks
   ========================================================================== */
@media (max-width: 1199px) {
    .kb-skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .kb-category-articles-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.kb-category-mobile-back-btn {
    display: none;
}

@media (max-width: 1024px) {
    .kb-category-articles-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .kb-category-mobile-back-btn {
        display: none !important;
        align-items: center;
        gap: 6px;
        color: var(--text-secondary);
        text-decoration: none;
        font-family: 'Outfit', sans-serif;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 16px;
        padding: 6px 12px;
        border-radius: 6px;
        background-color: #f1f5f9;
        border: 1px solid #cbd5e1;
        transition: all 0.2s ease;
        line-height: 1;
    }

    .kb-category-mobile-back-btn svg {
        width: 14px;
        height: 14px;
        stroke-width: 3px;
        color: var(--text-secondary);
        transition: color 0.2s ease;
    }

    .kb-category-mobile-back-btn:hover {
        background-color: #ffe6d5;
        border-color: var(--primary-orange);
        color: var(--primary-orange);
    }

    .kb-category-mobile-back-btn:hover svg {
        color: var(--primary-orange);
    }

    .kb-skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .kb-category-header-main {
        flex-direction: column;
        gap: 16px;
    }
    .kb-category-title {
        font-size: 26px;
    }
    .kb-category-hero {
        padding: 24px 0 40px;
    }
    .kb-category-hero-watermark {
        display: none !important;
    }
    .kb-category-body-band {
        padding: 40px 0 60px;
    }
    .kb-category-articles-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .kb-sidebar {
        display: none !important;
    }
    .kb-article-title {
        font-size: 28px;
        letter-spacing: -0.8px;
        line-height: 1.25;
        margin-bottom: 16px;
    }
    .kb-article-meta-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 15px 16px;
    }
    .kb-article-badge {
        margin-right: 100%;
        font-size: 11px;
        letter-spacing: 0.5px;
        padding: 4px 8px;
        line-height: 1.2;
        white-space: nowrap;
    }
    .kb-article-meta-item {
        font-size: 9.5px;
        letter-spacing: 0.8px;
    }
    .kb-article-meta-item svg {
        width: 12px;
        height: 12px;
    }
    .kb-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 6px;
        margin: 20px 0;
    }
    .kb-table {
        min-width: 650px;
    }
    .kb-table th, .kb-table td {
        padding: 10px 12px;
        font-size: 13.5px;
    }
    .kb-table-hint {
        display: flex !important;
    }
    .kb-related-sidebar .kb-sidebar-card:nth-child(2) {
        display: none !important;
    }
}

/* ==========================================================================
   iPad Air (820px) — Hide TOC sidebar, Share This Article & Explore Topics
   ========================================================================== */
@media (max-width: 820px) {
    /* Hide the entire left sidebar (Table of Contents + Share This Article) */
    .kb-sidebar {
        display: none !important;
    }

    /* Hide Share This Article share box if it appears inline */
    .kb-share-box {
        display: none !important;
    }

    /* Hide Explore Topics card in the right sidebar */
    .kb-related-sidebar .kb-sidebar-card:nth-child(2) {
        display: none !important;
    }
}

/* ==========================================================================
   Senior UI/UX Bespoke — AI Quick Read Component (Pristine Light Theme)
   ========================================================================== */

/* Hero Header Pill Trigger Button */
.kb-ai-summary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1.5px solid #fdba74;
    color: #c2410c;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.12);
}

.kb-ai-summary-btn:hover {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    border-color: #f97316;
    color: #9a3412;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.kb-ai-summary-btn svg {
    width: 15px;
    height: 15px;
    color: #ea580c;
}

/* AI Quick Read Knowledge Theme Card Container */
.kb-ai-quickread-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
    /* Deeper, more pronounced default layered shadow for visible depth without hovering */
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -4px rgba(15, 23, 42, 0.03);
    position: relative;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kb-ai-quickread-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(246, 114, 20, 0.05);
    border-color: #cbd5e1;
}

.kb-ai-quickread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kb-ai-quickread-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kb-ai-quickread-sparkle-orange {
    color: var(--primary-orange, #f67214);
    font-size: 16px;
    font-weight: 700;
}

.kb-ai-quickread-title-text {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.kb-ai-quickread-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.kb-ai-quickread-toggle-btn:hover {
    background: #f8fafc;
    color: #0f172a;
}

.kb-ai-quickread-toggle-btn svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.kb-ai-quickread-toggle-btn.is-collapsed svg {
    transform: rotate(180deg);
}

/* Collapsed state behavior — instant toggle, no dropdown slide-down animation */
.kb-ai-quickread-card.collapsed .kb-ai-cta-banner,
.kb-ai-quickread-card.collapsed .kb-ai-loading-state,
.kb-ai-quickread-card.collapsed .kb-ai-bullets-list,
.kb-ai-quickread-card.collapsed .kb-ai-waitlist-footer-link {
    display: none !important;
}

.kb-ai-quickread-card.collapsed {
    padding-bottom: 20px;
}

/* CTA State Banner */
.kb-ai-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.kb-ai-cta-left {
    flex: 1;
    min-width: 0;
}

.kb-ai-cta-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.kb-ai-cta-main-title .text-orange-italic {
    color: var(--primary-orange, #f67214);
    font-style: italic;
    font-weight: 700;
}

.kb-ai-cta-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

.kb-ai-cta-right {
    flex-shrink: 0;
}

/* Clean Pill Generate Button */
.kb-ai-generate-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #f43f5e 100%);
    background-size: 200% auto;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 11px 26px;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Centers text and icon horizontally */
    gap: 8px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35), 0 0 0 0px rgba(249, 115, 22, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    animation: flowBg 6s infinite linear;
}

.kb-ai-generate-btn span {
    display: inline-block;
    font-size: 14px;
    color: #ffe8d6;
    animation: sparklePulse 2s infinite ease-in-out;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover effects */
.kb-ai-generate-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.45), 0 0 0 6px rgba(249, 115, 22, 0.15);
    background-position: right center;
    color: #ffffff;
}

.kb-ai-generate-btn:hover span {
    transform: rotate(180deg) scale(1.3);
    color: #ffffff;
}

/* Active click states */
.kb-ai-generate-btn:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* GSAP-Style Keyframe Animations */
@keyframes flowBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes sparklePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

/* Loading Preload state */
.kb-ai-loading-state {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.kb-ai-loading-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-orange);
}

.kb-ai-loading-status svg {
    width: 15px;
    height: 15px;
    animation: spinSparkle 1.2s linear infinite;
}

@keyframes spinSparkle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.kb-ai-shimmer-bar {
    height: 12px;
    background: linear-gradient(90deg, #fff7ed 25%, #fed7aa 50%, #fff7ed 75%);
    background-size: 200% 100%;
    animation: shimmerWave 1.4s infinite linear;
    border-radius: 6px;
}

@keyframes shimmerWave {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Summary Bullets state */
.kb-ai-bullets-list {
    list-style: none;
    padding: 16px 0 0 0;
    margin: 16px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid #f1f5f9;
}

.kb-ai-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.kb-ai-bullet-icon {
    color: var(--primary-orange, #f67214);
    font-size: 15px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
    font-weight: 700;
}

.kb-ai-bullet-body {
    flex: 1;
    font-size: 14.5px;
    line-height: 1.55;
    color: #334155;
}

.kb-ai-bullet-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 14.5px;
    display: inline;
    margin-right: 4px;
}

.kb-ai-bullet-desc {
    color: #334155;
    font-size: 14.5px;
    display: inline;
}

/* Orange Vertical Typewriter Cursor line | */
.qr-typing-cursor {
    display: inline-block;
    width: 2px;
    height: 15px;
    background-color: var(--primary-orange);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.7s infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Simple Waitlist Footer Link */
.kb-ai-waitlist-footer-link {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #fed7aa;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    transition: opacity 0.3s ease;
}

.kb-ai-simple-link {
    color: var(--primary-orange);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kb-ai-simple-link:hover {
    color: #ea580c;
    text-decoration: underline;
}

/* ==========================================================================
   iFieldSmart Read Aloud Audio Player (Text-to-Speech Player Deck)
   ========================================================================== */

/* Hero Meta Row Listen Pill Button (Removed from Hero Section) */
.kb-hero-listen-btn, #heroListenTrigger {
    display: none !important;
}

.kb-hero-listen-btn:hover {
    background: var(--primary-orange);
    color: #ffffff;
    border-color: #ea580c;
}

/* Floating Audio Player Widget Container */
/* Floating Audio Player Widget Container */
.kb-audio-player-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Mini Floating Trigger Button */
.kb-audio-mini-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border: 1px solid rgba(249, 115, 22, 0.35);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.5), 0 0 20px rgba(249, 115, 22, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kb-audio-mini-btn:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(249, 115, 22, 0.6);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.6), 0 0 25px rgba(249, 115, 22, 0.35);
}

.kb-audio-mini-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #f8fafc;
}

/* Audio Equalizer Bar Animation */
.kb-audio-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
}

.kb-audio-equalizer span {
    width: 3px;
    background: linear-gradient(180deg, #ff8c37 0%, #f97316 100%);
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(249, 115, 22, 0.6);
    transition: height 0.3s ease;
}

.kb-audio-equalizer span:nth-child(1) { height: 6px; }
.kb-audio-equalizer span:nth-child(2) { height: 12px; }
.kb-audio-equalizer span:nth-child(3) { height: 8px; }

/* Animate only when audio is actively playing */
.kb-audio-player-wrapper.playing .kb-audio-equalizer span {
    animation: equalizerBounce 1.2s infinite ease-in-out alternate;
}

.kb-audio-player-wrapper.playing .kb-audio-equalizer span:nth-child(2) { 
    animation-delay: 0.25s; 
}

.kb-audio-player-wrapper.playing .kb-audio-equalizer span:nth-child(3) { 
    animation-delay: 0.45s; 
}

@keyframes equalizerBounce {
    0% { height: 4px; }
    100% { height: 14px; }
}

/* Expanded Audio Control Deck */
.kb-audio-deck {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 420px;
    max-width: calc(100vw - 32px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 41, 59, 0.97) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(249, 115, 22, 0.5);
    border-radius: 20px;
    padding: 18px 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 25px rgba(249, 115, 22, 0.15);
    animation: deckSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes deckSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.kb-audio-player-wrapper.expanded .kb-audio-mini-btn {
    display: none;
}

.kb-audio-player-wrapper.expanded .kb-audio-deck {
    display: block;
}

/* Deck Header & Progress Bar */
.kb-audio-deck-header {
    margin-bottom: 14px;
}

.kb-audio-deck-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.kb-audio-deck-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f97316;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    padding: 3px 9px;
    border-radius: 12px;
}

.kb-audio-deck-status {
    font-size: 11.5px;
    font-weight: 500;
    color: #cbd5e1;
}

.kb-audio-progress-bar-bg {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    overflow: hidden;
}

.kb-audio-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316 0%, #ff8c37 100%);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
    transition: width 0.25s ease;
}

/* Controls Layout */
.kb-audio-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.kb-audio-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.kb-audio-btn:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.45);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.kb-audio-btn.primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.5);
    color: #ffffff;
}

.kb-audio-btn.primary:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.7);
}

.kb-audio-btn.icon-only {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border-radius: 50%;
}

.kb-audio-btn.close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
}

.kb-audio-dropdown-wrapper {
    position: relative;
}

.kb-audio-dropdown {
    display: none;
    position: absolute;
    bottom: 46px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
    z-index: 100;
    min-width: 95px;
}

.kb-audio-dropdown.active {
    display: flex;
    flex-direction: column;
    gap: 3px;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.speed-option, .voice-option {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.speed-option:hover, .voice-option:hover,
.speed-option.active, .voice-option.active {
    background: rgba(249, 115, 22, 0.25);
    color: #f97316;
    font-weight: 700;
}

/* Active Highlight of Spoken Sentence in Article Body */
.reading-highlight {
    background: linear-gradient(120deg, #ffedd5 0%, #fed7aa 100%) !important;
    color: #0f172a !important;
    border-radius: 6px;
    padding: 4px 8px !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.35) !important;
    transition: all 0.3s ease !important;
    animation: highlightPulse 1.5s ease-in-out infinite !important;
}

@keyframes highlightPulse {
    0%, 100% {
        background: linear-gradient(120deg, #ffedd5 0%, #fed7aa 100%) !important;
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.35) !important;
    }
    50% {
        background: linear-gradient(120deg, #fed7aa 0%, #fdba74 100%) !important;
        box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.5) !important;
    }
}

/* ==========================================
   Mobile Responsiveness for Audio Player Deck
   ========================================== */
@media (max-width: 768px) {
    .kb-audio-player-wrapper {
        bottom: 16px;
        right: 16px;
    }

    .kb-audio-mini-btn {
        padding: 9px 16px;
        gap: 8px;
    }

    .kb-audio-mini-text {
        font-size: 12px;
    }

    /* Bottom-docked sheet player deck on mobile devices */
    .kb-audio-deck {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
        padding: 14px 16px 20px 16px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(249, 115, 22, 0.2);
    }

    .kb-audio-controls {
        gap: 6px;
    }

    .kb-audio-btn {
        padding: 6px 10px;
        font-size: 11.5px;
    }

    .kb-audio-btn.primary {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .kb-audio-btn.icon-only {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}

@media (max-width: 480px) {
    .kb-audio-player-wrapper {
        bottom: 12px;
        right: 12px;
    }

    .kb-audio-deck-header {
        margin-bottom: 10px;
    }

    .kb-audio-deck-info {
        gap: 6px;
    }

    .kb-audio-deck-status {
        font-size: 10.5px;
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .kb-audio-controls {
        gap: 4px;
    }

    .kb-audio-btn {
        padding: 5px 8px;
        font-size: 11px;
        border-radius: 8px;
    }

    .kb-audio-dropdown {
        min-width: 85px;
        padding: 4px;
    }

    .speed-option, .voice-option {
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* ==========================================
   Mobile Responsiveness for AI Quick Read Card
   ========================================== */
@media (max-width: 768px) {
    .kb-ai-quickread-card {
        padding: 10px 12px;
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .kb-ai-quickread-header {
        gap: 8px;
    }

    .kb-ai-quickread-title-text {
        font-size: 13px;
    }

    .kb-ai-cta-main-title {
        font-size: 14.5px;
        margin-bottom: 2px !important;
    }

    .kb-ai-cta-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
    }

    .kb-ai-cta-subtitle {
        font-size: 11.5px;
    }

    .kb-ai-generate-btn {
        width: 100%;
        min-height: 36px;
        padding: 8px 16px;
        font-size: 12.5px;
        border-radius: 8px;
    }

    .kb-ai-bullet-item {
        gap: 9px;
    }

    .kb-ai-bullet-body {
        font-size: 13.5px;
        line-height: 1.55;
    }

    .kb-ai-bullet-title {
        display: inline;
        font-size: 13.5px;
        margin-right: 4px;
    }

    .kb-ai-bullet-desc {
        display: inline;
        font-size: 13.5px;
    }

    .kb-ai-waitlist-footer-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        font-size: 12.5px;
        line-height: 1.5;
        padding-top: 14px;
        margin-top: 16px;
    }
    .kb-ai-simple-link {
        margin-top: 2px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .kb-ai-quickread-card {
        padding: 12px 14px;
    }

    .kb-ai-mini-tag {
        font-size: 10px;
    }

    .kb-ai-bullet-icon {
        width: 16px;
        height: 16px;
        margin-top: 2px;
    }

    .kb-ai-bullet-body,
    .kb-ai-bullet-title,
    .kb-ai-bullet-desc {
        font-size: 13px;
        line-height: 1.5;
    }

}

/* Fix: AI summary footer — external link icon size */
.kb-ai-waitlist-footer-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    vertical-align: middle;
    display: inline-block;
}

.kb-ai-simple-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    /* button reset */
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    /* styling */
    color: var(--primary-orange, #f67214);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.kb-ai-simple-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ==========================================================================
   Waitlist Registration Modal
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 20px;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-dialog {
    width: 100%;
    max-width: 620px;
    margin: auto;
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-content-premium {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px 40px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.18), 0 8px 24px rgba(0,0,0,0.08);
    position: relative;
}

.modal-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.modal-title-container { flex: 1; }

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.modal-title .text-orange { color: var(--primary-orange, #f67214); }

.modal-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.btn-close {
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    transition: all 0.2s ease;
}

.btn-close:hover { background: #e2e8f0; color: #0f172a; }

.waitlist-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.waitlist-modal-col-half {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.waitlist-modal-col-full {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.1px;
}

.premium-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14.5px;
    color: #0f172a;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.premium-input::placeholder { color: #94a3b8; }

.premium-input:focus {
    border-color: var(--primary-orange, #f67214);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(246,114,20,0.1);
}

.btn-waitlist {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 16px rgba(249,115,22,0.3);
}

.btn-waitlist:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249,115,22,0.4);
}

.btn-waitlist:active { transform: translateY(0); }
.btn-waitlist:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.waitlist-modal-message {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    min-height: 18px;
    text-align: center;
}

.modal-footer-text {
    font-size: 12.5px;
    color: #94a3b8;
    text-align: center;
    margin: 20px 0 0 0;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 640px) {
    .modal-content-premium { padding: 24px 20px; }
    .modal-title { font-size: 22px; }
    .waitlist-modal-row { grid-template-columns: 1fr; }
    .waitlist-modal-col-half { grid-column: 1; }
}


/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS — Homepage & Global
   ========================================================================== */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
    .kb-container { padding: 0 24px; }
    .kb-hero-title { font-size: 32px; letter-spacing: -0.8px; }
    .kb-stat-card { padding: 0 24px 0 0; margin-right: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; }

    /* Container */
    .kb-container { padding: 0 16px; }

    /* Header — show hamburger, hide nav */
    .header-nav { display: none; }
    .hamburger { display: flex; }

    /* Hero */
    .kb-hero-section { padding: 32px 0 20px; }
    .kb-hero-container { padding: 0 16px; }
    .kb-hero-breadcrumb { font-size: 10px; letter-spacing: 1.4px; margin-bottom: 10px; }
    .kb-hero-title { font-size: 24px; letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 8px; }
    .kb-hero-subtitle { font-size: 13.5px; margin-bottom: 18px; line-height: 1.5; }
    .kb-search-wrapper { max-width: 100%; margin-bottom: 18px; }
    .kb-search-input { height: 46px; font-size: 14px; }

    /* Stats Strip — Mobile Fix */
    .kb-stats-strip { 
        display: grid !important; 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 16px 0 !important; 
        margin-bottom: 24px !important; 
        border: none !important;
        border-top: 1px solid #e2e8f0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 16px 0 !important;
    }
    .kb-stat-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        justify-content: flex-start !important; /* Left-align for precise grid columns */
    }
    .kb-stat-card:nth-child(odd) {
        border-right: 1px solid #e2e8f0 !important;
        padding: 6px 12px 6px 8px !important; /* Flush left alignment */
    }
    .kb-stat-card:nth-child(even) {
        padding: 6px 12px 6px 28px !important; /* Uniform indentation from middle line */
    }
    .kb-stat-number { font-size: 22px !important; margin-bottom: 4px !important; }
    .kb-stat-label { font-size: 10px !important; line-height: 1.3 !important; }

    /* Domain Grid — hide on mobile (uses dropdown) */
    .kb-domains-grid { display: none !important; }
    .kb-custom-dropdown-wrap { display: block !important; }

    /* Cards grid — single column */
    .kb-skills-grid { grid-template-columns: 1fr !important; gap: 12px !important; }

    /* Recently Updated */
    .kb-recent-section { padding: 24px 0 28px; }
    .kb-recent-header { margin-bottom: 14px; }
    .kb-recent-title { font-size: 18px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .brand-column .footer-logo img { height: 64px !important; }
    .mobile-social-section { display: block !important; }
    .brand-column .social-row { display: none !important; }
    .accordion-icon { display: inline !important; }
    .footer-bottom-bar { padding-bottom: 20px !important; }
    .copyright-text { font-size: 13px !important; }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    body { padding-top: 64px; }
    .site-header { min-height: 64px; padding: 10px 14px; }
    .site-logo { height: 34px; }

    .kb-hero-section { padding: 24px 0 16px; }
    .kb-hero-title { font-size: 21px; }
    .kb-hero-subtitle { font-size: 13px; }
    .kb-search-input { height: 44px; font-size: 13px; padding: 10px 14px 10px 46px; }

    /* Stats — compact 2-column grid on very small mobile */
    .kb-stats-strip { 
        display: grid !important; 
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px 0 !important; 
        border: none !important;
        border-top: 1px solid #e2e8f0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 12px 0 !important;
    }
    .kb-stat-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important; /* Left aligned */
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .kb-stat-card:nth-child(odd) {
        border-right: 1px solid #e2e8f0 !important;
        padding: 6px 8px 6px 0px !important; /* Move flush left */
    }
    .kb-stat-card:nth-child(even) {
        padding: 6px 4px 6px 12px !important; /* Reduced indentation to avoid horizontal overflow */
    }
    .kb-stat-icon {
        width: 24px !important;
        height: 24px !important;
        margin-right: 2px !important;
    }
    .kb-stat-icon svg {
        width: 12px !important;
        height: 12px !important;
    }
    .kb-stat-number { font-size: 16px !important; margin-bottom: 2px !important; }
    .kb-stat-label { font-size: 8px !important; letter-spacing: 0.2px !important; }

    /* Recent item tighten */
    .kb-recent-item { padding: 34px 12px 10px !important; overflow: hidden !important; }
    .kb-recent-name { font-size: 12.5px; }
    .kb-recent-right { min-width: 56px; }
    .kb-recent-date { font-size: 9px; }
    .kb-recent-badge {
        font-size: 7.5px !important;
        padding: 4px 10px !important;
        left: 0 !important;
        border-top-left-radius: 12px !important;
        border-bottom-right-radius: 12px !important;
        border-top-right-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }
    .kb-recent-icon-wrap { width: 32px; height: 32px; }
}

/* ==========================================================================
   Share Article Widget — Sidebar
   ========================================================================== */

.kb-share-box {
    /* Card Container Styling */
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    
    margin-top: 24px;
    flex-shrink: 0;
}

.kb-share-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--text-secondary, #64748b);
    margin-bottom: 14px;
    margin-top: 0;
}

.kb-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kb-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
}

.kb-share-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
}

/* Hover states — each platform color */
.kb-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.share-x:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.share-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #ffffff;
}

.share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #ffffff;
}

.share-instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: #d6249f;
    color: #ffffff;
}

.share-copy:hover {
    background: var(--primary-orange, #f67214);
    border-color: var(--primary-orange, #f67214);
    color: #ffffff;
}

/* Mobile: sidebar becomes static, share row goes inline */
@media (max-width: 1024px) {
    .kb-share-box {
        margin-top: 20px;
        padding-top: 16px;
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .kb-share-title {
        margin-bottom: 0;
        white-space: nowrap;
    }

    .kb-share-buttons {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .kb-share-btn {
        width: 34px;
        height: 34px;
    }

    .kb-share-btn svg {
        width: 14px;
        height: 14px;
    }
}

@keyframes kbFadeUp {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==========================================================================
   Hero Share Strip (mobile-only, appears below orange badge in article hero)
   ========================================================================== */

/* Hidden by default — desktop shows share only in sidebar */
.kb-hero-share {
    display: none;
}

/* Show on mobile / tablet */
@media (max-width: 1024px) {
    .kb-hero-share {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.07);
        flex-wrap: nowrap;
        overflow: visible;
    }

    .kb-hero-share-label {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #94a3b8;
        white-space: nowrap;
        line-height: 1;
    }

    .kb-hero-share-btns {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }

    .kb-hero-share-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1.5px solid #e2e8f0;
        background: #ffffff;
        color: #475569;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
        flex-shrink: 0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }

    .kb-hero-share-btn svg {
        width: 15px;
        height: 15px;
        display: block;
        pointer-events: none;
    }

    .kb-hero-share-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.13);
    }

    .kb-hero-share-btn.share-x:hover {
        background: #000;
        border-color: #000;
        color: #fff;
    }

    .kb-hero-share-btn.share-linkedin:hover {
        background: #0077b5;
        border-color: #0077b5;
        color: #fff;
    }

    .kb-hero-share-btn.share-facebook:hover {
        background: #1877f2;
        border-color: #1877f2;
        color: #fff;
    }

    .kb-hero-share-btn.share-copy:hover {
        background: var(--primary-orange, #f67214);
        border-color: var(--primary-orange, #f67214);
        color: #fff;
    }

} /* end @media (max-width: 1024px) */

@media (max-width: 480px) {
    .kb-hero-share {
        gap: 10px;
        margin-top: 14px;
        padding-top: 14px;
    }

    .kb-hero-share-btn {
        width: 33px;
        height: 33px;
    }

    .kb-hero-share-btn svg {
        width: 13px;
        height: 13px;
    }
}

/* Align Bottom Related Section with Left TOC Edge */
.kb-related-section {
    padding: 20px 0 56px !important;   /* reduced top padding, keeping bottom breathing room */
    text-align: left !important;
}

.kb-related-section .kb-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 145px !important;
    padding-right: 145px !important;
    box-sizing: border-box !important;
}

@media (max-width: 1200px) {
    .kb-related-section .kb-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ==========================================================================
   Compact cards — Latest Updates strip (article page only)
   Scoped to #kb-bottom-related-grid so index-page cards are unaffected
   ========================================================================== */

/* Tighter grid gap */
#kb-bottom-related-grid.kb-grid {
    gap: 20px;
}

/* Compact card shell */
#kb-bottom-related-grid .kb-card {
    padding: 20px 22px;
    height: 280px;
}

/* Smaller watermark for compact related cards */
#kb-bottom-related-grid .kb-card-watermark {
    width: 140px;
    height: 140px;
    bottom: -25px;
    right: -25px;
}

/* Tighter title */
#kb-bottom-related-grid .kb-card-title {
    font-size: 15px;
    margin-bottom: 8px;
}

/* Shorter excerpt */
#kb-bottom-related-grid .kb-card-excerpt {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Compact footer */
#kb-bottom-related-grid .kb-card-footer {
    padding-top: 12px;
    gap: 10px;
}

#kb-bottom-related-grid .kb-card-date {
    font-size: 11px;
}

/* Smaller CTA button */
#kb-bottom-related-grid .kb-card-link {
    font-size: 11.5px;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    letter-spacing: 1px;
    color: var(--primary-orange, #f67214) !important;
    box-shadow: none !important;
}

#kb-bottom-related-grid .kb-card:hover .kb-card-link {
    color: var(--primary-orange-hover, #e0620f) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#kb-bottom-related-grid .kb-card:hover .kb-card-link .arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   Bottom Breadcrumb — below cards & pagination on category pages
   ========================================================================== */
.kb-bottom-breadcrumb {
    margin-top: 32px;
    padding-bottom: 3px;
}

/* ==========================================================================
   Category Body Band — articles feed wrapper
   ========================================================================== */
.kb-category-body-band {
    padding: 50px 0 80px;
    background: #ffffff;
    min-height: 55vh;
}

/* Duplicate Category Hero definitions cleaned up to unify design system */



/* ── FAQ auto-numbering (matches the numbered questions in the source template) ── */
.kb-faq-section { counter-reset: kb-faq-counter; }
.kb-faq-item { counter-increment: kb-faq-counter; }
.kb-faq-question > span:first-child::before { content: counter(kb-faq-counter) ". "; }

/* ── Fallback styling for plain <table> authored WITHOUT the kb-table classes.
   Only data tables (those with a <thead>) get the grid, so single-cell callout
   tables keep their own inline styling. ── */
.kb-article-body table:not(.kb-table):has(thead){
  width:100%;
  border-collapse:collapse;
  margin:24px 0;
  font-size:14px;
  line-height:1.55;
}
.kb-article-body table:not(.kb-table):has(thead) th,
.kb-article-body table:not(.kb-table):has(thead) td{
  border:1px solid #e5e7eb;
  padding:12px 16px;
  text-align:left;
  vertical-align:top;
}
.kb-article-body table:not(.kb-table):has(thead) thead th{
  background:#f8fafc;
  font-weight:700;
  color:#0a0a0a;
}
.kb-article-body table:not(.kb-table):has(thead) tbody tr:nth-child(even){
  background:#fbfcfe;
}
@media (max-width:700px){
  .kb-article-body table:not(.kb-table):has(thead){ display:block; overflow-x:auto; }
}

/* Constrain category image icons in the article "Recent Articles" sidebar
   so they match the 17px svg slot (fixes oversized icon). */
.kb-sidebar-related-item-icon-wrap img{ width:17px; height:17px; object-fit:contain; }

/* ==========================================================================
   Gutenberg-authored article content: the block editor strips inline styles,
   so brand the tables + callouts from CSS by structure. Colors match the
   source DOCX: header #3D2521 (white text), zebra #F5EEE3, callout #FBF6EE
   with #FAA71A accent bar and #A06A12 label.
   ========================================================================== */

/* Data tables (any plain table that has a header row) */
.kb-article-body table:not(.kb-table):has(thead) thead th{
  background-color:#3D2521 !important;
  color:#ffffff !important;
  border:1px solid #3D2521;
}
.kb-article-body table:not(.kb-table):has(thead) tbody tr:nth-child(even) td{
  background-color:#F5EEE3;
}
.kb-article-body table:not(.kb-table):has(thead) th,
.kb-article-body table:not(.kb-table):has(thead) td{
  border:1px solid #e5e7eb; padding:12px 16px; text-align:left; vertical-align:top;
}

/* Single-cell CALLOUT boxes -> cream card with orange left bar + gold label */
.kb-article-body table:not(.kb-table):not(:has(thead)):has(tbody tr:only-child td:only-child){
  width:100%; border-collapse:collapse; margin:24px 0;
  background:#FBF6EE !important;
  border:0 !important; border-left:4px solid #FAA71A !important;
}
.kb-article-body table:not(.kb-table):not(:has(thead)):has(tbody tr:only-child td:only-child) td{
  background:#FBF6EE !important; border:0 !important; padding:14px 18px !important;
}
.kb-article-body table:not(.kb-table):not(:has(thead)):has(tbody tr:only-child td:only-child) td strong:first-child{
  color:#A06A12;
}

/* Mobile: wide tables scroll horizontally instead of squishing columns */
.kb-article-body .wp-block-table{ overflow-x:auto; -webkit-overflow-scrolling:touch; margin-left:0; margin-right:0; }
.kb-article-body table:not(.kb-table){ table-layout:auto; }
@media (max-width:700px){
  .kb-article-body .wp-block-table table:has(thead){ min-width:640px; }
  .kb-article-body table:not(.kb-table):has(thead):not(.wp-block-table table){ display:block; overflow-x:auto; }
}
