/* Key Brains Theme — main.css */
:root {
  --accent:    #f9572e;
  --bg:        #0d0d0d;
  --surface:   #111111;
  --surface2:  #161616;
  --border:    #1e1e1e;
  --text:      #f5f4f0;
  --muted:     #999999;
  --faint:     #777777;
  --kb-green:  #39d98a;
  --kb-orange: #f9572e;
  --kb-yellow: #f9c52e;
  --kb-text:   #f5f4f0;
  --kb-surface:#111111;
  --radius:    8px;
  --radius-lg: 12px;
}

/* ── Light Mode Variables ── */
body.kb-light {
  --bg:        #ffffff;
  --surface:   #ffffff;
  --surface2:  #f0f0f0;
  --border:    #e0e0e0;
  --text:      #1a1a1a;
  --muted:     #555555;
  --faint:     #aaaaaa;
  --kb-surface:#ffffff;
  --kb-text:   #1a1a1a;
}

/* Light mode specific overrides */
body.kb-light .kb-nav {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #e0e0e0;
}
body.kb-light .kb-nav__menu li a { color: #1a1a1a; }
body.kb-light .kb-nav__menu li a:hover { color: var(--accent); }
body.kb-light .kb-text-logo { color: #1a1a1a; }
body.kb-light .kb-nav__toggle span { background: #1a1a1a; }
body.kb-light .kb-nav__mobile { background: #ffffff; border-top: 1px solid #e0e0e0; }
body.kb-light .kb-nav__mobile-menu li a { color: #1a1a1a; border-bottom-color: #e0e0e0; }
body.kb-light .kb-hero { background: #ffffff; }
body.kb-light .kb-hero__grid-bg { opacity: 0.15; }
body.kb-light .kb-hero__img-placeholder { background: linear-gradient(135deg,#fde8e2,#fdd5cb); }
body.kb-light .kb-cs-card { background: #ffffff; border-color: #e0e0e0; }
body.kb-light .kb-cs-card:hover { border-color: var(--accent); }
body.kb-light .kb-cs-card__thumb { background: linear-gradient(135deg,#fde8e2,#fdd5cb) !important; }
body.kb-light .kb-cs-strip { background: #f5f5f5; }
body.kb-light .kb-stats-bar { background: #ffffff; border-top-color: #e0e0e0; }
body.kb-light .kb-stat-item__num { color: #1a1a1a; }
body.kb-light .kb-blog-card { background: #ffffff; border-color: #e0e0e0; }
body.kb-light .kb-blog-card__thumb { background: linear-gradient(135deg,#fde8e2,#fdd5cb) !important; }
body.kb-light .kb-prod-card { background: #ffffff; border-color: #e0e0e0; }
body.kb-light .kb-prod-card__thumb { background: linear-gradient(135deg,#fde8e2,#fdd5cb) !important; }
body.kb-light .kb-service-card { background: #ffffff; border-color: #e0e0e0; }
body.kb-light .kb-cs-grid-card { background: #ffffff; border-color: #e0e0e0; }
body.kb-light .kb-cs-grid-card__thumb { background: linear-gradient(135deg,#fde8e2,#fdd5cb) !important; }
body.kb-light .kb-sidebar-card { background: #ffffff; border-color: #e0e0e0; }
body.kb-light .kb-blockquote { background: #f0f0f0; }
body.kb-light .kb-author-bio { background: #ffffff; border-color: #e0e0e0; }
body.kb-light .kb-code { background: #f0f0f0; color: #333; }
body.kb-light .kb-load-more { border-color: #cccccc; color: #555555; }
body.kb-light .kb-filter { border-color: #cccccc; color: #555555; background: transparent; }
body.kb-light .kb-tech-tag { background: #f0f0f0; border-color: #e0e0e0; color: #555; }
body.kb-light .kb-footer { background: #1a1a1a; }
body.kb-light .kb-footer__col a { color: #aaaaaa; }
body.kb-light .kb-footer__brand p { color: #aaaaaa; }
body.kb-light .kb-footer__bottom { border-top-color: #333; }
body.kb-light .kb-footer__social a { color: #aaaaaa; }
body.kb-light .kb-form-group input,
body.kb-light .kb-form-group select,
body.kb-light .kb-form-group textarea { background: #f5f5f5; border-color: #cccccc; color: #1a1a1a; }
body.kb-light .kb-contact-info__value { color: #1a1a1a; }
body.kb-light .kb-cs-hero { background: linear-gradient(160deg, #c0391a, #f9572e, #d4450e); }
body.kb-light .kb-cs-hero h1 { color: #ffffff; }
body.kb-light .kb-cs-hero__teaser { color: rgba(255,255,255,0.85); }
body.kb-light .kb-cs-hero__meta { border-top-color: rgba(255,255,255,0.25); }
body.kb-light .kb-meta-label { color: rgba(255,255,255,0.65); }
body.kb-light .kb-meta-val { color: #ffffff; }
body.kb-light .kb-cs-hero .kb-pill { color: #ffffff; border-color: rgba(255,255,255,0.4); }
body.kb-light .kb-page-hero { background: #fff4f2; border-bottom-color: #e0e0e0; }
body.kb-light .kb-section-divider { background: #ffffff; }
body.kb-light h1, body.kb-light h2, body.kb-light h3,
body.kb-light h4, body.kb-light h5 { color: #1a1a1a; }
body.kb-light .kb-value-card { background: #ffffff; border-color: #e0e0e0; }
body.kb-light .kb-team-card { background: #ffffff; border-color: #e0e0e0; }
body.kb-light .kb-timeline { border-left-color: #cccccc; }
body.kb-light .kb-article__hero { background: linear-gradient(160deg,#fde8e2,#fff4f2); }
body.kb-light .kb-share-btn { background: #f0f0f0; border-color: #e0e0e0; color: #555; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Default is dark — kb-light class switches to light mode */
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
em { font-style: normal; color: var(--accent); }

/* ── Layout ── */
.kb-container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.kb-main { min-height: 60vh; }
.kb-section { padding: 72px 0; }
.kb-section-divider { height: 28px; background: var(--surface); clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%); margin-bottom: 40px; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-family: 'Roboto', sans-serif; font-weight: 800; line-height: 1.15; letter-spacing: -0.3px; color: var(--text); }
h1 { font-size: clamp(28px, 4.5vw, 52px); letter-spacing: -0.5px; margin-bottom: 20px; }
h2 { font-size: clamp(20px, 2.5vw, 28px); letter-spacing: -0.3px; margin-bottom: 18px; }
h3 { font-size: 20px; margin-bottom: 14px; }
h4 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
h5 { font-size: 14px; font-weight: 700; letter-spacing: 0.2px; margin-bottom: 10px; }
p  { color: #999999; line-height: 1.75; }
.kb-label { font-size: 11px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.kb-label--center { text-align: center; }
.kb-link { font-size: 14px; color: var(--muted); }
.kb-link:hover { color: var(--accent); }

/* ── Buttons ── */
.kb-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 24px; border-radius: 6px; font-size: 15px; font-weight: 500; font-family: 'Roboto', sans-serif; cursor: pointer; border: 1px solid transparent; transition: all .15s; }
.kb-btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.kb-btn--accent:hover { background: #e03d1a; }
.kb-btn--outline { background: transparent; border-color: var(--border); color: var(--muted); }
.kb-btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.kb-btn--white { background: #fff; color: var(--accent); border-color: #fff; font-weight: 700; }
.kb-btn--white:hover { background: var(--text); }

/* ── Pills / Tags ── */
.kb-pill { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border); color: var(--muted); }
.kb-pill--green { color: var(--kb-green); border-color: #39d98a44; background: #39d98a11; }
.kb-tech-tag { background: var(--surface2); border: 1px solid var(--border); color: var(--muted); padding: 5px 12px; border-radius: 4px; font-size: 13px; display: inline-block; }
.kb-tag { background: var(--surface2); border: 1px solid var(--border); color: var(--muted); padding: 4px 12px; border-radius: 20px; font-size: 11px; display: inline-block; margin: 3px; }

/* ── NAV ── */
.kb-nav { position: sticky; top: 0; z-index: 200; background: rgba(13,13,13,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid #1a1a1a; overflow: visible; }
.kb-nav__inner { max-width: 1160px; margin: 0 auto; padding: 0 32px; height: 72px; display: flex; align-items: center; justify-content: space-between; overflow: visible; }
.kb-nav__logo { display: flex; align-items: center; }
.kb-nav__logo img { width: auto; }
.kb-text-logo { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: 22px; color: var(--text); }
.kb-text-logo em { color: var(--accent); font-style: normal; }
.kb-nav__links { display: flex; align-items: center; gap: 32px; position: relative; overflow: visible; }
.kb-nav__menu { display: flex; gap: 28px; align-items: center; }
.kb-nav__menu > li { position: relative; }
.kb-nav__menu li a { font-size: 17px; color: #ffffff; font-weight: 500; transition: color .15s; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.kb-nav__menu li a:hover, .kb-nav__menu .current-menu-item > a { color: var(--accent); }

/* Parent arrow — pure CSS, no JS needed */
.kb-nav__menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 3px;
}
.kb-nav__menu > li.menu-item-has-children:hover > a::after { transform: rotate(-135deg) translateY(-2px); }
.kb-nav__menu > li.menu-item-has-children:hover > a { color: var(--accent); }

/* ── Regular sub-menu: pure CSS hover ──────────────────────────────────────── */
.kb-nav .kb-nav__menu > li > ul.sub-menu {
  visibility: hidden !important;
  opacity: 0;
  pointer-events: none;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateY(4px) !important;
  min-width: 200px;
  background: #111111 !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 12px !important;
  padding: 6px !important;
  margin: 0 !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.65) !important;
  z-index: 9999 !important;
  list-style: none !important;
  display: block !important;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  width: auto;
  float: none !important;
}
/* BRIDGE: invisible area fills the gap so hover doesn't break */
.kb-nav .kb-nav__menu > li > ul.sub-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}
.kb-nav .kb-nav__menu > li:hover > ul.sub-menu {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}
/* Sub-menu items */
.kb-nav .kb-nav__menu ul.sub-menu li { list-style: none !important; float: none !important; }
.kb-nav .kb-nav__menu ul.sub-menu li a {
  display: block !important;
  padding: 9px 14px !important;
  font-size: 15px !important;
  color: #aaaaaa !important;
  background: transparent !important;
  border-radius: 8px !important;
  transition: background .15s, color .15s;
  font-weight: 400 !important;
  white-space: nowrap !important;
  border: none !important;
  line-height: 1.4 !important;
}
.kb-nav .kb-nav__menu ul.sub-menu li a:hover,
.kb-nav .kb-nav__menu ul.sub-menu li a:focus {
  background: rgba(249,87,46,.14) !important;
  color: var(--accent) !important;
}
.kb-nav .kb-nav__menu ul.sub-menu li.current-menu-item > a { color: var(--accent) !important; }

/* ── MEGA PANEL: Blog — JS controlled, full nav width ──────────────────────── */
.kb-mega-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #111111;
  border-top: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  box-shadow: 0 20px 48px rgba(0,0,0,.55);
  z-index: 600;
  padding: 28px 0;
}
.kb-mega-panel.kb-active { display: block; }
.kb-mega-panel__inner { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* Light mode */
body.kb-light .kb-nav .kb-nav__menu > li > ul.sub-menu {
  background: #ffffff !important;
  border-color: #e0e0e0 !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.1) !important;
}
body.kb-light .kb-nav .kb-nav__menu ul.sub-menu li a { color: #333333 !important; }
body.kb-light .kb-nav .kb-nav__menu ul.sub-menu li a:hover { background: #fff4f2 !important; color: var(--accent) !important; }

/* Keep sub-menu open even when arrow indicator changes */
.kb-drop-panel {
  display: none;
}

/* Blog mega panel — 4 cards horizontal */
.kb-mega-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.kb-mega-blog-card {
  display: block;
  text-decoration: none;
  background: #161616;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.kb-mega-blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.kb-mega-blog-card__img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  background: #1e1e1e;
}
.kb-mega-blog-card__img-placeholder {
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, #2a1510, #1a0d08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.kb-mega-blog-card__body { padding: 12px; }
.kb-mega-blog-card__cat {
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 5px;
}
.kb-mega-blog-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #f0f0f0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kb-mega-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.kb-mega-panel__label {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}
.kb-mega-panel__all {
  font-size: 13px;
  color: #555;
  transition: color .15s;
}
.kb-mega-panel__all:hover { color: var(--accent); }

/* Light mode mega */
body.kb-light .kb-mega-panel { background: #ffffff; border-color: #e0e0e0; box-shadow: 0 20px 48px rgba(0,0,0,.12); }
body.kb-light .kb-mega-blog-card { background: #f8f8f8; border-color: #e0e0e0; }
body.kb-light .kb-mega-blog-card__title { color: #1a1a1a; }
body.kb-light .kb-drop-panel { background: #ffffff; border-color: #e0e0e0; box-shadow: 0 16px 40px rgba(0,0,0,.1); }
body.kb-light .kb-drop-panel li a { color: #555; }
body.kb-light .kb-drop-panel li a:hover { background: #fff4f2; }

/* Mobile sub-menu */
.kb-nav__mobile-menu li.menu-item-has-children > a::after {
  content: '+';
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  font-weight: 300;
}
.kb-nav__mobile-menu .sub-menu {
  display: none;
  list-style: none;
  padding-left: 14px;
  border-left: 2px solid var(--border);
  margin: 4px 0 8px;
}
.kb-nav__mobile-menu .sub-menu.kb-open { display: block; }
.kb-nav__mobile-menu .sub-menu li a {
  padding: 8px 0;
  font-size: 15px;
  color: var(--faint);
  border-bottom: none;
  font-weight: 400;
}
.kb-nav__toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }

/* ── Dark / Light Mode Toggle ── */
.kb-mode-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  width: 44px;
  height: 24px;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
}
.kb-mode-toggle:hover { border-color: var(--accent); }
.kb-mode-toggle__icon {
  font-size: 16px;
  line-height: 1;
  transition: opacity .2s, transform .2s;
  position: absolute;
}
.kb-mode-toggle__moon { color: #aaaaaa; opacity: 1; transform: scale(1); display: flex; }
.kb-mode-toggle__sun  { color: #f9572e; opacity: 0; transform: scale(0.6); display: flex; }

/* In light mode: show sun, hide moon */
body.kb-light .kb-mode-toggle__moon { opacity: 0; transform: scale(0.6); }
body.kb-light .kb-mode-toggle__sun  { opacity: 1; transform: scale(1); }
body.kb-light .kb-mode-toggle { border-color: #cccccc; background: #f0f0f0; }
.kb-nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.kb-nav__mobile { display: none; background: #080808; border-top: 1px solid var(--border); padding: 20px 32px; }
.kb-nav__mobile.open { display: block; }
.kb-nav__mobile-menu li a { display: block; padding: 12px 0; font-size: 17px; color: #ffffff; font-weight: 500; border-bottom: 1px solid var(--border); }
.kb-nav__mobile-menu li a:hover { color: var(--accent); }
.kb-nav__mobile .kb-btn { margin-top: 16px; }

/* ── HERO ── */
/* ── Design 1 Hero: Dark left / Orange right split ─────────────────────────── */
.kb-hero-d1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}
.kb-hero-d1__left {
  background: #0d0d0d;
  display: flex;
  align-items: center;
  padding: 56px 56px 56px 64px;
  position: relative;
  overflow: hidden;
}
.kb-hero-d1__left::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.kb-hero-d1__content { position: relative; z-index: 1; max-width: 500px; }
.kb-hero-d1__tag {
  display: inline-block;
  border: 0.5px solid rgba(249,87,46,.4);
  color: var(--accent);
  font-size: 11px;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  width: fit-content;
}
.kb-hero-d1__title { font-size: 42px; font-weight: 700; line-height: 1.1; color: #fff; margin-bottom: 20px; }
.kb-hero-d1__title em { color: var(--accent); font-style: normal; }
.kb-hero-d1__sub { font-size: 16px; color: #888; line-height: 1.75; margin-bottom: 36px; }
.kb-hero-d1__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.kb-btn--ghost-white { background: transparent; color: #aaa; border: 0.5px solid #333; border-radius: 6px; padding: 11px 22px; font-size: 15px; font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s; display: inline-flex; align-items: center; }
.kb-btn--ghost-white:hover { border-color: #666; color: #fff; }

.kb-hero-d1__right {
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.kb-hero-d1__right::after {
  content: '';
  position: absolute;
  right: -60px; bottom: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
}
.kb-hero-d1__right::before {
  content: '';
  position: absolute;
  right: 30px; bottom: 30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
}
.kb-hero-d1__img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 12px; position: relative; z-index: 1; }

.kb-hero-d1__stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  position: relative;
  z-index: 1;
}
.kb-hero-d1__stat { text-align: center; }
.kb-hero-d1__stat-num { font-size: 44px; font-weight: 700; color: #fff; line-height: 1; }
.kb-hero-d1__stat-lbl { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 6px; }

/* ── Stats strip below hero ─────────────────────────────────────────────────── */
.kb-stats-strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  border-bottom: 1px solid var(--border);
}
.kb-stats-strip__item {
  padding: 24px 28px;
  border-right: 1px solid var(--border);
  text-align: left;
}
.kb-stats-strip__item:last-child { border-right: none; }
.kb-stats-strip__num { font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; }
.kb-stats-strip__lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 5px; }

body.kb-light .kb-hero-d1__left { background: #1a1a1a; }
body.kb-light .kb-stats-strip { border-bottom-color: #e0e0e0; }
body.kb-light .kb-stats-strip__item { border-right-color: #e0e0e0; }

/* Legacy hero classes kept for backwards compat */
.kb-hero { display: none; }

@media (max-width: 1024px) {
  .kb-hero-d1 { grid-template-columns: 1fr; }
  .kb-hero-d1__right { min-height: 280px; }
  .kb-hero-d1__left { padding: 48px 32px; }
  .kb-stats-strip { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .kb-hero-d1__title { font-size: 30px; }
  .kb-hero-d1__left { padding: 36px 20px; }
  .kb-stats-strip { grid-template-columns: repeat(2,1fr); }
  .kb-hero-d1__stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .kb-hero-d1__stat-num { font-size: 32px; }
}

/* ── PAGE HERO ── */
.kb-page-hero { background: var(--bg); padding: 60px 0 0; border-bottom: 1px solid var(--border); }
.kb-page-hero h1 { margin-bottom: 12px; }
.kb-page-hero p { color: var(--muted); margin-bottom: 32px; }

/* ── SECTION HEADER ── */
.kb-section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.kb-section-head h2 { margin: 0; }

/* ── CASE STUDY HORIZONTAL SCROLL ── */
.kb-cs-strip { background: var(--bg); padding: 64px 0; }
.kb-cs-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; cursor: grab; }
.kb-cs-scroll:active { cursor: grabbing; }
.kb-cs-card { min-width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, transform .2s; flex-shrink: 0; }
.kb-cs-card:hover { transform: translateY(-4px); }
.kb-cs-card__thumb { height: 130px; background: linear-gradient(135deg, var(--surface2), #1a1010); display: flex; align-items: flex-end; padding: 12px; position: relative; overflow: hidden; }
.kb-cs-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kb-cs-card__num { font-family: 'Roboto', sans-serif; font-size: 40px; font-weight: 800; opacity: .3; line-height: 1; }
.kb-cs-card__body { padding: 16px; }
.kb-cs-card__tag { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.kb-cs-card__title { font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.kb-cs-card__title a { color: var(--text); }
.kb-cs-card__teaser { font-size: 11px; color: #aaaaaa; line-height: 1.5; margin-bottom: 12px; }
.kb-cs-card__meta { display: flex; justify-content: space-between; font-size: 11px; color: #888888; border-top: 1px solid var(--border); padding-top: 10px; }

/* ── CASE STUDY GRID ── */
.kb-cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.kb-cs-grid--3 { grid-template-columns: repeat(3, 1fr); }
.kb-cs-grid-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all .2s; cursor: pointer; }
.kb-cs-grid-card:hover { transform: translateY(-3px); }
.kb-cs-grid-card__thumb { height: 160px; background: linear-gradient(135deg, var(--surface2), #1a1010); position: relative; display: flex; align-items: flex-end; padding: 16px; overflow: hidden; }
.kb-cs-grid-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kb-cs-num { font-family: 'Roboto', sans-serif; font-size: 64px; font-weight: 800; opacity: .12; position: absolute; right: 16px; top: 4px; line-height: 1; }
.kb-cs-grid-card__body { padding: 20px; }
.kb-cs-grid-card__tag { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.kb-cs-grid-card__body h2 { font-size: 18px; margin-bottom: 8px; }
.kb-cs-grid-card__body h2 a { color: var(--text); }
.kb-cs-grid-card__body p { font-size: 14px; color: #aaaaaa; margin-bottom: 16px; }
.kb-cs-grid-card__footer { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 12px; font-size: 13px; color: #888888; }

/* ── STATS BAR ── */
.kb-stats-bar { background: var(--surface); padding: 64px 0; border-top: 1px solid var(--border); }
.kb-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.kb-stat-item { text-align: center; }
.kb-stat-item__num { font-family: 'Roboto', sans-serif; font-size: 44px; font-weight: 800; color: var(--text); line-height: 1; }
.kb-stat-item__lbl { font-size: 13px; color: #999999; margin-top: 6px; text-transform: uppercase; letter-spacing: .5px; }

/* ── SERVICES GRID ── */
.kb-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kb-service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; cursor: pointer; transition: border-color .2s, transform .2s; }
.kb-service-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.kb-service-card--wide { grid-column: span 2; }
.kb-service-card__icon { font-size: 26px; margin-bottom: 16px; color: var(--text); }
.kb-service-card h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.kb-service-card__sub { font-size: 13px; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.kb-service-card p { font-size: 15px; color: #aaaaaa; line-height: 1.75; }
.kb-service-card__link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent); }
.kb-service-card__link:hover { opacity: .8; }

/* ── BLOG GRID ── */
.kb-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kb-blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, transform .2s; }
.kb-blog-card:hover { transform: translateY(-3px); }
.kb-blog-card__thumb { height: 120px; background: linear-gradient(135deg, var(--surface2), #1a1010); display: block; position: relative; overflow: hidden; }
.kb-blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kb-blog-card__num { position: absolute; bottom: 10px; left: 12px; font-family: 'Roboto', sans-serif; font-size: 36px; font-weight: 800; line-height: 1; }
.kb-blog-card__body { padding: 16px; }
.kb-blog-card__cat { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.kb-blog-card__title { font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.kb-blog-card__title a { color: var(--text); }
.kb-blog-card__excerpt { font-size: 13px; color: #aaaaaa; line-height: 1.6; }
.kb-blog-card__meta { display: flex; justify-content: space-between; font-size: 11px; color: #888888; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }

/* Load More */
.kb-load-more-wrap { text-align: center; margin-top: 40px; }
.kb-load-more { background: transparent; border: 1px solid var(--border); color: var(--muted); padding: 12px 36px; border-radius: 6px; font-size: 14px; font-family: 'Roboto', sans-serif; cursor: pointer; transition: all .2s; }
.kb-load-more:hover { border-color: var(--accent); color: var(--accent); }
.kb-load-count { font-size: 11px; color: #888888; margin-top: 10px; }

/* ── PRODUCTS GRID ── */
.kb-products-tabs { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; padding-bottom: 32px; }
.kb-products-tabs a { font-size: 13px; padding: 6px 16px; border-radius: 20px; border: 1px solid var(--border); color: var(--muted); transition: all .15s; }
.kb-products-tabs a.active, .kb-products-tabs a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.kb-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kb-prod-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, transform .2s; }
.kb-prod-card:hover { transform: translateY(-3px); }
.kb-prod-card__thumb { height: 140px; background: linear-gradient(135deg, var(--surface2), #1a1010); position: relative; overflow: hidden; }
.kb-prod-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kb-price-tag { position: absolute; top: 10px; right: 12px; padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 600; }
.kb-price-tag--free { background: #39d98a22; color: var(--kb-green); border: 1px solid #39d98a44; }
.kb-price-tag--paid { background: rgba(249,87,46,.13); color: var(--accent); border: 1px solid rgba(249,87,46,.3); }
.kb-prod-card__body { padding: 16px; }
.kb-prod-card__type { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.kb-prod-card__body h3 { font-size: 16px; margin-bottom: 6px; }
.kb-prod-card__body h3 a { color: var(--text); }
.kb-prod-card__body p { font-size: 13px; color: #aaaaaa; line-height: 1.6; margin-bottom: 12px; }
.kb-prod-card__footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 10px; font-size: 11px; color: #888888; }
.kb-stars { color: var(--kb-yellow); }
.kb-rating { color: var(--muted); }
.kb-dls { color: var(--faint); }

/* ── PRODUCT DETAIL LAYOUT ── */
.kb-prod-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 48px 0; align-items: start; }
.kb-prod-sidebar { position: sticky; top: 80px; align-self: start; }
.kb-cs-sidebar { position: sticky; top: 80px; align-self: start; }
.kb-prod-detail__tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.kb-prod-detail h1 { margin-bottom: 14px; }
.kb-prod-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.kb-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.kb-feature-item { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.kb-feature-check { flex-shrink: 0; margin-top: 1px; }
.kb-code-preview { margin-top: 28px; }
.kb-code { background: #0a0a0a; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; font-family: 'DM Mono', 'Courier New', monospace; font-size: 13px; color: var(--muted); overflow-x: auto; line-height: 1.7; margin-top: 12px; }
.kb-tech-stack { margin-top: 24px; }
.kb-tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kb-price-display { margin-bottom: 20px; }
.kb-price-amount { font-family: 'Roboto', sans-serif; font-size: 32px; font-weight: 800; color: var(--text); }
.kb-price-original { font-size: 15px; color: var(--faint); text-decoration: line-through; }
.kb-price-saving { font-size: 13px; margin-top: 4px; }
.kb-price-licence { font-size: 13px; color: var(--kb-green); margin-top: 4px; }
.kb-product-specs { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.kb-spec-row { display: flex; justify-content: space-between; font-size: 13px; }
.kb-spec-row span:first-child { color: var(--faint); }
.kb-spec-row span:last-child { color: var(--text); }

/* ── SIDEBAR CARDS ── */
.kb-sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.kb-sidebar-card--sticky { position: sticky; top: 80px; }
.kb-sidebar-card__title { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.kb-summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.kb-summary-row span:first-child { color: var(--faint); }
.kb-summary-row span:last-child { color: var(--text); font-weight: 500; }
.kb-share-btns { display: flex; flex-direction: column; gap: 8px; }
.kb-share-btn { background: var(--surface2); border: 1px solid var(--border); color: var(--muted); padding: 8px 14px; border-radius: 20px; font-size: 11px; cursor: pointer; text-align: left; font-family: 'Roboto', sans-serif; transition: all .15s; }
.kb-share-btn:hover { border-color: var(--accent); color: var(--accent); }
.kb-related-link { display: block; padding: 10px 0; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--border); transition: color .15s; }
.kb-related-link:hover { color: var(--accent); }

/* ── CASE STUDY DETAIL ── */
.kb-cs-hero { background: linear-gradient(160deg, #120a08, #1e0f0a, var(--bg)); padding: 56px 0 0; }
.kb-cs-hero__tags { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.kb-cs-hero h1 { margin-bottom: 18px; }
.kb-cs-hero__teaser { font-size: 17px; color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.kb-cs-hero__meta { display: flex; gap: 32px; padding: 20px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.kb-meta-label { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.kb-meta-val { font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 700; }
.kb-cs-cover { height: 280px; overflow: hidden; }
.kb-cs-cover img { width: 100%; height: 100%; object-fit: cover; }
.kb-cs-cover--placeholder { background: linear-gradient(135deg, var(--surface2), #1a1010); display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 14px; }
.kb-cs-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; padding: 48px 0; align-items: start; }
.kb-cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 40px; }
.kb-cs-stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; border-top: 3px solid transparent; }
.kb-cs-stat-box__num { font-family: 'Roboto', sans-serif; font-size: 36px; font-weight: 800; line-height: 1; }
.kb-cs-stat-box__lbl { font-size: 11px; color: var(--faint); margin-top: 4px; text-transform: uppercase; }
.kb-blockquote { border-left: 3px solid var(--accent); padding: 16px 20px; background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.kb-blockquote p { font-family: 'Roboto', sans-serif; font-size: 16px; color: var(--text); font-style: italic; margin: 0; }
.kb-blockquote cite { font-size: 11px; color: var(--faint); margin-top: 8px; display: block; }

/* ── ARTICLE (BLOG POST) ── */
.kb-article__hero { background: linear-gradient(160deg, #08120e, #0e1e14, var(--bg)); padding: 48px 0 0; }
.kb-article__tags { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.kb-article__title { margin-bottom: 20px; }
.kb-article__byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--border); }
.kb-article__avatar { width: 32px; height: 32px; border-radius: 50%; }
.kb-article__author { font-size: 14px; color: var(--text); font-weight: 500; }
.kb-article__author-role { font-size: 11px; color: var(--faint); }
.kb-article__sep { color: var(--border); }
.kb-article__cover { max-height: 320px; overflow: hidden; }
.kb-article__cover img { width: 100%; object-fit: cover; }
.kb-article__layout { display: grid; grid-template-columns: 1fr 240px; gap: 48px; padding: 48px 0; align-items: start; }
.kb-article__content { max-width: 680px; }
.kb-article__tags-footer { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--faint); }
.kb-article__sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 0; }

/* ── PROSE (rich content) ── */
.kb-prose p { color: var(--muted); margin-bottom: 18px; line-height: 1.8; }
.kb-prose h2 { font-size: 22px; margin: 36px 0 16px; }
.kb-prose h3 { font-size: 18px; margin: 28px 0 14px; }
.kb-prose h4 { font-size: 17px; margin: 22px 0 12px; }
.kb-prose h5 { font-size: 15px; margin: 18px 0 10px; }
.kb-prose ul, .kb-prose ol { color: var(--muted); padding-left: 20px; margin-bottom: 18px; }
.kb-prose ul { list-style: disc; }
.kb-prose ol { list-style: decimal; }
.kb-prose li { margin-bottom: 6px; line-height: 1.7; }
.kb-prose a { color: var(--accent); text-decoration: underline; }
.kb-prose strong { color: var(--text); }
.kb-prose code { background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; font-family: monospace; font-size: 14px; }
.kb-prose pre { background: #0a0a0a; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; overflow-x: auto; margin-bottom: 20px; }
.kb-prose blockquote { border-left: 3px solid var(--accent); padding-left: 16px; color: var(--muted); font-style: italic; margin: 20px 0; }

/* Author bio */
.kb-author-bio { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-top: 32px; }
.kb-author-bio__avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.kb-author-bio__name { font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.kb-author-bio__role { font-size: 11px; color: var(--accent); margin-bottom: 8px; }

/* ── FILTER ROW ── */
.kb-filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.kb-filter { font-size: 11px; color: var(--muted); padding: 6px 16px; border-radius: 20px; border: 1px solid var(--border); transition: all .15s; cursor: pointer; }
.kb-filter.active, .kb-filter:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── ABOUT PAGE ── */
.kb-about-hero { background: var(--bg); padding: 64px 0 0; }
.kb-about-hero h1 { max-width: 560px; margin-bottom: 16px; }
.kb-about-hero p { max-width: 500px; margin-bottom: 40px; }
.kb-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kb-value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.kb-value-card__icon { font-size: 22px; margin-bottom: 12px; }
.kb-value-card__title { font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.kb-value-card__desc { font-size: 13px; color: var(--faint); line-height: 1.7; }
.kb-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kb-team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s; cursor: pointer; }
.kb-team-card:hover { border-color: var(--accent); }
.kb-team-card__photo { height: 100px; background: var(--surface2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.kb-team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.kb-team-card__av { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Roboto', sans-serif; font-weight: 800; font-size: 17px; color: #fff; }
.kb-team-card__body { padding: 14px; }
.kb-team-card__name { font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.kb-team-card__role { font-size: 11px; }
.kb-timeline { border-left: 2px solid var(--border); padding-left: 28px; }
.kb-timeline-item { position: relative; margin-bottom: 28px; }
.kb-timeline-item::before { content: ''; position: absolute; left: -35px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--faint); }
.kb-timeline-item:first-child::before { background: var(--accent); }
.kb-timeline-item__year { font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.kb-timeline-item:first-child .kb-timeline-item__year { color: var(--accent); }
.kb-timeline-item__title { font-size: 14px; color: var(--text); }
.kb-timeline-item__desc { font-size: 13px; color: var(--faint); margin-top: 3px; }

/* ── CONTACT ── */
.kb-contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; }
.kb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kb-form-group { margin-bottom: 16px; }
.kb-form-group label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.kb-form-group input, .kb-form-group select, .kb-form-group textarea { width: 100%; background: var(--surface2); border: 1px solid var(--border); color: var(--text); padding: 11px 14px; border-radius: var(--radius); font-size: 15px; font-family: 'Roboto', sans-serif; outline: none; transition: border .15s; }
.kb-form-group input:focus, .kb-form-group select:focus, .kb-form-group textarea:focus { border-color: var(--accent); }
.kb-form-group textarea { min-height: 120px; resize: vertical; }
.kb-form-group select { cursor: pointer; }
.kb-contact-info__item { margin-bottom: 28px; }
.kb-contact-info__value { font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 700; display: block; margin-top: 4px; }
a.kb-contact-info__value:hover { color: var(--accent); }
.kb-map-placeholder { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--faint); margin-bottom: 20px; }
.kb-contact-social { display: flex; gap: 12px; flex-wrap: wrap; }
.kb-social-link { font-size: 13px; color: var(--faint); border: 1px solid var(--border); padding: 6px 14px; border-radius: 20px; transition: all .15s; }
.kb-social-link:hover { color: var(--accent); border-color: var(--accent); }
.kb-form-feedback { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; }
.kb-alert--success { background: #39d98a11; border: 1px solid #39d98a33; color: var(--kb-green); }
.kb-alert--error   { background: rgba(249,87,46,.1); border: 1px solid rgba(249,87,46,.3); color: var(--accent); }

/* ── CTA BANNER ── */
.kb-cta-banner { background: var(--accent); padding: 48px 0; }
.kb-cta-banner__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.kb-cta-banner h2 { color: #fff; font-size: 28px; margin-bottom: 6px; }
.kb-cta-banner p { color: rgba(255,255,255,.75); font-size: 15px; }

/* ── FOOTER ── */
.kb-footer { background: #080808; border-top: 1px solid var(--border); padding: 48px 0 24px; }
.kb-footer__grid { max-width: 1160px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.kb-footer__brand .kb-text-logo { font-size: 20px; margin-bottom: 12px; display: block; }
.kb-footer__brand img { height: 28px; width: auto; margin-bottom: 12px; }
.kb-footer__brand p { font-size: 13px; color: var(--faint); line-height: 1.7; max-width: 240px; }
.kb-footer__col h4 { font-family: 'Roboto', sans-serif; font-size: 13px; color: var(--text); margin-bottom: 14px; letter-spacing: .5px; }
.kb-footer__col a { display: block; font-size: 13px; color: var(--faint); margin-bottom: 10px; transition: color .15s; }
.kb-footer__col a:hover { color: var(--accent); }
.kb-footer__col span { display: block; font-size: 13px; color: var(--faint); line-height: 1.6; }
.kb-footer__bottom { max-width: 1160px; margin: 0 auto; padding: 20px 32px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.kb-footer__social { display: flex; gap: 16px; }
.kb-footer__social a { font-size: 13px; color: var(--faint); transition: color .15s; }
.kb-footer__social a:hover { color: var(--accent); }

/* ── BREADCRUMB ── */
.kb-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--faint); padding: 14px 0; border-bottom: 1px solid var(--border); }
.kb-breadcrumb a { color: var(--muted); }
.kb-breadcrumb a:hover { color: var(--accent); }
.kb-breadcrumb span:last-child { color: var(--accent); }

/* ── NO RESULTS ── */
.kb-no-results { color: var(--faint); text-align: center; padding: 48px; font-size: 15px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.kb-blog-card.kb-new { animation: fadeUp .4s ease forwards; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .kb-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .kb-services-grid { grid-template-columns: repeat(2, 1fr); }
  .kb-service-card--wide { grid-column: span 1; }
  .kb-cs-layout { grid-template-columns: 1fr; }
  .kb-prod-layout { grid-template-columns: 1fr; }
  .kb-article__layout { grid-template-columns: 1fr; }
  .kb-article__sidebar { position: static; }
  .kb-cs-grid { grid-template-columns: 1fr; }
  .kb-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .kb-products-grid { grid-template-columns: repeat(2, 1fr); }
  .kb-team-grid { grid-template-columns: repeat(3, 1fr); }
  .kb-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .kb-contact-layout { grid-template-columns: 1fr; }

}

@media (max-width: 768px) {
  .kb-container { padding: 0 20px; }
  .kb-section { padding: 48px 0; }
  .kb-nav__links { display: none; }
  .kb-nav__toggle { display: flex; }

  .kb-services-grid { grid-template-columns: 1fr; }
  .kb-blog-grid { grid-template-columns: 1fr; }
  .kb-products-grid { grid-template-columns: 1fr; }
  .kb-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .kb-team-grid { grid-template-columns: repeat(2, 1fr); }
  .kb-values-grid { grid-template-columns: 1fr; }
  .kb-form-row { grid-template-columns: 1fr; }
  .kb-features-grid { grid-template-columns: 1fr; }
  .kb-cs-stats { grid-template-columns: 1fr; }
  .kb-footer__grid { grid-template-columns: 1fr; }
  .kb-cta-banner__inner { flex-direction: column; text-align: center; }
  .kb-cs-hero__meta { gap: 16px; }
}

/* 2-card case study layout on homepage */
.kb-cs-scroll { justify-content: flex-start; }
.kb-cs-scroll .kb-cs-card { min-width: 340px; max-width: 440px; flex: 1; }

/* Heading to paragraph spacing */
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p { margin-top: 0; }
.kb-prose p { margin-bottom: 20px; }

/* ── Sidebar: Portal Promo Box ─────────────────────────────────────────────── */
.kb-sidebar-promo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin-bottom: 16px;
  text-align: center;
}
.kb-sidebar-promo__icon {
  font-size: 28px;
  margin-bottom: 10px;
}
.kb-sidebar-promo__label {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.kb-sidebar-promo__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.kb-sidebar-promo__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.kb-sidebar-promo__btn {
  width: 100%;
  justify-content: center;
  display: flex;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
}

/* Light mode */
body.kb-light .kb-sidebar-promo { background: #ffffff; border-color: #e0e0e0; }
body.kb-light .kb-sidebar-promo__title { color: #1a1a1a; }

/* ── Sidebar: Table of Contents ─────────────────────────────────────────────── */
.kb-sidebar-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.kb-sidebar-toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0 0 14px 0;
  cursor: pointer;
  text-align: left;
  gap: 8px;
}
.kb-sidebar-toc__title {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}
.kb-toc-box-arrow {
  font-size: 18px;
  color: #e53935;
  line-height: 1;
  transition: transform .2s;
  flex-shrink: 0;
  font-weight: 700;
}
.kb-sidebar-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kb-sidebar-toc__item {
  border-bottom: 1px solid var(--border);
}
.kb-sidebar-toc__item:last-child { border-bottom: none; }
.kb-sidebar-toc__item a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  transition: color .15s;
}
.kb-sidebar-toc__item a:hover { color: var(--accent); }
.kb-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 9px 0;
  cursor: pointer;
  text-align: left;
  gap: 8px;
}
.kb-toc-h2-link {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
  line-height: 1.4;
  transition: color .15s;
}
.kb-toc-h2-link:hover { color: var(--accent); }
.kb-toc-arrow {
  font-size: 17px;
  color: var(--faint);
  line-height: 1;
  transition: transform .2s;
  flex-shrink: 0;
}
.kb-toc-sub {
  list-style: none;
  margin: 0 0 4px 6px;
  padding: 0;
  border-left: 2px solid var(--border);
}
.kb-toc-sub li { border-bottom: none; }
.kb-toc-sub a {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--faint);
  display: block;
  transition: color .15s;
}
.kb-toc-sub a:hover { color: var(--accent); }
body.kb-light .kb-toc-arrow { color: #aaa; }
body.kb-light .kb-toc-sub { border-left-color: #e0e0e0; }
body.kb-light .kb-sidebar-toc { background: #ffffff; border-color: #e0e0e0; }
body.kb-light .kb-sidebar-toc__item { border-bottom-color: #e0e0e0; }

/* ── Sidebar: Suggested Posts ───────────────────────────────────────────────── */
.kb-sidebar-suggested {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.kb-sidebar-suggested__title {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.kb-sidebar-suggested__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kb-sidebar-suggested__item {
  border-bottom: 1px solid var(--border);
}
.kb-sidebar-suggested__item:last-child { border-bottom: none; }
.kb-sidebar-suggested__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  transition: opacity .15s;
}
.kb-sidebar-suggested__link:hover { opacity: .8; }
.kb-sidebar-suggested__thumb {
  width: 52px;
  height: 42px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: var(--surface2);
}
.kb-sidebar-suggested__thumb--empty {
  background: linear-gradient(135deg, var(--surface2), #1a2535);
}
.kb-sidebar-suggested__info {
  flex: 1;
  min-width: 0;
}
.kb-sidebar-suggested__post-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.kb-sidebar-suggested__date {
  font-size: 11px;
  color: var(--faint);
}
body.kb-light .kb-sidebar-suggested { background: #ffffff; border-color: #e0e0e0; }
body.kb-light .kb-sidebar-suggested__item { border-bottom-color: #e0e0e0; }
body.kb-light .kb-sidebar-suggested__post-title { color: #1a1a1a; }
body.kb-light .kb-sidebar-suggested__thumb--empty { background: linear-gradient(135deg,#fde8e2,#fdd5cb); }

/* ── Product Info Bar (horizontal) ─────────────────────────────────────────── */
.kb-prod-header { padding: 40px 0 0; }
.kb-prod-header h1 { margin-top: 12px; }

.kb-prod-infobar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  margin: 24px 0 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.kb-prod-infobar__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}
.kb-prod-infobar__amount {
  font-family: 'Roboto', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.kb-prod-infobar__amount--free { color: var(--kb-green); }
.kb-prod-infobar__original {
  font-size: 16px;
  color: var(--faint);
  text-decoration: line-through;
}

.kb-prod-infobar__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.kb-prod-infobar__buy { font-size: 15px; font-weight: 600; white-space: nowrap; }
.kb-prod-infobar__preview { font-size: 14px; white-space: nowrap; }

.kb-prod-infobar__specs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}
.kb-prod-infobar__spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  min-width: 72px;
  text-align: center;
}
.kb-prod-infobar__spec-label {
  font-size: 10px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  white-space: nowrap;
}
.kb-prod-infobar__spec-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* Light mode */
body.kb-light .kb-prod-infobar { background: #ffffff; border-color: #e0e0e0; }
body.kb-light .kb-prod-infobar__spec { background: #f5f5f5; border-color: #e0e0e0; }
body.kb-light .kb-prod-infobar__amount { color: #1a1a1a; }
body.kb-light .kb-prod-infobar__spec-val { color: #1a1a1a; }

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .kb-prod-infobar { flex-direction: column; align-items: flex-start; }
  .kb-prod-infobar__specs { justify-content: flex-start; }
}

/* ── Share Bar ─────────────────────────────────────────────────────────────── */
.kb-share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.kb-share-bar__label {
  font-size: 11px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-right: 4px;
}
.kb-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  text-decoration: none;
}
.kb-share-icon:hover { transform: translateY(-2px); }
.kb-share-icon--twitter:hover  { background: #000;     color: #fff; border-color: #000; }
.kb-share-icon--linkedin:hover { background: #0077b5;  color: #fff; border-color: #0077b5; }
.kb-share-icon--facebook:hover { background: #1877f2;  color: #fff; border-color: #1877f2; }
.kb-share-icon--instagram:hover{ background: #e1306c;  color: #fff; border-color: #e1306c; }
.kb-share-icon--copy:hover     { background: #f9572e;  color: #fff; border-color: #f9572e; }
.kb-share-icon--copy.copied    { background: #39d98a;  color: #fff; border-color: #39d98a; }

/* Light mode */
body.kb-light .kb-share-bar   { background: #ffffff; border-color: #e0e0e0; }
body.kb-light .kb-share-icon  { background: #f5f5f5; border-color: #e0e0e0; color: #555; }

/* ══════════════════════════════════════════════════════════
   TECHNOLOGIES PAGE — TILE GRID
═══════════════════════════════════════════════════════════ */
.kb-tech-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.kb-tech-filter {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: all .15s;
}
.kb-tech-filter:hover,
.kb-tech-filter.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 4-column tile grid */
.kb-tech-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.kb-tech-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px 18px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
a.kb-tech-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  border-color: var(--accent);
}
.kb-tech-tile__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.kb-tech-tile__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(249,87,46,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.kb-tech-tile__arrow {
  font-size: 17px;
  color: var(--faint);
  opacity: 0;
  transition: opacity .15s;
}
a.kb-tech-tile:hover .kb-tech-tile__arrow { opacity: 1; color: var(--accent); }
.kb-tech-tile__cat {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 6px;
}
.kb-tech-tile__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.kb-tech-tile__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kb-tech-tile__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.kb-tech-tile__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .6;
  flex-shrink: 0;
}
body.kb-light .kb-tech-tile { background: #fff; border-color: #e8e8e8; }
body.kb-light .kb-tech-tile__icon-wrap { background: #fde8e2; }

@media (max-width: 1100px) { .kb-tech-cards-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px)  { .kb-tech-cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .kb-tech-cards-grid { grid-template-columns: 1fr; } }

/* ── Single Technology Page ── */
.kb-tech-single-hero {
  padding: 40px 0 0;
  background: var(--bg);
}
.kb-tech-single-hero h1 { margin-top: 8px; margin-bottom: 0; }

.kb-tech-facts-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 0;
}
.kb-tech-facts-row {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.kb-tech-fact {
  flex: 1;
  min-width: 100px;
  padding: 8px 24px;
  border-right: 1px solid var(--border);
}
.kb-tech-fact:first-child { padding-left: 0; }
.kb-tech-fact__label {
  font-size: 10px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.kb-tech-fact__val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.kb-tech-fact-cta {
  flex-shrink: 0;
  margin-left: 24px;
  white-space: nowrap;
}
body.kb-light .kb-tech-facts-bar { background: #fff; border-color: #e0e0e0; }
body.kb-light .kb-tech-fact { border-right-color: #e0e0e0; }

.kb-tech-single-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 40px 0 64px;
  align-items: start;
}
.kb-tech-single-content { min-width: 0; }
.kb-tech-single-sidebar { position: sticky; top: 80px; }

@media (max-width: 1024px) {
  .kb-tech-single-layout { grid-template-columns: 1fr; }
  .kb-tech-single-sidebar { position: static; }
  .kb-tech-facts-row { gap: 12px; }
  .kb-tech-fact { border-right: none; border-bottom: 1px solid var(--border); flex: 0 0 45%; }
}
@media (max-width: 640px) {
  .kb-tech-fact { flex: 0 0 100%; }
  .kb-tech-fact-cta { width: 100%; text-align: center; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════
   EXPERTISE PAGE
═══════════════════════════════════════════════════════════ */
.kb-expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kb-expertise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ex-color, var(--accent));
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform .2s, box-shadow .2s;
}
.kb-expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.kb-expertise-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.kb-expertise-card__icon { font-size: 28px; line-height: 1; }
.kb-expertise-card__stat {
  font-size: 11px;
  color: var(--ex-color, var(--accent));
  font-weight: 700;
  background: var(--surface2);
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.kb-expertise-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.kb-expertise-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.kb-expertise-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kb-expertise-tag {
  font-size: 11px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--faint);
  padding: 3px 10px;
  border-radius: 10px;
}
body.kb-light .kb-expertise-card { background: #fff; border-color: #e0e0e0; }
body.kb-light .kb-expertise-tag  { background: #f5f5f5; border-color: #e0e0e0; color: #555; }

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

/* ══════════════════════════════════════════════════════════
   FAQ PAGE
═══════════════════════════════════════════════════════════ */
.kb-faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.kb-faq-nav {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kb-faq-nav__item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: var(--radius);
  border-left: 2px solid transparent;
  transition: all .15s;
  text-decoration: none;
}
.kb-faq-nav__item:hover,
.kb-faq-nav__item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--surface);
}
.kb-faq-section { margin-bottom: 48px; }
.kb-faq-section__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.kb-faq-item {
  border-bottom: 1px solid var(--border);
}
.kb-faq-item__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  gap: 16px;
}
.kb-faq-item__q:hover { color: var(--accent); }
.kb-faq-item__arrow {
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .2s;
  line-height: 1;
}
.kb-faq-item__a {
  padding: 0 0 20px;
}
.kb-faq-item__a p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.kb-faq-still {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin-top: 48px;
}
.kb-faq-still__icon { font-size: 40px; margin-bottom: 12px; }
.kb-faq-still h3 { font-size: 20px; margin-bottom: 8px; }
.kb-faq-still p  { font-size: 15px; color: var(--muted); margin-bottom: 20px; max-width: 380px; margin-left: auto; margin-right: auto; }
body.kb-light .kb-faq-nav__item.active,
body.kb-light .kb-faq-nav__item:hover { background: #fff4f2; }
body.kb-light .kb-faq-still { background: #fff; border-color: #e0e0e0; }
body.kb-light .kb-faq-item__q { color: #1a1a1a; }

@media (max-width: 768px) {
  .kb-faq-layout { grid-template-columns: 1fr; }
  .kb-faq-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* ── Technology Sidebar: grouped tech list ─────────────────────────────────── */
.kb-tech-sidebar-group { margin-bottom: 16px; }
.kb-tech-sidebar-group:last-child { margin-bottom: 0; }
.kb-tech-sidebar-group__label {
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 8px 0 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.kb-tech-sidebar-link {
  display: block;
  padding: 7px 8px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 6px;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.kb-tech-sidebar-link:hover { background: var(--surface2); color: var(--text); }
.kb-tech-sidebar-link.active {
  background: rgba(249,87,46,.12);
  color: var(--accent);
  font-weight: 600;
}
body.kb-light .kb-tech-sidebar-link:hover { background: #fff4f2; }
body.kb-light .kb-tech-sidebar-link.active { background: #fde8e2; }

/* ── Expertise page extras ─────────────────────────────────────────────────── */
.kb-expertise-stat-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(249,87,46,.1);
  border: 1px solid rgba(249,87,46,.2);
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.kb-expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.kb-expertise-tag-sm {
  font-size: 11px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--faint);
  padding: 3px 9px;
  border-radius: 8px;
}
body.kb-light .kb-expertise-tag-sm { background: #f5f5f5; border-color: #e0e0e0; color: #666; }
body.kb-light .kb-expertise-stat-badge { background: #fde8e2; border-color: #fdc5b5; color: var(--accent); }

/* ── Blog Page Tabs ─────────────────────────────────────────────────────────── */
.kb-blog-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.kb-blog-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: all .15s;
  line-height: 1;
}
.kb-blog-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.kb-blog-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.kb-blog-tab__count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 1px 7px;
  line-height: 1.4;
}
.kb-blog-tab.active .kb-blog-tab__count { background: rgba(255,255,255,.25); }
.kb-blog-tab:not(.active) .kb-blog-tab__count { background: var(--surface2); color: var(--faint); }

.kb-blog-results-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.kb-blog-results-label { font-size: 14px; color: var(--faint); }

/* Loader */
.kb-blog-loader {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}
.kb-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: kb-spin .7s linear infinite;
}
@keyframes kb-spin { to { transform: rotate(360deg); } }

/* Grid fade during load */
#kb-blog-grid { transition: opacity .2s; }

body.kb-light .kb-blog-tab:not(.active) { border-color: #e0e0e0; color: #555; }
body.kb-light .kb-blog-tab:not(.active) .kb-blog-tab__count { background: #f0f0f0; color: #888; }

/* ── reCAPTCHA notice ───────────────────────────────────────────────────────── */
.kb-recaptcha-notice { font-size: 11px; color: var(--faint); margin-top: 10px; text-align: center; line-height: 1.5; }
.kb-recaptcha-notice a { color: var(--faint); text-decoration: underline; }
.kb-recaptcha-notice a:hover { color: var(--accent); }
/* Hide Google's floating badge (we show the text notice instead) */
.grecaptcha-badge { visibility: hidden !important; }

/* ── Dual logo switching (dark / light mode) ────────────────────────────────── */
/* Default (dark mode): show dark logo, hide light logo */
.kb-logo-dark  { display: block !important; }
.kb-logo-light { display: none  !important; }

/* Light mode: show light logo, hide dark logo */
body.kb-light .kb-logo-dark  { display: none  !important; }
body.kb-light .kb-logo-light { display: block !important; }

/* ════════════════════════════════════════════════════════════════════════════
   IBM-INSPIRED HOMEPAGE  —  .kb-ibm scoped, dark/light responsive
════════════════════════════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────────────────────────────── */
/* ── IBM homepage max-width: content stays contained on wide screens ── */
.kb-ibm .ki-hero,
.kb-ibm .ki-rec-label,
.kb-ibm .ki-section__head,
.kb-ibm .ki-inside,
.kb-ibm .ki-tech,
.kb-ibm .ki-news,
.kb-ibm .ki-cta {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}
/* Full-width sections still span edge-to-edge, only their INNER content is capped */
.kb-ibm .ki-rec-grid,
.kb-ibm .ki-svc-grid,
.kb-ibm .ki-cs-layout,
.kb-ibm .ki-qt {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}
/* Wrap the whole page in a max-width box */
.kb-ibm {
  max-width: 1600px;
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.ki-hero {
  padding: 56px 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
/* Light mode: white. Dark mode: dark (var(--bg) handles both) */
body.kb-light .ki-hero { background: #ffffff; }

/* 1. Slide row — always full width */
.ki-hero__slide-row { margin-bottom: 28px; }

/* 2. Mid row — text left, media right */
.ki-hero__mid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 36px;
}
.ki-hero__mid--has-media {
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.ki-hero__text { display: flex; flex-direction: column; }

/* 3. Media panel — white bg, light border, rounded corners */
.ki-hero__media-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  position: relative;
}
.ki-hero__media-panel img,
.ki-hero__media-panel video {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.ki-hero__media-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: none;
  display: block;
}

/* Play overlay for manual-play videos */
.ki-hero__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  background: transparent;
}
.ki-hero__play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s, opacity .2s;
  font-family: inherit;
}
.ki-hero__play-btn:hover { transform: scale(1.08); opacity: .9; }
.ki-hero__play-label {
  font-size: 13px;
  color: var(--muted);
}

/* Bottom meta row: always full width below mid ── */
.ki-hero__bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 32px;
}
.ki-hero__meta-item { display: flex; flex-direction: column; gap: 4px; }
.ki-hero__meta-label { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; }
.ki-hero__meta-green { font-size: 13px; color: #39d98a; display: flex; align-items: center; gap: 6px; }
.ki-green-dot { width: 6px; height: 6px; border-radius: 50%; background: #39d98a; flex-shrink: 0; }
.ki-hero__meta-val2 { font-size: 13px; color: var(--muted); }

/* Light/dark mode */
body.kb-light .ki-hero__media-panel { background: #ffffff; border-color: #e0e0e0; }

/* Responsive */
@media (max-width: 900px) {
  .ki-hero__mid--has-media { grid-template-columns: 1fr; }
  .ki-hero__media-panel { min-height: 220px; }
  .ki-hero__media-panel img,
  .ki-hero__media-panel video,
  .ki-hero__media-panel iframe { min-height: 220px; height: 220px; }
}
.ki-hero::after { content:''; position:absolute; right:-80px; top:-80px; width:480px; height:480px; background:radial-gradient(circle,rgba(249,87,46,.05) 0%,transparent 60%); pointer-events:none; }
.ki-hero__slide-row { display:flex; align-items:center; gap:16px; margin-bottom:32px; }
.ki-hero__num { font-size:48px; font-weight:300; color:var(--border); line-height:1; }
.ki-hero__dots { display:flex; gap:5px; align-items:center; }
.ki-dot { width:24px; height:2px; background:var(--border); }
.ki-dot--on { background:var(--accent); width:32px; }
.ki-hero__h1 { font-size:48px; font-weight:300; line-height:1.07; color:var(--text); max-width:660px; margin-bottom:20px; }
.ki-hero__h1 strong { font-weight:700; }
.ki-hero__h1 em { color:var(--accent); font-style:normal; font-weight:700; }
.ki-hero__sub { font-size:17px; font-weight:300; color:var(--muted); max-width:580px; line-height:1.75; margin-bottom:36px; }
.ki-hero__links { display:flex; flex-direction:column; gap:14px; }
.ki-hero__lnk { font-size:16px; color:var(--text); display:flex; align-items:center; gap:8px; text-decoration:none; }
.ki-hero__lnk:hover span { text-decoration:underline; }
.ki-hero__lnk i { color:var(--accent); font-size:16px; }
.ki-hero__lnk--sub { font-size:14px; color:var(--muted); }
.ki-hero__lnk--sub i { color:var(--faint); }
.ki-hero__meta { margin-top:0; padding-top:24px; border-top:1px solid var(--border); display:flex; gap:0; }
.ki-hero__meta-item { border-right:1px solid var(--border); padding-right:24px; margin-right:24px; }
.ki-hero__meta-item:last-child { border-right:none; }
.ki-hero__meta-label { font-size:11px; color:var(--faint); text-transform:uppercase; letter-spacing:1px; margin-bottom:4px; }
.ki-hero__meta-val { font-size:13px; color:#39d98a; display:flex; align-items:center; gap:6px; }
.ki-green-dot { width:6px; height:6px; border-radius:50%; background:#39d98a; flex-shrink:0; }
.ki-hero__meta-val2 { font-size:13px; color:var(--muted); }

/* ── RECOMMENDED ──────────────────────────────────────────────────────────── */
.ki-rec-label { font-size:11px; color:var(--faint); text-transform:uppercase; letter-spacing:1.5px; padding:14px 40px; border-bottom:1px solid var(--border); border-top:1px solid var(--border); }
.ki-rec-grid { display:grid; grid-template-columns:repeat(4,1fr); border-bottom:1px solid var(--border); }
.ki-rec-card { border-right:1px solid var(--border); display:flex; flex-direction:column; cursor:pointer; text-decoration:none; transition:background .12s; }
.ki-rec-card:last-child { border-right:none; }
.ki-rec-card:hover { background:var(--surface2); }
.ki-rec-img { height:130px; background:var(--surface2); display:flex; align-items:center; justify-content:center; overflow:hidden; border-bottom:1px solid var(--border); }
.ki-rec-img img { width:100%; height:100%; object-fit:cover; display:block; }
.ki-rec-img--empty { font-size:40px; }
.ki-rec-body { padding:16px 18px 20px; flex:1; display:flex; flex-direction:column; gap:6px; }
.ki-rec-tag { font-size:11px; color:var(--accent); text-transform:uppercase; letter-spacing:1px; font-weight:600; }
.ki-rec-title { font-size:13px; color:var(--text); line-height:1.45; flex:1; }
.ki-rec-cta { font-size:13px; color:var(--accent); display:flex; align-items:center; gap:4px; margin-top:8px; font-weight:600; }

/* ── TICKER ───────────────────────────────────────────────────────────────── */
.ki-ticker { background:var(--accent); overflow:hidden; padding:13px 0; }
.ki-ticker__inner { display:flex; animation:ki-tick 36s linear infinite; width:max-content; }
.ki-ticker__inner span { font-size:12px; font-weight:400; color:rgba(255,255,255,.9); padding:0 24px; border-right:1px solid rgba(255,255,255,.22); white-space:nowrap; }
@keyframes ki-tick { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── SECTION SHELL ────────────────────────────────────────────────────────── */
.ki-section { border-bottom:1px solid var(--border); }
.ki-section__head { padding:48px 40px 0; }
.ki-eyebrow { font-size:11px; color:var(--accent); text-transform:uppercase; letter-spacing:1.5px; margin-bottom:12px; font-weight:600; }
.ki-h2 { font-size:32px; font-weight:300; line-height:1.2; color:var(--text); margin-bottom:8px; }
.ki-h2 strong { font-weight:700; }
.ki-sec-sub { font-size:15px; color:var(--muted); max-width:600px; line-height:1.75; padding-bottom:32px; }

/* ── SERVICES GRID ────────────────────────────────────────────────────────── */
.ki-svc-grid { display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--border); }
.ki-svc-tile { padding:28px 24px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); display:flex; flex-direction:column; gap:10px; cursor:pointer; transition:background .12s; text-decoration:none; color:inherit; }
.ki-svc-tile:nth-child(4n) { border-right:none; }
.ki-svc-tile:nth-child(5),.ki-svc-tile:nth-child(6),.ki-svc-tile:nth-child(7),.ki-svc-tile:nth-child(8) { border-bottom:none; }
.ki-svc-tile:hover { background:var(--surface2); }
.ki-svc-icon { width:40px; height:40px; display:flex; align-items:center; justify-content:center; color:var(--accent); font-size:22px; }
.ki-svc-name { font-size:15px; font-weight:700; color:var(--text); line-height:1.3; }
.ki-svc-desc { font-size:13px; color:var(--muted); line-height:1.65; flex:1; }
.ki-svc-link { font-size:13px; color:var(--accent); display:flex; align-items:center; gap:4px; margin-top:4px; font-weight:600; }

/* ── CASE STUDIES ─────────────────────────────────────────────────────────── */
.ki-cs-layout { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--border); }
.ki-cs-main { padding:48px 40px; border-right:1px solid var(--border); display:flex; flex-direction:column; gap:14px; }
.ki-cs-tag { font-size:11px; color:var(--accent); text-transform:uppercase; letter-spacing:1px; font-weight:600; }
.ki-cs-h3 { font-size:26px; font-weight:300; line-height:1.25; color:var(--text); }
.ki-cs-h3 strong { font-weight:700; }
.ki-cs-body { font-size:14px; color:var(--muted); line-height:1.75; max-width:520px; }
.ki-cs-metrics { display:flex; gap:32px; margin-top:8px; }
.ki-cs-mn { font-size:44px; font-weight:300; color:var(--accent); line-height:1; margin-bottom:5px; }
.ki-cs-ml { font-size:13px; color:var(--muted); max-width:120px; line-height:1.4; }
.ki-cs-lnk { font-size:14px; color:var(--accent); display:flex; align-items:center; gap:6px; font-weight:600; margin-top:auto; text-decoration:none; }
.ki-cs-side { display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.ki-cs-side-item { padding:20px 24px; border-bottom:1px solid var(--border); cursor:pointer; display:flex; gap:14px; align-items:flex-start; transition:background .1s; text-decoration:none; color:inherit; background:transparent; border-top:none; border-right:none; width:100%; text-align:left; font-family:inherit; font-size:inherit; }
.ki-cs-side-item:last-child { border-bottom:none; }
.ki-cs-side-item:hover { background:var(--surface2); }
.ki-cs-side-item--on { border-left:3px solid var(--accent); background:var(--surface2); }
.ki-cs-side-emoji { width:60px; height:50px; background:var(--surface2); flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:22px; }
.ki-cs-side-tag { font-size:11px; color:var(--accent); text-transform:uppercase; letter-spacing:1px; font-weight:600; margin-bottom:4px; }
.ki-cs-side-title { font-size:13px; color:var(--muted); line-height:1.4; }

/* ── QUOTE + TRUST ────────────────────────────────────────────────────────── */
.ki-qt { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid var(--border); }
.ki-qt__l { background:#0d0d0d; padding:56px 48px; border-right:1px solid #393939; display:flex; flex-direction:column; justify-content:center; }
body.kb-light .ki-qt__l { background:#f0ede8; border-right-color:var(--border); }
.ki-qt__mark { font-size:72px; color:var(--accent); line-height:.75; font-family:Georgia,serif; margin-bottom:14px; }
.ki-qt__text { font-size:20px; font-weight:300; color:#e0e0e0; line-height:1.65; max-width:440px; margin-bottom:24px; }
body.kb-light .ki-qt__text { color:#222; }
.ki-qt__author { font-size:14px; color:#525252; }
.ki-qt__author strong { display:block; color:#a8a8a8; margin-bottom:2px; font-weight:600; }
body.kb-light .ki-qt__author strong { color:#444; }
.ki-qt__r { padding:48px 40px; display:flex; flex-direction:column; gap:28px; justify-content:center; background:var(--surface); }
.ki-trust { display:flex; gap:16px; align-items:flex-start; }
.ki-trust__icon { width:40px; height:40px; background:var(--bg); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--accent); font-size:20px; flex-shrink:0; }
.ki-trust__title { font-size:14px; font-weight:700; color:var(--text); margin-bottom:5px; }
.ki-trust__body { font-size:13px; color:var(--muted); line-height:1.65; }

/* ── INSIDE KEYBRAINS ─────────────────────────────────────────────────────── */
.ki-inside { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.ki-inside__col { padding:40px 32px; border-right:1px solid var(--border); }
.ki-inside__col:last-child { border-right:none; }
.ki-inside__col-head { font-size:11px; color:var(--faint); text-transform:uppercase; letter-spacing:1.5px; margin-bottom:18px; font-weight:600; }
.ki-inside__col-title { font-size:16px; font-weight:700; color:var(--text); margin-bottom:10px; line-height:1.3; }
.ki-inside__col-body { font-size:13px; color:var(--muted); line-height:1.7; margin-bottom:16px; }
.ki-inside__links { display:flex; flex-direction:column; gap:10px; }
.ki-inside__lnk { font-size:13px; color:var(--text); display:flex; align-items:center; gap:6px; text-decoration:none; }
.ki-inside__lnk:hover span { text-decoration:underline; }
.ki-inside__lnk i { color:var(--accent); font-size:13px; }

/* ── TECH STACK ───────────────────────────────────────────────────────────── */
.ki-tech { padding:40px; border-bottom:1px solid var(--border); }
.ki-tech__label { font-size:11px; color:var(--accent); text-transform:uppercase; letter-spacing:1.5px; margin-bottom:16px; font-weight:600; }
.ki-tech__grid { display:flex; flex-wrap:wrap; gap:0; border-top:1px solid var(--border); border-left:1px solid var(--border); }
.ki-tech__pill { font-size:13px; color:var(--muted); padding:10px 18px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); cursor:pointer; white-space:nowrap; transition:background .1s; text-decoration:none; display:inline-block; }
.ki-tech__pill:hover { background:var(--surface2); color:var(--text); }
.ki-tech__pill--hot { color:var(--accent); font-weight:600; background:rgba(249,87,46,.05); }
.ki-tech__pill--hot:hover { background:rgba(249,87,46,.1); }

/* ── NEWS ─────────────────────────────────────────────────────────────────── */
.ki-news { padding:48px 40px; border-bottom:1px solid var(--border); display:grid; grid-template-columns:240px 1fr; gap:48px; }
.ki-news__label { font-size:11px; color:var(--accent); text-transform:uppercase; letter-spacing:1.5px; margin-bottom:10px; font-weight:600; }
.ki-news__aside-body { font-size:13px; color:var(--muted); line-height:1.65; }
.ki-news__all { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--accent); font-weight:600; margin-top:16px; text-decoration:none; }
.ki-news__list { display:flex; flex-direction:column; gap:0; }
.ki-news__item { padding:13px 0; border-bottom:1px solid var(--border); cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.ki-news__item:hover .ki-news__title { color:var(--accent); }
.ki-news__title { font-size:14px; color:var(--text); line-height:1.45; flex:1; transition:color .15s; }
.ki-news__date { font-size:12px; color:var(--faint); white-space:nowrap; }

/* ── CTA STRIP ────────────────────────────────────────────────────────────── */
.ki-cta { background:#0d0d0d; padding:48px 40px; display:flex; justify-content:space-between; align-items:center; gap:40px; }
body.kb-light .ki-cta { background:#161616; }
.ki-cta__h2 { font-size:28px; font-weight:300; color:#fff; line-height:1.2; max-width:480px; margin-bottom:8px; }
.ki-cta__h2 strong { font-weight:700; }
.ki-cta__sub { font-size:14px; color:#6f6f6f; max-width:440px; line-height:1.65; }
.ki-cta__btns { display:flex; flex-direction:column; gap:10px; flex-shrink:0; }
.ki-btn-primary { background:var(--accent); color:#fff; border:none; padding:13px 24px; font-size:14px; font-weight:600; cursor:pointer; font-family:inherit; display:flex; align-items:center; gap:10px; justify-content:space-between; min-width:220px; text-decoration:none; transition:opacity .15s; }
.ki-btn-primary:hover { opacity:.9; }
.ki-btn-secondary { background:transparent; color:#c6c6c6; border:1px solid #6f6f6f; padding:12px 24px; font-size:14px; cursor:pointer; font-family:inherit; display:flex; align-items:center; gap:10px; justify-content:space-between; min-width:220px; text-decoration:none; transition:background .15s; }
.ki-btn-secondary:hover { background:#1a1a1a; }

/* ── LIGHT MODE OVERRIDES ─────────────────────────────────────────────────── */
body.kb-light .ki-rec-card:hover { background:#f0ede8; }
body.kb-light .ki-svc-tile:hover { background:#f0ede8; }
body.kb-light .ki-cs-side-item:hover { background:#f0ede8; }
body.kb-light .ki-cs-side-item--on { background:#fff0ec; }
body.kb-light .ki-tech__pill--hot { background:rgba(249,87,46,.06); }
body.kb-light .ki-qt__r { background:#f4f2ee; }
body.kb-light .ki-trust__icon { background:#fff; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ki-hero__h1 { font-size: 36px; }
  .ki-svc-grid { grid-template-columns: repeat(2,1fr); }
  .ki-svc-tile:nth-child(2n) { border-right:none; }
  .ki-svc-tile:nth-child(7),.ki-svc-tile:nth-child(8) { border-bottom:none; }
  .ki-rec-grid { grid-template-columns: repeat(2,1fr); }
  .ki-cs-layout { grid-template-columns: 1fr; }
  .ki-cs-side { display:none; }
  .ki-qt { grid-template-columns: 1fr; }
  .ki-inside { grid-template-columns: 1fr; }
  .ki-inside__col { border-right:none; border-bottom:1px solid var(--border); }
  .ki-news { grid-template-columns: 1fr; gap:24px; }
}
@media (max-width: 640px) {
  .ki-hero { padding: 40px 20px; }
  .ki-hero__h1 { font-size: 28px; }
  .ki-rec-grid { grid-template-columns: 1fr; }
  .ki-svc-grid { grid-template-columns: 1fr; }
  .ki-svc-tile { border-right:none; }
  .ki-cta { flex-direction: column; align-items: flex-start; }
  .ki-cta__btns { width:100%; }
  .ki-btn-primary,.ki-btn-secondary { min-width:auto; width:100%; justify-content:center; }
}

/* ── Hero media: right-side panel (image or video beside text) ─────────────── */
.ki-hero-media {
  position: relative;
  overflow: hidden;
  background: #000;
  border-left: 1px solid var(--border);
  min-height: 460px;
}
.ki-hero-media__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: center;
}
.ki-hero-media--video { background: #000; }
.ki-hero-media__video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}
.ki-hero-media__iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: none;
}
/* Play overlay for non-autoplay MP4 */
.ki-hero-media__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  cursor: pointer;
  transition: background .2s;
}
.ki-hero-media__play-overlay:hover { background: rgba(0,0,0,.2); }
.ki-hero-media__play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s;
}
.ki-hero-media__play-btn:hover { transform: scale(1.1); }



@media (max-width: 1024px) {
  .ki-hero__mid--has-media { grid-template-columns: 1fr; }
  .ki-hero__media-panel { min-height: 220px; }
}
@media (max-width: 640px) {
  .ki-hero { padding: 36px 20px; }
  .ki-hero__media-panel { min-height: 180px; }
}
/* ── Hero Slider ────────────────────────────────────────────────────────── */
.ki-hero__slides { position: relative; }
.ki-hero__slide  { display: none; }
.ki-hero__slide--active { display: block; }

@keyframes ki-slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ki-hero__slide--active { animation: ki-slide-in 0.45s ease forwards; }

/* Dot clicks */
.ki-hero__dots .ki-dot { cursor: pointer; }
.ki-hero__dots .ki-dot:hover { background: var(--accent); opacity: .6; }

/* Prev / Next buttons */
.ki-hero__nav { display: flex; gap: 8px; margin-top: 20px; }
.ki-hero__nav-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  font-family: inherit;
}
.ki-hero__nav-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Progress bar — hidden */
.ki-hero__progress { display: none; }
.ki-hero__progress-bar { display: none; }

/* ══════════════════════════════════════════════════════════════
   SEARCH RESULTS PAGE
══════════════════════════════════════════════════════════════ */
.kb-search-results-page__hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 36px;
}
.kb-search-results-page__hero h1 { margin-bottom: 6px; }
.kb-search-results-page__hero em { color: var(--accent); font-style: normal; }
.kb-search-results-page__count { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

/* Search form on results page */
.kb-search-results-page__form { max-width: 600px; }
.kb-search-results-page__form-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
}
.kb-search-results-page__form-inner svg { color: var(--muted); flex-shrink: 0; }
.kb-search-results-page__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  min-width: 0;
}
.kb-search-results-page__input::placeholder { color: var(--faint); }

/* Body */
.kb-search-results-page__body { padding: 32px 0 64px; }

/* Tabs */
.kb-search-results-page__tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.kb-search-results-page__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all .15s;
}
.kb-search-results-page__tab span {
  background: var(--surface2);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  color: var(--faint);
}
.kb-search-results-page__tab:hover { border-color: var(--accent); color: var(--accent); }
.kb-search-results-page__tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.kb-search-results-page__tab.active span { background: rgba(255,255,255,.25); color: #fff; }

/* Result items */
.kb-search-results-page__list { display: flex; flex-direction: column; gap: 2px; }

.kb-search-result-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background .12s, border-color .12s;
}
.kb-search-result-item:hover {
  background: var(--surface);
  border-color: var(--border);
}
.kb-search-result-item__thumb {
  width: 72px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface2);
}
.kb-search-result-item__thumb img { width:100%; height:100%; object-fit:cover; display:block; }

.kb-search-result-item__body { flex: 1; min-width: 0; }
.kb-search-result-item__type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 4px;
  display: block;
}
.kb-search-result-item__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin: 0 0 6px;
}
.kb-search-result-item__title mark,
.kb-search-result-item__excerpt mark {
  background: #fef08a;
  color: #713f12;
  border-radius: 3px;
  padding: 0 2px;
}
.kb-search-result-item__excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kb-search-result-item__meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--faint);
}
.kb-search-result-item__url { font-family: monospace; }
.kb-search-result-item__arrow { color: var(--faint); flex-shrink: 0; transition: transform .15s, color .15s; }
.kb-search-result-item:hover .kb-search-result-item__arrow { color: var(--accent); transform: translateX(4px); }

/* Pagination */
.kb-search-results-page__pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.kb-search-results-page__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: all .15s;
}
.kb-search-results-page__pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.kb-search-results-page__pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.kb-search-results-page__pagination .dots { border: none; color: var(--faint); }

/* No results */
.kb-search-results-page__none { text-align: center; padding: 64px 20px; }
.kb-search-results-page__none-icon { font-size: 48px; margin-bottom: 16px; }
.kb-search-results-page__none h2 { margin-bottom: 10px; }
.kb-search-results-page__none p  { color: var(--muted); margin-bottom: 28px; max-width: 400px; margin-left: auto; margin-right: auto; }
.kb-search-results-page__suggestions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ── Hero meta strip — linked values ── */
.ki-hero__meta-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(249,87,46,.3);
  transition: border-color .15s, opacity .15s;
}
.ki-hero__meta-link:hover { opacity: .75; border-bottom-color: var(--accent); }
