/* ═══════════════════════════════════════════════════
   KB SOLUTIONS — STYLESHEET v3
   Fixes: light navbar, hero gap, stats compressed,
          dark strip, blog categories, products page
   ═══════════════════════════════════════════════════ */

:root {
    --kb-blue:        #1B3FC4;
    --kb-blue-dark:   #0F2A8A;
    --kb-blue-deep:   #080E2C;
    --kb-orange:      #F97316;
    --kb-orange-hot:  #ea580c;
    --kb-off:         #F8FAFF;
    --kb-gray-light:  #E5E7EB;
    --kb-text:        #0F172A;
    --kb-text-muted:  #64748B;
    --kb-surface:     #ffffff;
    --kb-dark:        #080E2C;
    --kb-dark-2:      #0D1640;
    --font-display: 'Plus Jakarta Sans', 'Cairo', sans-serif;
    --font-body:    'Plus Jakarta Sans', 'Cairo', sans-serif;
    --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
    --shadow-md:  0 4px 20px rgba(0,0,0,.10);
    --shadow-lg:  0 20px 60px rgba(0,0,0,.15);
    --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.kb-body { font-family: var(--font-body); font-size: 16px; line-height: 1.75; color: var(--kb-text); background: #fff; overflow-x: hidden; }
[dir="rtl"] { font-family: 'Cairo', sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }

/* ── Section labels & titles ─────────────────────── */
.kb-section-label { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--kb-orange); margin-bottom: 12px; }
.kb-section-title { font-family: var(--font-display); font-size: clamp(26px,3.5vw,40px); font-weight: 700; line-height: 1.25; color: var(--kb-text); margin-bottom: 16px; padding-bottom: 4px; }
.kb-section-title em { font-style: normal; color: var(--kb-orange); }
.kb-section-title .kb-highlight { color: var(--kb-blue); }
.kb-section-desc { font-size: 17px; color: var(--kb-text-muted); max-width: 600px; margin: 0 auto; line-height: 1.75; }
.kb-section-header { margin-bottom: 12px; }

/* ── Buttons ─────────────────────────────────────── */
.kb-btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; background: linear-gradient(135deg,var(--kb-orange),var(--kb-orange-hot)); color: #fff !important; border: none; border-radius: var(--radius-md); font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.4; cursor: pointer; transition: var(--transition); box-shadow: 0 4px 20px rgba(249,115,22,.35); }
.kb-btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(249,115,22,.5); }
.kb-btn-primary:active { transform: translateY(0); }
.kb-btn-lg { padding: 16px 36px; font-size: 16px; }

.kb-btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; background: transparent; color: var(--kb-blue) !important; border: 1.5px solid var(--kb-blue); border-radius: var(--radius-md); font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.4; transition: var(--transition); }
.kb-btn-outline:hover { background: var(--kb-blue); color: #fff !important; transform: translateY(-2px); }

/* On dark backgrounds: outline-light becomes outline-dark (blue) */
.kb-btn-outline-light { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; background: transparent; color: var(--kb-blue) !important; border: 1.5px solid var(--kb-blue); border-radius: var(--radius-md); font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.4; transition: var(--transition); }
.kb-btn-outline-light:hover { background: var(--kb-blue); color: #fff !important; transform: translateY(-2px); }

.kb-btn-whatsapp { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: #25D366; color: #fff !important; border: none; border-radius: var(--radius-md); font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.4; transition: var(--transition); box-shadow: 0 4px 20px rgba(37,211,102,.3); }
.kb-btn-whatsapp:hover { background: #1fba59; transform: translateY(-2px); }

/* ══════════════════════════════════════════════════
   NAVBAR — LIGHT WHITE
   ══════════════════════════════════════════════════ */
.kb-navbar {
    padding: 10px 0;
    background: #ffffff;
    transition: all 0.35s ease;
    z-index: 1000;
    border-bottom: 1px solid var(--kb-gray-light);
    box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.kb-navbar.scrolled { padding: 7px 0; box-shadow: 0 4px 24px rgba(0,0,0,.12); }
.kb-logo img { height: 42px; transition: var(--transition); }
.kb-navbar.scrolled .kb-logo img { height: 36px; }

/* Dark text on white */
.kb-nav-link { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--kb-text) !important; padding: 7px 12px !important; border-radius: var(--radius-sm); transition: var(--transition); position: relative; line-height: 1.5; }
.kb-nav-link::after { content: ''; position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--kb-orange); border-radius: 2px; transition: width .25s; }
.kb-nav-link:hover::after, .kb-nav-link.active::after { width: 55%; }
.kb-nav-link:hover, .kb-nav-link.active { color: var(--kb-blue) !important; }

/* Dropdown stays dark */
.kb-dropdown { background: var(--kb-dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0,0,0,.4); min-width: 240px; padding: 8px; margin-top: 8px !important; }
.kb-dropdown .dropdown-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.8); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition); line-height: 1.5; white-space: normal; }
.kb-dropdown .dropdown-item:hover { background: rgba(249,115,22,.12); color: var(--kb-orange); }
.kb-dd-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.kb-dd-icon svg { width: 18px; height: 18px; display: block; }

