/*
Theme Name: Key Brains
Theme URI: https://keybrains.io
Author: Key Brains
Author URI: https://keybrains.io
Description: Official Key Brains theme — IBM Plex design system, fully manageable via Theme Options admin panel.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: keybrains
*/

/* ============================================================
   RESET & ROOT VARIABLES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --kb-black: #0a0a0a;
  --kb-white: #ffffff;
  --kb-blue: #ff751f;
  --kb-blue-hover: #cc5a0f;
  --kb-blue-light: #fff3eb;
  --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;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--kb-black); background: var(--kb-white); font-size: 14px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--kb-blue); }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav.kb-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%);
}
.nav-logo-text { color: white; font-size: 16px; font-weight: 600; letter-spacing: 0.5px; }
.nav-links { display: flex; align-items: center; }
.nav-item { position: relative; }
.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 { 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; }
.nav-mobile-toggle { display: none; }

/* ============================================================
   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, #fff3eb 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='%23ff751f' 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 { 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; }
.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; }

/* ============================================================
   SECTION LABEL & RECOMMENDED CARDS
   ============================================================ */
.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; }
.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; }

/* ============================================================
   WEBINAR BANNER
   ============================================================ */
.webinar-banner { background: var(--kb-gray-10); border: 1px solid var(--kb-gray-20); 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 / WHAT WE BUILD
   ============================================================ */
.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; }
.products-hero-card { grid-row: 1 / 3; position: relative; overflow: hidden; min-height: 400px; cursor: pointer; }
.products-hero-visual { position: absolute; inset: 0; background: linear-gradient(135deg, #1a0800 0%, #ff751f 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: #ffb380; 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; }
.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); }

/* ============================================================
   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; }
.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(255,117,31,0.2)' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='25' fill='none' stroke='rgba(255,117,31,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 { 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; }

/* ============================================================
   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; }
.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; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.kb-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 p { font-size: 12px; color: #8d8d8d; line-height: 1.8; }
.footer-col p a { display: inline; color: #8d8d8d; }
.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; }
.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%); }
.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; }

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero { padding: 64px 48px; background: linear-gradient(135deg, #fff3eb 0%, #ffffff 60%); border-bottom: 1px solid var(--kb-gray-20); position: relative; overflow: hidden; }
.page-hero::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'%3E%3Cg fill='%23ff751f' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.page-hero h1 { font-size: 42px; font-weight: 300; letter-spacing: -0.5px; position: relative; }
.page-hero h1 strong { color: var(--kb-blue); font-weight: 600; }
.page-hero p { font-size: 16px; color: var(--kb-gray-70); max-width: 560px; margin-top: 16px; line-height: 1.6; position: relative; }
.page-content { padding: 48px 16px; max-width: 1200px; margin: 0 auto; }
.page-content h2 { font-size: 28px; font-weight: 300; margin-bottom: 16px; }
.page-content p { font-size: 15px; color: var(--kb-gray-70); line-height: 1.7; margin-bottom: 16px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 16px; border-top: 1px solid var(--kb-gray-20); }
.contact-form-wrap h2 { font-size: 28px; font-weight: 300; margin-bottom: 24px; }
.contact-info h2 { font-size: 28px; font-weight: 300; margin-bottom: 24px; }
.contact-info-item { margin-bottom: 24px; }
.contact-info-item h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.contact-info-item p { font-size: 14px; color: var(--kb-gray-70); line-height: 1.6; }
.wpcf7-form .form-group { margin-bottom: 16px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea { width: 100%; 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; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { border-color: var(--kb-blue); }
.wpcf7-form textarea { min-height: 140px; resize: vertical; }
.wpcf7-form .btn-primary { border: none; cursor: pointer; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-hero { padding: 48px 16px; background: var(--kb-black); color: white; }
.single-post-hero .post-tag { font-size: 11px; color: var(--kb-blue); text-transform: uppercase; font-weight: 600; letter-spacing: 0.6px; margin-bottom: 16px; }
.single-post-hero h1 { font-size: 36px; font-weight: 300; line-height: 1.2; max-width: 700px; }
.single-post-hero .post-meta { font-size: 12px; color: #8d8d8d; margin-top: 16px; }
.single-post-content { padding: 48px 16px; max-width: 760px; }
.single-post-content p { font-size: 15px; line-height: 1.8; margin-bottom: 20px; color: var(--kb-gray-70); }
.single-post-content h2 { font-size: 24px; font-weight: 400; margin: 32px 0 12px; }
.single-post-content h3 { font-size: 18px; font-weight: 500; margin: 24px 0 10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .reco-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .products-hero-card { grid-row: auto; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-left { padding: 32px 20px; }
  .blog-cards-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .inside-grid { grid-template-columns: 1fr; }
  .inside-col + .inside-col { border-left: none; border-top: 1px solid var(--kb-gray-20); padding-left: 0; padding-top: 24px; margin-top: 24px; }
  .newsletter-section { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .client-panel.active { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .webinar-banner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .toolkit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .reco-grid { grid-template-columns: 1fr; }
  .blog-cards-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .btn-secondary { margin-left: 0; }
}

/* ============================================================
   HERO — 3-COLUMN LAYOUT WITH CENTRE BANNER
   ============================================================ */

