/*
Theme Name: KB2026
Theme URI: https://keybrains.io
Author: Key Brains
Author URI: https://keybrains.io
Description: Key Brains 2026 — Custom WordPress theme built on IBM Carbon design system.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: kb2026
*/

/* ─── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── CSS VARIABLES ────────────────────────────────────── */
:root {
  --kb-black:      #0a0a0a;
  --kb-white:      #ffffff;
  --kb-blue:       #0f62fe;
  --kb-blue-hover: #0043ce;
  --kb-blue-light: #edf5ff;
  --kb-gray-10:    #f4f4f4;
  --kb-gray-20:    #e0e0e0;
  --kb-gray-30:    #c6c6c6;
  --kb-gray-50:    #8d8d8d;
  --kb-gray-70:    #525252;
  --kb-gray-90:    #262626;
  --kb-green:      #24a148;
  --kb-teal:       #009d9a;
  --kb-purple:     #8a3ffc;
  --font:          'IBM Plex Sans', sans-serif;
  --mono:          'IBM Plex Mono', monospace;
  --serif:         'IBM Plex Serif', Georgia, serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--kb-black); background: var(--kb-white); font-size: 14px; line-height: 1.5; }
svg { display: inline-block; vertical-align: middle; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── NAV ──────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--kb-black); height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border-bottom: 1px solid #393939;
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-logo-mark {
  width: 36px; height: 36px; background: var(--kb-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: white; letter-spacing: -0.5px;
  clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
  overflow: hidden; flex-shrink: 0;
}
.nav-logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-logo-text { color: white; font-size: 16px; font-weight: 600; letter-spacing: 0.5px; }
.nav-links { display: flex; align-items: center; height: 48px; }
.nav-item { position: relative; height: 48px; display: flex; align-items: center; }
.nav-item > a, .nav-links > a {
  color: #c6c6c6; font-size: 14px; text-decoration: none;
  padding: 0 16px; height: 48px; display: flex; align-items: center;
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.nav-item > a:hover, .nav-links > a:hover,
.nav-links > a.current-menu-item,
.nav-item > a.current-menu-item { background: #393939; color: white; }
.nav-item > a svg { margin-left: 4px; }
.nav-dropdown {
  display: none; position: absolute; top: 48px; left: 0;
  background: #1a1a1a; border: 1px solid #393939;
  border-top: 2px solid var(--kb-blue); min-width: 180px; z-index: 100;
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; color: #c6c6c6; font-size: 13px; text-decoration: none;
  padding: 10px 16px; border-bottom: 1px solid #2a2a2a;
  transition: background 0.15s, color 0.15s; height: auto;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: #393939; color: white; }
.nav-icons { display: flex; align-items: center; }
.nav-icons button {
  background: none; border: none; cursor: pointer; color: #c6c6c6;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.nav-icons button:hover { background: #393939; color: white; }

/* ─── SEARCH OVERLAY ───────────────────────────────────── */
.kb-search-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.kb-search-overlay.is-open { opacity: 1; pointer-events: all; }
.kb-search-overlay form { display: flex; width: 100%; max-width: 600px; padding: 0 24px; }
.kb-search-overlay input[type="search"] {
  flex: 1; border: none; border-bottom: 2px solid var(--kb-blue);
  background: transparent; color: white; font-size: 24px;
  font-family: var(--font); padding: 12px 0; outline: none;
}
.kb-search-overlay .kb-search-close {
  background: none; border: none; color: white; font-size: 14px;
  margin-top: 16px; cursor: pointer; font-family: var(--font);
}

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn-primary {
  background: var(--kb-blue); color: white; border: none; cursor: pointer;
  padding: 14px 20px; font-size: 14px; font-family: var(--font); font-weight: 400;
  transition: background 0.15s; display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-primary:hover { background: var(--kb-blue-hover); color: white; }
.btn-secondary {
  background: none; color: var(--kb-blue); border: 1px solid var(--kb-blue);
  cursor: pointer; padding: 14px 20px; font-size: 14px;
  font-family: var(--font); font-weight: 400;
  transition: background 0.15s, color 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; margin-left: -1px;
}
.btn-secondary:hover { background: var(--kb-blue-light); }

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1fr 320px;
  min-height: 440px; overflow: hidden;
  background: var(--kb-white); border-bottom: 1px solid var(--kb-gray-20);
}
.hero-left {
  padding: 56px 48px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, #edf5ff 0%, #ffffff 60%); position: relative;
}
.hero-left::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f62fe' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-title {
  font-size: 48px; font-weight: 300; line-height: 1.1;
  margin-bottom: 20px; position: relative; letter-spacing: -0.5px;
}
.hero-title strong { font-weight: 600; display: block; color: var(--kb-blue); }
.hero-desc {
  font-size: 16px; font-weight: 300; color: var(--kb-gray-70);
  max-width: 480px; margin-bottom: 32px; line-height: 1.6; position: relative;
}
.hero-ctas { display: flex; gap: 0; position: relative; }

/* ─── HERO RIGHT (news panel) ──────────────────────────── */
.hero-right { background: var(--kb-gray-10); border-left: 1px solid var(--kb-gray-20); }
.latest-news-header {
  padding: 12px 16px; background: var(--kb-black); color: white;
  font-size: 12px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase;
}
.news-item {
  padding: 16px; border-bottom: 1px solid var(--kb-gray-20);
  cursor: pointer; transition: background 0.15s;
  display: flex; gap: 12px; align-items: flex-start; text-decoration: none;
}
.news-item:hover { background: white; }
.news-item-dot {
  width: 8px; height: 8px; background: var(--kb-blue);
  border-radius: 50%; margin-top: 5px; flex-shrink: 0;
}
.news-item-tag {
  font-size: 10px; color: var(--kb-blue); text-transform: uppercase;
  font-weight: 500; letter-spacing: 0.5px; margin-bottom: 2px;
}
.news-item-title { font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--kb-gray-90); }
.news-item-title a { color: inherit; text-decoration: none; }
.news-item-title a:hover { color: var(--kb-blue); text-decoration: underline; }

/* ─── RECOMMENDED ──────────────────────────────────────── */
.section-label {
  font-size: 12px; color: var(--kb-gray-50); padding: 12px 16px;
  border-bottom: 1px solid var(--kb-gray-20); text-transform: uppercase; letter-spacing: 0.5px;
}
.reco-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--kb-gray-20); }
.reco-card { padding: 20px 16px; border-right: 1px solid var(--kb-gray-20); transition: background 0.15s; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.reco-card:last-child { border-right: none; }
.reco-card:hover { background: var(--kb-gray-10); }
.reco-icon { width: 40px; height: 40px; background: var(--kb-blue-light); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; border-radius: 2px; }
.reco-title { font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.reco-desc { font-size: 12px; color: var(--kb-gray-70); line-height: 1.5; margin-bottom: 12px; }
.reco-link { font-size: 12px; color: var(--kb-blue); text-decoration: none; display: flex; align-items: center; gap: 4px; }
.reco-link:hover { text-decoration: underline; }

/* ─── BLOG CARDS ───────────────────────────────────────── */
.blog-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--kb-gray-20); }
.blog-card { border-right: 1px solid var(--kb-gray-20); display: flex; flex-direction: column; transition: background 0.15s; cursor: pointer; text-decoration: none; color: inherit; }
.blog-card:last-child { border-right: none; }
.blog-card:hover { background: var(--kb-gray-10); }
.blog-card--cta { background: var(--kb-blue-light); }
.blog-card--cta:hover { background: #daeaff; }
.blog-card-img { width: 100%; height: 140px; overflow: hidden; flex-shrink: 0; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.blog-card-tag { font-size: 10px; color: var(--kb-blue); text-transform: uppercase; font-weight: 600; letter-spacing: 0.6px; margin-bottom: 8px; }
.blog-card-title { font-size: 13px; font-weight: 500; line-height: 1.45; margin-bottom: 8px; color: var(--kb-gray-90); }
.blog-card-meta { font-size: 11px; color: var(--kb-gray-50); margin-bottom: 10px; }
.blog-card-desc { font-size: 12px; color: var(--kb-gray-70); line-height: 1.55; margin-bottom: 14px; flex: 1; }
.blog-card-footer { margin-top: auto; }
.blog-card-link { font-size: 12px; color: var(--kb-blue); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.blog-card-link:hover { text-decoration: underline; }

/* ─── WEBINAR BANNER ───────────────────────────────────── */
.webinar-banner {
  background: var(--kb-gray-10); border: 1px solid var(--kb-gray-20);
  border-left: none; border-right: none;
  padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
}
.webinar-left { display: flex; align-items: center; gap: 16px; }
.webinar-badge {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--kb-blue); border: 1px solid var(--kb-blue);
  padding: 2px 8px; white-space: nowrap;
}
.webinar-text strong { font-size: 14px; font-weight: 500; display: block; }
.webinar-text span { font-size: 12px; color: var(--kb-gray-70); }

/* ─── PRODUCTS SECTION ─────────────────────────────────── */
.products-section { padding: 48px 0 0; }
.products-header { padding: 0 16px 32px; }
.products-header h2 { font-size: 36px; font-weight: 300; letter-spacing: -0.3px; }
.products-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto; border-top: 1px solid var(--kb-gray-20);
}
.products-hero-card { grid-row: 1 / 3; position: relative; overflow: hidden; min-height: 400px; cursor: pointer; display: block; text-decoration: none; }
.products-hero-visual { position: absolute; inset: 0; background: linear-gradient(135deg, #050e2e 0%, #0f62fe 50%, #8a3ffc 100%); }
.products-hero-visual::after {
  content: 'KB'; position: absolute; font-size: 140px; font-weight: 700;
  color: rgba(255,255,255,0.06); letter-spacing: -8px; bottom: 40px; left: -10px;
  font-family: var(--mono); line-height: 1;
}
.grid-dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px); background-size: 24px 24px; }
.products-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}
.products-hero-content .tag { font-size: 11px; color: #7eb3ff; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.products-hero-content h3 { font-size: 20px; font-weight: 400; color: white; margin-bottom: 8px; }
.products-hero-content p { font-size: 13px; color: rgba(255,255,255,0.7); }
.products-hero-link { position: absolute; bottom: 24px; right: 24px; color: rgba(255,255,255,0.6); }
.product-card {
  padding: 20px; border: 1px solid var(--kb-gray-20); border-left: none; border-top: none;
  cursor: pointer; transition: background 0.15s; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.product-card:hover { background: var(--kb-gray-10); }
.product-card .tag { font-size: 11px; color: var(--kb-blue); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.product-card-icon { width: 36px; height: 36px; margin-bottom: 12px; }
.product-card h3 { font-size: 15px; font-weight: 400; line-height: 1.4; margin-bottom: auto; padding-bottom: 16px; }
.product-card-arrow { color: var(--kb-blue); }

/* ─── IMPACT / CLIENT TABS ─────────────────────────────── */
.impact-section { padding: 48px 0; border-top: 1px solid var(--kb-gray-20); }
.impact-header { padding: 0 16px 32px; }
.impact-header h2 { font-size: 36px; font-weight: 300; }
.client-tabs { display: flex; padding: 0 16px; border-bottom: 1px solid var(--kb-gray-20); overflow-x: auto; }
.client-tab {
  padding: 12px 24px; font-size: 14px; cursor: pointer;
  border-bottom: 2px solid transparent; color: var(--kb-gray-50);
  transition: all 0.15s; background: none; border-top: none; border-left: none; border-right: none;
  font-family: var(--font); white-space: nowrap;
}
.client-tab.active { border-bottom-color: var(--kb-blue); color: var(--kb-black); }
.client-tab:hover:not(.active) { color: var(--kb-black); }
.client-panel { display: none; padding: 32px 16px; }
.client-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.client-name { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--kb-gray-50); margin-bottom: 16px; font-weight: 500; }
.client-desc { font-size: 15px; font-weight: 300; line-height: 1.7; margin-bottom: 24px; }
.client-stats { display: flex; gap: 40px; margin-bottom: 24px; }
.stat-val { font-size: 32px; font-weight: 300; color: var(--kb-blue); }
.stat-label { font-size: 12px; color: var(--kb-gray-70); max-width: 120px; line-height: 1.4; }
.client-link { color: var(--kb-blue); font-size: 13px; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.client-link:hover { text-decoration: underline; }
.client-visual { height: 280px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.client-visual-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.client-visual-inner span { font-size: 80px; font-weight: 700; color: rgba(255,255,255,0.08); font-family: var(--mono); }

/* ─── DEVELOPER TOOLKIT ────────────────────────────────── */
.toolkit-section { background: var(--kb-gray-10); padding: 48px 16px; border-top: 1px solid var(--kb-gray-20); }
.toolkit-header { font-size: 32px; font-weight: 300; margin-bottom: 8px; }
.toolkit-sub { display: flex; gap: 0; margin-bottom: 32px; }
.toolkit-tab { font-size: 14px; font-weight: 500; margin-right: 32px; color: var(--kb-blue); border-bottom: 2px solid var(--kb-blue); padding-bottom: 4px; cursor: pointer; }
.toolkit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.toolkit-col h3 { font-size: 16px; font-weight: 400; margin-bottom: 16px; }
.toolkit-col p { font-size: 14px; color: var(--kb-gray-70); margin-bottom: 16px; line-height: 1.6; }
.toolkit-links { display: flex; flex-direction: column; gap: 8px; }
.toolkit-link { color: var(--kb-blue); font-size: 13px; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.toolkit-link:hover { text-decoration: underline; }

/* ─── SERVICES ─────────────────────────────────────────── */
.services-section { padding: 48px 16px; border-top: 1px solid var(--kb-gray-20); }
.services-section h2 { font-size: 32px; font-weight: 300; margin-bottom: 12px; }
.services-section > p { font-size: 15px; font-weight: 300; color: var(--kb-gray-70); max-width: 560px; line-height: 1.7; margin-bottom: 40px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--kb-gray-20); }
.service-card { padding: 24px 20px; border-right: 1px solid var(--kb-gray-20); border-bottom: 1px solid var(--kb-gray-20); cursor: pointer; transition: background 0.15s; text-decoration: none; color: inherit; display: block; }
.service-card:hover { background: var(--kb-gray-10); }
.service-card:nth-child(4n) { border-right: none; }
.service-icon { width: 40px; height: 40px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
.service-name { font-size: 14px; font-weight: 400; margin-bottom: 4px; }
.service-arrow { color: var(--kb-blue); margin-top: 8px; }

/* ─── INSIDE KEY BRAINS ────────────────────────────────── */
.inside-section { background: var(--kb-gray-10); padding: 48px 16px; border-top: 1px solid var(--kb-gray-20); }
.inside-section h2 { font-size: 32px; font-weight: 300; margin-bottom: 24px; }
.inside-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.inside-col { padding-right: 32px; }
.inside-col + .inside-col { border-left: 1px solid var(--kb-gray-20); padding-left: 32px; padding-right: 32px; }
.inside-col:last-child { padding-right: 0; }
.inside-col h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.3px; }
.inside-col p { font-size: 13px; color: var(--kb-gray-70); margin-bottom: 16px; line-height: 1.6; }
.inside-links { display: flex; flex-direction: column; gap: 6px; }
.inside-link { color: var(--kb-blue); font-size: 13px; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.inside-link:hover { text-decoration: underline; }

/* ─── NEWSLETTER ───────────────────────────────────────── */
.newsletter-section { padding: 48px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; border-top: 1px solid var(--kb-gray-20); }
.newsletter-left { position: relative; overflow: hidden; background: #0a1628; min-height: 200px; padding: 32px; }
.newsletter-left::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(15,98,254,0.2)' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='25' fill='none' stroke='rgba(15,98,254,0.15)' stroke-width='0.5'/%3E%3C/svg%3E") center/200px no-repeat;
}
.newsletter-left h2 { font-size: 28px; font-weight: 300; color: white; position: relative; z-index: 1; }
.newsletter-right h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.newsletter-right p { font-size: 13px; color: var(--kb-gray-70); margin-bottom: 20px; line-height: 1.6; }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 12px; font-weight: 500; }
.form-group input, .form-group select {
  border: 1px solid var(--kb-gray-30); padding: 10px 12px; font-size: 14px;
  font-family: var(--font); outline: none; transition: border-color 0.15s; background: white;
}
.form-group input:focus, .form-group select:focus { border-color: var(--kb-blue); }
.newsletter-note { font-size: 11px; color: var(--kb-gray-50); line-height: 1.5; }
.newsletter-note a { color: var(--kb-blue); text-decoration: none; }

/* ─── FOOTER ───────────────────────────────────────────── */
footer { background: var(--kb-black); color: #c6c6c6; padding: 40px 16px 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-bottom: 40px; }
.footer-col h4 { font-size: 12px; font-weight: 600; color: white; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 12px; color: #8d8d8d; text-decoration: none; margin-bottom: 8px; transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li a { display: block; font-size: 12px; color: #8d8d8d; text-decoration: none; margin-bottom: 8px; transition: color 0.15s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid #393939; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-logo-mark {
  width: 28px; height: 28px; background: var(--kb-blue); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 10px; color: white;
  clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
  overflow: hidden; flex-shrink: 0;
}
.footer-logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.footer-logo-text { color: #8d8d8d; font-size: 12px; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 11px; color: #8d8d8d; text-decoration: none; }
.footer-legal a:hover { color: white; }

/* ─── BREADCRUMB ───────────────────────────────────────── */
.breadcrumb {
  padding: 10px 48px; background: var(--kb-gray-10);
  border-bottom: 1px solid var(--kb-gray-20);
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--kb-gray-50);
}
.breadcrumb a { color: var(--kb-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ─── PAGE HERO (inner pages) ──────────────────────────── */
.page-hero { background: var(--kb-black); padding: 64px 48px 56px; position: relative; overflow: hidden; border-bottom: 1px solid #393939; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(15,98,254,.1) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.page-hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; color: var(--kb-blue); font-family: var(--mono); margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(32px,4vw,52px); font-weight: 300; color: white; line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 20px; }
.page-hero h1 strong { font-weight: 600; }
.page-hero .hero-desc { font-size: 16px; font-weight: 300; color: #8d8d8d; max-width: 580px; line-height: 1.7; margin-bottom: 0; }

/* ─── BLOG / ARCHIVE ───────────────────────────────────── */
.kb-post-content { font-size: 16px; line-height: 1.8; color: var(--kb-gray-90); }
.kb-post-content h2 { font-size: 24px; font-weight: 400; margin: 2em 0 .75em; }
.kb-post-content h3 { font-size: 20px; font-weight: 400; margin: 1.5em 0 .5em; }
.kb-post-content p { margin-bottom: 1.25em; }
.kb-post-content ul, .kb-post-content ol { padding-left: 1.5em; margin-bottom: 1.25em; }
.kb-post-content li { margin-bottom: .5em; }
.kb-post-content a { color: var(--kb-blue); text-decoration: underline; }
.kb-post-content img { max-width: 100%; margin: 1.5em 0; }
.kb-post-content blockquote { border-left: 3px solid var(--kb-blue); padding: 1em 1.5em; margin: 1.5em 0; background: var(--kb-blue-light); font-style: italic; }
.kb-post-content code { background: var(--kb-gray-10); padding: 2px 6px; font-family: var(--mono); font-size: .9em; }
.kb-post-content pre { background: var(--kb-gray-90); color: #f4f4f4; padding: 1.5em; margin: 1.5em 0; overflow-x: auto; }

/* ─── PAGINATION ───────────────────────────────────────── */
.kb-pagination { padding: 32px 0; display: flex; gap: 4px; justify-content: center; }
.kb-pagination a, .kb-pagination span { padding: 8px 14px; font-size: 13px; border: 1px solid var(--kb-gray-20); color: var(--kb-gray-70); transition: all .15s; text-decoration: none; display: inline-block; }
.kb-pagination a:hover, .kb-pagination .current { background: var(--kb-blue); color: white; border-color: var(--kb-blue); }

/* ─── MOBILE NAV DRAWER ────────────────────────────────── */
.kb-mobile-nav { display: none; background: var(--kb-black); border-bottom: 1px solid #393939; }
.kb-mobile-nav .mobile-menu-list { list-style: none; margin: 0; padding: 0; }
.kb-mobile-nav .mobile-menu-list li a { display: block; color: #c6c6c6; padding: 12px 20px; font-size: 14px; border-bottom: 1px solid #2a2a2a; text-decoration: none; }
.kb-mobile-nav .mobile-menu-list li a:hover { background: #393939; color: white; }
.kb-mobile-nav .mobile-menu-list .sub-menu { list-style: none; padding: 0; background: #111; }
.kb-mobile-nav .mobile-menu-list .sub-menu li a { padding-left: 36px; font-size: 13px; }


/* ─── HERO IMAGE PANEL ─────────────────────────────────── */
/* Shows when an image is uploaded via KB2026 → Home Page → Hero Image */
.hero-image-panel {
  position: relative;
  overflow: hidden;
  background: var(--kb-gray-10);
  border-left: 1px solid var(--kb-gray-20);
  display: flex;
  align-items: stretch;
}
.hero-image-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 440px;
  transition: transform 0.4s ease;
}
.hero-image-link:hover .hero-image {
  transform: scale(1.03);
}

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr !important; }
  .hero-right { display: none; }
  .hero-image-panel { display: none; }  /* hide hero image on mobile to save space */
  .hero-title { font-size: 32px; }
  .reco-grid { grid-template-columns: 1fr 1fr; }
  .blog-cards-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .products-hero-card { min-height: 260px; }
  .client-panel.active { grid-template-columns: 1fr; }
  .toolkit-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .inside-grid { grid-template-columns: 1fr; }
  .newsletter-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none !important; }
  .kb-mob-show { display: flex !important; }
  .breadcrumb { padding: 10px 16px; }
  .page-hero { padding: 40px 20px; }
}
@media (max-width: 480px) {
  .reco-grid { grid-template-columns: 1fr; }
  .blog-cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