/* Lang switch adapts to light navbar */
.kb-lang-switch { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--kb-off); border: 1px solid var(--kb-gray-light); border-radius: 50%; color: var(--kb-text); font-size: 12px; font-weight: 700; transition: var(--transition); }
.kb-lang-switch:hover { background: var(--kb-orange); border-color: var(--kb-orange); color: #fff; }

/* Compact quote button on light navbar */
.kb-navbar .kb-btn-primary { padding: 9px 20px; font-size: 14px; }

/* Hamburger dark on white */
.kb-toggler { border: none; background: none; padding: 6px; }
.kb-burger  { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.kb-burger span { display: block; height: 2px; background: var(--kb-text); border-radius: 2px; transition: var(--transition); }

/* ══════════════════════════════════════════════════
   HERO — No gap from navbar
   ══════════════════════════════════════════════════ */
.kb-hero {
    position: relative;
    background: #ffffff;
    min-height: calc(100vh - 64px);   /* subtract navbar height */
    display: flex; align-items: center;
    overflow: hidden;
    padding-top: 24px;   /* small top breathing room only */
    padding-bottom: 40px;
}
.kb-hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.kb-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(27,63,196,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(27,63,196,.04) 1px,transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center,black 30%,transparent 80%); }
.kb-hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.kb-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle,rgba(27,63,196,.07) 0%,transparent 70%); top: -200px; right: -100px; }
.kb-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle,rgba(249,115,22,.06) 0%,transparent 70%); bottom: 0; left: 10%; }

.kb-hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.25); border-radius: 50px; color: var(--kb-orange); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; }
.kb-badge-dot { width: 7px; height: 7px; background: var(--kb-orange); border-radius: 50%; animation: badgePulse 2s ease-in-out infinite; }
@keyframes badgePulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.5)} }

.kb-hero-title { font-family: var(--font-display); font-size: clamp(34px,5vw,62px); font-weight: 800; line-height: 1.12; color: var(--kb-text); margin-bottom: 24px; padding-bottom: 6px; }
.kb-hero-title .kb-accent      { color: var(--kb-orange); }
.kb-hero-title .kb-accent-blue { color: var(--kb-blue); }

.kb-hero-subtitle { font-size: 17px; color: var(--kb-text-muted); max-width: 520px; line-height: 1.75; margin-bottom: 28px; }