/* Default 2-col (no banner) stays as-is via .hero rule above  */

/* When banner image is present, hero becomes 3 columns        */
.hero--with-banner {
  grid-template-columns: 1fr 1fr 320px;
}

/* Centre banner column */
.hero-centre {
  border-left: 1px solid var(--kb-gray-20);
  border-right: 1px solid var(--kb-gray-20);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.hero-banner-link {
  display: block;
  width: 100%;
  overflow: hidden;
}
.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
a.hero-banner-link:hover .hero-banner-img {
  transform: scale(1.04);
}

@media (max-width: 1024px) {
  .hero--with-banner {
    grid-template-columns: 1fr;
  }
  .hero-centre {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--kb-gray-20);
    border-bottom: 1px solid var(--kb-gray-20);
    max-height: 260px;
  }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* Hero */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 480px;
  padding: 0;
  background: none;
  border-bottom: 1px solid var(--kb-gray-20);
  overflow: hidden;
}
.about-hero-left {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #fff3eb 0%, #ffffff 60%);
  position: relative;
}
.about-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'%3E%3Cg fill='%23ff751f' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.about-hero-tag {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--kb-blue);
  border-left: 2px solid var(--kb-blue);
  padding-left: 10px; margin-bottom: 20px;
  position: relative;
}
.about-hero-left h1 {
  font-size: 44px; font-weight: 300; line-height: 1.1;
  letter-spacing: -0.5px; margin-bottom: 20px; position: relative;
}
.about-hero-left h1 strong { font-weight: 600; color: var(--kb-blue); display: block; }
.about-hero-left p {
  font-size: 16px; font-weight: 300; color: var(--kb-gray-70);
  max-width: 480px; line-height: 1.7; position: relative;
}
.about-hero-right {
  position: relative; overflow: hidden;
  border-left: 1px solid var(--kb-gray-20);
}
.about-hero-visual {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a0800 0%, #ff751f 50%, #8a3ffc 100%);
}
.about-hero-visual-text {
  position: absolute; font-size: 160px; font-weight: 700;
  color: rgba(255,255,255,0.06); letter-spacing: -10px;
  bottom: 30px; left: -10px; font-family: var(--mono); line-height: 1;
}

/* Stats bar */
.about-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--kb-gray-20);
}
.about-stat-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--kb-gray-20);
}
.about-stat-cell:last-child { border-right: none; }
.about-stat-label {
  font-size: 13px; font-weight: 500; color: var(--kb-gray-90); margin-top: 4px;
}
.about-stat-sub {
  font-size: 11px; color: var(--kb-gray-50); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.4px;
}

/* Story */
.about-story-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--kb-gray-20);
}
.about-story-label {
  padding: 48px 32px;
  border-right: 1px solid var(--kb-gray-20);
  background: var(--kb-gray-10);
}
.section-eyebrow {
  display: block;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--kb-blue);
  margin-bottom: 12px;
}
.about-story-label h2 {
  font-size: 28px; font-weight: 300; line-height: 1.3;
}
.about-story-body {
  padding: 48px 48px;
}
.about-story-body p {
  font-size: 15px; color: var(--kb-gray-70); line-height: 1.8;
  margin-bottom: 20px;
}
.about-story-body p a { color: var(--kb-blue); }

/* Process steps */
.about-process-section {
  border-bottom: 1px solid var(--kb-gray-20);
}
.about-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.about-process-card {
  padding: 32px 24px;
  border-right: 1px solid var(--kb-gray-20);
  border-bottom: 1px solid var(--kb-gray-20);
  transition: background 0.15s;
}
.about-process-card:last-child { border-right: none; }
.about-process-card:hover { background: var(--kb-gray-10); }
.about-process-num {
  font-size: 32px; font-weight: 300; color: var(--kb-blue);
  font-family: var(--mono); margin-bottom: 16px; line-height: 1;
}
.about-process-card h3 {
  font-size: 14px; font-weight: 600; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.about-process-card p {
  font-size: 13px; color: var(--kb-gray-70); line-height: 1.65;
}

/* Values grid */
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--kb-gray-20);
  margin-top: 0;
}
.about-value-card {
  padding: 28px 24px;
  border-right: 1px solid var(--kb-gray-20);
  border-bottom: 1px solid var(--kb-gray-20);
  transition: background 0.15s;
}
.about-value-card:hover { background: white; }
.about-value-card:nth-child(3n) { border-right: none; }
.about-value-icon {
  width: 48px; height: 48px;
  background: #fff3eb;
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px; margin-bottom: 16px;
}
.about-value-card h3 {
  font-size: 14px; font-weight: 600; margin-bottom: 8px;
}
.about-value-card p {
  font-size: 13px; color: var(--kb-gray-70); line-height: 1.65;
}

/* Team */
.about-team-section {
  padding: 48px 0;
  border-top: 1px solid var(--kb-gray-20);
}
.about-team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--kb-gray-20);
  margin-top: 0;
}
.about-team-card {
  padding: 24px 16px;
  border-right: 1px solid var(--kb-gray-20);
  border-bottom: 1px solid var(--kb-gray-20);
  text-align: center;
  transition: background 0.15s;
}
.about-team-card:last-child { border-right: none; }
.about-team-card:hover { background: var(--kb-gray-10); }
.about-team-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background-size: cover; background-position: center;
  margin: 0 auto 12px;
}
.about-team-avatar--placeholder {
  background: linear-gradient(135deg, #ff751f, #cc5a0f);
  display: flex; align-items: center; justify-content: center;
}
.about-team-avatar--placeholder span {
  font-size: 18px; font-weight: 600; color: white; font-family: var(--mono);
}
.about-team-name {
  font-size: 13px; font-weight: 500; margin-bottom: 4px;
}
.about-team-role {
  font-size: 11px; color: var(--kb-gray-50); line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero-right { display: none; }
  .about-stats-bar { grid-template-columns: repeat(2,1fr); }
  .about-process-grid { grid-template-columns: repeat(2,1fr); }
  .about-values-grid { grid-template-columns: repeat(2,1fr); }
  .about-team-grid { grid-template-columns: repeat(3,1fr); }
  .about-story-section { grid-template-columns: 1fr; }
  .about-story-label { border-right: none; border-bottom: 1px solid var(--kb-gray-20); padding: 32px 24px; }
  .about-story-body { padding: 32px 24px; }
}
@media (max-width: 640px) {
  .about-stats-bar { grid-template-columns: repeat(2,1fr); }
  .about-process-grid { grid-template-columns: 1fr; }
  .about-values-grid { grid-template-columns: 1fr; }
  .about-team-grid { grid-template-columns: repeat(2,1fr); }
  .about-hero-left { padding: 40px 20px; }
  .about-hero-left h1 { font-size: 32px; }
}

/* ============================================================
   TECHNOLOGIES PAGE
   ============================================================ */
.tech-categories-section { border-top: 1px solid var(--kb-gray-20); border-bottom: 1px solid var(--kb-gray-20); }

.tech-tab-bar {
  display: flex; overflow-x: auto;
  border-bottom: 1px solid var(--kb-gray-20);
  padding: 0 16px; gap: 0;
}
.tech-tab {
  padding: 12px 24px; font-size: 14px; font-family: var(--font);
  cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent;
  color: var(--kb-gray-50); transition: all 0.15s; white-space: nowrap;
}
.tech-tab.active  { border-bottom-color: var(--kb-blue); color: var(--kb-black); }
.tech-tab:hover:not(.active) { color: var(--kb-black); }

.tech-panel { display: none; }
.tech-panel.active { display: block; }

.tech-panel-intro {
  padding: 24px 16px 0;
  max-width: 680px;
}
.tech-panel-intro p { font-size: 15px; color: var(--kb-gray-70); line-height: 1.7; }

.tech-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 0;
  border-top: 1px solid var(--kb-gray-20);
  margin-top: 24px;
}
.tech-item-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 16px;
  border-right: 1px solid var(--kb-gray-20);
  border-bottom: 1px solid var(--kb-gray-20);
  transition: background 0.15s;
}
.tech-item-card:hover { background: var(--kb-gray-10); }
.tech-item-card:nth-child(3n) { border-right: none; }
.tech-item-dot {
  width: 8px; height: 8px; background: var(--kb-blue);
  border-radius: 50%; margin-top: 5px; flex-shrink: 0;
}
.tech-item-name  { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.tech-item-detail { font-size: 12px; color: var(--kb-gray-70); line-height: 1.55; }

/* ============================================================
   SERVICES DETAIL PAGE
   ============================================================ */
.services-detail-section { border-top: 1px solid var(--kb-gray-20); }

.service-detail-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  border-bottom: 1px solid var(--kb-gray-20);
  min-height: 360px;
}
.service-detail-row--reverse {
  grid-template-columns: 1fr 340px;
}
.service-detail-row--reverse .service-detail-visual { order: 2; border-left: 1px solid var(--kb-gray-20); border-right: none; }
.service-detail-row--reverse .service-detail-body   { order: 1; }