.kb-hero-exp { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; padding: 16px 20px; background: var(--kb-off); border: 1px solid var(--kb-gray-light); border-radius: var(--radius-md); max-width: 420px; }
.kb-exp-badge { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 18px; background: linear-gradient(135deg,var(--kb-orange),var(--kb-orange-hot)); border-radius: var(--radius-sm); min-width: 80px; }
.kb-exp-number { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.kb-exp-number sup { font-size: 16px; }
.kb-exp-label  { font-size: 11px; color: rgba(255,255,255,.85); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kb-exp-text   { font-size: 14px; color: var(--kb-text-muted); margin: 0; line-height: 1.6; }
.kb-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.kb-rocket-container { position: relative; display: flex; align-items: center; justify-content: center; width: 380px; height: 380px; }
.kb-hero-logo-large { width: 260px; filter: drop-shadow(0 8px 30px rgba(27,63,196,.12)); animation: heroFloat 4s ease-in-out infinite; position: relative; z-index: 2; }
@keyframes heroFloat { 0%,100%{transform:translateY(0)}50%{transform:translateY(-18px)} }
.kb-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(27,63,196,.1); animation: orbitSpin linear infinite; }
.kb-orbit-1 { width: 300px; height: 300px; animation-duration: 12s; }
.kb-orbit-2 { width: 360px; height: 360px; animation-duration: 20s; animation-direction: reverse; }
.kb-orbit-3 { width: 200px; height: 200px; animation-duration: 8s; }
@keyframes orbitSpin { from{transform:rotate(0deg)}to{transform:rotate(360deg)} }
.kb-orbit-dot { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; background: var(--kb-orange); border-radius: 50%; box-shadow: 0 0 12px var(--kb-orange); }

.kb-scroll-hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--kb-text-muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.kb-scroll-line { width: 1px; height: 32px; background: linear-gradient(to bottom,var(--kb-blue),transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100%{opacity:.4}50%{opacity:1} }

/* ══════════════════════════════════════════════════
   STATS STRIP — very dark + compressed
   ══════════════════════════════════════════════════ */
.kb-stats-strip { background: var(--kb-dark-2); padding: 0; }

.kb-stat-item { text-align: center; padding: 20px 16px; border-right: 1px solid rgba(255,255,255,.08); }
.kb-stat-item:last-child { border-right: none; }

/* Number + suffix sit inline on same row */
.kb-stat-row { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-bottom: 5px; }
.kb-stat-number { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: #fff; line-height: 1; }
.kb-stat-suffix { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--kb-orange); line-height: 1; }
.kb-stat-label  { font-size: 12px; color: rgba(255,255,255,.55); margin: 0; font-weight: 500; letter-spacing: .04em; line-height: 1.4; }

/* ── Sections ────────────────────────────────────── */
.kb-section { padding: 90px 0; }
@media(max-width:768px){ .kb-section{ padding: 60px 0; } }

/* ── Why Cards ───────────────────────────────────── */
.kb-why-card { padding: 32px 28px; border-radius: var(--radius-lg); border: 1.5px solid transparent; transition: var(--transition); height: 100%; }
.kb-why-orange { background: #FFF7ED; border-color: rgba(249,115,22,.2); }
.kb-why-blue   { background: #EFF6FF; border-color: rgba(27,63,196,.2); }
.kb-why-card:hover { transform: translateY(-6px); }
.kb-why-orange:hover { border-color: var(--kb-orange); box-shadow: 0 20px 50px rgba(249,115,22,.15); }
.kb-why-blue:hover   { border-color: var(--kb-blue);   box-shadow: 0 20px 50px rgba(27,63,196,.15); }
.kb-why-icon { width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; flex-shrink: 0; }
.kb-why-orange .kb-why-icon { background: rgba(249,115,22,.12); color: var(--kb-orange); }
.kb-why-blue   .kb-why-icon { background: rgba(27,63,196,.12);  color: var(--kb-blue); }
.kb-why-icon svg { width: 28px; height: 28px; display: block; }
.kb-why-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--kb-text); margin-bottom: 10px; line-height: 1.3; }
.kb-why-desc  { font-size: 14.5px; color: var(--kb-text-muted); margin: 0; line-height: 1.7; }

/* ── Services (dark section) ─────────────────────── */
.kb-services-preview { position: relative; overflow: hidden; }
.kb-section-dark-bg  { position: absolute; inset: 0; background: linear-gradient(160deg,var(--kb-dark) 0%,var(--kb-dark-2) 60%,#0f1f6e 100%); }
.kb-service-card { display: flex; flex-direction: column; padding: 32px 28px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); transition: var(--transition); height: 100%; position: relative; }
.kb-service-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,var(--kb-blue),var(--kb-orange)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.kb-service-card:hover { background: rgba(255,255,255,.08); border-color: rgba(249,115,22,.3); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.kb-service-card:hover::before { transform: scaleX(1); }
.kb-service-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(249,115,22,.12); border-radius: var(--radius-md); color: var(--kb-orange); margin-bottom: 20px; flex-shrink: 0; }
.kb-service-icon svg { width: 28px; height: 28px; display: block; }
.kb-service-title   { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; line-height: 1.3; }
.kb-service-excerpt { font-size: 14.5px; color: rgba(255,255,255,.55); line-height: 1.7; flex: 1; margin-bottom: 20px; }
.kb-service-arrow   { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--kb-orange); margin-top: auto; }

/* ── Portfolio Cards ─────────────────────────────── */
.kb-portfolio-preview { overflow: visible; }
.kb-project-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--kb-surface); box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--kb-gray-light); height: 100%; }
.kb-project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.kb-project-thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; background: linear-gradient(135deg,#EFF6FF,#DBEAFE); }
.kb-project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.kb-project-card:hover .kb-project-thumb img { transform: scale(1.06); }

/* Inline SVG placeholder (no real image) */
.kb-thumb-placeholder { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg,#EFF6FF 0%,#DBEAFE 100%); }
.kb-thumb-placeholder .ph-icon { width: 48px; height: 48px; background: rgba(27,63,196,.1); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--kb-blue); }
.kb-thumb-placeholder span { font-size: 12px; font-weight: 600; color: var(--kb-blue); opacity: .55; }

.kb-project-overlay { position: absolute; inset: 0; background: rgba(8,14,44,.75); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); z-index: 2; }
.kb-project-card:hover .kb-project-overlay { opacity: 1; }
.kb-project-btn { padding: 10px 22px; background: var(--kb-orange); color: #fff; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; transform: translateY(12px); transition: var(--transition); }
.kb-project-card:hover .kb-project-btn { transform: translateY(0); }
.kb-project-category { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 4px 10px; background: var(--kb-blue); color: #fff; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
[dir="rtl"] .kb-project-category { left: auto; right: 12px; }
.kb-project-body  { padding: 20px; }
.kb-project-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--kb-text); margin-bottom: 10px; line-height: 1.35; padding-bottom: 2px; }
.kb-project-tags  { display: flex; flex-wrap: wrap; gap: 6px; }
.kb-tag { padding: 3px 10px; background: var(--kb-off); color: var(--kb-text-muted); border-radius: 50px; font-size: 12px; font-weight: 500; border: 1px solid var(--kb-gray-light); }