.service-detail-visual {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 24px;
  border-right: 1px solid var(--kb-gray-20);
}
.service-detail-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  opacity: 0.9;
  width: 64px; height: 64px;
}
.service-detail-icon svg { width: 64px; height: 64px; }
.service-detail-tag {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3); padding: 3px 10px;
  position: relative; z-index: 1;
}

.service-detail-body { padding: 36px 40px; display: flex; flex-direction: column; }
.service-detail-body h2 { font-size: 26px; font-weight: 300; margin-bottom: 8px; }
.service-detail-headline { font-size: 15px; font-weight: 500; color: var(--kb-blue); margin-bottom: 16px; }
.service-detail-desc { font-size: 14px; color: var(--kb-gray-70); line-height: 1.75; margin-bottom: 20px; }
.service-detail-points {
  list-style: none; display: grid;
  grid-template-columns: 1fr 1fr; gap: 6px 24px; margin-bottom: 4px;
}
.service-detail-points li {
  font-size: 12px; color: var(--kb-gray-70); line-height: 1.5;
  padding-left: 14px; position: relative;
}
.service-detail-points li::before {
  content: '';
  position: absolute; left: 0; top: 6px;
  width: 6px; height: 6px; background: var(--kb-blue); border-radius: 50%;
}

/* ============================================================
   EXPERTISE PAGE
   ============================================================ */
.expertise-domains-section { border-top: 1px solid var(--kb-gray-20); }

.expertise-domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--kb-gray-20);
}
.expertise-domain-card {
  border-right: 1px solid var(--kb-gray-20);
  border-bottom: 1px solid var(--kb-gray-20);
  display: flex; flex-direction: column;
  transition: box-shadow 0.15s;
}
.expertise-domain-card:nth-child(3n) { border-right: none; }
.expertise-domain-card:hover { box-shadow: inset 0 0 0 2px var(--kb-blue); }

.expertise-domain-header {
  position: relative; overflow: hidden;
  height: 140px; display: flex;
  align-items: flex-end; padding: 16px;
}
.expertise-domain-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-60%);
}
.expertise-domain-tag {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.3); padding: 2px 8px;
  position: relative; z-index: 1;
}
.expertise-domain-body { padding: 24px; flex: 1; }
.expertise-domain-body h3 { font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.expertise-domain-body p  { font-size: 13px; color: var(--kb-gray-70); line-height: 1.65; margin-bottom: 16px; }
.expertise-domain-points  { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.expertise-domain-points li {
  font-size: 12px; color: var(--kb-gray-70);
  padding-left: 14px; position: relative; line-height: 1.4;
}
.expertise-domain-points li::before {
  content: '';
  position: absolute; left: 0; top: 5px;
  width: 5px; height: 5px; background: var(--kb-blue); border-radius: 50%;
}

/* ============================================================
   RESPONSIVE — TECH / SERVICES / EXPERTISE
   ============================================================ */
@media (max-width: 1024px) {
  .tech-items-grid         { grid-template-columns: repeat(2,1fr); }
  .service-detail-row,
  .service-detail-row--reverse { grid-template-columns: 1fr; }
  .service-detail-visual   { min-height: 200px; order: 0 !important; border-right: none !important; border-bottom: 1px solid var(--kb-gray-20); }
  .service-detail-body     { order: 1 !important; padding: 28px 20px; }
  .expertise-domains-grid  { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .tech-items-grid         { grid-template-columns: 1fr; }
  .expertise-domains-grid  { grid-template-columns: 1fr; }
  .service-detail-points   { grid-template-columns: 1fr; }
}

/* ============================================================
   CASE STUDIES — WORK PAGE & SINGLE
   ============================================================ */

/* Filter bar */
.cs-filter-bar {
  border-bottom: 1px solid var(--kb-gray-20);
  display: flex; align-items: center; flex-wrap: wrap;
  padding: 0 8px;
  gap: 0;
}
.cs-filter-buttons {
  display: flex; flex-wrap: wrap; gap: 0;
}
.cs-filter-btn {
  padding: 10px 20px; font-size: 13px; font-family: var(--font);
  border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--kb-gray-50); transition: all 0.15s; white-space: nowrap;
}
.cs-filter-btn.active  { border-bottom-color: var(--kb-blue); color: var(--kb-black); }
.cs-filter-btn:hover:not(.active) { color: var(--kb-black); }

/* Featured case study */
.cs-featured {
  display: grid;
  grid-template-columns: 480px 1fr;
  min-height: 400px;
  border-bottom: 1px solid var(--kb-gray-20);
}
.cs-featured-visual {
  position: relative; overflow: hidden;
}
.cs-featured-visual img { width:100%;height:100%;object-fit:cover;display:block; }
.cs-featured-initials {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 96px; font-weight: 700;
  color: rgba(255,255,255,0.12); font-family: var(--mono);
}
.cs-featured-badge {
  position: absolute; bottom: 20px; left: 20px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; border: 1px solid; padding: 3px 10px;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
}
.cs-featured-body {
  padding: 40px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.cs-featured-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.cs-tag {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px;
}
.cs-client {
  font-size: 12px; color: var(--kb-gray-50); text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cs-featured-title {
  font-size: 32px; font-weight: 300; line-height: 1.2; margin-bottom: 16px;
}
.cs-featured-tagline {
  font-size: 15px; color: var(--kb-gray-70); line-height: 1.7; max-width: 520px;
  margin-bottom: 24px;
}
.cs-stats-row {
  display: flex; gap: 40px; margin-bottom: 24px;
}
.cs-stat .stat-label {
  font-size: 12px; color: var(--kb-gray-70); line-height: 1.4; max-width: 120px;
}

/* Chips */
.cs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-chip {
  font-size: 11px; color: var(--kb-gray-70); background: var(--kb-gray-10);
  border: 1px solid var(--kb-gray-20); padding: 3px 10px;
  white-space: nowrap;
}
.cs-chips--vertical { flex-direction: column; gap: 4px; }

/* Grid */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--kb-gray-20);
}
.cs-grid--3 { grid-template-columns: repeat(3, 1fr); }

.cs-card { border-right: 1px solid var(--kb-gray-20); border-bottom: 1px solid var(--kb-gray-20); }
.cs-card:nth-child(3n) { border-right: none; }
.cs-card-inner {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
  transition: background 0.15s;
}
.cs-card-inner:hover { background: var(--kb-gray-10); }

.cs-card-visual {
  position: relative; height: 200px; overflow: hidden;
}
.cs-card-visual img { width:100%;height:100%;object-fit:cover;display:block;transition:transform 0.3s; }
.cs-card-inner:hover .cs-card-visual img { transform: scale(1.04); }
.cs-card-initials {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 56px; font-weight: 700;
  color: rgba(255,255,255,0.15); font-family: var(--mono);
}
.cs-card-tag {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: white; padding: 3px 8px;
}

.cs-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.cs-card-client { font-size: 11px; color: var(--kb-gray-50); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.cs-card-title { font-size: 15px; font-weight: 500; line-height: 1.4; margin-bottom: 8px; }
.cs-card-tagline { font-size: 12px; color: var(--kb-gray-70); line-height: 1.55; margin-bottom: 12px; flex: 1; }
.cs-card-stat { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.cs-card-stat-val { font-size: 24px; font-weight: 300; }
.cs-card-stat-lbl { font-size: 11px; color: var(--kb-gray-70); }
.cs-card-link { font-size: 12px; color: var(--kb-blue); display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 12px; }

/* ── Single Case Study ───────────────────────────────────── */
.cs-single-hero {
  display: grid;
  grid-template-columns: 1fr 440px;
  min-height: 440px;
  border-bottom: 1px solid var(--kb-gray-20);
}
.cs-single-hero-body {
  padding: 56px 48px;
  background: linear-gradient(135deg,#fff3eb 0%,#ffffff 60%);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.cs-single-hero-body::before {
  content:''; position:absolute; inset: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'%3E%3Cg fill='%23ff751f' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cs-single-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--kb-gray-50); margin-bottom: 20px;
  position: relative;
}
.cs-single-breadcrumb a { color: var(--kb-gray-50); text-decoration: none; }
.cs-single-breadcrumb a:hover { color: var(--kb-blue); }
.cs-single-hero-body h1 {
  font-size: 36px; font-weight: 300; line-height: 1.2;
  margin-bottom: 12px; position: relative;
}
.cs-single-tagline {
  font-size: 16px; color: var(--kb-gray-70); line-height: 1.65;
  font-weight: 300; max-width: 480px; position: relative;
}
.cs-single-meta {
  display: flex; gap: 16px; margin-top: 16px;
  font-size: 12px; color: var(--kb-gray-50);
  text-transform: uppercase; letter-spacing: 0.5px;
  position: relative;
}
.cs-single-meta span::after { content: '·'; margin-left: 16px; }
.cs-single-meta span:last-child::after { content: ''; }

.cs-single-hero-visual { position: relative; overflow: hidden; border-left: 1px solid var(--kb-gray-20); }
.cs-single-initials {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 100px; font-weight: 700;
  color: rgba(255,255,255,0.1); font-family: var(--mono);
}

/* Stats bar */
.cs-single-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-bottom: 1px solid var(--kb-gray-20);
}
.cs-single-stat-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--kb-gray-20);
}
.cs-single-stat-cell:last-child { border-right: none; }

/* Layout */
.cs-single-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  border-bottom: 1px solid var(--kb-gray-20);
  align-items: start;
}
.cs-single-content {
  border-right: 1px solid var(--kb-gray-20);
  padding: 48px;
}
.cs-single-section { margin-bottom: 40px; }
.cs-single-section:last-child { margin-bottom: 0; }
.cs-single-section-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--kb-blue);
  border-left: 2px solid var(--kb-blue); padding-left: 10px;
  margin-bottom: 16px;
}
.cs-single-section p {
  font-size: 15px; color: var(--kb-gray-70); line-height: 1.8;
}
.cs-single-wp-content p  { font-size:15px;color:var(--kb-gray-70);line-height:1.8;margin-bottom:16px; }
.cs-single-wp-content h2 { font-size:22px;font-weight:400;margin:32px 0 12px; }
.cs-single-wp-content h3 { font-size:17px;font-weight:500;margin:24px 0 10px; }