/* ── Products Page ───────────────────────────────── */
.kb-products-hero { background: linear-gradient(160deg,var(--kb-dark) 0%,var(--kb-dark-2) 60%,#0f1f6e 100%); padding: 120px 0 70px; position: relative; overflow: hidden; }
.kb-product-card { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--kb-gray-light); transition: var(--transition); height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.kb-product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--kb-orange); }
.kb-product-thumb { aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg,#EFF6FF,#DBEAFE); position: relative; }
.kb-product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.kb-product-card:hover .kb-product-thumb img { transform: scale(1.05); }
.kb-product-badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
[dir="rtl"] .kb-product-badge { left: auto; right: 14px; }
.kb-product-badge-own    { background: var(--kb-orange); color: #fff; }
.kb-product-badge-saas   { background: var(--kb-blue);   color: #fff; }
.kb-product-badge-custom { background: #059669;          color: #fff; }
.kb-product-body  { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.kb-product-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--kb-text); margin-bottom: 8px; line-height: 1.3; }
.kb-product-desc  { font-size: 14px; color: var(--kb-text-muted); line-height: 1.7; flex: 1; margin-bottom: 16px; }
.kb-product-footer{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.kb-product-tags  { display: flex; flex-wrap: wrap; gap: 5px; }

/* ── Clients ─────────────────────────────────────── */
.kb-clients-section { padding: 28px 0; overflow: hidden; border-top: 1px solid var(--kb-gray-light); border-bottom: 1px solid var(--kb-gray-light); }
.kb-clients-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--kb-text-muted); margin-bottom: 16px; }
.kb-clients-track-wrapper { overflow: hidden; padding: 0 52px; -webkit-mask-image: linear-gradient(90deg,transparent,black 12%,black 88%,transparent); mask-image: linear-gradient(90deg,transparent,black 12%,black 88%,transparent); }
.kb-clients-track { display: flex; align-items: center; gap: 48px; animation: clientsScroll 30s linear infinite; width: max-content; height: 56px; }
.kb-clients-track:hover { animation-play-state: paused; }
@keyframes clientsScroll { from{transform:translateX(0)}to{transform:translateX(-50%)} }
.kb-client-logo { flex-shrink: 0; filter: grayscale(1); opacity: .55; transition: var(--transition); display: flex; align-items: center; height: 40px; }
.kb-client-logo img { height: 36px !important; width: auto !important; max-width: 110px !important; object-fit: contain !important; display: block; }
.kb-client-logo:hover { filter: grayscale(0); opacity: 1; }

/* ── Tech Stack ──────────────────────────────────── */
.kb-techstack { background: var(--kb-off); }
.kb-tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.kb-tech-badge { padding: 10px 20px; background: #fff; border: 1.5px solid rgba(0,0,0,.07); border-radius: 50px; font-size: 13.5px; font-weight: 600; color: var(--kb-text); cursor: default; transition: var(--transition); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; line-height: 1.4; }
.kb-tech-badge::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--tech-color,var(--kb-orange)); transform: scaleX(0); transition: transform .25s; }
.kb-tech-badge:hover { border-color: var(--tech-color,var(--kb-orange)); color: var(--tech-color,var(--kb-orange)); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.kb-tech-badge:hover::before { transform: scaleX(1); }

/* ── Testimonials — rebuilt slider ───────────── */
.kb-testimonials { background: #fff; }

.testi-wrap { position: relative; padding: 0 56px; }
@media(max-width:575px){ .testi-wrap{ padding: 0 44px; } }

.testi-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; background: #fff;
    border: 1.5px solid var(--kb-gray-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .25s; z-index: 10;
    box-shadow: 0 2px 12px rgba(0,0,0,.08); color: var(--kb-text);
    flex-shrink: 0;
}
.testi-arrow:hover { background: var(--kb-orange); border-color: var(--kb-orange); color: #fff; box-shadow: 0 4px 20px rgba(249,115,22,.35); }
.testi-arrow-prev { left: 0; }
.testi-arrow-next { right: 0; }

.testi-viewport { overflow: hidden; width: 100%; }

.testi-track {
    display: flex; gap: 24px;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.testi-slide { flex: 0 0 calc(33.333% - 16px); min-width: 0; }
@media(max-width:991px){ .testi-slide{ flex: 0 0 calc(50% - 12px); } }
@media(max-width:575px){ .testi-slide{ flex: 0 0 100%; } }

.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.testi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--kb-gray-light); border: none; cursor: pointer; transition: all .25s; padding: 0; }
.testi-dot.active { background: var(--kb-orange); width: 24px; border-radius: 4px; }

.kb-testimonial-card { padding: 32px; background: var(--kb-off); border-radius: var(--radius-lg); border: 1px solid var(--kb-gray-light); transition: var(--transition); height: 100%; }
.kb-testimonial-card:hover { border-color: var(--kb-orange); box-shadow: 0 12px 40px rgba(249,115,22,.12); }
.kb-testi-stars { display: flex; gap: 3px; margin-bottom: 16px; line-height: 1; align-items: center; }
.kb-testi-stars svg { display: block; flex-shrink: 0; }
.kb-testi-quote  { font-size: 15px; color: var(--kb-text); line-height: 1.75; font-style: italic; border: none; padding: 0; margin: 0 0 20px; }
.kb-testi-author { display: flex; align-items: center; gap: 12px; }
.kb-testi-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.kb-testi-avatar-placeholder { width: 44px; height: 44px; border-radius: 50%; background: var(--kb-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.kb-testi-name { display: block; font-size: 14px; font-weight: 700; color: var(--kb-text); line-height: 1.4; padding-bottom: 2px; }
.kb-testi-role { display: block; font-size: 12.5px; color: var(--kb-text-muted); line-height: 1.5; }


/* ── Blog Cards ──────────────────────────────────── */
.kb-blog-card { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--kb-gray-light); transition: var(--transition); height: 100%; display: flex; flex-direction: column; }
.kb-blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.kb-blog-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--kb-off); flex-shrink: 0; }
.kb-blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; display: block; }
.kb-blog-card:hover .kb-blog-thumb img { transform: scale(1.05); }
/* Placeholder shown when no image */
.kb-blog-thumb-placeholder { aspect-ratio: 16/9; background: linear-gradient(135deg,#EFF6FF 0%,#DBEAFE 50%,#FFF7ED 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kb-blog-thumb-placeholder svg { opacity: .2; color: var(--kb-blue); }
.kb-blog-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
/* Category pill — always blue & visible */
.kb-blog-category { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; background: var(--kb-blue); padding: 3px 10px; border-radius: 4px; margin-bottom: 12px; line-height: 1.6; }
.kb-blog-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; padding-bottom: 2px; }
.kb-blog-title a { color: var(--kb-text); transition: color .2s; }
.kb-blog-title a:hover { color: var(--kb-blue); }
.kb-blog-excerpt { font-size: 14px; color: var(--kb-text-muted); line-height: 1.7; flex: 1; margin-bottom: 16px; }
.kb-blog-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.kb-blog-meta time { font-size: 12.5px; color: var(--kb-text-muted); }
.kb-blog-read { font-size: 13px; font-weight: 600; color: var(--kb-blue); }

/* ── CTA ─────────────────────────────────────────── */
.kb-cta-section { position: relative; padding: 100px 0; background: var(--kb-dark); overflow: hidden; }
.kb-cta-bg { position: absolute; inset: 0; }
.kb-cta-orb { position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle,rgba(249,115,22,.18) 0%,transparent 65%); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.kb-cta-title { font-family: var(--font-display); font-size: clamp(28px,4vw,46px); font-weight: 800; color: #fff; margin: 16px 0; line-height: 1.15; padding-bottom: 4px; }
.kb-cta-title em { font-style: normal; color: var(--kb-orange); }
.kb-cta-desc { font-size: 17px; color: rgba(255,255,255,.6); max-width: 550px; margin: 0 auto; line-height: 1.75; }

/* ── Footer ──────────────────────────────────────── */
.kb-footer { background: var(--kb-dark); color: rgba(255,255,255,.75); }
.kb-footer-top    { padding: 80px 0 60px; }
.kb-footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: rgba(255,255,255,.4); }
.kb-footer-tagline { font-family: var(--font-display); font-size: 14px; color: var(--kb-orange); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.kb-footer-desc   { font-size: 14.5px; color: rgba(255,255,255,.55); max-width: 300px; line-height: 1.7; }
.kb-footer-heading{ font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.kb-footer-links  { list-style: none; padding: 0; margin: 0; }
.kb-footer-links li { margin-bottom: 10px; }
.kb-footer-links a { font-size: 14px; color: rgba(255,255,255,.65); transition: color .2s; display: inline-flex; align-items: center; gap: 6px; line-height: 1.5; }
.kb-footer-links a:hover { color: var(--kb-orange); }
.kb-footer-contact { list-style: none; padding: 0; margin: 0; }
.kb-footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 12px; line-height: 1.6; }
.kb-footer-contact svg { flex-shrink: 0; color: var(--kb-orange); margin-top: 3px; }
.kb-footer-contact a { color: rgba(255,255,255,.6); }
.kb-footer-contact a:hover { color: var(--kb-orange); }
.kb-social-links { display: flex; gap: 10px; }
.kb-social-link { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); transition: var(--transition); }
.kb-social-link:hover { background: var(--kb-orange); border-color: var(--kb-orange); color: #fff; transform: translateY(-3px); }
.kb-footer-craft .kb-accent { color: var(--kb-orange); font-weight: 600; }

/* ── Back to top ─────────────────────────────────── */
.kb-back-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--kb-orange); color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(20px); transition: var(--transition); z-index: 999; box-shadow: 0 4px 20px rgba(249,115,22,.4); }
.kb-back-top.visible { opacity: 1; transform: translateY(0); }
.kb-back-top:hover { background: var(--kb-orange-hot); transform: translateY(-4px); }
[dir="rtl"] .kb-back-top { right: auto; left: 30px; }

/* ── Contact page ────────────────────────────────── */
.kb-contact-hero { background: var(--kb-dark); padding: 120px 0 70px; position: relative; overflow: hidden; }
.kb-contact-form-section { padding: 80px 0; }
.kb-contact-info-card { padding: 32px; background: var(--kb-off); border-radius: var(--radius-lg); border: 1px solid var(--kb-gray-light); height: 100%; }

/* ── Admin ───────────────────────────────────────── */
.kb-admin-body    { font-family: var(--font-body); background: #F1F5F9; color: var(--kb-text); }
.kb-admin-sidebar { width: 260px; min-height: 100vh; background: var(--kb-dark); position: fixed; top: 0; left: 0; overflow-y: auto; z-index: 100; transition: var(--transition); }
[dir="rtl"] .kb-admin-sidebar { left: auto; right: 0; }
.kb-admin-content { margin-left: 260px; min-height: 100vh; transition: var(--transition); }
[dir="rtl"] .kb-admin-content { margin-left: 0; margin-right: 260px; }
.kb-sidebar-logo  { padding: 24px 24px 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.kb-sidebar-nav   { padding: 16px 12px; }
.kb-sidebar-section { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.3); padding: 16px 12px 8px; }
.kb-sidebar-link  { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: rgba(255,255,255,.6); font-size: 14px; font-weight: 500; transition: var(--transition); margin-bottom: 2px; line-height: 1.5; }
.kb-sidebar-link:hover  { background: rgba(255,255,255,.06); color: #fff; }
.kb-sidebar-link.active { background: rgba(249,115,22,.15); color: var(--kb-orange); }
.kb-sidebar-link svg { flex-shrink: 0; }
.kb-sidebar-badge { margin-left: auto; padding: 2px 7px; background: var(--kb-orange); color: #fff; border-radius: 50px; font-size: 10px; font-weight: 700; }
[dir="rtl"] .kb-sidebar-badge { margin-left: 0; margin-right: auto; }
.kb-admin-topbar  { background: #fff; border-bottom: 1px solid var(--kb-gray-light); padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.kb-admin-main    { padding: 32px 28px; }
.kb-admin-card    { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--kb-gray-light); padding: 24px; transition: var(--transition); }
.kb-admin-card:hover { box-shadow: var(--shadow-md); }
.kb-stat-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--kb-gray-light); }
.kb-stat-card .kb-stat-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.kb-stat-card .kb-stat-val  { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--kb-text); line-height: 1.2; margin-bottom: 4px; }
.kb-stat-card .kb-stat-lbl  { font-size: 13px; color: var(--kb-text-muted); }
.kb-table { width: 100%; border-collapse: collapse; }
.kb-table th { background: var(--kb-off); padding: 12px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--kb-text-muted); border-bottom: 1px solid var(--kb-gray-light); text-align: left; }
[dir="rtl"] .kb-table th { text-align: right; }
.kb-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--kb-gray-light); vertical-align: middle; line-height: 1.5; }
.kb-table tr:hover td { background: #FAFBFF; }
.kb-table tr:last-child td { border-bottom: none; }
.kb-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 50px; font-size: 11.5px; font-weight: 600; line-height: 1.5; }
.kb-badge-green  { background: #D1FAE5; color: #065F46; }
.kb-badge-orange { background: #FEF3C7; color: #92400E; }
.kb-badge-red    { background: #FEE2E2; color: #991B1B; }
.kb-badge-blue   { background: #DBEAFE; color: #1E40AF; }
.kb-badge-gray   { background: #F3F4F6; color: #374151; }
.kb-msg-row { cursor: pointer; }
.kb-msg-row.unread td { font-weight: 600; background: #F0F4FF; }
.kb-form-label { font-size: 13.5px; font-weight: 600; color: var(--kb-text); margin-bottom: 6px; display: block; }
.kb-form-control { width: 100%; padding: 11px 14px; background: var(--kb-off); border: 1.5px solid var(--kb-gray-light); border-radius: var(--radius-sm); font-size: 14.5px; color: var(--kb-text); transition: border-color .2s,box-shadow .2s; font-family: var(--font-body); line-height: 1.5; }
.kb-form-control:focus { outline: none; border-color: var(--kb-blue); box-shadow: 0 0 0 3px rgba(27,63,196,.1); background: #fff; }
textarea.kb-form-control { resize: vertical; min-height: 120px; }
select.kb-form-control   { appearance: auto; }
.kb-accent      { color: var(--kb-orange); }
.kb-accent-blue { color: var(--kb-blue); }
.kb-filter-bar  { display: flex; flex-wrap: wrap; gap: 10px; }
.kb-filter-btn  { padding: 9px 20px; background: #fff; border: 1.5px solid var(--kb-gray-light); border-radius: 50px; font-size: 13.5px; font-weight: 600; color: var(--kb-text); cursor: pointer; transition: all .22s; display: inline-flex; align-items: center; gap: 6px; line-height: 1.4; }
.kb-filter-btn:hover  { border-color: var(--kb-blue); color: var(--kb-blue); }
.kb-filter-btn.active { background: var(--kb-blue); border-color: var(--kb-blue); color: #fff; }
.kb-filter-count { font-size: 11px; opacity: .7; }

/* ── Responsive ──────────────────────────────────── */
@media(max-width:991px){
    .kb-admin-sidebar { transform: translateX(-100%); }
    [dir="rtl"] .kb-admin-sidebar { transform: translateX(100%); }
    .kb-admin-sidebar.open { transform: translateX(0); }
    .kb-admin-content { margin-left: 0; }
    [dir="rtl"] .kb-admin-content { margin-right: 0; }
    .kb-testimonials-slider { padding: 0 28px; }
}
@media(max-width:767px){
    .kb-hero { padding-top: 16px; }
    .kb-hero-title { font-size: 30px; }
    .kb-stat-number { font-size: 28px; }
    .kb-stat-suffix { font-size: 20px; }
    .kb-stat-item   { padding: 16px 10px; }
    .kb-back-top    { bottom: 20px; right: 20px; }
}
.kb-page-enter { animation: pageEnter .4s ease forwards; }
@keyframes pageEnter { from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)} }