/* Sidebar */
.cs-single-sidebar { padding: 32px 24px; }
.cs-sidebar-block { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--kb-gray-20); }
.cs-sidebar-block:last-of-type { border-bottom: none; }
.cs-sidebar-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--kb-gray-50); margin-bottom: 6px; }
.cs-sidebar-value { font-size: 14px; font-weight: 500; }
.cs-sidebar-cta {
  margin-top: 24px; padding-top: 24px;
  border-top: 2px solid var(--kb-blue);
}
.cs-sidebar-cta p { font-size: 13px; color: var(--kb-gray-70); margin-bottom: 12px; line-height: 1.5; }

/* More section */
.cs-more-section { border-top: 1px solid var(--kb-gray-20); }

/* Responsive */
@media (max-width: 1024px) {
  .cs-featured { grid-template-columns: 1fr; }
  .cs-featured-visual { min-height: 280px; }
  .cs-featured-body { padding: 28px 24px; }
  .cs-grid { grid-template-columns: repeat(2,1fr); }
  .cs-card:nth-child(3n) { border-right: 1px solid var(--kb-gray-20); }
  .cs-card:nth-child(2n) { border-right: none; }
  .cs-single-hero { grid-template-columns: 1fr; }
  .cs-single-hero-visual { display: none; }
  .cs-single-hero-body { padding: 40px 24px; }
  .cs-single-layout { grid-template-columns: 1fr; }
  .cs-single-content { border-right: none; border-bottom: 1px solid var(--kb-gray-20); padding: 32px 20px; }
  .cs-single-sidebar { padding: 24px 20px; }
  .cs-single-stats { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 640px) {
  .cs-grid { grid-template-columns: 1fr; }
  .cs-card { border-right: none; }
  .cs-single-stats { grid-template-columns: 1fr 1fr; }
  .cs-featured-title { font-size: 24px; }
}
